mtd/drivers/mtd/maps sa1100-flash.c,1.36,1.37
Russell King
rmk at infradead.org
Thu Jan 22 14:09:28 EST 2004
Update of /home/cvs/mtd/drivers/mtd/maps
In directory phoenix.infradead.org:/tmp/cvs-serv14568
Modified Files:
sa1100-flash.c
Log Message:
[ARM PATCH] 1744/1 - SA Cerfboard/cube update (flash)
Patch from Frank Becker.
Minor updates to cerf flash partitioning.
Index: sa1100-flash.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/sa1100-flash.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- sa1100-flash.c 29 May 2003 08:59:35 -0000 1.36
+++ sa1100-flash.c 22 Jan 2004 19:09:25 -0000 1.37
@@ -154,50 +154,34 @@
#ifdef CONFIG_SA1100_CERF
#ifdef CONFIG_SA1100_CERF_FLASH_32MB
-static struct mtd_partition cerf_partitions[] = {
- {
- .name = "firmware",
- .size = 0x00040000,
- .offset = 0,
- }, {
- .name = "params",
- .size = 0x00040000,
- .offset = 0x00040000,
- }, {
- .name = "kernel",
- .size = 0x00100000,
- .offset = 0x00080000,
- }, {
- .name = "rootdisk",
- .size = 0x01E80000,
- .offset = 0x00180000,
- }
-};
+# define CERF_FLASH_SIZE 0x02000000
#elif defined CONFIG_SA1100_CERF_FLASH_16MB
+# define CERF_FLASH_SIZE 0x01000000
+#elif defined CONFIG_SA1100_CERF_FLASH_8MB
+# define CERF_FLASH_SIZE 0x00800000
+#else
+# error "Undefined flash size for CERF in sa1100-flash.c"
+#endif
+
static struct mtd_partition cerf_partitions[] = {
{
- .name = "firmware",
+ .name = "Bootloader",
.size = 0x00020000,
- .offset = 0,
+ .offset = 0x00000000,
}, {
- .name = "params",
- .size = 0x00020000,
+ .name = "Params",
+ .size = 0x00040000,
.offset = 0x00020000,
}, {
- .name = "kernel",
+ .name = "Kernel",
.size = 0x00100000,
- .offset = 0x00040000,
+ .offset = 0x00060000,
}, {
- .name = "rootdisk",
- .size = 0x00EC0000,
- .offset = 0x00140000,
+ .name = "Filesystem",
+ .size = CERF_FLASH_SIZE-0x00160000,
+ .offset = 0x00160000,
}
};
-#elif defined CONFIG_SA1100_CERF_FLASH_8MB
-# error "Unwritten type definition"
-#else
-# error "Undefined memory orientation for CERF in sa1100-flash.c"
-#endif
#endif
#ifdef CONFIG_SA1100_CONSUS
More information about the linux-mtd-cvs
mailing list