]> git.sur5r.net Git - u-boot/commitdiff
ARM: at91: ma5d4: Init SD/MMC controller in SPL
authorMarek Vasut <marex@denx.de>
Tue, 2 May 2017 18:27:44 +0000 (20:27 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 29 Jun 2017 17:30:49 +0000 (13:30 -0400)
Init the controllers, otherwise the board cannot boot from SD/MMC.
This boot option is new on rev. 2.1 SoM .

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Andreas Bießmann <andreas.devel@googlemail.com>
board/aries/ma5d4evk/ma5d4evk.c

index aa02b8a34b1105759a1a9a9e1a1735686ea36ef3..9c1ba581668383a8d63bf4e1ecd34bee463d06f2 100644 (file)
@@ -337,7 +337,13 @@ int board_eth_init(bd_t *bis)
 #ifdef CONFIG_SPL_BUILD
 void spl_board_init(void)
 {
+#ifdef CONFIG_ATMEL_SPI
        ma5d4evk_spi0_hw_init();
+#endif
+#ifdef CONFIG_GENERIC_ATMEL_MCI
+       ma5d4evk_mci0_hw_init();
+       ma5d4evk_mci1_hw_init();
+#endif
 }
 
 static void ddr2_conf(struct atmel_mpddrc_config *ddr2)