Skip to content

Commit

Permalink
kconfig: Define the IRQ priorities for CAVS & DW ICTL
Browse files Browse the repository at this point in the history
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 <rajavardhan.gundi@intel.com>
  • Loading branch information
rgundi authored and nashif committed May 29, 2018
1 parent c4bbdc7 commit ddba3d6
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/interrupt_controller/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,13 @@ config DW_ICTL_OFFSET
help
Parent interrupt number to which DW_ICTL maps

config DW_ICTL_IRQ_PRI
int "DW ICTL IRQ priority"
depends on DW_ICTL
default 0
help
IRQ priority of DW ICTL interrupt

config DW_ISR_TBL_OFFSET
int "Offset in the SW ISR Table"
default 0
Expand Down
28 changes: 28 additions & 0 deletions drivers/interrupt_controller/Kconfig.s1000
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ config CAVS_ICTL_0_NAME
depends on CAVS_ICTL
default "CAVS_0"

config CAVS_ICTL_0_IRQ_PRI
int "CAVS 0 IRQ priority"
depends on CAVS_ICTL
default 0
help
IRQ priority of CAVS 0 interrupt

config CAVS_ICTL_0_OFFSET
hex "Parent interrupt number to which CAVS_0 maps"
default 0x00
Expand All @@ -35,6 +42,13 @@ config CAVS_ICTL_1_NAME
depends on CAVS_ICTL
default "CAVS_1"

config CAVS_ICTL_1_IRQ_PRI
int "CAVS 1 IRQ priority"
depends on CAVS_ICTL
default 0
help
IRQ priority of CAVS 1 interrupt

config CAVS_ICTL_1_OFFSET
hex "Parent interrupt number to which CAVS_1 maps"
default 0x00
Expand All @@ -45,6 +59,13 @@ config CAVS_ICTL_2_NAME
depends on CAVS_ICTL
default "CAVS_2"

config CAVS_ICTL_2_IRQ_PRI
int "CAVS 2 IRQ priority"
depends on CAVS_ICTL
default 0
help
IRQ priority of CAVS 2 interrupt

config CAVS_ICTL_2_OFFSET
hex "Parent interrupt number to which CAVS_2 maps"
default 0x00
Expand All @@ -55,6 +76,13 @@ config CAVS_ICTL_3_NAME
depends on CAVS_ICTL
default "CAVS_3"

config CAVS_ICTL_3_IRQ_PRI
int "CAVS 3 IRQ priority"
depends on CAVS_ICTL
default 0
help
IRQ priority of CAVS 3 interrupt

config CAVS_ICTL_3_OFFSET
hex "Parent interrupt number to which CAVS_3 maps"
default 0x00
Expand Down

0 comments on commit ddba3d6

Please sign in to comment.