diff options
author | Hubert Feurstein <h.feurstein@gmail.com> | 2011-06-16 17:57:59 +0200 |
---|---|---|
committer | Hubert Feurstein <h.feurstein@gmail.com> | 2011-06-16 17:57:59 +0200 |
commit | f301b386a3776a7913d98bf8eb43d2b2c4e10a45 (patch) | |
tree | 376cf6e7382bb755d98a56d390b6dbd2e8176b7a /arch/arm/boards/at91sam9m10g45ek | |
parent | 39edb3344b7bc76760ea9b8fb31f286638aecd94 (diff) | |
download | barebox-f301b386a3776a7913d98bf8eb43d2b2c4e10a45.tar.gz barebox-f301b386a3776a7913d98bf8eb43d2b2c4e10a45.tar.xz |
at91sam9m10g45ek: update mci0 support
Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'arch/arm/boards/at91sam9m10g45ek')
-rw-r--r-- | arch/arm/boards/at91sam9m10g45ek/init.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/arch/arm/boards/at91sam9m10g45ek/init.c b/arch/arm/boards/at91sam9m10g45ek/init.c index 4f79e42348..8cdcb8d626 100644 --- a/arch/arm/boards/at91sam9m10g45ek/init.c +++ b/arch/arm/boards/at91sam9m10g45ek/init.c @@ -111,18 +111,28 @@ static struct at91_ether_platform_data macb_pdata = { .phy_addr = 0, }; -static struct atmel_mci_platform_data mci0_pdata = { +#if defined(CONFIG_MCI_ATMEL) +static struct atmel_mci_platform_data ek_mci_data = { .bus_width = 4, .host_caps = MMC_MODE_HS, .detect_pin = AT91_PIN_PD10, }; +static void ek_add_device_mci(void) +{ + at91_add_device_mci(0, &ek_mci_data); +} +#else +static void ek_add_device_mci(void) {} +#endif + + static int at91sam9m10g45ek_devices_init(void) { at91_add_device_sdram(128 * 1024 * 1024); ek_add_device_nand(); at91_add_device_eth(&macb_pdata); - at91_add_device_mci(0, &mci0_pdata); + ek_add_device_mci(); devfs_add_partition("nand0", 0x00000, 0x80000, PARTITION_FIXED, "self_raw"); dev_add_bb_dev("self_raw", "self0"); |