summaryrefslogtreecommitdiff
path: root/board/atmel
diff options
context:
space:
mode:
authorWu, Josh <Josh.wu@atmel.com>2015-02-02 17:51:00 +0800
committerAndreas Bießmann <andreas.devel@googlemail.com>2015-03-18 23:36:01 +0100
commit111ec4c65208bb13f3957d5a1c84b228eb83bdde (patch)
tree31d1051fca9d7675b6be60d4263d2ba4c1dab7ef /board/atmel
parent65b553b71cc9863c49f6973f13083159e935297f (diff)
downloadu-boot-imx-111ec4c65208bb13f3957d5a1c84b228eb83bdde.zip
u-boot-imx-111ec4c65208bb13f3957d5a1c84b228eb83bdde.tar.gz
u-boot-imx-111ec4c65208bb13f3957d5a1c84b228eb83bdde.tar.bz2
ARM: at91: at91sam9rlek: add mci support
This patch enable the MCI support for at91sam9rlek board. Signed-off-by: Josh Wu <josh.wu@atmel.com> [rebase on ToT] Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'board/atmel')
-rw-r--r--board/atmel/at91sam9rlek/at91sam9rlek.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/atmel/at91sam9rlek/at91sam9rlek.c b/board/atmel/at91sam9rlek/at91sam9rlek.c
index 56ca1d4..f995cef 100644
--- a/board/atmel/at91sam9rlek/at91sam9rlek.c
+++ b/board/atmel/at91sam9rlek/at91sam9rlek.c
@@ -19,6 +19,7 @@
#include <lcd.h>
#include <atmel_lcdc.h>
+#include <atmel_mci.h>
#if defined(CONFIG_RESET_PHY_R) && defined(CONFIG_MACB)
#include <net.h>
#endif
@@ -162,6 +163,15 @@ void lcd_show_board_info(void)
#endif /* CONFIG_LCD_INFO */
#endif
+#ifdef CONFIG_GENERIC_ATMEL_MCI
+int board_mmc_init(bd_t *bis)
+{
+ 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;