2ebad47eaa
The uart_ite_it8xxx2 is relying on a node that depends on a matching ns16550 symbol, such as: ite_uart1_wrapper: uartwrapper@f02720 { compatible = "ite,it8xxx2-uart"; ... uart-dev = <&uart1>; }; But the two are currently setup to initialize at the same level and priority. Add a dedicated priority symbol so that the wrapper device is always initialized after the main one, regardless of the linker order. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
23 lines
772 B
Plaintext
23 lines
772 B
Plaintext
# Copyright (c) 2021 ITE Corporation. All Rights Reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config UART_ITE_IT8XXX2
|
|
bool "ITE IT8XXX2 UART driver"
|
|
default y
|
|
depends on DT_HAS_ITE_IT8XXX2_UART_ENABLED
|
|
help
|
|
IT8XXX2 uses shared ns16550.c driver which does not
|
|
provide a power management callback, so create driver
|
|
to handle IT8XXX2 specific UART features. In addition
|
|
to use pm_action_cb, we also need to make some setting
|
|
at uart_it8xxx2_init.
|
|
|
|
config UART_ITE_IT8XXX2_INIT_PRIORITY
|
|
int "ITE IT8XXX2 UART wrapper init priority"
|
|
default 51
|
|
depends on UART_ITE_IT8XXX2
|
|
help
|
|
Initialization priority for the UART wrapper driver on ITE IT8XXX2,
|
|
must be set to a lower priority than the matching ns16550 device
|
|
(CONFIG_SERIAL_INIT_PRIORITY).
|