ARM: imx6q_logic: Enable DM_SERIAL
authorAdam Ford <aford173@gmail.com>
Wed, 7 Aug 2019 17:05:59 +0000 (12:05 -0500)
committerStefano Babic <sbabic@denx.de>
Tue, 8 Oct 2019 14:36:37 +0000 (16:36 +0200)
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 <aford173@gmail.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
board/logicpd/imx6/imx6logic.c
configs/imx6q_logic_defconfig

index 36ebe12773ad6442a13cd44de47d4bbc00895666..7fb6dc42c67485844948120b2761ef8bf70f527e 100644 (file)
@@ -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();
 }
index ec14b8eaf6cce23b750074da770f0fb4b0815074..6125ee2bc23e1dab70587ec9698e2cb777d5d2da 100644 (file)
@@ -83,6 +83,7 @@ CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_PFUZE100=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
+CONFIG_DM_SERIAL=y
 CONFIG_MXC_UART=y
 CONFIG_USB=y
 CONFIG_DM_USB=y