cc3200: Move pinmux and UART initialization to PRE_KERNEL_1
Previously, cc3200_launchxl board was not able to show the Zephyr Boot Banner, as that required early initialization of the UART driver, which was done POST_KERNEL. This patch moves the pinmux and UART driver initialization to PRE_KERNEL_1, allowing early printk, and the Boot Banner to show. Change-Id: I84a7c20c1d5bdc3de150dc6bb0adebc9a2d9f5cb Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
This commit is contained in:
parent
57075ae195
commit
ed1ba1e1a5
2 changed files with 3 additions and 3 deletions
|
@ -118,4 +118,4 @@ int pinmux_initialize(struct device *port)
|
|||
return 0;
|
||||
}
|
||||
|
||||
SYS_INIT(pinmux_initialize, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
SYS_INIT(pinmux_initialize, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2016, Texas Instruments Incorporated
|
||||
* Copyright (c) 2016-2017, Texas Instruments Incorporated
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
@ -309,5 +309,5 @@ static const struct uart_driver_api uart_cc32xx_driver_api = {
|
|||
DEVICE_AND_API_INIT(uart_cc32xx_0, CONFIG_UART_CONSOLE_ON_DEV_NAME,
|
||||
uart_cc32xx_init, &uart_cc32xx_dev_data_0,
|
||||
&uart_cc32xx_dev_cfg_0,
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
(void *)&uart_cc32xx_driver_api);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue