drivers: serial: align to nRF54L15

Align UARTE driver config to nRF54L15.

Signed-off-by: Magdalena Pastula <magdalena.pastula@nordicsemi.no>
This commit is contained in:
Magdalena Pastula 2024-01-18 15:17:38 +01:00 committed by Fabio Baltieri
parent b1a15718aa
commit 9b3b34f16e
2 changed files with 28 additions and 0 deletions

View file

@ -31,6 +31,8 @@ config UART_NRFX_UARTE
config UART_NRFX_UARTE_LEGACY_SHIM
bool "Legacy UARTE shim"
depends on UART_NRFX_UARTE
# NRF54L15 need new UARTE driver
depends on !SOC_SERIES_NRF54LX
# New shim takes more ROM. Until it is fixed use legacy shim.
default y
@ -64,6 +66,31 @@ nrfx_uart_num = 3
rsource "Kconfig.nrfx_uart_instance"
endif
if HAS_HW_NRF_UARTE00
nrfx_uart_num = 00
rsource "Kconfig.nrfx_uart_instance"
endif
if HAS_HW_NRF_UARTE20
nrfx_uart_num = 20
rsource "Kconfig.nrfx_uart_instance"
endif
if HAS_HW_NRF_UARTE21
nrfx_uart_num = 21
rsource "Kconfig.nrfx_uart_instance"
endif
if HAS_HW_NRF_UARTE22
nrfx_uart_num = 22
rsource "Kconfig.nrfx_uart_instance"
endif
if HAS_HW_NRF_UARTE30
nrfx_uart_num = 30
rsource "Kconfig.nrfx_uart_instance"
endif
config NRFX_TIMER0
default y
depends on UART_0_NRF_HW_ASYNC_TIMER = 0 \

View file

@ -20,6 +20,7 @@ config UART_$(nrfx_uart_num)_ASYNC
config UART_$(nrfx_uart_num)_ENHANCED_POLL_OUT
bool "Efficient poll out on port $(nrfx_uart_num)"
depends on !SOC_SERIES_NRF54LX
default y
depends on HAS_HW_NRF_UARTE$(nrfx_uart_num)
select NRFX_PPI if HAS_HW_NRF_PPI