modules: hal_nordic: nrfx: Add new UARTE options to Kconfig

Add Kconfig options to new configuration flags for nrfx_uarte.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruściński 2024-01-17 11:53:35 +01:00 committed by Carles Cufí
commit 4fcf8e0630
2 changed files with 33 additions and 0 deletions

View file

@ -573,6 +573,27 @@ config NRFX_UARTE3
depends on $(dt_nodelabel_has_compat,uart3,$(DT_COMPAT_NORDIC_NRF_UARTE)) depends on $(dt_nodelabel_has_compat,uart3,$(DT_COMPAT_NORDIC_NRF_UARTE))
select NRFX_UARTE select NRFX_UARTE
config NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG
bool "UARTE GPIO configuration support"
depends on NRFX_UARTE
config NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG
bool "UARTE PSEL configuration support"
depends on NRFX_UARTE
config NRFX_UARTE_CONFIG_TX_LINK
bool "UARTE TX transfer linking support"
depends on NRFX_UARTE
config NRFX_UARTE_CONFIG_RX_CACHE_ENABLED
bool "UARTE RX caching support"
default y if $(dt_nodelabel_has_compat,ram3x,$(DT_COMPAT_MMIO_SRAM))
depends on NRFX_UARTE
help
Feature might be enabled on platforms which has limitations regarding addresses
to which receiver can write data. If enabled then internal driver buffers
(cache buffers) are used for DMA transfers and data is copied to the user buffer.
config NRFX_USBREG config NRFX_USBREG
bool "USBREG driver" bool "USBREG driver"
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_USBREG)) depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_USBREG))

View file

@ -563,6 +563,18 @@
#ifdef CONFIG_NRFX_UARTE3 #ifdef CONFIG_NRFX_UARTE3
#define NRFX_UARTE3_ENABLED 1 #define NRFX_UARTE3_ENABLED 1
#endif #endif
#ifdef CONFIG_NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG
#define NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG 1
#endif
#ifdef CONFIG_NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG
#define NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG 1
#endif
#ifdef CONFIG_NRFX_UARTE_CONFIG_TX_LINK
#define NRFX_UARTE_CONFIG_TX_LINK 1
#endif
#ifdef CONFIG_NRFX_UARTE_CONFIG_RX_CACHE_ENABLED
#define NRFX_UARTE_CONFIG_RX_CACHE_ENABLED 1
#endif
#ifdef CONFIG_NRFX_USBREG #ifdef CONFIG_NRFX_USBREG
#define NRFX_USBREG_ENABLED 1 #define NRFX_USBREG_ENABLED 1