From 0829c2bb8c7a9c5aa045a9634bdf6f75d40a1bd3 Mon Sep 17 00:00:00 2001 From: Bjarki Arge Andreasen Date: Mon, 16 Jun 2025 11:40:23 +0200 Subject: [PATCH] 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 --- drivers/counter/Kconfig.nrfx | 3 ++- drivers/serial/Kconfig.nrfx | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/counter/Kconfig.nrfx b/drivers/counter/Kconfig.nrfx index 775406a5198..ed02411de26 100644 --- a/drivers/counter/Kconfig.nrfx +++ b/drivers/counter/Kconfig.nrfx @@ -12,7 +12,8 @@ config COUNTER_NRF_RTC config COUNTER_NRFX_TIMER_USE_CLOCK_CONTROL def_bool y depends on $(dt_nodelabel_enabled,timer120) || \ - $(dt_nodelabel_enabled,timer121) + $(dt_nodelabel_enabled,timer121) + depends on !SOC_NRF54H20_CPUFLPR && !SOC_NRF54H20_CPUPPR select CLOCK_CONTROL # Internal flag which detects if PPI wrap feature is enabled for any instance diff --git a/drivers/serial/Kconfig.nrfx b/drivers/serial/Kconfig.nrfx index 0bac5150a24..f91980c058b 100644 --- a/drivers/serial/Kconfig.nrfx +++ b/drivers/serial/Kconfig.nrfx @@ -28,6 +28,13 @@ config UART_NRFX_UARTE imply NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG if !UART_NRFX_UARTE_LEGACY_SHIM imply NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG if !UART_NRFX_UARTE_LEGACY_SHIM +config UART_NRFX_UARTE_USE_CLOCK_CONTROL + def_bool y + depends on UART_NRFX_UARTE + depends on $(dt_nodelabel_enabled,uart120) + depends on !SOC_NRF54H20_CPUFLPR && !SOC_NRF54H20_CPUPPR + select CLOCK_CONTROL + config UART_NRFX_UARTE_NO_IRQ bool "Polling without interrupt" depends on UART_NRFX_UARTE