From 7cf388fa6977136dd2384bd746d237efc306c829 Mon Sep 17 00:00:00 2001 From: Adam Ford Date: Wed, 7 Aug 2019 12:05:59 -0500 Subject: ARM: imx6q_logic: Enable DM_SERIAL In order to call preloader_console_init from board_init_f when DM_SERIAL is enabled, it neesd to call spl_early_init() to get early access to DM and device tree. This patch calls spl_early_init just before preloader_console_init() and enables DM_SERIAL and SPL_DM_SERIAL. Signed-off-by: Adam Ford Reviewed-by: Fabio Estevam --- board/logicpd/imx6/imx6logic.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'board/logicpd') diff --git a/board/logicpd/imx6/imx6logic.c b/board/logicpd/imx6/imx6logic.c index 36ebe12773..7fb6dc42c6 100644 --- a/board/logicpd/imx6/imx6logic.c +++ b/board/logicpd/imx6/imx6logic.c @@ -348,6 +348,9 @@ void board_init_f(ulong dummy) /* setup GP timer */ timer_init(); + /* Enable device tree and early DM support*/ + spl_early_init(); + /* UART clocks enabled and gd valid - init serial console */ preloader_console_init(); } -- cgit v1.2.1