Skip to content

Commit ddba3d6

Browse files
rgundinashif
authored andcommitted
kconfig: Define the IRQ priorities for CAVS & DW ICTL
CAVS_ICTL_0_IRQ_PRI to CAVS_ICTL_3_IRQ_PRI and DW_ICTL_IRQ_PRI are now defined in Kconfig. This addresses the issue #7811. This was not throwing up any compilation error earlier as the IRQ priorities are all hardwired in Xtensa and hence are unconfigurable. They are dummy for Xtensa arch but may be applicable if used in some other arch. Signed-off-by: Rajavardhan Gundi <[email protected]>
1 parent c4bbdc7 commit ddba3d6

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

drivers/interrupt_controller/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,13 @@ config DW_ICTL_OFFSET
148148
help
149149
Parent interrupt number to which DW_ICTL maps
150150

151+
config DW_ICTL_IRQ_PRI
152+
int "DW ICTL IRQ priority"
153+
depends on DW_ICTL
154+
default 0
155+
help
156+
IRQ priority of DW ICTL interrupt
157+
151158
config DW_ISR_TBL_OFFSET
152159
int "Offset in the SW ISR Table"
153160
default 0

drivers/interrupt_controller/Kconfig.s1000

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ config CAVS_ICTL_0_NAME
2525
depends on CAVS_ICTL
2626
default "CAVS_0"
2727

28+
config CAVS_ICTL_0_IRQ_PRI
29+
int "CAVS 0 IRQ priority"
30+
depends on CAVS_ICTL
31+
default 0
32+
help
33+
IRQ priority of CAVS 0 interrupt
34+
2835
config CAVS_ICTL_0_OFFSET
2936
hex "Parent interrupt number to which CAVS_0 maps"
3037
default 0x00
@@ -35,6 +42,13 @@ config CAVS_ICTL_1_NAME
3542
depends on CAVS_ICTL
3643
default "CAVS_1"
3744

45+
config CAVS_ICTL_1_IRQ_PRI
46+
int "CAVS 1 IRQ priority"
47+
depends on CAVS_ICTL
48+
default 0
49+
help
50+
IRQ priority of CAVS 1 interrupt
51+
3852
config CAVS_ICTL_1_OFFSET
3953
hex "Parent interrupt number to which CAVS_1 maps"
4054
default 0x00
@@ -45,6 +59,13 @@ config CAVS_ICTL_2_NAME
4559
depends on CAVS_ICTL
4660
default "CAVS_2"
4761

62+
config CAVS_ICTL_2_IRQ_PRI
63+
int "CAVS 2 IRQ priority"
64+
depends on CAVS_ICTL
65+
default 0
66+
help
67+
IRQ priority of CAVS 2 interrupt
68+
4869
config CAVS_ICTL_2_OFFSET
4970
hex "Parent interrupt number to which CAVS_2 maps"
5071
default 0x00
@@ -55,6 +76,13 @@ config CAVS_ICTL_3_NAME
5576
depends on CAVS_ICTL
5677
default "CAVS_3"
5778

79+
config CAVS_ICTL_3_IRQ_PRI
80+
int "CAVS 3 IRQ priority"
81+
depends on CAVS_ICTL
82+
default 0
83+
help
84+
IRQ priority of CAVS 3 interrupt
85+
5886
config CAVS_ICTL_3_OFFSET
5987
hex "Parent interrupt number to which CAVS_3 maps"
6088
default 0x00

0 commit comments

Comments
 (0)