From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-bw0-f49.google.com ([209.85.214.49]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QVsuY-0000Id-Jh for barebox@lists.infradead.org; Sun, 12 Jun 2011 22:13:40 +0000 Received: by bwz1 with SMTP id 1so4625837bwz.36 for ; Sun, 12 Jun 2011 15:13:32 -0700 (PDT) From: Hubert Feurstein Date: Mon, 13 Jun 2011 00:12:31 +0200 Message-Id: <1307916751-5882-1-git-send-email-h.feurstein@gmail.com> In-Reply-To: <20110610112948.GC3037@game.jcrosoft.org> References: <20110610112948.GC3037@game.jcrosoft.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v2] at91sam9m10g45ek: add mci0 support To: barebox@lists.infradead.org enable fat support Signed-off-by: Hubert Feurstein Cc: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/at91sam9m10g45ek/init.c | 17 +++++++++++++++++ arch/arm/configs/at91sam9m10g45ek_defconfig | 5 +++++ 2 files changed, 22 insertions(+), 0 deletions(-) diff --git a/arch/arm/boards/at91sam9m10g45ek/init.c b/arch/arm/boards/at91sam9m10g45ek/init.c index 77d51b7..dcd2fe6 100644 --- a/arch/arm/boards/at91sam9m10g45ek/init.c +++ b/arch/arm/boards/at91sam9m10g45ek/init.c @@ -22,6 +22,7 @@ #include #include +#include #include #include #include @@ -110,11 +111,27 @@ static struct at91_ether_platform_data macb_pdata = { .phy_addr = 0, }; +#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); + ek_add_device_mci(); devfs_add_partition("nand0", 0x00000, 0x80000, PARTITION_FIXED, "self_raw"); dev_add_bb_dev("self_raw", "self0"); diff --git a/arch/arm/configs/at91sam9m10g45ek_defconfig b/arch/arm/configs/at91sam9m10g45ek_defconfig index e1c6cef..deca884 100644 --- a/arch/arm/configs/at91sam9m10g45ek_defconfig +++ b/arch/arm/configs/at91sam9m10g45ek_defconfig @@ -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 -- 1.7.4.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox