nrf53: Refactor sync RTC options to their own file
So they can be reused by the simulated board Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
d933e7417f
commit
32d0c8d8e5
2 changed files with 78 additions and 73 deletions
|
@ -188,78 +188,6 @@ config BUILD_WITH_TFM
|
||||||
# TF-M nRF53 platform enables the cache unconditionally.
|
# TF-M nRF53 platform enables the cache unconditionally.
|
||||||
select NRF_ENABLE_CACHE if SOC_NRF5340_CPUAPP
|
select NRF_ENABLE_CACHE if SOC_NRF5340_CPUAPP
|
||||||
|
|
||||||
config NRF53_SYNC_RTC
|
rsource "Kconfig.sync_rtc"
|
||||||
bool "RTC clock synchronization"
|
|
||||||
default y if LOG && !LOG_MODE_MINIMAL
|
|
||||||
depends on NRF_RTC_TIMER
|
|
||||||
select NRFX_DPPI
|
|
||||||
select MBOX if !IPM
|
|
||||||
|
|
||||||
if NRF53_SYNC_RTC
|
|
||||||
|
|
||||||
module = SYNC_RTC
|
|
||||||
module-str = Synchronized RTC
|
|
||||||
source "subsys/logging/Kconfig.template.log_config"
|
|
||||||
|
|
||||||
config NRF53_SYNC_RTC_INIT_PRIORITY
|
|
||||||
int "nRF53 Synchronized RTC init priority"
|
|
||||||
default APPLICATION_INIT_PRIORITY
|
|
||||||
help
|
|
||||||
nRF53 Synchronized RTC initialization priority.
|
|
||||||
|
|
||||||
config NRF_RTC_TIMER_USER_CHAN_COUNT
|
|
||||||
default 2 if NRF_802154_RADIO_DRIVER && SOC_NRF5340_CPUNET
|
|
||||||
default 3 if NRF_802154_RADIO_DRIVER
|
|
||||||
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
|
endif # SOC_SERIES_NRF53X
|
||||||
|
|
77
soc/arm/nordic_nrf/nrf53/Kconfig.sync_rtc
Normal file
77
soc/arm/nordic_nrf/nrf53/Kconfig.sync_rtc
Normal file
|
@ -0,0 +1,77 @@
|
||||||
|
# Copyright (c) 2019 Nordic Semiconductor ASA
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
config NRF53_SYNC_RTC
|
||||||
|
bool "RTC clock synchronization"
|
||||||
|
default y if LOG && !LOG_MODE_MINIMAL
|
||||||
|
depends on NRF_RTC_TIMER
|
||||||
|
select NRFX_DPPI
|
||||||
|
select MBOX if !IPM
|
||||||
|
|
||||||
|
if NRF53_SYNC_RTC
|
||||||
|
|
||||||
|
module = SYNC_RTC
|
||||||
|
module-str = Synchronized RTC
|
||||||
|
source "subsys/logging/Kconfig.template.log_config"
|
||||||
|
|
||||||
|
config NRF53_SYNC_RTC_INIT_PRIORITY
|
||||||
|
int "nRF53 Synchronized RTC init priority"
|
||||||
|
default APPLICATION_INIT_PRIORITY
|
||||||
|
help
|
||||||
|
nRF53 Synchronized RTC initialization priority.
|
||||||
|
|
||||||
|
config NRF_RTC_TIMER_USER_CHAN_COUNT
|
||||||
|
default 2 if NRF_802154_RADIO_DRIVER && SOC_NRF5340_CPUNET
|
||||||
|
default 3 if NRF_802154_RADIO_DRIVER
|
||||||
|
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
|
Loading…
Add table
Add a link
Reference in a new issue