summaryrefslogtreecommitdiff
path: root/board/atmel
diff options
context:
space:
mode:
authorWu, Josh <Josh.wu@atmel.com>2013-03-28 20:28:41 +0000
committerAndreas Bießmann <andreas.devel@googlemail.com>2013-05-12 16:42:24 +0200
commita73267a7ce8adea9d062a58db896ca4275333c68 (patch)
treeb56b06686790313e55ed7cabc8f659ba2427989a /board/atmel
parent9e336903891f1c28be04f0b5503ca54939b2976a (diff)
arm: at91: enable mci support for at91sam9g20ek.
Signed-off-by: Josh Wu <josh.wu@atmel.com> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'board/atmel')
-rw-r--r--board/atmel/at91sam9260ek/at91sam9260ek.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/atmel/at91sam9260ek/at91sam9260ek.c b/board/atmel/at91sam9260ek/at91sam9260ek.c
index 3aa394a4bb..1e7b33e39c 100644
--- a/board/atmel/at91sam9260ek/at91sam9260ek.c
+++ b/board/atmel/at91sam9260ek/at91sam9260ek.c
@@ -30,6 +30,7 @@
#include <asm/arch/at91_pmc.h>
#include <asm/arch/at91_rstc.h>
#include <asm/arch/gpio.h>
+#include <atmel_mci.h>
#if defined(CONFIG_RESET_PHY_R) && defined(CONFIG_MACB)
# include <net.h>
@@ -143,6 +144,15 @@ static void at91sam9260ek_macb_hw_init(void)
}
#endif
+#ifdef CONFIG_GENERIC_ATMEL_MCI
+int board_mmc_init(bd_t *bd)
+{
+ at91_mci_hw_init();
+
+ return atmel_mci_init((void *)ATMEL_BASE_MCI);
+}
+#endif
+
int board_early_init_f(void)
{
struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC;