arch: xip: cleanup XIP Kconfig
unify how XIP is configured across architectures. Use imply instead of setting defaults per architecture and imply XIP on riscv arch and remove XIP configuration from individual defconfig files to match other architectures. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
5804edafe5
commit
ce59510127
11 changed files with 8 additions and 21 deletions
|
@ -20,6 +20,7 @@ config ARC
|
|||
bool
|
||||
select ARCH_IS_SET
|
||||
select HAS_DTS
|
||||
imply XIP
|
||||
help
|
||||
ARC architecture
|
||||
|
||||
|
@ -48,6 +49,7 @@ config NIOS2
|
|||
select ARCH_IS_SET
|
||||
select ATOMIC_OPERATIONS_C
|
||||
select HAS_DTS
|
||||
imply XIP
|
||||
help
|
||||
Nios II Gen 2 architecture
|
||||
|
||||
|
@ -55,6 +57,7 @@ config RISCV
|
|||
bool
|
||||
select ARCH_IS_SET
|
||||
select HAS_DTS
|
||||
imply XIP
|
||||
help
|
||||
RISCV architecture
|
||||
|
||||
|
|
|
@ -189,9 +189,6 @@ config FAULT_DUMP
|
|||
|
||||
0: Off.
|
||||
|
||||
config XIP
|
||||
default y if !SOC_NSIM
|
||||
|
||||
config GEN_ISR_TABLES
|
||||
default y
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@ config CPU_CORTEX_M
|
|||
select ARCH_HAS_RAMFUNC_SUPPORT
|
||||
select ARCH_HAS_NESTED_EXCEPTION_DETECTION
|
||||
select SWAP_NONATOMIC
|
||||
imply XIP
|
||||
help
|
||||
This option signifies the use of a CPU of the Cortex-M family.
|
||||
|
||||
|
|
|
@ -229,9 +229,6 @@ config ARMV8_M_DSP
|
|||
This option signifies the use of an ARMv8-M processor
|
||||
implementation supporting the DSP Extension.
|
||||
|
||||
config XIP
|
||||
default y
|
||||
|
||||
menu "ARM Cortex-M0/M0+/M3/M4/M7/M23/M33 options"
|
||||
depends on ARMV6_M_ARMV8_M_BASELINE || ARMV7_M_ARMV8_M_MAINLINE
|
||||
|
||||
|
|
|
@ -21,9 +21,6 @@ endmenu
|
|||
|
||||
menu "Nios II Family Options"
|
||||
|
||||
config XIP
|
||||
default y
|
||||
|
||||
config GEN_ISR_TABLES
|
||||
default y
|
||||
|
||||
|
|
|
@ -76,9 +76,6 @@ config IRQ_OFFLOAD_VECTOR
|
|||
range 32 255
|
||||
depends on IRQ_OFFLOAD
|
||||
|
||||
config XIP
|
||||
default n
|
||||
|
||||
config PIC_DISABLE
|
||||
bool "Disable PIC"
|
||||
help
|
||||
|
|
|
@ -27,3 +27,4 @@ CONFIG_I2C=y
|
|||
CONFIG_I2C_LITEX=y
|
||||
CONFIG_PWM=y
|
||||
CONFIG_PWM_LITEX=y
|
||||
CONFIG_XIP=n
|
||||
|
|
|
@ -9,6 +9,9 @@ config SOC
|
|||
config UART_CONSOLE_ON_DEV_NAME
|
||||
default "UART_0"
|
||||
|
||||
config XIP
|
||||
default n
|
||||
|
||||
source "soc/arc/snps_nsim/Kconfig.defconfig.em"
|
||||
source "soc/arc/snps_nsim/Kconfig.defconfig.sem"
|
||||
source "soc/arc/snps_nsim/Kconfig.defconfig.hs"
|
||||
|
|
|
@ -20,9 +20,6 @@ config NUM_IRQS
|
|||
default 64 if RV32M1_INTMUX_CHANNEL_0
|
||||
default 32
|
||||
|
||||
config XIP
|
||||
default y
|
||||
|
||||
config RISCV_GENERIC_TOOLCHAIN
|
||||
default y if "$(ZEPHYR_TOOLCHAIN_VARIANT)" = "zephyr"
|
||||
default n
|
||||
|
|
|
@ -29,7 +29,4 @@ config MAX_IRQ_PER_AGGREGATOR
|
|||
config NUM_IRQS
|
||||
default 42
|
||||
|
||||
config XIP
|
||||
default y
|
||||
|
||||
endif # SOC_SERIES_RISCV32_MIV
|
||||
|
|
|
@ -29,7 +29,4 @@ config MAX_IRQ_PER_AGGREGATOR
|
|||
config NUM_IRQS
|
||||
default 64
|
||||
|
||||
config XIP
|
||||
default y
|
||||
|
||||
endif # SOC_SERIES_RISCV_SIFIVE_FREEDOM
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue