soc: arm: nordic_nrf: move NRF_RTC_TIMER not to be selected as default

NRF_RTC_TIMER will not be a default timer in the next
version of Nordic timer. It should be soc selection specific.

Signed-off-by: Witold Lukasik <witold.lukasik@nordicsemi.no>
This commit is contained in:
Witold Lukasik 2023-12-11 15:13:40 +01:00 committed by Fabio Baltieri
commit daa888c37b
5 changed files with 17 additions and 4 deletions

View file

@ -7,15 +7,12 @@ if SOC_FAMILY_NRF
source "soc/arm/nordic_nrf/*/Kconfig.defconfig.series"
# If the kernel has timer support, enable both clock control and timer
# If the kernel has timer support, enable clock control
if SYS_CLOCK_EXISTS
config CLOCK_CONTROL
default y
config NRF_RTC_TIMER
default y
endif # SYS_CLOCK_EXISTS
config SYS_CLOCK_HW_CYCLES_PER_SEC

View file

@ -14,4 +14,8 @@ config SOC_SERIES
config NUM_IRQS
default 26
# If the kernel has timer support, enable the timer
config NRF_RTC_TIMER
default y if SYS_CLOCK_EXISTS
endif # SOC_SERIES_NRF51X

View file

@ -10,4 +10,8 @@ source "soc/arm/nordic_nrf/nrf52/Kconfig.defconfig.nrf52*"
config SOC_SERIES
default "nrf52"
# If the kernel has timer support, enable the timer
config NRF_RTC_TIMER
default y if SYS_CLOCK_EXISTS
endif # SOC_SERIES_NRF52X

View file

@ -10,4 +10,8 @@ source "soc/arm/nordic_nrf/nrf53/Kconfig.defconfig.nrf53*"
config SOC_SERIES
default "nrf53"
# If the kernel has timer support, enable the timer
config NRF_RTC_TIMER
default y if SYS_CLOCK_EXISTS
endif # SOC_SERIES_NRF53X

View file

@ -10,4 +10,8 @@ source "soc/arm/nordic_nrf/nrf91/Kconfig.defconfig.nrf91*"
config SOC_SERIES
default "nrf91"
# If the kernel has timer support, enable the timer
config NRF_RTC_TIMER
default y if SYS_CLOCK_EXISTS
endif # SOC_SERIES_NRF91X