From ec182180f98539ea0fdbe427b60c9d0276524aea Mon Sep 17 00:00:00 2001 From: Anson Huang Date: Thu, 5 Jul 2018 10:28:58 +0800 Subject: imx8qm/imx8qxp: switch to MULTI_CONSOLE_API for debug uart support Switch to MULTI_CONSOLE_API to make debug UART work. Signed-off-by: Anson Huang --- plat/imx/imx8qxp/imx8qxp_bl31_setup.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'plat/imx/imx8qxp/imx8qxp_bl31_setup.c') diff --git a/plat/imx/imx8qxp/imx8qxp_bl31_setup.c b/plat/imx/imx8qxp/imx8qxp_bl31_setup.c index b75deb95..7219e7df 100644 --- a/plat/imx/imx8qxp/imx8qxp_bl31_setup.c +++ b/plat/imx/imx8qxp/imx8qxp_bl31_setup.c @@ -261,6 +261,10 @@ void imx8_partition_resources(void) void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1, u_register_t arg2, u_register_t arg3) { +#if DEBUG_CONSOLE + static console_lpuart_t console; +#endif + /* open the IPC channel */ if (sc_ipc_open(&ipc_handle, SC_IPC_CH) != SC_ERR_NONE) { /* No console available now */ @@ -291,8 +295,8 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1, #endif #if DEBUG_CONSOLE - console_init(IMX_BOOT_UART_BASE, IMX_BOOT_UART_CLK_IN_HZ, - IMX_CONSOLE_BAUDRATE); + console_lpuart_register(IMX_BOOT_UART_BASE, IMX_BOOT_UART_CLK_IN_HZ, + IMX_CONSOLE_BAUDRATE, &console); #endif /* Turn on MU1 for non-secure OS/Hypervisor -- cgit v1.2.3