diff options
author | Wu, Josh <Josh.wu@atmel.com> | 2013-03-29 00:28:41 +0400 |
---|---|---|
committer | Andreas Bießmann <andreas.devel@googlemail.com> | 2013-05-12 18:42:24 +0400 |
commit | a73267a7ce8adea9d062a58db896ca4275333c68 (patch) | |
tree | b56b06686790313e55ed7cabc8f659ba2427989a /board/atmel/at91sam9260ek | |
parent | 9e336903891f1c28be04f0b5503ca54939b2976a (diff) | |
download | u-boot-a73267a7ce8adea9d062a58db896ca4275333c68.tar.xz |
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/at91sam9260ek')
-rw-r--r-- | board/atmel/at91sam9260ek/at91sam9260ek.c | 10 |
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; |