2019-08-01 20:47:31 +02:00
|
|
|
# Nordic Semiconductor nRF53 MCU line
|
|
|
|
|
|
|
|
# Copyright (c) 2019 Nordic Semiconductor ASA
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-09-14 13:11:52 +02:00
|
|
|
if SOC_SERIES_NRF53X
|
2019-08-01 20:47:31 +02:00
|
|
|
config SOC_NRF5340_CPUAPP
|
|
|
|
bool
|
|
|
|
select CPU_HAS_NRF_IDAU
|
|
|
|
select CPU_HAS_FPU
|
|
|
|
select ARMV8_M_DSP
|
2023-07-20 12:05:26 +02:00
|
|
|
select HAS_POWEROFF
|
2019-08-01 20:47:31 +02:00
|
|
|
|
2019-08-07 10:52:32 +02:00
|
|
|
config SOC_NRF5340_CPUNET
|
|
|
|
bool
|
2023-07-06 13:32:27 +02:00
|
|
|
select ARM_ON_EXIT_CPU_IDLE
|
2023-02-23 12:09:09 +01:00
|
|
|
imply SOC_NRF53_ANOMALY_160_WORKAROUND_NEEDED
|
2019-08-07 10:52:32 +02:00
|
|
|
|
2019-08-01 20:47:31 +02:00
|
|
|
choice
|
|
|
|
prompt "nRF53x MCU Selection"
|
|
|
|
|
|
|
|
config SOC_NRF5340_CPUAPP_QKAA
|
|
|
|
bool "NRF5340_CPUAPP_QKAA"
|
|
|
|
select SOC_NRF5340_CPUAPP
|
|
|
|
|
2019-08-07 10:52:32 +02:00
|
|
|
config SOC_NRF5340_CPUNET_QKAA
|
|
|
|
bool "NRF5340_CPUNET_QKAA"
|
|
|
|
select SOC_NRF5340_CPUNET
|
|
|
|
|
2019-08-01 20:47:31 +02:00
|
|
|
endchoice
|
|
|
|
|
2023-02-23 12:09:09 +01:00
|
|
|
config SOC_NRF53_ANOMALY_160_WORKAROUND_NEEDED
|
|
|
|
bool "Workaround for nRF5340 anomaly 160"
|
|
|
|
imply SOC_NRF53_ANOMALY_160_WORKAROUND
|
|
|
|
help
|
|
|
|
Indicates that the workaround for the anomaly 160 that affects
|
|
|
|
the nRF5340 SoC should be applied.
|
|
|
|
This option is enabled by default for the Application MCU when
|
|
|
|
DC/DC mode is enabled for the VREGMAIN or VREGRADIO regulator
|
|
|
|
and always for the Network MCU.
|
|
|
|
If this option is enabled, but the workaround cannot be applied,
|
|
|
|
because the system clock is disabled, a related cmake warning is
|
|
|
|
issued.
|
|
|
|
|
2023-02-20 12:10:57 +01:00
|
|
|
config SOC_NRF53_ANOMALY_160_WORKAROUND
|
|
|
|
bool
|
|
|
|
depends on SYS_CLOCK_EXISTS
|
|
|
|
select ARM_ON_ENTER_CPU_IDLE_HOOK
|
2019-11-12 07:09:42 +01:00
|
|
|
|
|
|
|
if SOC_NRF5340_CPUAPP
|
|
|
|
|
|
|
|
config SOC_DCDC_NRF53X_APP
|
|
|
|
bool
|
2023-02-23 12:09:09 +01:00
|
|
|
imply SOC_NRF53_ANOMALY_160_WORKAROUND_NEEDED
|
2019-11-12 07:09:42 +01:00
|
|
|
help
|
|
|
|
Enable nRF53 series System on Chip Application MCU DC/DC converter.
|
|
|
|
|
|
|
|
config SOC_DCDC_NRF53X_NET
|
|
|
|
bool
|
2023-02-23 12:09:09 +01:00
|
|
|
imply SOC_NRF53_ANOMALY_160_WORKAROUND_NEEDED
|
2019-11-12 07:09:42 +01:00
|
|
|
help
|
|
|
|
Enable nRF53 series System on Chip Network MCU DC/DC converter.
|
|
|
|
|
|
|
|
config SOC_DCDC_NRF53X_HV
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Enable nRF53 series System on Chip High Voltage DC/DC converter.
|
|
|
|
|
2022-09-28 15:33:52 +02:00
|
|
|
config SOC_NRF_GPIO_FORWARDER_FOR_NRF5340
|
|
|
|
bool
|
|
|
|
depends on NRF_SOC_SECURE_SUPPORTED
|
|
|
|
help
|
|
|
|
hidden option for including the nRF GPIO pin forwarding
|
|
|
|
|
2021-11-23 15:54:59 +01:00
|
|
|
if !TRUSTED_EXECUTION_NONSECURE || BUILD_WITH_TFM
|
2021-06-02 10:24:19 +02:00
|
|
|
|
2020-11-10 15:51:40 +01:00
|
|
|
config SOC_ENABLE_LFXO
|
2022-03-09 12:05:12 +01:00
|
|
|
bool "LFXO"
|
2020-11-10 15:51:40 +01:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable the low-frequency oscillator (LFXO) functionality on XL1 and
|
|
|
|
XL2 pins.
|
|
|
|
This option must be enabled if either application or network core is
|
|
|
|
to use the LFXO. Otherwise, XL1 and XL2 pins will behave as regular
|
|
|
|
GPIOs.
|
|
|
|
|
2021-06-02 10:24:19 +02:00
|
|
|
choice SOC_LFXO_LOAD_CAPACITANCE
|
|
|
|
prompt "LFXO load capacitance"
|
|
|
|
depends on SOC_ENABLE_LFXO
|
2021-06-04 15:52:42 +02:00
|
|
|
default SOC_LFXO_CAP_INT_7PF
|
2021-06-02 10:24:19 +02:00
|
|
|
|
|
|
|
config SOC_LFXO_CAP_EXTERNAL
|
|
|
|
bool "Use external load capacitors"
|
|
|
|
|
|
|
|
config SOC_LFXO_CAP_INT_6PF
|
|
|
|
bool "6 pF internal load capacitance"
|
|
|
|
|
|
|
|
config SOC_LFXO_CAP_INT_7PF
|
|
|
|
bool "7 pF internal load capacitance"
|
|
|
|
|
|
|
|
config SOC_LFXO_CAP_INT_9PF
|
|
|
|
bool "9 pF internal load capacitance"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
choice SOC_HFXO_LOAD_CAPACITANCE
|
|
|
|
prompt "HFXO load capacitance"
|
2021-06-16 13:32:05 +02:00
|
|
|
default SOC_HFXO_CAP_DEFAULT
|
|
|
|
|
|
|
|
config SOC_HFXO_CAP_DEFAULT
|
|
|
|
bool "SoC default"
|
|
|
|
help
|
|
|
|
When this option is used, the SoC initialization routine does not
|
|
|
|
touch the XOSC32MCAPS register value, so the default setting for
|
|
|
|
the SoC is in effect. Please note that this may not necessarily be
|
|
|
|
the reset value (0) for the register, as the register can be set
|
|
|
|
during the device trimming in the SystemInit() function.
|
2021-06-02 10:24:19 +02:00
|
|
|
|
|
|
|
config SOC_HFXO_CAP_EXTERNAL
|
|
|
|
bool "Use external load capacitors"
|
|
|
|
|
|
|
|
config SOC_HFXO_CAP_INTERNAL
|
|
|
|
bool "Use internal load capacitors"
|
2022-09-22 16:51:25 +02:00
|
|
|
depends on NRF_SOC_SECURE_SUPPORTED
|
2021-06-02 10:24:19 +02:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config SOC_HFXO_CAP_INT_VALUE_X2
|
|
|
|
int "Doubled value of HFXO internal load capacitors (in pF)"
|
|
|
|
depends on SOC_HFXO_CAP_INTERNAL
|
|
|
|
range 14 40
|
|
|
|
help
|
|
|
|
Internal capacitors ranging from 7.0 pF to 20.0 pF in 0.5 pF steps
|
|
|
|
can be enabled on pins XC1 and XC2. This option specifies doubled
|
|
|
|
capacitance value for the two capacitors. Set it to 14 to get 7.0 pF
|
|
|
|
for each capacitor, 15 to get 7.5 pF, and so on.
|
|
|
|
|
2021-11-23 15:54:59 +01:00
|
|
|
endif # !TRUSTED_EXECUTION_NONSECURE || BUILD_WITH_TFM
|
2021-06-02 10:24:19 +02:00
|
|
|
|
2019-11-12 07:09:42 +01:00
|
|
|
endif # SOC_NRF5340_CPUAPP
|
|
|
|
|
|
|
|
|
2019-08-01 20:47:31 +02:00
|
|
|
config NRF_ENABLE_CACHE
|
2022-03-09 12:05:12 +01:00
|
|
|
bool "Cache"
|
2021-11-23 15:54:59 +01:00
|
|
|
depends on (SOC_NRF5340_CPUAPP && (!TRUSTED_EXECUTION_NONSECURE || BUILD_WITH_TFM)) \
|
2019-08-07 10:52:32 +02:00
|
|
|
|| SOC_NRF5340_CPUNET
|
2019-08-01 20:47:31 +02:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Instruction and Data cache is available on nRF5340 CPUAPP
|
|
|
|
(Application MCU). It may only be accessed by Secure code.
|
|
|
|
|
|
|
|
Instruction cache only (I-Cache) is available in nRF5340
|
|
|
|
CPUNET (Network MCU).
|
2021-09-14 13:11:52 +02:00
|
|
|
|
2021-11-23 15:54:59 +01:00
|
|
|
config BUILD_WITH_TFM
|
|
|
|
# TF-M nRF53 platform enables the cache unconditionally.
|
|
|
|
select NRF_ENABLE_CACHE if SOC_NRF5340_CPUAPP
|
|
|
|
|
2021-09-09 15:44:14 +02:00
|
|
|
config NRF53_SYNC_RTC
|
2022-03-09 12:05:12 +01:00
|
|
|
bool "RTC clock synchronization"
|
2021-09-09 15:44:14 +02:00
|
|
|
default y if LOG && !LOG_MODE_MINIMAL
|
|
|
|
depends on NRF_RTC_TIMER
|
|
|
|
select NRFX_DPPI
|
2022-02-25 16:26:23 +01:00
|
|
|
select MBOX if !IPM
|
2021-09-09 15:44:14 +02:00
|
|
|
|
|
|
|
if NRF53_SYNC_RTC
|
|
|
|
|
|
|
|
module = SYNC_RTC
|
|
|
|
module-str = Synchronized RTC
|
|
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
|
2022-03-01 14:33:26 +01:00
|
|
|
config NRF53_SYNC_RTC_INIT_PRIORITY
|
|
|
|
int "nRF53 Synchronized RTC init priority"
|
|
|
|
default APPLICATION_INIT_PRIORITY
|
|
|
|
help
|
|
|
|
nRF53 Synchronized RTC initialization priority.
|
|
|
|
|
2021-09-09 15:44:14 +02:00
|
|
|
config NRF_RTC_TIMER_USER_CHAN_COUNT
|
2022-08-11 12:34:48 +02:00
|
|
|
default 3 if NRF_802154_RADIO_DRIVER
|
2021-09-09 15:44:14 +02:00
|
|
|
default 1
|
|
|
|
|
|
|
|
config NRF53_SYNC_RTC_LOG_TIMESTAMP
|
|
|
|
bool "Use Synchronized RTC for logging timestamp"
|
|
|
|
default y
|
|
|
|
|
|
|
|
config NRF53_SYNC_RTC_IPM_OUT
|
|
|
|
int "IPM channel from APP to NET"
|
|
|
|
range 0 15
|
|
|
|
default 7 if SOC_NRF5340_CPUAPP
|
|
|
|
default 8
|
|
|
|
|
|
|
|
config NRF53_SYNC_RTC_IPM_IN
|
|
|
|
int "IPM channel from APP to NET"
|
|
|
|
range 0 15
|
|
|
|
default 8 if SOC_NRF5340_CPUAPP
|
|
|
|
default 7
|
|
|
|
|
|
|
|
ipm_num = 0
|
|
|
|
rsource "Kconfig.sync_rtc_ipm"
|
|
|
|
ipm_num = 1
|
|
|
|
rsource "Kconfig.sync_rtc_ipm"
|
|
|
|
ipm_num = 2
|
|
|
|
rsource "Kconfig.sync_rtc_ipm"
|
|
|
|
ipm_num = 3
|
|
|
|
rsource "Kconfig.sync_rtc_ipm"
|
|
|
|
ipm_num = 4
|
|
|
|
rsource "Kconfig.sync_rtc_ipm"
|
|
|
|
ipm_num = 5
|
|
|
|
rsource "Kconfig.sync_rtc_ipm"
|
|
|
|
ipm_num = 6
|
|
|
|
rsource "Kconfig.sync_rtc_ipm"
|
|
|
|
ipm_num = 7
|
|
|
|
rsource "Kconfig.sync_rtc_ipm"
|
|
|
|
ipm_num = 8
|
|
|
|
rsource "Kconfig.sync_rtc_ipm"
|
|
|
|
ipm_num = 9
|
|
|
|
rsource "Kconfig.sync_rtc_ipm"
|
|
|
|
ipm_num = 10
|
|
|
|
rsource "Kconfig.sync_rtc_ipm"
|
|
|
|
ipm_num = 11
|
|
|
|
rsource "Kconfig.sync_rtc_ipm"
|
|
|
|
ipm_num = 12
|
|
|
|
rsource "Kconfig.sync_rtc_ipm"
|
|
|
|
ipm_num = 13
|
|
|
|
rsource "Kconfig.sync_rtc_ipm"
|
|
|
|
ipm_num = 14
|
|
|
|
rsource "Kconfig.sync_rtc_ipm"
|
|
|
|
ipm_num = 15
|
|
|
|
rsource "Kconfig.sync_rtc_ipm"
|
|
|
|
|
|
|
|
endif # NRF53_SYNC_RTC
|
|
|
|
endif # SOC_SERIES_NRF53X
|