drivers: serial: nrfx: Allow new UARTE instances to be used
Extend Kconfig definitions and nrfx_config translations so that UARTE instances that are available in nRF54H20 can be used. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
parent
784688a511
commit
976de4edbe
|
@ -90,6 +90,51 @@ nrfx_uart_num = 30
|
|||
rsource "Kconfig.nrfx_uart_instance"
|
||||
endif
|
||||
|
||||
if HAS_HW_NRF_UARTE120
|
||||
nrfx_uart_num = 120
|
||||
rsource "Kconfig.nrfx_uart_instance"
|
||||
endif
|
||||
|
||||
if HAS_HW_NRF_UARTE130
|
||||
nrfx_uart_num = 130
|
||||
rsource "Kconfig.nrfx_uart_instance"
|
||||
endif
|
||||
|
||||
if HAS_HW_NRF_UARTE131
|
||||
nrfx_uart_num = 131
|
||||
rsource "Kconfig.nrfx_uart_instance"
|
||||
endif
|
||||
|
||||
if HAS_HW_NRF_UARTE132
|
||||
nrfx_uart_num = 132
|
||||
rsource "Kconfig.nrfx_uart_instance"
|
||||
endif
|
||||
|
||||
if HAS_HW_NRF_UARTE133
|
||||
nrfx_uart_num = 133
|
||||
rsource "Kconfig.nrfx_uart_instance"
|
||||
endif
|
||||
|
||||
if HAS_HW_NRF_UARTE134
|
||||
nrfx_uart_num = 134
|
||||
rsource "Kconfig.nrfx_uart_instance"
|
||||
endif
|
||||
|
||||
if HAS_HW_NRF_UARTE135
|
||||
nrfx_uart_num = 135
|
||||
rsource "Kconfig.nrfx_uart_instance"
|
||||
endif
|
||||
|
||||
if HAS_HW_NRF_UARTE136
|
||||
nrfx_uart_num = 136
|
||||
rsource "Kconfig.nrfx_uart_instance"
|
||||
endif
|
||||
|
||||
if HAS_HW_NRF_UARTE137
|
||||
nrfx_uart_num = 137
|
||||
rsource "Kconfig.nrfx_uart_instance"
|
||||
endif
|
||||
|
||||
config NRFX_TIMER0
|
||||
default y
|
||||
depends on UART_0_NRF_HW_ASYNC_TIMER = 0 \
|
||||
|
|
|
@ -637,6 +637,51 @@ config NRFX_UARTE30
|
|||
depends on $(dt_nodelabel_has_compat,uart30,$(DT_COMPAT_NORDIC_NRF_UARTE))
|
||||
select NRFX_UARTE
|
||||
|
||||
config NRFX_UARTE120
|
||||
bool "UARTE120 driver instance"
|
||||
depends on $(dt_nodelabel_has_compat,uart120,$(DT_COMPAT_NORDIC_NRF_UARTE))
|
||||
select NRFX_UARTE
|
||||
|
||||
config NRFX_UARTE130
|
||||
bool "UARTE130 driver instance"
|
||||
depends on $(dt_nodelabel_has_compat,uart130,$(DT_COMPAT_NORDIC_NRF_UARTE))
|
||||
select NRFX_UARTE
|
||||
|
||||
config NRFX_UARTE131
|
||||
bool "UARTE131 driver instance"
|
||||
depends on $(dt_nodelabel_has_compat,uart131,$(DT_COMPAT_NORDIC_NRF_UARTE))
|
||||
select NRFX_UARTE
|
||||
|
||||
config NRFX_UARTE132
|
||||
bool "UARTE132 driver instance"
|
||||
depends on $(dt_nodelabel_has_compat,uart132,$(DT_COMPAT_NORDIC_NRF_UARTE))
|
||||
select NRFX_UARTE
|
||||
|
||||
config NRFX_UARTE133
|
||||
bool "UARTE133 driver instance"
|
||||
depends on $(dt_nodelabel_has_compat,uart133,$(DT_COMPAT_NORDIC_NRF_UARTE))
|
||||
select NRFX_UARTE
|
||||
|
||||
config NRFX_UARTE134
|
||||
bool "UARTE134 driver instance"
|
||||
depends on $(dt_nodelabel_has_compat,uart134,$(DT_COMPAT_NORDIC_NRF_UARTE))
|
||||
select NRFX_UARTE
|
||||
|
||||
config NRFX_UARTE135
|
||||
bool "UARTE135 driver instance"
|
||||
depends on $(dt_nodelabel_has_compat,uart135,$(DT_COMPAT_NORDIC_NRF_UARTE))
|
||||
select NRFX_UARTE
|
||||
|
||||
config NRFX_UARTE136
|
||||
bool "UARTE136 driver instance"
|
||||
depends on $(dt_nodelabel_has_compat,uart136,$(DT_COMPAT_NORDIC_NRF_UARTE))
|
||||
select NRFX_UARTE
|
||||
|
||||
config NRFX_UARTE137
|
||||
bool "UARTE137 driver instance"
|
||||
depends on $(dt_nodelabel_has_compat,uart137,$(DT_COMPAT_NORDIC_NRF_UARTE))
|
||||
select NRFX_UARTE
|
||||
|
||||
config NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG
|
||||
bool "UARTE GPIO configuration support"
|
||||
depends on NRFX_UARTE
|
||||
|
|
|
@ -606,6 +606,33 @@
|
|||
#ifdef CONFIG_NRFX_UARTE30
|
||||
#define NRFX_UARTE30_ENABLED 1
|
||||
#endif
|
||||
#ifdef CONFIG_NRFX_UARTE120
|
||||
#define NRFX_UARTE120_ENABLED 1
|
||||
#endif
|
||||
#ifdef CONFIG_NRFX_UARTE130
|
||||
#define NRFX_UARTE130_ENABLED 1
|
||||
#endif
|
||||
#ifdef CONFIG_NRFX_UARTE131
|
||||
#define NRFX_UARTE131_ENABLED 1
|
||||
#endif
|
||||
#ifdef CONFIG_NRFX_UARTE132
|
||||
#define NRFX_UARTE132_ENABLED 1
|
||||
#endif
|
||||
#ifdef CONFIG_NRFX_UARTE133
|
||||
#define NRFX_UARTE133_ENABLED 1
|
||||
#endif
|
||||
#ifdef CONFIG_NRFX_UARTE134
|
||||
#define NRFX_UARTE134_ENABLED 1
|
||||
#endif
|
||||
#ifdef CONFIG_NRFX_UARTE135
|
||||
#define NRFX_UARTE135_ENABLED 1
|
||||
#endif
|
||||
#ifdef CONFIG_NRFX_UARTE136
|
||||
#define NRFX_UARTE136_ENABLED 1
|
||||
#endif
|
||||
#ifdef CONFIG_NRFX_UARTE137
|
||||
#define NRFX_UARTE137_ENABLED 1
|
||||
#endif
|
||||
#ifdef CONFIG_NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG
|
||||
#define NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG 1
|
||||
#endif
|
||||
|
|
|
@ -438,6 +438,33 @@ config HAS_HW_NRF_UARTE22
|
|||
config HAS_HW_NRF_UARTE30
|
||||
def_bool $(dt_nodelabel_enabled_with_compat,uart30,$(DT_COMPAT_NORDIC_NRF_UARTE))
|
||||
|
||||
config HAS_HW_NRF_UARTE120
|
||||
def_bool $(dt_nodelabel_enabled_with_compat,uart120,$(DT_COMPAT_NORDIC_NRF_UARTE))
|
||||
|
||||
config HAS_HW_NRF_UARTE130
|
||||
def_bool $(dt_nodelabel_enabled_with_compat,uart130,$(DT_COMPAT_NORDIC_NRF_UARTE))
|
||||
|
||||
config HAS_HW_NRF_UARTE131
|
||||
def_bool $(dt_nodelabel_enabled_with_compat,uart131,$(DT_COMPAT_NORDIC_NRF_UARTE))
|
||||
|
||||
config HAS_HW_NRF_UARTE132
|
||||
def_bool $(dt_nodelabel_enabled_with_compat,uart132,$(DT_COMPAT_NORDIC_NRF_UARTE))
|
||||
|
||||
config HAS_HW_NRF_UARTE133
|
||||
def_bool $(dt_nodelabel_enabled_with_compat,uart133,$(DT_COMPAT_NORDIC_NRF_UARTE))
|
||||
|
||||
config HAS_HW_NRF_UARTE134
|
||||
def_bool $(dt_nodelabel_enabled_with_compat,uart134,$(DT_COMPAT_NORDIC_NRF_UARTE))
|
||||
|
||||
config HAS_HW_NRF_UARTE135
|
||||
def_bool $(dt_nodelabel_enabled_with_compat,uart135,$(DT_COMPAT_NORDIC_NRF_UARTE))
|
||||
|
||||
config HAS_HW_NRF_UARTE136
|
||||
def_bool $(dt_nodelabel_enabled_with_compat,uart136,$(DT_COMPAT_NORDIC_NRF_UARTE))
|
||||
|
||||
config HAS_HW_NRF_UARTE137
|
||||
def_bool $(dt_nodelabel_enabled_with_compat,uart137,$(DT_COMPAT_NORDIC_NRF_UARTE))
|
||||
|
||||
config HAS_HW_NRF_USBD
|
||||
def_bool $(dt_compat_enabled,$(DT_COMPAT_NORDIC_NRF_USBD))
|
||||
|
||||
|
|
|
@ -214,6 +214,15 @@ CHECK_DT_REG(uart20, NRF_UARTE20);
|
|||
CHECK_DT_REG(uart21, NRF_UARTE21);
|
||||
CHECK_DT_REG(uart22, NRF_UARTE22);
|
||||
CHECK_DT_REG(uart30, NRF_UARTE30);
|
||||
CHECK_DT_REG(uart120, NRF_UARTE120);
|
||||
CHECK_DT_REG(uart130, NRF_UARTE130);
|
||||
CHECK_DT_REG(uart131, NRF_UARTE131);
|
||||
CHECK_DT_REG(uart132, NRF_UARTE132);
|
||||
CHECK_DT_REG(uart133, NRF_UARTE133);
|
||||
CHECK_DT_REG(uart134, NRF_UARTE134);
|
||||
CHECK_DT_REG(uart135, NRF_UARTE135);
|
||||
CHECK_DT_REG(uart136, NRF_UARTE136);
|
||||
CHECK_DT_REG(uart137, NRF_UARTE137);
|
||||
CHECK_DT_REG(uicr, NRF_UICR);
|
||||
CHECK_DT_REG(usbd, NRF_USBD);
|
||||
CHECK_DT_REG(usbreg, NRF_USBREGULATOR);
|
||||
|
|
Loading…
Reference in a new issue