summaryrefslogtreecommitdiff
path: root/board/atmel/at91sam9x5ek/at91sam9x5ek.c
diff options
context:
space:
mode:
authorWu, Josh <Josh.wu@atmel.com>2012-09-13 22:22:05 +0000
committerAndreas Bießmann <andreas.devel@googlemail.com>2012-10-17 11:29:25 +0200
commit3a49cd7e1a26af6708b05d4877bb0254a08dded3 (patch)
tree5e6b6cc2910901a8b1fdb616b0c5604e8b1e71a1 /board/atmel/at91sam9x5ek/at91sam9x5ek.c
parent1db7377a70a8d931c32648e717695133120d5456 (diff)
downloadu-boot-imx-3a49cd7e1a26af6708b05d4877bb0254a08dded3.zip
u-boot-imx-3a49cd7e1a26af6708b05d4877bb0254a08dded3.tar.gz
u-boot-imx-3a49cd7e1a26af6708b05d4877bb0254a08dded3.tar.bz2
ARM: at91sam9x5: enable MCI0 support for 9x5ek board.
Signed-off-by: Josh Wu <josh.wu@atmel.com> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'board/atmel/at91sam9x5ek/at91sam9x5ek.c')
-rw-r--r--board/atmel/at91sam9x5ek/at91sam9x5ek.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/atmel/at91sam9x5ek/at91sam9x5ek.c b/board/atmel/at91sam9x5ek/at91sam9x5ek.c
index 06028aa..edb0886 100644
--- a/board/atmel/at91sam9x5ek/at91sam9x5ek.c
+++ b/board/atmel/at91sam9x5ek/at91sam9x5ek.c
@@ -31,6 +31,7 @@
#include <asm/arch/clk.h>
#include <lcd.h>
#include <atmel_hlcdc.h>
+#include <atmel_mci.h>
#ifdef CONFIG_MACB
#include <net.h>
#endif
@@ -258,6 +259,15 @@ void spi_cs_deactivate(struct spi_slave *slave)
}
#endif /* CONFIG_ATMEL_SPI */
+#ifdef CONFIG_GENERIC_ATMEL_MCI
+int board_mmc_init(bd_t *bd)
+{
+ at91_mci_hw_init();
+
+ return atmel_mci_init((void *)ATMEL_BASE_HSMCI0);
+}
+#endif
+
int board_early_init_f(void)
{
at91_seriald_hw_init();