From ed82a607671b3c0418149aa961462b6a1d70586e Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Thu, 19 Mar 2020 15:14:33 +0900 Subject: [PATCH] interrupt_controller: gic: Add GICD_SGIR field definitions This commit adds the GICD_SGIR register (used for generating software generated interrupts) field definitions. Signed-off-by: Stephanos Ioannidis --- include/drivers/interrupt_controller/gic.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/drivers/interrupt_controller/gic.h b/include/drivers/interrupt_controller/gic.h index 00f99ce4d96..3eaed5e3016 100644 --- a/include/drivers/interrupt_controller/gic.h +++ b/include/drivers/interrupt_controller/gic.h @@ -204,6 +204,19 @@ #define GICD_ICFGR_MASK BIT_MASK(2) #define GICD_ICFGR_TYPE BIT(1) +/* GICD_SGIR */ +#define GICD_SGIR_TGTFILT(x) (x << 24) +#define GICD_SGIR_TGTFILT_CPULIST GICD_SGIR_TGTFILT(0b00) +#define GICD_SGIR_TGTFILT_ALLBUTREQ GICD_SGIR_TGTFILT(0b01) +#define GICD_SGIR_TGTFILT_REQONLY GICD_SGIR_TGTFILT(0b10) + +#define GICD_SGIR_CPULIST(x) (x << 16) +#define GICD_SGIR_CPULIST_CPU(n) GICD_SGIR_CPULIST(BIT(n)) + +#define GICD_SGIR_NSATT BIT(15) + +#define GICD_SGIR_SGIINTID(x) (x) + #endif /* CONFIG_GIC_VER <= 2 */ #ifndef _ASMLANGUAGE