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>
This commit is contained in:
parent
4c3671aea3
commit
0829c2bb8c
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user