mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Asen Chavdarov Dimov <dimov@ronetix.at>
To: barebox@lists.infradead.org
Subject: [PATCH 2/3] pm9g45: enable MCI0
Date: Thu,  1 Mar 2012 18:21:28 +0200	[thread overview]
Message-ID: <1330618889-11482-2-git-send-email-dimov@ronetix.at> (raw)
In-Reply-To: <1330618889-11482-1-git-send-email-dimov@ronetix.at>

FIXME: part of or no data is written. File copy ends
with message: "atmel_mci@atmel_mci0: command/data timeout"

Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
---
 arch/arm/boards/pm9g45/init.c     |   17 ++++++++++++++++-
 arch/arm/configs/pm9g45_defconfig |   34 +++++++++++++++++++++++++++++++---
 2 files changed, 47 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
index 9eba12a..257e5e2 100644
--- a/arch/arm/boards/pm9g45/init.c
+++ b/arch/arm/boards/pm9g45/init.c
@@ -77,6 +77,21 @@ static void pm_add_device_nand(void)
 	at91_add_device_nand(&nand_pdata);
 }
 
+#if defined(CONFIG_MCI_ATMEL)
+static struct atmel_mci_platform_data __initdata mci_data = {
+	.bus_width	= 4,
+	.wp_pin		= 0,
+	.detect_pin	= AT91_PIN_PD6,
+};
+
+static void add_device_mci(void)
+{
+	at91_add_device_mci(0, &mci_data);
+}
+#else
+static void add_device_mci(void) {}
+#endif
+
 static struct at91_ether_platform_data macb_pdata = {
 	.flags = AT91SAM_ETHER_RMII,
 	.phy_addr = 0,
@@ -122,8 +137,8 @@ static int pm9g45_devices_init(void)
 	}
 	phy_init();
 
+	add_device_mci();
 	pm_add_device_nand();
-
 	at91_add_device_eth(&macb_pdata);
 
 	devfs_add_partition("nand0", 0x00000, 0x80000, PARTITION_FIXED, "self_raw");
diff --git a/arch/arm/configs/pm9g45_defconfig b/arch/arm/configs/pm9g45_defconfig
index f05d4de..5132ea4 100644
--- a/arch/arm/configs/pm9g45_defconfig
+++ b/arch/arm/configs/pm9g45_defconfig
@@ -69,6 +69,8 @@ CONFIG_HAS_MODULES=y
 CONFIG_CMD_MEMORY=y
 CONFIG_ENV_HANDLING=y
 CONFIG_GENERIC_GPIO=y
+CONFIG_BLOCK=y
+CONFIG_BLOCK_WRITE=y
 CONFIG_FILETYPE=y
 
 #
@@ -290,11 +292,35 @@ CONFIG_NAND_ATMEL=y
 # CONFIG_MTD_NAND_ECC_SMC is not set
 CONFIG_MTD_NAND_IDS=y
 CONFIG_UBI=y
-# CONFIG_DISK is not set
+CONFIG_DISK=y
+CONFIG_DISK_WRITE=y
+
+#
+# drive types
+#
+# CONFIG_DISK_ATA is not set
+
+#
+# interface types
+#
+# CONFIG_DISK_INTF_PLATFORM_IDE is not set
 # CONFIG_USB is not set
 # CONFIG_USB_GADGET is not set
 # CONFIG_VIDEO is not set
-# CONFIG_MCI is not set
+CONFIG_MCI=y
+
+#
+# --- Feature list ---
+#
+# CONFIG_MCI_STARTUP is not set
+CONFIG_MCI_INFO=y
+CONFIG_MCI_WRITE=y
+
+#
+# --- MCI host drivers ---
+#
+CONFIG_MCI_ATMEL=y
+# CONFIG_MCI_SPI is not set
 CONFIG_CLKDEV_LOOKUP=y
 
 #
@@ -319,7 +345,9 @@ CONFIG_EEPROM_AT25=y
 # CONFIG_FS_CRAMFS is not set
 CONFIG_FS_RAMFS=y
 CONFIG_FS_DEVFS=y
-# CONFIG_FS_FAT is not set
+CONFIG_FS_FAT=y
+CONFIG_FS_FAT_WRITE=y
+CONFIG_FS_FAT_LFN=y
 CONFIG_PARTITION_NEED_MTD=y
 
 #
-- 
1.7.4.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2012-03-01 16:20 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-01 16:21 [PATCH 1/3] pm9g45: fix Ethernet Asen Chavdarov Dimov
2012-03-01 16:21 ` Asen Chavdarov Dimov [this message]
2012-03-01 17:10   ` [PATCH 2/3] pm9g45: enable MCI0 Jean-Christophe PLAGNIOL-VILLARD
2012-03-01 16:21 ` [PATCH 3/3] pm9g45: enable USB OHCI host and USB mass storage Asen Chavdarov Dimov
2012-03-01 17:12   ` Jean-Christophe PLAGNIOL-VILLARD
2012-03-02 15:20     ` RONETIX - Asen Dimov
2012-03-02 17:13       ` Jean-Christophe PLAGNIOL-VILLARD
2012-03-01 17:08 ` [PATCH 1/3] pm9g45: fix Ethernet Jean-Christophe PLAGNIOL-VILLARD
2012-03-02 16:55 ` [PATCH v2 1/4] pm9g45: boot from NAND Asen Chavdarov Dimov
2012-03-02 16:55   ` [PATCH v2 2/4] pm9g45: fix Ethernet Asen Chavdarov Dimov
2012-03-02 17:19     ` Jean-Christophe PLAGNIOL-VILLARD
2012-03-02 16:55   ` [PATCH v2 3/4] pm9g45: enable MCI0 Asen Chavdarov Dimov
2012-03-02 17:21     ` Jean-Christophe PLAGNIOL-VILLARD
2012-03-02 16:55   ` [PATCH v2 4/4] pm9g45: enable USB OHCI host and USB mass storage Asen Chavdarov Dimov
2012-03-02 17:22     ` Jean-Christophe PLAGNIOL-VILLARD
2012-03-02 17:18   ` [PATCH v2 1/4] pm9g45: boot from NAND Jean-Christophe PLAGNIOL-VILLARD
2012-03-08 11:37     ` RONETIX - Asen Dimov
2012-03-08 13:05       ` Jean-Christophe PLAGNIOL-VILLARD
2012-03-21 16:43         ` RONETIX - Asen Dimov
2012-03-21 16:27 ` [PATCH v3 " Asen Chavdarov Dimov
2012-03-21 16:27   ` [PATCH v3 2/4] pm9g45: fix Ethernet Asen Chavdarov Dimov
2012-03-21 16:27   ` [PATCH v3 3/4] pm9g45: enable MCI0 Asen Chavdarov Dimov
2012-03-22 20:17     ` Sascha Hauer
2012-03-23 12:55       ` RONETIX - Asen Dimov
2012-03-23 15:18         ` Sascha Hauer
2012-03-21 16:27   ` [PATCH v3 4/4] pm9g45: enable USB OHCI host and USB mass storage Asen Chavdarov Dimov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1330618889-11482-2-git-send-email-dimov@ronetix.at \
    --to=dimov@ronetix.at \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox