Skip to content

Commit 0829c2b

Browse files
bjarki-andreasenfabiobaltieri
authored andcommitted
drivers: nrfx: help select clock control when needed
CLOCK_CONTROL is required for fast instances of UART and COUNTER, help select it when possible. The fast instances are UARTE120, TIMER120 and TIMER121, and CLOCK_CONTROL is not supported for CPUFLPR and CPUPPR even when the fast instances are used. Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
1 parent 4c3671a commit 0829c2b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

drivers/counter/Kconfig.nrfx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ config COUNTER_NRF_RTC
1212
config COUNTER_NRFX_TIMER_USE_CLOCK_CONTROL
1313
def_bool y
1414
depends on $(dt_nodelabel_enabled,timer120) || \
15-
$(dt_nodelabel_enabled,timer121)
15+
$(dt_nodelabel_enabled,timer121)
16+
depends on !SOC_NRF54H20_CPUFLPR && !SOC_NRF54H20_CPUPPR
1617
select CLOCK_CONTROL
1718

1819
# Internal flag which detects if PPI wrap feature is enabled for any instance

drivers/serial/Kconfig.nrfx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ config UART_NRFX_UARTE
2828
imply NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG if !UART_NRFX_UARTE_LEGACY_SHIM
2929
imply NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG if !UART_NRFX_UARTE_LEGACY_SHIM
3030

31+
config UART_NRFX_UARTE_USE_CLOCK_CONTROL
32+
def_bool y
33+
depends on UART_NRFX_UARTE
34+
depends on $(dt_nodelabel_enabled,uart120)
35+
depends on !SOC_NRF54H20_CPUFLPR && !SOC_NRF54H20_CPUPPR
36+
select CLOCK_CONTROL
37+
3138
config UART_NRFX_UARTE_NO_IRQ
3239
bool "Polling without interrupt"
3340
depends on UART_NRFX_UARTE

0 commit comments

Comments
 (0)