esp32: fix uart and gpio driver priority to enable console

Current gpio and uart initialization level is set to
PRE_KERNEL_2, which won't let uart_console subsystem
to init its hook properly as it has same level.
Prioritize uart and gpio so that the console hooks
are properly initialized.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
This commit is contained in:
Sylvio Alves 2022-01-08 00:40:47 -03:00 committed by Anas Nashif
commit aea53f41c1
2 changed files with 2 additions and 2 deletions

View file

@ -446,7 +446,7 @@ static const struct gpio_driver_api gpio_esp32_driver_api = {
NULL, \
&gpio_data_##_id, \
&gpio_config_##_id, \
PRE_KERNEL_2, \
PRE_KERNEL_1, \
CONFIG_GPIO_INIT_PRIORITY, \
&gpio_esp32_driver_api);

View file

@ -584,7 +584,7 @@ DEVICE_DT_INST_DEFINE(idx, \
NULL, \
&uart_esp32_data_##idx, \
&uart_esp32_cfg_port_##idx, \
PRE_KERNEL_2, \
PRE_KERNEL_1, \
CONFIG_SERIAL_INIT_PRIORITY, \
&uart_esp32_api);