Skip to content

Commit 182a6c6

Browse files
nordic-krchjhedberg
authored andcommitted
drivers: timer: nrf_rtc: Kconfig clean up
Remove redundant enabling of NRF_RTC_TIMER in SoC specific files and replace it with default y in the NRF_RTC_TIMER definition. Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
1 parent 6ec7634 commit 182a6c6

File tree

6 files changed

+1
-19
lines changed

6 files changed

+1
-19
lines changed

boards/native/nrf_bsim/Kconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ config BOARD_NRF52_BSIM
55
bool
66
select SOC_SERIES_BSIM_NRF52X
77
select SOC_COMPATIBLE_NRF52833
8-
select NRF_RTC_TIMER
98
select CLOCK_CONTROL
109
help
1110
NRF52 simulation model
@@ -16,7 +15,6 @@ config BOARD_NRF5340BSIM_NRF5340_CPUNET
1615
bool
1716
select SOC_SERIES_BSIM_NRF53X
1817
select SOC_COMPATIBLE_NRF5340_CPUNET
19-
select NRF_RTC_TIMER
2018
select CLOCK_CONTROL
2119
help
2220
Simulated NRF53 Network core
@@ -27,7 +25,6 @@ config BOARD_NRF5340BSIM_NRF5340_CPUAPP
2725
bool
2826
select SOC_SERIES_BSIM_NRF53X
2927
select SOC_COMPATIBLE_NRF5340_CPUAPP
30-
select NRF_RTC_TIMER
3128
select CLOCK_CONTROL
3229
help
3330
Simulated NRF53 Application core

drivers/timer/Kconfig.nrf_rtc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ config NRF_RTC_TIMER
1111
select TICKLESS_CAPABLE
1212
select SYSTEM_TIMER_HAS_DISABLE_SUPPORT
1313
select NRFX_PPI if SOC_NRF52832
14+
default y if SYS_CLOCK_EXISTS
1415
help
1516
This module implements a kernel device driver for the nRF Real Time
1617
Counter NRF_RTC1 and provides the standard "system clock driver"

soc/nordic/nrf51/Kconfig.defconfig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ if SOC_SERIES_NRF51X
99
config NUM_IRQS
1010
default 26
1111

12-
# If the kernel has timer support, enable the timer
13-
config NRF_RTC_TIMER
14-
default y if SYS_CLOCK_EXISTS
15-
1612
config SYS_CLOCK_HW_CYCLES_PER_SEC
1713
default $(dt_nodelabel_int_prop,rtc1,clock-frequency)
1814

soc/nordic/nrf52/Kconfig.defconfig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ if SOC_SERIES_NRF52X
77

88
rsource "Kconfig.defconfig.nrf52*"
99

10-
# If the kernel has timer support, enable the timer
11-
config NRF_RTC_TIMER
12-
default y if SYS_CLOCK_EXISTS
13-
1410
config SYS_CLOCK_HW_CYCLES_PER_SEC
1511
default $(dt_nodelabel_int_prop,rtc1,clock-frequency)
1612

soc/nordic/nrf53/Kconfig.defconfig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ if SOC_SERIES_NRF53X
77

88
rsource "Kconfig.defconfig.nrf53*"
99

10-
# If the kernel has timer support, enable the timer
11-
config NRF_RTC_TIMER
12-
default y if SYS_CLOCK_EXISTS
13-
1410
config SYS_CLOCK_HW_CYCLES_PER_SEC
1511
default $(dt_nodelabel_int_prop,rtc1,clock-frequency)
1612

soc/nordic/nrf91/Kconfig.defconfig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ if SOC_SERIES_NRF91X
77

88
rsource "Kconfig.defconfig.nrf91*"
99

10-
# If the kernel has timer support, enable the timer
11-
config NRF_RTC_TIMER
12-
default y if SYS_CLOCK_EXISTS
13-
1410
config SYS_CLOCK_HW_CYCLES_PER_SEC
1511
default $(dt_nodelabel_int_prop,rtc1,clock-frequency)
1612

0 commit comments

Comments
 (0)