Skip to content

Commit

Permalink
drivers: serial: Refactor drivers to use shared init priority Kconfig
Browse files Browse the repository at this point in the history
Refactors all of the serial drivers to use a shared driver class
initialization priority configuration, CONFIG_SERIAL_INIT_PRIORITY, to
allow configuring serial drivers separately from other devices. This is
similar to other driver classes like I2C and SPI.

The default is set to CONFIG_KERNEL_INIT_PRIORITY_DEVICE to preserve the
existing default initialization priority for most drivers. The one
exception is uart_lpc11u6x.c which previously used
CONFIG_KERNEL_INIT_PRIORITY_OBJECTS.

This change was motivated by an issue on the frdm_k64f board where the
serial driver was incorrectly initialized before the clock control
driver.

Signed-off-by: Maureen Helm <[email protected]>
  • Loading branch information
MaureenHelm authored and nashif committed Oct 17, 2021
1 parent 6d2b914 commit ad14505
Show file tree
Hide file tree
Showing 44 changed files with 62 additions and 56 deletions.
6 changes: 6 additions & 0 deletions drivers/serial/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ config SERIAL_SUPPORT_INTERRUPT
This is an option to be enabled by individual serial driver
to signal that the driver and hardware supports interrupts.

config SERIAL_INIT_PRIORITY
int "Serial init priority"
default KERNEL_INIT_PRIORITY_DEVICE
help
Serial driver device initialization priority.

config UART_USE_RUNTIME_CONFIGURE
bool "Enable runtime configuration for UART controllers"
default y
Expand Down
4 changes: 2 additions & 2 deletions drivers/serial/leuart_gecko.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ static struct leuart_gecko_data leuart_gecko_0_data;
DEVICE_DT_INST_DEFINE(0, &leuart_gecko_init,
NULL, &leuart_gecko_0_data,
&leuart_gecko_0_config, PRE_KERNEL_1,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
CONFIG_SERIAL_INIT_PRIORITY,
&leuart_gecko_driver_api);

#ifdef CONFIG_UART_INTERRUPT_DRIVEN
Expand Down Expand Up @@ -407,7 +407,7 @@ static struct leuart_gecko_data leuart_gecko_1_data;
DEVICE_DT_INST_DEFINE(1, &leuart_gecko_init,
NULL, &leuart_gecko_1_data,
&leuart_gecko_1_config, PRE_KERNEL_1,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
CONFIG_SERIAL_INIT_PRIORITY,
&leuart_gecko_driver_api);

#ifdef CONFIG_UART_INTERRUPT_DRIVEN
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/serial_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static int serial_vnd_init(const struct device *dev)
#define VND_SERIAL_INIT(n) \
DEVICE_DT_INST_DEFINE(n, &serial_vnd_init, NULL, \
NULL, NULL, POST_KERNEL, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
CONFIG_SERIAL_INIT_PRIORITY, \
&serial_vnd_api);

