zephyr/soc/Kconfig
Kumar Gala 6bdd91e9b1 soc: Add ability for SOC to specify runtime CPU detection
Add Kconfig SOC_HAS_RUNTIME_NUM_CPUS symbol that an SoC can
set to specify that it supports determining the number of CPUs
at runtime.

On xtensa add support for SOC_HAS_RUNTIME_NUM_CPUS and expose
soc_num_cpus that the SoC code should set early in boot as the
means to expose the number of cpus.

Signed-off-by: Kumar Gala <kumar.gala@intel.com>
2022-11-03 16:43:53 -04:00

62 lines
1.5 KiB
Plaintext

# SPDX-License-Identifier: Apache-2.0
choice
prompt "SoC/CPU/Configuration Selection"
# This loads custom SoC root Kconfig (only available if custom SoC root are defined)
osource "$(KCONFIG_BINARY_DIR)/Kconfig.soc"
# This loads Zephyr base SoC root Kconfig
osource "soc/$(ARCH)/*/Kconfig.soc"
endchoice
menu "Hardware Configuration"
# This loads custom SoC root Kconfig (only available if custom SoC root are defined)
osource "$(KCONFIG_BINARY_DIR)/Kconfig.soc.arch"
# This loads Zephyr base SoC Kconfigs
osource "soc/$(ARCH)/Kconfig"
osource "soc/$(ARCH)/*/Kconfig"
module = SOC
module-str = SOC
source "subsys/logging/Kconfig.template.log_config"
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
#
# SOC_*_LD: SoC specific Linker script additions
#
config SOC_DEPRECATED_RELEASE
string
help
This hidden option is set in the SoC configuration and indicates
the Zephyr release that the SoC configuration will be removed.
When set, any build for that SoC will generate a clearly visible
deprecation warning.
config SOC_HAS_TIMING_FUNCTIONS
bool
help
Should be selected if SoC provides custom method for retrieving
timestamps and cycle count.
config SOC_HAS_RUNTIME_NUM_CPUS
bool
help
Should be selected if SoC handles determining the number of CPUs
at runtime.