pico-imx7d: Convert DM MMC
authorJoris Offouga <offougajoris@gmail.com>
Thu, 4 Apr 2019 12:00:55 +0000 (14:00 +0200)
committerStefano Babic <sbabic@denx.de>
Thu, 25 Apr 2019 17:16:24 +0000 (19:16 +0200)
commit4e267b92fb28a4f626c1d27ad71e21cf4df2935b
tree707eaf3419443b47a8edc0a20db4ad11f31a8aa2
parent6988a3aff72c1d231291be3500edf51e8ee818be
pico-imx7d: Convert DM MMC

This patch enable convert DM MMC for imx7d-pico board and variant.

Before the DM conversion only usdhc3 was enabled and therefore it appeared
as MMC 0 to u-boot. After enabling MMC DM though usdhc3 defaults to MMC 2,
which left unattended would drive changes to existing pico-pi bootscripts and
environment variables that rely on mmc 0.

Setup the alias of mmc0 and usdhc3 so that existing pico-imx7d boot code will
work unmodified.

When converting to DM_MMC it is necessary that SPL initializes eMMC
by itself, so move the original eMMC initialization from U-Boot
proper to SPL.

Signed-off-by: Joris Offouga <offougajoris@gmail.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
arch/arm/dts/imx7d-pico.dtsi
board/technexion/pico-imx7d/pico-imx7d.c
board/technexion/pico-imx7d/spl.c
configs/pico-hobbit-imx7d_defconfig
configs/pico-imx7d_defconfig
configs/pico-pi-imx7d_defconfig