]> git.dujemihanovic.xyz Git - u-boot.git/commit
board: bsh: imx8mn_bsh_smm_s2/s2pro: enable DM_SERIAL
authorMichael Trimarchi <michael@amarulasolutions.com>
Mon, 18 Apr 2022 06:53:36 +0000 (08:53 +0200)
committerStefano Babic <sbabic@denx.de>
Thu, 21 Apr 2022 13:18:25 +0000 (15:18 +0200)
commit0016e62813a151557ea5a3fd083417eaf03aa576
tree559398482c96a3484d79ff4db6ff24737e498b06
parent6a21c695213bf1f2541feaf16fad46a54c00646b
board: bsh: imx8mn_bsh_smm_s2/s2pro: enable DM_SERIAL

Enable DM_SERIAL for both U_Boot and the SPL. The uart4 and its pinmux
are already marked with u-boot,dm-spl but we need to move the call to
preloader_console_init() after spl_init() to avoid a board hang
as dm can't be used until after spl_init().

Remove the manual config of the UART pinmux now that it is no longer
needed.

Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Cc: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
Tested-by: Ariel D'Alessandro <ariel.dalessandro@collabora.com>
board/bsh/imx8mn_smm_s2/spl.c
configs/imx8mn_bsh_smm_s2_defconfig
configs/imx8mn_bsh_smm_s2pro_defconfig