DT_INST_FOREACH_STATUS_OKAY(VND_SERIAL_INIT)
2 changes: 1 addition & 1 deletion drivers/serial/uart_altera_jtag_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ static const struct uart_device_config uart_altera_jtag_dev_cfg_0 = {

DEVICE_DT_INST_DEFINE(0, uart_altera_jtag_init, NULL,
NULL, &uart_altera_jtag_dev_cfg_0,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
PRE_KERNEL_1, CONFIG_SERIAL_INIT_PRIORITY,
&uart_altera_jtag_driver_api);
2 changes: 1 addition & 1 deletion drivers/serial/uart_apbuart.c
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ static const struct uart_driver_api apbuart_driver_api = {
&apbuart##index##_data, \
&apbuart##index##_config, \
PRE_KERNEL_1, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
CONFIG_SERIAL_INIT_PRIORITY, \
&apbuart_driver_api);

DT_INST_FOREACH_STATUS_OKAY(APBUART_INIT)
2 changes: 1 addition & 1 deletion drivers/serial/uart_b91.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ static const struct uart_driver_api uart_b91_driver_api = {
&uart_b91_data_##n, \
&uart_b91_cfg_##n, \
PRE_KERNEL_1, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
CONFIG_SERIAL_INIT_PRIORITY, \
(void *)&uart_b91_driver_api); \
\
static void uart_b91_irq_connect_##n(void) \
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_cc13xx_cc26xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ static const struct uart_driver_api uart_cc13xx_cc26xx_driver_api = {
uart_cc13xx_cc26xx_init_##n, \
uart_cc13xx_cc26xx_pm_control, \
&uart_cc13xx_cc26xx_data_##n, &uart_cc13xx_cc26xx_config_##n,\
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
PRE_KERNEL_1, CONFIG_SERIAL_INIT_PRIORITY, \
&uart_cc13xx_cc26xx_driver_api)

#ifdef CONFIG_PM_DEVICE
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_cc32xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ static struct uart_cc32xx_dev_data_t uart_cc32xx_dev_data_##idx = { \
DEVICE_DT_INST_DEFINE(idx, uart_cc32xx_init, \
NULL, &uart_cc32xx_dev_data_##idx, \
&uart_cc32xx_dev_cfg_##idx, \
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
PRE_KERNEL_1, CONFIG_SERIAL_INIT_PRIORITY, \
(void *)&uart_cc32xx_driver_api); \

DT_INST_FOREACH_STATUS_OKAY(UART_32XX_DEVICE);
10 changes: 5 additions & 5 deletions drivers/serial/uart_cmsdk_apb.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ DEVICE_DT_INST_DEFINE(0,
NULL,
&uart_cmsdk_apb_dev_data_0,
&uart_cmsdk_apb_dev_cfg_0, PRE_KERNEL_1,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
CONFIG_SERIAL_INIT_PRIORITY,
&uart_cmsdk_apb_driver_api);

#ifdef CONFIG_UART_INTERRUPT_DRIVEN
Expand Down Expand Up @@ -573,7 +573,7 @@ DEVICE_DT_INST_DEFINE(1,
NULL,
&uart_cmsdk_apb_dev_data_1,
&uart_cmsdk_apb_dev_cfg_1, PRE_KERNEL_1,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
CONFIG_SERIAL_INIT_PRIORITY,
&uart_cmsdk_apb_driver_api);

#ifdef CONFIG_UART_INTERRUPT_DRIVEN
Expand Down Expand Up @@ -638,7 +638,7 @@ DEVICE_DT_INST_DEFINE(2,
NULL,
&uart_cmsdk_apb_dev_data_2,
&uart_cmsdk_apb_dev_cfg_2, PRE_KERNEL_1,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
CONFIG_SERIAL_INIT_PRIORITY,
&uart_cmsdk_apb_driver_api);

#ifdef CONFIG_UART_INTERRUPT_DRIVEN
Expand Down Expand Up @@ -703,7 +703,7 @@ DEVICE_DT_INST_DEFINE(3,
NULL,
&uart_cmsdk_apb_dev_data_3,
&uart_cmsdk_apb_dev_cfg_3, PRE_KERNEL_1,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
CONFIG_SERIAL_INIT_PRIORITY,
&uart_cmsdk_apb_driver_api);

#ifdef CONFIG_UART_INTERRUPT_DRIVEN
Expand Down Expand Up @@ -768,7 +768,7 @@ DEVICE_DT_INST_DEFINE(4,
NULL,
&uart_cmsdk_apb_dev_data_4,
&uart_cmsdk_apb_dev_cfg_4, PRE_KERNEL_1,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
CONFIG_SERIAL_INIT_PRIORITY,
&uart_cmsdk_apb_driver_api);

#ifdef CONFIG_UART_INTERRUPT_DRIVEN
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_esp32.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ DEVICE_DT_DEFINE(DT_NODELABEL(uart##idx), \
&uart_esp32_data_##idx, \
&uart_esp32_cfg_port_##idx, \
PRE_KERNEL_1, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
CONFIG_SERIAL_INIT_PRIORITY, \
&uart_esp32_api);

DT_INST_FOREACH_STATUS_OKAY(ESP32_UART_INIT);
4 changes: 2 additions & 2 deletions drivers/serial/uart_gecko.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ static const struct uart_driver_api uart_gecko_driver_api = {
DEVICE_DT_INST_DEFINE(idx, &uart_gecko_init, \
NULL, &uart_gecko_data_##idx, \
&uart_gecko_cfg_##idx, PRE_KERNEL_1, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
CONFIG_SERIAL_INIT_PRIORITY, \
&uart_gecko_driver_api); \
\
\
Expand Down Expand Up @@ -608,7 +608,7 @@ DT_INST_FOREACH_STATUS_OKAY(GECKO_UART_INIT)
DEVICE_DT_INST_DEFINE(idx, &uart_gecko_init, NULL, \
&usart_gecko_data_##idx, \
&usart_gecko_cfg_##idx, PRE_KERNEL_1, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
CONFIG_SERIAL_INIT_PRIORITY, \
&uart_gecko_driver_api); \
\
GECKO_USART_IRQ_HANDLER(idx)
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ static const struct uart_driver_api uart_imx_driver_api = {
DEVICE_DT_INST_DEFINE(n, &uart_imx_init, NULL, \
&imx_uart_##n##_data, &imx_uart_##n##_config, \
PRE_KERNEL_1, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
CONFIG_SERIAL_INIT_PRIORITY, \
&uart_imx_driver_api); \
\
UART_IMX_CONFIG_FUNC(n) \
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_liteuart.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ DEVICE_DT_INST_DEFINE(0,
uart_liteuart_init,
NULL,
&uart_liteuart_data_0, &uart_liteuart_dev_cfg_0,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
PRE_KERNEL_1, CONFIG_SERIAL_INIT_PRIORITY,
(void *)&uart_liteuart_driver_api);

static int uart_liteuart_init(const struct device *dev)
Expand Down
4 changes: 2 additions & 2 deletions drivers/serial/uart_lpc11u6x.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ DEVICE_DT_DEFINE(DT_NODELABEL(uart0),
&lpc11u6x_uart0_init,
NULL,
&uart0_data, &uart0_config,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_OBJECTS,
PRE_KERNEL_1, CONFIG_SERIAL_INIT_PRIORITY,
&uart0_api);

#ifdef CONFIG_UART_INTERRUPT_DRIVEN
Expand Down Expand Up @@ -904,7 +904,7 @@ static struct lpc11u6x_uartx_data uart_data_##idx; \
DEVICE_DT_DEFINE(DT_NODELABEL(uart##idx), \
&lpc11u6x_uartx_init, NULL, \
&uart_data_##idx, &uart_cfg_##idx, \
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_OBJECTS, \
PRE_KERNEL_1, CONFIG_SERIAL_INIT_PRIORITY, \
&uartx_api)

#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart1), okay)
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_mchp_xec.c
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ static const struct uart_driver_api uart_xec_driver_api = {
&uart_xec_dev_data_##n, \
&uart_xec_dev_cfg_##n, \
PRE_KERNEL_1, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
CONFIG_SERIAL_INIT_PRIORITY, \
&uart_xec_driver_api); \
UART_XEC_IRQ_FUNC_DEFINE(n)

Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_mcux.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ static const struct uart_mcux_config uart_mcux_##n##_config = { \
&uart_mcux_##n##_data, \
&uart_mcux_##n##_config, \
PRE_KERNEL_1, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
CONFIG_SERIAL_INIT_PRIORITY, \
&uart_mcux_driver_api); \
\
UART_MCUX_CONFIG_FUNC(n) \
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_mcux_flexcomm.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ static const struct mcux_flexcomm_config mcux_flexcomm_##n##_config = { \
&mcux_flexcomm_##n##_data, \
&mcux_flexcomm_##n##_config, \
PRE_KERNEL_1, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
CONFIG_SERIAL_INIT_PRIORITY, \
&mcux_flexcomm_driver_api); \
\
UART_MCUX_FLEXCOMM_CONFIG_FUNC(n) \
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_mcux_iuart.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ static const struct mcux_iuart_config mcux_iuart_##n##_config = { \
&mcux_iuart_##n##_data, \
&mcux_iuart_##n##_config, \
PRE_KERNEL_1, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
CONFIG_SERIAL_INIT_PRIORITY, \
&mcux_iuart_driver_api); \
\
IUART_MCUX_CONFIG_FUNC(n) \
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_mcux_lpsci.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ static const struct mcux_lpsci_config mcux_lpsci_##n##_config = { \
&mcux_lpsci_##n##_data, \
&mcux_lpsci_##n##_config, \
PRE_KERNEL_1, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
CONFIG_SERIAL_INIT_PRIORITY, \
&mcux_lpsci_driver_api); \
\
MCUX_LPSCI_CONFIG_FUNC(n) \
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_mcux_lpuart.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ static const struct mcux_lpuart_config mcux_lpuart_##n##_config = { \
&mcux_lpuart_##n##_data, \
&mcux_lpuart_##n##_config, \
PRE_KERNEL_1, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
CONFIG_SERIAL_INIT_PRIORITY, \
&mcux_lpuart_driver_api); \
\
LPUART_MCUX_CONFIG_FUNC(n) \
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_miv.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ static const struct uart_miv_device_config uart_miv_dev_cfg_0 = {

DEVICE_DT_INST_DEFINE(0, uart_miv_init, NULL,
&uart_miv_data_0, &uart_miv_dev_cfg_0,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
PRE_KERNEL_1, CONFIG_SERIAL_INIT_PRIORITY,
(void *)&uart_miv_driver_api);

#ifdef CONFIG_UART_INTERRUPT_DRIVEN
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_msp432p4xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,5 +362,5 @@ DEVICE_DT_INST_DEFINE(0,
uart_msp432p4xx_init, NULL,
&uart_msp432p4xx_dev_data_0,
&uart_msp432p4xx_dev_cfg_0,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
PRE_KERNEL_1, CONFIG_SERIAL_INIT_PRIORITY,
(void *)&uart_msp432p4xx_driver_api);
4 changes: 2 additions & 2 deletions drivers/serial/uart_native_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,14 +367,14 @@ static int np_uart_tty_poll_in(const struct device *dev,
DEVICE_DT_INST_DEFINE(0,
&np_uart_0_init, NULL,
(void *)&native_uart_status_0, NULL,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
PRE_KERNEL_1, CONFIG_SERIAL_INIT_PRIORITY,
&np_uart_driver_api_0);

#if defined(CONFIG_UART_NATIVE_POSIX_PORT_1_ENABLE)
DEVICE_DT_INST_DEFINE(1,
&np_uart_1_init, NULL,
(void *)&native_uart_status_1, NULL,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
PRE_KERNEL_1, CONFIG_SERIAL_INIT_PRIORITY,
&np_uart_driver_api_1);
#endif /* CONFIG_UART_NATIVE_POSIX_PORT_1_ENABLE */

Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_npcx.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ static inline int uart_npcx_pm_control(const struct device *dev,
&uart_npcx_init, \
uart_npcx_pm_control, \
&uart_npcx_data_##inst, &uart_npcx_cfg_##inst, \
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
PRE_KERNEL_1, CONFIG_SERIAL_INIT_PRIORITY, \
&uart_npcx_driver_api); \
\
NPCX_UART_IRQ_CONFIG_FUNC(inst)
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_nrfx_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -1188,5 +1188,5 @@ DEVICE_DT_INST_DEFINE(0,
NULL,
/* Initialize UART device before UART console. */
PRE_KERNEL_1,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
CONFIG_SERIAL_INIT_PRIORITY,
&uart_nrfx_uart_driver_api);
2 changes: 1 addition & 1 deletion drivers/serial/uart_nrfx_uarte.c
Original file line number Diff line number Diff line change
Expand Up @@ -2003,7 +2003,7 @@ static int uarte_nrfx_pm_control(const struct device *dev,
&uarte_##idx##_data, \
&uarte_##idx##z_config, \
PRE_KERNEL_1, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
CONFIG_SERIAL_INIT_PRIORITY, \
&uart_nrfx_uarte_driver_api)

#define UARTE_CONFIG(idx) \
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_ns16550.c
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ static const struct uart_driver_api uart_ns16550_driver_api = {
}; \
DEVICE_DT_INST_DEFINE(n, &uart_ns16550_init, NULL, \
&uart_ns16550_dev_data_##n, &uart_ns16550_dev_cfg_##n, \
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
PRE_KERNEL_1, CONFIG_SERIAL_INIT_PRIORITY, \
&uart_ns16550_driver_api); \
UART_NS16550_IRQ_FUNC_DEFINE(n)

Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_numicro.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ DEVICE_DT_INST_DEFINE(index, \
NULL, \
&uart_numicro_data_##index, \
&uart_numicro_cfg_##index, \
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
PRE_KERNEL_1, CONFIG_SERIAL_INIT_PRIORITY, \
&uart_numicro_driver_api);

DT_INST_FOREACH_STATUS_OKAY(NUMICRO_INIT)
6 changes: 3 additions & 3 deletions drivers/serial/uart_pl011.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ DEVICE_DT_INST_DEFINE(0,
NULL,
&pl011_data_port_0,
&pl011_cfg_port_0, PRE_KERNEL_1,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
CONFIG_SERIAL_INIT_PRIORITY,
&pl011_driver_api);

#ifdef CONFIG_UART_INTERRUPT_DRIVEN
Expand Down Expand Up @@ -506,7 +506,7 @@ DEVICE_DT_INST_DEFINE(1,
NULL,
&pl011_data_port_1,
&pl011_cfg_port_1, PRE_KERNEL_1,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
CONFIG_SERIAL_INIT_PRIORITY,
&pl011_driver_api);

#ifdef CONFIG_UART_INTERRUPT_DRIVEN
Expand Down Expand Up @@ -571,7 +571,7 @@ DEVICE_DT_INST_DEFINE(0,
NULL,
&pl011_data_sbsa,
&pl011_cfg_sbsa, PRE_KERNEL_1,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
CONFIG_SERIAL_INIT_PRIORITY,
&pl011_driver_api);

#ifdef CONFIG_UART_INTERRUPT_DRIVEN
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_psoc6.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ static const struct uart_driver_api uart_psoc6_driver_api = {
DEVICE_DT_INST_DEFINE(n, &uart_psoc6_init, NULL, \
CY_PSOC6_UART_DECL_DATA_PTR(n), \
&cy_psoc6_uart##n##_config, PRE_KERNEL_1, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
CONFIG_SERIAL_INIT_PRIORITY, \
&uart_psoc6_driver_api);

DT_INST_FOREACH_STATUS_OKAY(CY_PSOC6_UART_INIT)
2 changes: 1 addition & 1 deletion drivers/serial/uart_rcar.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ static const struct uart_driver_api uart_rcar_driver_api = {
NULL, \
&uart_rcar_data_##n, \
&uart_rcar_cfg_##n, \
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
PRE_KERNEL_1, CONFIG_SERIAL_INIT_PRIORITY, \
&uart_rcar_driver_api); \
\
UART_RCAR_CONFIG_FUNC(n) \
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/uart_rom_esp32c3.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ DEVICE_DT_DEFINE(DT_NODELABEL(uart##idx), \
NULL, \
NULL, \
PRE_KERNEL_1, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
CONFIG_SERIAL_INIT_PRIORITY, \
&uart_rom_esp32c3_api); \

DT_INST_FOREACH_STATUS_OKAY(ESP32C3_ROM_UART_INIT)
2 changes: 1 addition & 1 deletion drivers/serial/uart_rom_esp32s2.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ DEVICE_DT_DEFINE(DT_NODELABEL(uart##idx), \
NULL, \
NULL, \
PRE_KERNEL_1, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
CONFIG_SERIAL_INIT_PRIORITY, \
&uart_rom_esp32s2_api); \

DT_INST_FOREACH_STATUS_OKAY(ESP32S2_ROM_UART_INIT)
2 changes: 1 addition & 1 deletion drivers/serial/uart_rtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ static const struct uart_driver_api uart_rtt_driver_api = {
\
DEVICE_DT_DEFINE(UART_RTT(idx), uart_rtt_init, NULL, \
&uart_rtt##idx##_data, config, \
PRE_KERNEL_2, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
PRE_KERNEL_2, CONFIG_SERIAL_INIT_PRIORITY, \
&uart_rtt_driver_api)

#ifdef CONFIG_UART_RTT_0
Expand Down
Loading

0 comments on commit ad14505

Please sign in to comment.