summaryrefslogtreecommitdiff
path: root/cleopatre/linux-2.6.25.10-spc300
diff options
context:
space:
mode:
Diffstat (limited to 'cleopatre/linux-2.6.25.10-spc300')
-rw-r--r--cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/board-scr310.c56
-rw-r--r--cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/board-spr300.c56
2 files changed, 112 insertions, 0 deletions
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 */