dts: Remove num-irqs from the arm nvic node
Move back to getting the number of IRQs from Kconfig. We do this because the number of IRQs should really just be determined by scanning the device tree and figuring out the highest IRQ value used. Change-Id: I8e0dbec1d9d036d4e899b237c4dc7d833c422e18 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
94107bc71d
commit
ffd7c9f696
21 changed files with 13 additions and 38 deletions
|
@ -13,16 +13,16 @@ source "arch/arm/soc/arm/beetle/Kconfig.defconfig.beetle*"
|
|||
config SOC_SERIES
|
||||
default beetle
|
||||
|
||||
config NUM_IRQS
|
||||
int
|
||||
default 45
|
||||
|
||||
if !HAS_DTS
|
||||
|
||||
config NUM_IRQ_PRIO_BITS
|
||||
int
|
||||
default 3
|
||||
|
||||
config NUM_IRQS
|
||||
int
|
||||
default 45
|
||||
|
||||
config SRAM_BASE_ADDRESS
|
||||
default 0x20000000
|
||||
|
||||
|
|
|
@ -23,13 +23,13 @@ config NUM_IRQ_PRIO_BITS
|
|||
int
|
||||
default 4
|
||||
|
||||
endif # !HAS_DTS
|
||||
|
||||
config NUM_IRQS
|
||||
int
|
||||
# must be >= the highest interrupt number used
|
||||
default 86
|
||||
|
||||
endif # !HAS_DTS
|
||||
|
||||
source "arch/arm/soc/nxp_kinetis/k6x/Kconfig.defconfig.mk*"
|
||||
|
||||
endif # SOC_SERIES_KINETIS_K6X
|
||||
|
|
|
@ -17,12 +17,12 @@ config NUM_IRQ_PRIO_BITS
|
|||
int
|
||||
default 2
|
||||
|
||||
endif # !HAS_DTS
|
||||
|
||||
config NUM_IRQS
|
||||
int
|
||||
default 32
|
||||
|
||||
endif # !HAS_DTS
|
||||
|
||||
if PINMUX
|
||||
|
||||
config PINMUX_MCUX
|
||||
|
|
|
@ -17,11 +17,11 @@ config SRAM_SIZE
|
|||
|
||||
config FLASH_SIZE
|
||||
default 128
|
||||
endif # !HAS_DTS
|
||||
|
||||
config NUM_IRQS
|
||||
int
|
||||
default 59
|
||||
endif # !HAS_DTS
|
||||
|
||||
endif # SOC_STM32F103XB
|
||||
|
||||
|
|
|
@ -19,10 +19,11 @@ config SRAM_SIZE
|
|||
config FLASH_SIZE
|
||||
default 1024
|
||||
|
||||
endif # !HAS_DTS
|
||||
|
||||
config NUM_IRQS
|
||||
int
|
||||
default 82
|
||||
endif # !HAS_DTS
|
||||
|
||||
endif # SOC_STM32L476XX
|
||||
|
||||
|
|
|
@ -18,14 +18,14 @@ config SRAM_SIZE
|
|||
config FLASH_SIZE
|
||||
default 0
|
||||
|
||||
endif # !HAS_DTS
|
||||
|
||||
config NUM_IRQS
|
||||
int
|
||||
# must be >= the highest interrupt number used
|
||||
# This includes the NWP interrupt
|
||||
default 179
|
||||
|
||||
endif # !HAS_DTS
|
||||
|
||||
config CC3200SDK_LIBRARY
|
||||
def_bool n
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#define CONFIG_NUM_IRQS ARM_ARMV7M_NVIC_E000E100_NUM_IRQS
|
||||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_ARMV7M_NVIC_E000E100_NUM_IRQ_PRIO_BITS
|
||||
|
||||
#define EXCEPTION_UARTA0 TI_CC32XX_UART_4000C000_IRQ_0
|
||||
|
|
|
@ -46,5 +46,4 @@
|
|||
|
||||
&nvic {
|
||||
num-irq-prio-bits = <3>;
|
||||
num-irqs = <179>;
|
||||
};
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#define CONFIG_NUM_IRQS ARM_ARMV7M_NVIC_E000E100_NUM_IRQS
|
||||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_ARMV7M_NVIC_E000E100_NUM_IRQ_PRIO_BITS
|
||||
|
||||
#define CONFIG_UART_MCUX_0_BAUD_RATE NXP_K64F_UART_4006A000_BAUD_RATE
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#define CONFIG_NUM_IRQS ARM_ARMV6M_NVIC_E000E100_NUM_IRQS
|
||||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_ARMV6M_NVIC_E000E100_NUM_IRQ_PRIO_BITS
|
||||
|
||||
#define CONFIG_UART_MCUX_LPUART_0_BAUD_RATE NXP_KW41Z_LPUART_40054000_BAUD_RATE
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#define CONFIG_NUM_IRQS ARM_ARMV7M_NVIC_E000E100_NUM_IRQS
|
||||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_ARMV7M_NVIC_E000E100_NUM_IRQ_PRIO_BITS
|
||||
|
||||
#define CONFIG_UART_MCUX_0_BAUD_RATE NXP_K64F_UART_4006A000_BAUD_RATE
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
* generated data matches the driver definitions.
|
||||
*/
|
||||
|
||||
|
||||
#define CONFIG_NUM_IRQS ARM_ARMV7M_NVIC_E000E100_NUM_IRQS
|
||||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_ARMV7M_NVIC_E000E100_NUM_IRQ_PRIO_BITS
|
||||
|
||||
#define CONFIG_UART_STM32_PORT_1_BASE_ADDRESS ST_STM32_USART_40013800_BASE_ADDRESS
|
||||
|
|
|
@ -271,6 +271,5 @@
|
|||
};
|
||||
|
||||
&nvic {
|
||||
num-irqs = <86>;
|
||||
num-irq-prio-bits = <4>;
|
||||
};
|
||||
|
|
|
@ -182,6 +182,5 @@
|
|||
};
|
||||
|
||||
&nvic {
|
||||
num-irqs = <32>;
|
||||
num-irq-prio-bits = <2>;
|
||||
};
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
*/
|
||||
|
||||
|
||||
#define CONFIG_NUM_IRQS ARM_ARMV7M_NVIC_E000E100_NUM_IRQS
|
||||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_ARMV7M_NVIC_E000E100_NUM_IRQ_PRIO_BITS
|
||||
|
||||
#define CONFIG_UART_STM32_PORT_1_BASE_ADDRESS ST_STM32_USART_40013800_BASE_ADDRESS
|
||||
|
|
|
@ -94,5 +94,4 @@
|
|||
|
||||
&nvic {
|
||||
num-irq-prio-bits = <4>;
|
||||
num-irqs = <59>;
|
||||
};
|
||||
|
|
|
@ -126,5 +126,4 @@
|
|||
|
||||
&nvic {
|
||||
num-irq-prio-bits = <4>;
|
||||
num-irqs = <82>;
|
||||
};
|
||||
|
|
|
@ -48,5 +48,4 @@
|
|||
|
||||
&nvic {
|
||||
num-irq-prio-bits = <3>;
|
||||
num-irqs = <45>;
|
||||
};
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#define CONFIG_NUM_IRQS ARM_ARMV7M_NVIC_E000E100_NUM_IRQS
|
||||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_ARMV7M_NVIC_E000E100_NUM_IRQ_PRIO_BITS
|
||||
|
||||
#define CMSDK_APB_UART_0_IRQ ARM_CMSDK_UART_40004000_IRQ_0
|
||||
|
|
|
@ -24,12 +24,6 @@ properties:
|
|||
description: number of bits of IRQ priorities
|
||||
generation: define
|
||||
|
||||
- num-irqs:
|
||||
category: required
|
||||
type: int
|
||||
description: number of interrupts controlled by controller
|
||||
generation: define
|
||||
|
||||
cell_string: IRQ
|
||||
|
||||
"#cells":
|
||||
|
|
|
@ -24,12 +24,6 @@ properties:
|
|||
description: number of bits of IRQ priorities
|
||||
generation: define
|
||||
|
||||
- num-irqs:
|
||||
category: required
|
||||
type: int
|
||||
description: number of interrupts controlled by controller
|
||||
generation: define
|
||||
|
||||
cell_string: IRQ
|
||||
|
||||
"#cells":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue