drivers: uart: esp32: set device to initialize pre-kernel

Uart post kernel initialization does not allow starting shell
properly. This issue was added in UART unifying PR.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
This commit is contained in:
Sylvio Alves 2021-11-09 09:07:18 -03:00 committed by Christopher Friedt
parent 3c5e937ae2
commit b0c48a2182

View file

@ -551,7 +551,7 @@ DEVICE_DT_DEFINE(DT_NODELABEL(uart##idx), \
NULL, \
&uart_esp32_data_##idx, \
&uart_esp32_cfg_port_##idx, \
POST_KERNEL, \
PRE_KERNEL_2, \
CONFIG_SERIAL_INIT_PRIORITY, \
&uart_esp32_api);