uart: ns16550: simplify BOOT_LEVEL
Use CODE_CODE_1() instead of macro trampolines when CONFIG_UART_NS16550_PARENT_INIT_LEVEL is enabled. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
7d0e223112
commit
8b54cb859e
1 changed files with 1 additions and 3 deletions
|
@ -1307,10 +1307,8 @@ static const struct uart_driver_api uart_ns16550_driver_api = {
|
|||
_CONCAT(DEV_DATA_FLOW_CTRL, DT_INST_PROP_OR(n, hw_flow_control, 0))
|
||||
|
||||
#ifdef CONFIG_UART_NS16550_PARENT_INIT_LEVEL
|
||||
#define NS16550_BOOT_LEVEL0 PRE_KERNEL_1
|
||||
#define NS16550_BOOT_LEVEL1 POST_KERNEL
|
||||
#define BOOT_LEVEL(n) \
|
||||
_CONCAT(NS16550_BOOT_LEVEL, DT_INST_ON_BUS(n, pcie))
|
||||
COND_CODE_1(DT_INST_ON_BUS(n, pcie), (POST_KERNEL), (PRE_KERNEL_1))
|
||||
#else
|
||||
#define BOOT_LEVEL(n) PRE_KERNEL_1
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue