diff mbox

[U-Boot,05/11] ARM: at91: ma5d4: Init SD/MMC controller in SPL

Message ID 20170502182750.8907-5-marex@denx.de
State Accepted
Commit 24257db07154e0ca27cb82a5aae4f43bca830b24
Delegated to: Tom Rini
Headers show

Commit Message

Marek Vasut May 2, 2017, 6:27 p.m. UTC
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 | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Tom Rini June 30, 2017, 1:27 a.m. UTC | #1
On Tue, May 02, 2017 at 08:27:44PM +0200, Marek Vasut wrote:

> 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>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/board/aries/ma5d4evk/ma5d4evk.c b/board/aries/ma5d4evk/ma5d4evk.c
index aa02b8a34b..9c1ba58166 100644
--- a/board/aries/ma5d4evk/ma5d4evk.c
+++ b/board/aries/ma5d4evk/ma5d4evk.c
@@ -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)