Hi Tony,
As this patch is trivial can it be upstreamed ?
Thanks & Regards,
Hrishikesh
From: Bhandiwad, Hrishikesh
Sent: Friday, July 29, 2011 6:13 PM
To: linux-...@lists.infradead.org; linux-omap@vger.kernel.org;
linux-ker...@vger.kernel.org
Cc: Bhandiwad, Hrishikesh; Hiremath, Vaibhav; Premi, Sanjeev
Subject: [PATCH v2] OMAP3: NAND: Adding NAND support and specifying NAND
partitions.
This patch adds the NAND support on OMAP3EVM board and also allocates
five partitions on NAND.
Referred to file: arch/arm/mach-omap2/board-omap3beagle.c
Signed-off-by: Vaibhav Hiremath
Signed-off-by: Sanjeev Premi
Signed-off-by: Hrishikesh Bhandiwad
---
arch/arm/mach-omap2/board-omap3evm.c | 37 ++
1 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/board-omap3evm.c
b/arch/arm/mach-omap2/board-omap3evm.c
index b4d4346..3ac96d4 100644
--- a/arch/arm/mach-omap2/board-omap3evm.c
+++ b/arch/arm/mach-omap2/board-omap3evm.c
@@ -30,6 +30,9 @@
#include
#include
+#include
+#include
+
#include
#include
#include
@@ -101,6 +104,37 @@ static void __init omap3_evm_get_revision(void)
}
}
+static struct mtd_partition omap3evm_nand_partitions[] = {
+ /* All the partition sizes are listed in terms of NAND block size */
+ {
+ .name = "X-Loader",
+ .offset = 0,
+ .size = 4 * NAND_BLOCK_SIZE,
+ .mask_flags = MTD_WRITEABLE,/* force read-only */
+ },
+ {
+ .name = "U-Boot",
+ .offset = 0x8,
+ .size = 15 * NAND_BLOCK_SIZE,
+ .mask_flags = MTD_WRITEABLE,/* force read-only */
+ },
+ {
+ .name = "U-Boot Env",
+ .offset = 0x26,
+ .size = 1 * NAND_BLOCK_SIZE,
+ },
+ {
+ .name = "Kernel",
+ .offset = 0x28,
+ .size = 32 * NAND_BLOCK_SIZE,
+ },
+ {
+ .name = "File System",
+ .offset = 0x68,
+ .size = MTDPART_SIZ_FULL,
+ },
+};
+
#if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
#include
@@ -696,6 +730,9 @@ static void __init omap3_evm_init(void)
omap_serial_init();
+ omap_nand_flash_init(NAND_BUSWIDTH_16, omap3evm_nand_partitions,
+ ARRAY_SIZE(omap3evm_nand_partitions));
+
/* OMAP3EVM uses ISP1504 phy and so register nop transceiver */
usb_nop_xceiv_register();
--
1.6.2.4
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html