arch: arc: kconfig: Define CPU_EM* syms outside Kconfig.defconfig files
Define CPU_EM4* and CPU_EM6 in arch/arc/Kconfig to make them always available. That way, the Kconfig.defconfig definitions can skip the type, making them incomplete if the base definition of the symbol disappears. That makes the organization easier to understand and errors easier to spot. The help texts were taken from https://gcc.gnu.org/onlinedocs/gcc/ARC-Options.html. Help texts for invisible symbols can be checked in the menuconfig too if you go into show-all mode, so they're better than adding a comment. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
parent
14a0def31e
commit
9343e25baa
14 changed files with 40 additions and 13 deletions
|
@ -32,6 +32,33 @@ config CPU_ARCHS
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
|
config CPU_EM4
|
||||||
|
bool
|
||||||
|
help
|
||||||
|
If y, the SoC uses an ARC EM4 CPU
|
||||||
|
|
||||||
|
config CPU_EM4_DMIPS
|
||||||
|
bool
|
||||||
|
help
|
||||||
|
If y, the SoC uses an ARC EM4 DMIPS CPU
|
||||||
|
|
||||||
|
config CPU_EM4_FPUS
|
||||||
|
bool
|
||||||
|
help
|
||||||
|
If y, the SoC uses an ARC EM4 DMIPS CPU with the single-precision
|
||||||
|
floating-point extension
|
||||||
|
|
||||||
|
config CPU_EM4_FPUDA
|
||||||
|
bool
|
||||||
|
help
|
||||||
|
If y, the SoC uses an ARC EM4 DMIPS CPU with single-precision
|
||||||
|
floating-point and double assist instructions
|
||||||
|
|
||||||
|
config CPU_EM6
|
||||||
|
bool
|
||||||
|
help
|
||||||
|
If y, the SoC uses an ARC EM6 CPU
|
||||||
|
|
||||||
menu "ARCv2 Family Options"
|
menu "ARCv2 Family Options"
|
||||||
|
|
||||||
config CPU_ARCV2
|
config CPU_ARCV2
|
||||||
|
|
|
@ -11,7 +11,7 @@ config SOC
|
||||||
default "snps_arc_iot"
|
default "snps_arc_iot"
|
||||||
|
|
||||||
config CPU_EM4_FPUS
|
config CPU_EM4_FPUS
|
||||||
def_bool y
|
default y
|
||||||
|
|
||||||
config NUM_IRQ_PRIO_LEVELS
|
config NUM_IRQ_PRIO_LEVELS
|
||||||
# This processor supports 4 priority levels:
|
# This processor supports 4 priority levels:
|
||||||
|
|
|
@ -10,7 +10,7 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||||
default 40000000
|
default 40000000
|
||||||
|
|
||||||
config CPU_EM4_FPUDA
|
config CPU_EM4_FPUDA
|
||||||
def_bool y
|
default y
|
||||||
|
|
||||||
config ARC_MPU_VER
|
config ARC_MPU_VER
|
||||||
default 2
|
default 2
|
||||||
|
|
|
@ -10,7 +10,7 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||||
default 50000000
|
default 50000000
|
||||||
|
|
||||||
config CPU_EM4
|
config CPU_EM4
|
||||||
def_bool y
|
default y
|
||||||
|
|
||||||
config ARC_MPU_VER
|
config ARC_MPU_VER
|
||||||
default 2
|
default 2
|
||||||
|
|
|
@ -10,7 +10,7 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||||
default 40000000
|
default 40000000
|
||||||
|
|
||||||
config CPU_EM4_FPUDA
|
config CPU_EM4_FPUDA
|
||||||
def_bool y
|
default y
|
||||||
|
|
||||||
config ARC_MPU_VER
|
config ARC_MPU_VER
|
||||||
default 2
|
default 2
|
||||||
|
|
|
@ -10,7 +10,7 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||||
default 50000000
|
default 50000000
|
||||||
|
|
||||||
config CPU_EM6
|
config CPU_EM6
|
||||||
def_bool y
|
default y
|
||||||
|
|
||||||
config ARC_MPU_VER
|
config ARC_MPU_VER
|
||||||
default 2
|
default 2
|
||||||
|
|
|
@ -10,7 +10,7 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||||
default 40000000
|
default 40000000
|
||||||
|
|
||||||
config CPU_EM4_FPUDA
|
config CPU_EM4_FPUDA
|
||||||
def_bool y
|
default y
|
||||||
|
|
||||||
config ARC_MPU_VER
|
config ARC_MPU_VER
|
||||||
default 2
|
default 2
|
||||||
|
|
|
@ -10,7 +10,7 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||||
default 50000000
|
default 50000000
|
||||||
|
|
||||||
config CPU_EM4_FPUDA
|
config CPU_EM4_FPUDA
|
||||||
def_bool y
|
default y
|
||||||
|
|
||||||
config ARC_MPU_VER
|
config ARC_MPU_VER
|
||||||
default 3
|
default 3
|
||||||
|
|
|
@ -10,7 +10,7 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||||
default 40000000
|
default 40000000
|
||||||
|
|
||||||
config CPU_EM4_FPUDA
|
config CPU_EM4_FPUDA
|
||||||
def_bool y
|
default y
|
||||||
|
|
||||||
config ARC_MPU_VER
|
config ARC_MPU_VER
|
||||||
default 2
|
default 2
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
if SOC_EMSK_EM11D
|
if SOC_EMSK_EM11D
|
||||||
|
|
||||||
config CPU_EM4_FPUDA
|
config CPU_EM4_FPUDA
|
||||||
def_bool y
|
default y
|
||||||
|
|
||||||
config NUM_IRQ_PRIO_LEVELS
|
config NUM_IRQ_PRIO_LEVELS
|
||||||
# This processor supports 4 priority levels:
|
# This processor supports 4 priority levels:
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
if SOC_EMSK_EM7D
|
if SOC_EMSK_EM7D
|
||||||
|
|
||||||
config CPU_EM4_DMIPS
|
config CPU_EM4_DMIPS
|
||||||
def_bool y
|
default y
|
||||||
|
|
||||||
config NUM_IRQ_PRIO_LEVELS
|
config NUM_IRQ_PRIO_LEVELS
|
||||||
# This processor supports 4 priority levels:
|
# This processor supports 4 priority levels:
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
if SOC_EMSK_EM9D
|
if SOC_EMSK_EM9D
|
||||||
|
|
||||||
config CPU_EM4_FPUS
|
config CPU_EM4_FPUS
|
||||||
def_bool y
|
default y
|
||||||
|
|
||||||
config NUM_IRQ_PRIO_LEVELS
|
config NUM_IRQ_PRIO_LEVELS
|
||||||
# This processor supports 4 priority levels:
|
# This processor supports 4 priority levels:
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
if SOC_NSIM_EM
|
if SOC_NSIM_EM
|
||||||
|
|
||||||
config CPU_EM4_FPUDA
|
config CPU_EM4_FPUDA
|
||||||
def_bool y
|
default y
|
||||||
|
|
||||||
config NUM_IRQ_PRIO_LEVELS
|
config NUM_IRQ_PRIO_LEVELS
|
||||||
# This processor supports 4 priority levels:
|
# This processor supports 4 priority levels:
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
if SOC_NSIM_SEM
|
if SOC_NSIM_SEM
|
||||||
|
|
||||||
config CPU_EM4_FPUDA
|
config CPU_EM4_FPUDA
|
||||||
def_bool y
|
default y
|
||||||
|
|
||||||
config NUM_IRQ_PRIO_LEVELS
|
config NUM_IRQ_PRIO_LEVELS
|
||||||
# This processor supports 4 priority levels:
|
# This processor supports 4 priority levels:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue