diff options
author | Andreas Henriksson <andreas.henriksson@endian.se> | 2014-01-27 19:18:59 +0100 |
---|---|---|
committer | Andreas Bießmann <andreas.devel@googlemail.com> | 2014-03-09 18:24:52 +0100 |
commit | 81724e09a018cf002be1bbb1a89b4b25e5b6f5c4 (patch) | |
tree | 0e82687832cebe2b4c51127de5d31058798135c6 /board/atmel | |
parent | de4fdfc1f22d70c23be5443dafacb8163023f9b1 (diff) | |
download | u-boot-imx-81724e09a018cf002be1bbb1a89b4b25e5b6f5c4.zip u-boot-imx-81724e09a018cf002be1bbb1a89b4b25e5b6f5c4.tar.gz u-boot-imx-81724e09a018cf002be1bbb1a89b4b25e5b6f5c4.tar.bz2 |
at91sam9263ek: add mmc support
Add support for using the Atmel MCI driver on at91sam9263ek.
This change is modeled after the existing at91sam9260ek support.
Please note that this hooks up slot1 (MCI1) for SD. Not both.
Tested with at91bootstrap and u-boot on dataflash in slot 0
and fat-formatted 8GB SDHC in slot 1 on first revision
at91sam9263ek (which must use dataflash in slot0 to boot).
CONFIG_ATMEL_MCI_PORTB not tested.
Signed-off-by: Andreas Henriksson <andreas.henriksson@endian.se>
[remove empty line]
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'board/atmel')
-rw-r--r-- | board/atmel/at91sam9263ek/at91sam9263ek.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/atmel/at91sam9263ek/at91sam9263ek.c b/board/atmel/at91sam9263ek/at91sam9263ek.c index d42a173..4b14554 100644 --- a/board/atmel/at91sam9263ek/at91sam9263ek.c +++ b/board/atmel/at91sam9263ek/at91sam9263ek.c @@ -24,6 +24,7 @@ #include <net.h> #endif #include <netdev.h> +#include <atmel_mci.h> DECLARE_GLOBAL_DATA_PTR; @@ -214,6 +215,15 @@ void lcd_show_board_info(void) #endif /* CONFIG_LCD_INFO */ #endif +#ifdef CONFIG_GENERIC_ATMEL_MCI +int board_mmc_init(bd_t *bd) +{ + at91_mci_hw_init(); + + return atmel_mci_init((void *)ATMEL_BASE_MCI1); +} +#endif + int board_early_init_f(void) { struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; |