diff options
author | Adam Ford <aford173@gmail.com> | 2019-08-07 12:05:59 -0500 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2019-10-08 16:36:37 +0200 |
commit | 7cf388fa6977136dd2384bd746d237efc306c829 (patch) | |
tree | 2bf3f06fb33b8248e46c98e859bc3aebbf628f00 | |
parent | a3ecce373af981f701b1c71a98da3df188c21960 (diff) |
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 <aford173@gmail.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
-rw-r--r-- | board/logicpd/imx6/imx6logic.c | 3 | ||||
-rw-r--r-- | configs/imx6q_logic_defconfig | 1 |
2 files changed, 4 insertions, 0 deletions
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(); } diff --git a/configs/imx6q_logic_defconfig b/configs/imx6q_logic_defconfig index ec14b8eaf6..6125ee2bc2 100644 --- a/configs/imx6q_logic_defconfig +++ b/configs/imx6q_logic_defconfig @@ -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 |