From dfc0f32855b3d93d196a74731540d0106da186f6 Mon Sep 17 00:00:00 2001 From: Celine Buret Date: Thu, 9 Dec 2010 14:48:59 +0100 Subject: cleo/linux/arch/arm/spc300: add large flashes to scr310 and spr300 --- .../arch/arm/mach-spc300/board-scr310.c | 56 ++++++++++++++++++++++ .../arch/arm/mach-spc300/board-spr300.c | 56 ++++++++++++++++++++++ 2 files changed, 112 insertions(+) (limited to 'cleopatre/linux-2.6.25.10-spc300') diff --git a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/board-scr310.c b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/board-scr310.c index d6d3d3a013..af80b2706d 100644 --- a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/board-scr310.c +++ b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/board-scr310.c @@ -110,6 +110,62 @@ static struct mtd_partition spc300_flash_partitions[] = { .mask_flags = 0, } }; + +#elif defined CONFIG_MTD_SPC300_MAP_LARGE1 +static struct mtd_partition spc300_flash_partitions[] = { + { + .name = "u-boot", + .size = 0x00030000, + .offset = 0, + .mask_flags = 0, + }, { + .name = "nvram", + .size = 0x00010000, + .offset = MTDPART_OFS_APPEND, + .mask_flags = 0, + }, { + .name = "user-fs", + .size = 0x00100000, + .offset = MTDPART_OFS_APPEND, + .mask_flags = 0, + }, { + .name = "image 0", + .size = MTDPART_SIZ_FULL, + .offset = MTDPART_OFS_APPEND, + .mask_flags = 0, + } +}; + +#elif defined CONFIG_MTD_SPC300_MAP_LARGE2 +static struct mtd_partition spc300_flash_partitions[] = { + { + .name = "u-boot", + .size = 0x00030000, + .offset = 0, + .mask_flags = 0, + }, { + .name = "nvram", + .size = 0x00010000, + .offset = MTDPART_OFS_APPEND, + .mask_flags = 0, + }, { + .name = "user-fs", + .size = 0x00100000, + .offset = MTDPART_OFS_APPEND, + .mask_flags = 0, + }, { + .name = "image 0", + .size = 0x00360000, + .offset = MTDPART_OFS_APPEND, + .mask_flags = 0, + }, { + .name = "image 1", + .size = MTDPART_SIZ_FULL, + .offset = MTDPART_OFS_APPEND, + .mask_flags = 0, + } +}; + #else #error "SPC300 MTD flash mapping not defined !" #endif /* CONFIG_MTD_SPC300_MAP_SMALL */ diff --git a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/board-spr300.c b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/board-spr300.c index 00dde5f53f..e1f7fbf82c 100644 --- a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/board-spr300.c +++ b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/board-spr300.c @@ -110,6 +110,62 @@ static struct mtd_partition spc300_flash_partitions[] = { .mask_flags = 0, } }; + +#elif defined CONFIG_MTD_SPC300_MAP_LARGE1 +static struct mtd_partition spc300_flash_partitions[] = { + { + .name = "u-boot", + .size = 0x00030000, + .offset = 0, + .mask_flags = 0, + }, { + .name = "nvram", + .size = 0x00010000, + .offset = MTDPART_OFS_APPEND, + .mask_flags = 0, + }, { + .name = "user-fs", + .size = 0x00100000, + .offset = MTDPART_OFS_APPEND, + .mask_flags = 0, + }, { + .name = "image 0", + .size = MTDPART_SIZ_FULL, + .offset = MTDPART_OFS_APPEND, + .mask_flags = 0, + } +}; + +#elif defined CONFIG_MTD_SPC300_MAP_LARGE2 +static struct mtd_partition spc300_flash_partitions[] = { + { + .name = "u-boot", + .size = 0x00030000, + .offset = 0, + .mask_flags = 0, + }, { + .name = "nvram", + .size = 0x00010000, + .offset = MTDPART_OFS_APPEND, + .mask_flags = 0, + }, { + .name = "user-fs", + .size = 0x00100000, + .offset = MTDPART_OFS_APPEND, + .mask_flags = 0, + }, { + .name = "image 0", + .size = 0x00360000, + .offset = MTDPART_OFS_APPEND, + .mask_flags = 0, + }, { + .name = "image 1", + .size = MTDPART_SIZ_FULL, + .offset = MTDPART_OFS_APPEND, + .mask_flags = 0, + } +}; + #else #error "SPC300 MTD flash mapping not defined !" #endif /* CONFIG_MTD_SPC300_MAP_SMALL */ -- cgit v1.2.3