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:
Ulf Magnusson 2019-10-25 05:00:41 +02:00 committed by Maureen Helm
commit 9343e25baa
14 changed files with 40 additions and 13 deletions

View file

@ -32,6 +32,33 @@ config CPU_ARCHS
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"
config CPU_ARCV2

View file

@ -11,7 +11,7 @@ config SOC
default "snps_arc_iot"
config CPU_EM4_FPUS
def_bool y
default y
config NUM_IRQ_PRIO_LEVELS
# This processor supports 4 priority levels:

View file

@ -10,7 +10,7 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
default 40000000
config CPU_EM4_FPUDA
def_bool y
default y
config ARC_MPU_VER
default 2

View file

@ -10,7 +10,7 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
default 50000000
config CPU_EM4
def_bool y
default y
config ARC_MPU_VER
default 2

View file

@ -10,7 +10,7 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
default 40000000
config CPU_EM4_FPUDA
def_bool y
default y
config ARC_MPU_VER
default 2

View file

@ -10,7 +10,7 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
default 50000000
config CPU_EM6
def_bool y
default y
config ARC_MPU_VER
default 2

View file

@ -10,7 +10,7 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
default 40000000
config CPU_EM4_FPUDA
def_bool y
default y
config ARC_MPU_VER
default 2

View file

@ -10,7 +10,7 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
default 50000000
config CPU_EM4_FPUDA
def_bool y
default y
config ARC_MPU_VER
default 3

View file

@ -10,7 +10,7 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
default 40000000
config CPU_EM4_FPUDA
def_bool y
default y
config ARC_MPU_VER
default 2

View file

@ -8,7 +8,7 @@
if SOC_EMSK_EM11D
config CPU_EM4_FPUDA
def_bool y
default y
config NUM_IRQ_PRIO_LEVELS
# This processor supports 4 priority levels:

View file

@ -8,7 +8,7 @@
if SOC_EMSK_EM7D
config CPU_EM4_DMIPS
def_bool y
default y
config NUM_IRQ_PRIO_LEVELS
# This processor supports 4 priority levels:

View file

@ -8,7 +8,7 @@
if SOC_EMSK_EM9D
config CPU_EM4_FPUS
def_bool y
default y
config NUM_IRQ_PRIO_LEVELS
# This processor supports 4 priority levels:

View file

@ -7,7 +7,7 @@
if SOC_NSIM_EM
config CPU_EM4_FPUDA
def_bool y
default y
config NUM_IRQ_PRIO_LEVELS
# This processor supports 4 priority levels:

View file

@ -7,7 +7,7 @@
if SOC_NSIM_SEM
config CPU_EM4_FPUDA
def_bool y
default y
config NUM_IRQ_PRIO_LEVELS
# This processor supports 4 priority levels: