]> git.dujemihanovic.xyz Git - u-boot.git/commit
pico-imx6ul: Fix eMMC boot after DM_MMC conversion
authorFabio Estevam <festevam@gmail.com>
Thu, 21 Mar 2019 13:59:06 +0000 (10:59 -0300)
committerStefano Babic <sbabic@denx.de>
Sun, 31 Mar 2019 17:54:56 +0000 (19:54 +0200)
commit9b8d9ec41a6f161d53d32bf71f79332236b44ba1
tree7d5490964182b3cfba229a72726e17375337cf55
parent66c433ed4342e5761ee9b048c85fe47d31130b2e
pico-imx6ul: Fix eMMC boot after DM_MMC conversion

After the DM_MMC conversion the following eMMC boot error is observed:

U-Boot SPL 2019.04-rc4 (Mar 20 2019 - 18:53:28 +0000)
Trying to boot from MMC1
MMC Device 0 not found
spl: could not find mmc device 0. error: -19
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

This happens because the SPL code does not initialize the SDHC pins
and clock.

Fix it by moving the original eMMC initialization from U-Boot proper
to SPL.

Reported-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Tested-by: Fabio Berton <fabio.berton@ossystems.com.br>
Reviewed-by: Otavio Salvador <otavio@ossystems.com.br>
board/technexion/pico-imx6ul/spl.c