* vimal singh <vimalsingh@xxxxxx> [080826 03:42]: > From: Teerth Reddy <teerth@xxxxxx> > > This patch adds NAND support on 3430sdp board > > Signed-off-by: Teerth Reddy <teerth@xxxxxx> > --- > arch/arm/mach-omap2/board-3430sdp-flash.c | 88 ++++++++++++++++++++++++++++-- > arch/arm/plat-omap/include/mach/gpmc.h | 10 +++ > 2 files changed, 93 insertions(+), 5 deletions(-) > > Index: linux-omap-2.6/arch/arm/mach-omap2/board-3430sdp-flash.c > =================================================================== > --- linux-omap-2.6.orig/arch/arm/mach-omap2/board-3430sdp-flash.c > +++ linux-omap-2.6/arch/arm/mach-omap2/board-3430sdp-flash.c > @@ -24,6 +24,7 @@ > #include <mach/onenand.h> > #include <mach/board.h> > #include <mach/gpmc.h> > +#include <mach/nand.h> > > static struct mtd_partition sdp_nor_partitions[] = { > /* bootloader (U-Boot, etc) in first sector */ > @@ -137,6 +138,61 @@ static int sdp_onenand_setup(void __iome > /* Onenand setup does nothing at present */ > return 0; > } > + > +static struct mtd_partition sdp_nand_partitions[] = { > + /* All the partition sizes are listed in terms of NAND block size */ > + { > + .name = "X-Loader-NAND", > + .offset = 0, > + .size = 4 * (64 * 2048), > + .mask_flags = MTD_WRITEABLE, /* force read-only */ > + }, > + { > + .name = "U-Boot-NAND", > + .offset = MTDPART_OFS_APPEND, /* Offset = 0x80000 */ > + .size = 4 * (64 * 2048), > + .mask_flags = MTD_WRITEABLE, /* force read-only */ > + }, > + { > + .name = "Boot Env-NAND", > + .offset = MTDPART_OFS_APPEND, /* Offset = 0x100000 */ > + .size = 2 * (64 * 2048), > + }, > + { > + .name = "Kernel-NAND", > + .offset = MTDPART_OFS_APPEND, /* Offset = 0x140000 */ > + .size = 32 * (64 * 2048), > + }, > + { > + .name = "File System - NAND", > + .size = MTDPART_SIZ_FULL, > + .offset = MTDPART_OFS_APPEND, /* Offset = 0x540000 */ > + }, > +}; > + Can you please update this to use the SZ_.. defines for .size as done now for sdp_nor_partitions? Thanks, Tony -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html