soc: Kconfig: Add options for compatible NRF SOCs
Simulated NRF boards based on the POSIX ARCH cannot directly use the current SOC_*NRF options as these pull options from the ARM CPU and other peripherals. This commit adds a new set of hidden SOC_COMPATIBLE_* options to be selected both by the real SOCs and the simulated ones. In this manner we can have the common code depend on the SOC_COMPATIBLE* options instead of the current ones where neccessary. Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com> (f) arm kconfig
This commit is contained in:
parent
553d43002f
commit
eea73e13bd
4 changed files with 16 additions and 0 deletions
13
soc/Kconfig
13
soc/Kconfig
|
@ -16,3 +16,16 @@ module-str = SOC
|
||||||
source "subsys/logging/Kconfig.template.log_config"
|
source "subsys/logging/Kconfig.template.log_config"
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
|
# The helper symbols below are put here due to an unusual setup: The simulated
|
||||||
|
# nrf52_bsim board uses the POSIX arch, but is compatible with Nordic ARM
|
||||||
|
# boards
|
||||||
|
|
||||||
|
config SOC_COMPATIBLE_NRF
|
||||||
|
bool
|
||||||
|
|
||||||
|
config SOC_COMPATIBLE_NRF52X
|
||||||
|
bool
|
||||||
|
|
||||||
|
config SOC_COMPATIBLE_NRF52832
|
||||||
|
bool
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
config SOC_FAMILY_NRF
|
config SOC_FAMILY_NRF
|
||||||
|
select SOC_COMPATIBLE_NRF
|
||||||
bool
|
bool
|
||||||
# omit prompt to signify a "hidden" option
|
# omit prompt to signify a "hidden" option
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
config SOC_SERIES_NRF52X
|
config SOC_SERIES_NRF52X
|
||||||
bool "Nordic Semiconductor nRF52 series MCU"
|
bool "Nordic Semiconductor nRF52 series MCU"
|
||||||
|
select SOC_COMPATIBLE_NRF52X
|
||||||
select CPU_CORTEX_M4
|
select CPU_CORTEX_M4
|
||||||
select CPU_HAS_ARM_MPU
|
select CPU_HAS_ARM_MPU
|
||||||
select SOC_FAMILY_NRF
|
select SOC_FAMILY_NRF
|
||||||
|
|
|
@ -45,6 +45,7 @@ config SOC_NRF52810
|
||||||
config SOC_NRF52832
|
config SOC_NRF52832
|
||||||
depends on SOC_SERIES_NRF52X
|
depends on SOC_SERIES_NRF52X
|
||||||
bool
|
bool
|
||||||
|
select SOC_COMPATIBLE_NRF52832
|
||||||
select CPU_HAS_FPU
|
select CPU_HAS_FPU
|
||||||
select HAS_HW_NRF_CCM
|
select HAS_HW_NRF_CCM
|
||||||
select HAS_HW_NRF_CLOCK
|
select HAS_HW_NRF_CLOCK
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue