Commit 6559a82a authored by Holger Freyther's avatar Holger Freyther Committed by Russell King

[ARM PATCH] 1653/1: Simpad Flash Partition resubmit

Patch from Holger Freyther

This the the resubmit of the flash partition changes for SIMpad.



Two versions one for cramfs one for all jffs2 and also the SIM has two banks instead of one even if they're next to each other...
parent 50dea66b
...@@ -654,28 +654,21 @@ static struct mtd_partition simpad_partitions[] = { ...@@ -654,28 +654,21 @@ static struct mtd_partition simpad_partitions[] = {
}, { }, {
.name = "SIMpad kernel", .name = "SIMpad kernel",
.size = 0x00100000, .size = 0x00100000,
.offset = 0x00080000, .offset = MTDPART_OFS_APPEND,
}, {
#ifdef CONFIG_JFFS2_FS
.name = "SIMpad root jffs2",
.size = MTDPART_SIZ_FULL,
.offset = 0x00180000,
#else
.name = "SIMpad initrd",
.size = 0x00300000,
.offset = 0x00180000,
}, { }, {
#ifdef CONFIG_ROOT_CRAMFS
.name = "SIMpad root cramfs", .name = "SIMpad root cramfs",
.size = 0x00300000, .size =0x00D80000,
.offset = 0x00480000, .offset = MTDPART_OFS_APPEND
}, {
.name = "SIMpad usr cramfs",
.size = 0x005c0000,
.offset = 0x00780000,
}, { }, {
.name = "SIMpad usr local", .name = "SIMpad local jffs2",
.size = MTDPART_SIZ_FULL,
.offset = MTDPART_OFS_APPEND
#else
.name = "SIMpad root jffs2",
.size = MTDPART_SIZ_FULL, .size = MTDPART_SIZ_FULL,
.offset = 0x00d40000, .offset = MTDPART_OFS_APPEND
#endif #endif
} }
}; };
...@@ -1244,8 +1237,10 @@ static int __init sa1100_locate_flash(void) ...@@ -1244,8 +1237,10 @@ static int __init sa1100_locate_flash(void)
} }
if (machine_is_simpad()) { if (machine_is_simpad()) {
info[0].base = SA1100_CS0_PHYS; info[0].base = SA1100_CS0_PHYS;
info[0].size = SZ_32M; info[0].size = SZ_16M;
nr = 1; info[1].base = SA1100_CS1_PHYS;
info[1].size = SZ_16M;
nr = 2;
} }
if (machine_is_stork()) { if (machine_is_stork()) {
info[0].base = SA1100_CS0_PHYS; info[0].base = SA1100_CS0_PHYS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment