at91sam9m10g45ek: add mci0 support
and enable fat support Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
9d64e1f21d
commit
dfa3d6613c
|
@ -22,6 +22,7 @@
|
|||
|
||||
#include <common.h>
|
||||
#include <net.h>
|
||||
#include <mci.h>
|
||||
#include <init.h>
|
||||
#include <environment.h>
|
||||
#include <asm/armlinux.h>
|
||||
|
@ -110,11 +111,18 @@ static struct at91_ether_platform_data macb_pdata = {
|
|||
.phy_addr = 0,
|
||||
};
|
||||
|
||||
static struct atmel_mci_platform_data mci0_pdata = {
|
||||
.bus_width = 4,
|
||||
.host_caps = MMC_MODE_HS,
|
||||
.detect_pin = AT91_PIN_PD10,
|
||||
};
|
||||
|
||||
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);
|
||||
|
||||
devfs_add_partition("nand0", 0x00000, 0x80000, PARTITION_FIXED, "self_raw");
|
||||
dev_add_bb_dev("self_raw", "self0");
|
||||
|
|
|
@ -53,3 +53,8 @@ CONFIG_CFI_BUFFER_WRITE=y
|
|||
CONFIG_MTD=y
|
||||
CONFIG_NAND=y
|
||||
CONFIG_UBI=y
|
||||
CONFIG_MCI=y
|
||||
CONFIG_MCI_WRITE=y
|
||||
CONFIG_MCI_ATMEL=y
|
||||
CONFIG_FS_FAT=y
|
||||
CONFIG_FS_FAT_WRITE=y
|
||||
|
|
Loading…
Reference in New Issue