drivers: serial: nrfx: Update Kconfig dependencies for RX cache

Two Kconfig symbols were tied to a board-specific DT nodelabel - namely
the `NRFX_UARTE_CONFIG_RX_CACHE_ENABLED` and `UART_<n>_RX_CACHE_SIZE`
were tied to `shared_ram3x_region` - but this is not necessary.

That DT node is where the UARTE driver RX/TX cache buffers are placed
in the default nRF54H20 DK memory map, but on another board, they could
be located somewhere else.

The exact memory sub-regions used for this purpose are indicated using
the `memory-regions` property on each UARTE instance, which should be
generic enough already, so let's use that instead.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
This commit is contained in:
Grzegorz Swiderski 2024-05-03 09:21:43 +02:00 committed by Anas Nashif
commit 24ce3f4182
2 changed files with 8 additions and 2 deletions

View file

@ -950,7 +950,6 @@ config NRFX_UARTE_CONFIG_TX_LINK
config NRFX_UARTE_CONFIG_RX_CACHE_ENABLED
bool "UARTE RX caching support"
default y if $(dt_nodelabel_has_compat,shared_ram3x_region,$(DT_COMPAT_NORDIC_OWNED_MEMORY))
depends on NRFX_UARTE
help
Feature might be enabled on platforms which has limitations regarding addresses