drivers: serial: neorv32: use shared serial driver init priority
Use the shared CONFIG_SERIAL_INIT_PRIORITY for driver initialization priority. Override the default value for the NEORV32 SoC to ensure the serial driver is initialized after the syscon driver by default. Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
This commit is contained in:
parent
efc9cee834
commit
d711d224c2
|
@ -11,11 +11,3 @@ config UART_NEORV32
|
||||||
select SERIAL_SUPPORT_INTERRUPT
|
select SERIAL_SUPPORT_INTERRUPT
|
||||||
help
|
help
|
||||||
This option enables the UART driver for the NEORV32.
|
This option enables the UART driver for the NEORV32.
|
||||||
|
|
||||||
config UART_NEORV32_INIT_PRIORITY
|
|
||||||
int "Driver inititalization priority"
|
|
||||||
default 55
|
|
||||||
depends on UART_NEORV32
|
|
||||||
help
|
|
||||||
Device driver initialization priority. This driver must be
|
|
||||||
initialized after the syscon driver.
|
|
||||||
|
|
|
@ -540,7 +540,7 @@ static const struct uart_driver_api neorv32_uart_driver_api = {
|
||||||
&neorv32_uart_##n##_data, \
|
&neorv32_uart_##n##_data, \
|
||||||
&neorv32_uart_##n##_config, \
|
&neorv32_uart_##n##_config, \
|
||||||
PRE_KERNEL_1, \
|
PRE_KERNEL_1, \
|
||||||
CONFIG_UART_NEORV32_INIT_PRIORITY, \
|
CONFIG_SERIAL_INIT_PRIORITY, \
|
||||||
&neorv32_uart_driver_api)
|
&neorv32_uart_driver_api)
|
||||||
|
|
||||||
#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(uart0), DT_DRV_COMPAT, okay)
|
#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(uart0), DT_DRV_COMPAT, okay)
|
||||||
|
|
|
@ -21,4 +21,8 @@ config RISCV_GP
|
||||||
config SYSCON
|
config SYSCON
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
config SERIAL_INIT_PRIORITY
|
||||||
|
default 55
|
||||||
|
depends on SERIAL
|
||||||
|
|
||||||
endif # SOC_SERIES_NEORV32
|
endif # SOC_SERIES_NEORV32
|
||||||
|
|
Loading…
Reference in a new issue