mtd/drivers/mtd/maps arctic-mtd.c,1.8,1.9
trini at infradead.org
trini at infradead.org
Mon Jun 2 12:06:57 EDT 2003
Update of /home/cvs/mtd/drivers/mtd/maps
In directory phoenix.infradead.org:/tmp/cvs-serv22420
Modified Files:
arctic-mtd.c
Log Message:
Rearrange Arctic flash map for XIP compatibility.
>From Todd Poynor <tpoynor at mvista.com>
Index: arctic-mtd.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/arctic-mtd.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- arctic-mtd.c 21 May 2003 12:45:17 -0000 1.8
+++ arctic-mtd.c 2 Jun 2003 16:06:54 -0000 1.9
@@ -45,18 +45,23 @@
#include <asm/ibm4xx.h>
/*
- * fe000000 -- ff9fffff Arctic FFS (26MB)
- * ffa00000 -- fff5ffff kernel (5.504MB)
- * fff60000 -- ffffffff firmware (640KB)
+ * 0 : 0xFE00 0000 - 0xFEFF FFFF : Filesystem 1 (16MB)
+ * 1 : 0xFF00 0000 - 0xFF4F FFFF : kernel (5.12MB)
+ * 2 : 0xFF50 0000 - 0xFFF5 FFFF : Filesystem 2 (10.624MB) (if non-XIP)
+ * 3 : 0xFFF6 0000 - 0xFFFF FFFF : PIBS Firmware (640KB)
*/
-#define ARCTIC_FFS_SIZE 0x01a00000 /* 26 M */
-#define ARCTIC_FIRMWARE_SIZE 0x000a0000 /* 640K */
+#define FFS1_SIZE 0x01000000 /* 16MB */
+#define KERNEL_SIZE 0x00500000 /* 5.12MB */
+#define FFS2_SIZE 0x00a60000 /* 10.624MB */
+#define FIRMWARE_SIZE 0x000a0000 /* 640K */
-#define NAME "Arctic Linux Flash"
-#define PADDR SUBZERO_BOOTFLASH_PADDR
-#define SIZE SUBZERO_BOOTFLASH_SIZE
-#define BUSWIDTH 2
+
+#define NAME "Arctic Linux Flash"
+#define PADDR SUBZERO_BOOTFLASH_PADDR
+#define BUSWIDTH 2
+#define SIZE SUBZERO_BOOTFLASH_SIZE
+#define PARTITIONS 4
/* Flash memories on these boards are memory resources, accessed big-endian. */
@@ -73,17 +78,19 @@
static struct mtd_info *arctic_mtd;
-static struct mtd_partition arctic_partitions[3] = {
- { .name = "Arctic FFS",
- .size = ARCTIC_FFS_SIZE,
+static struct mtd_partition arctic_partitions[PARTITIONS] = {
+ { .name = "Filesystem",
+ .size = FFS1_SIZE,
.offset = 0,},
- { .name = "Kernel",
- .size = SUBZERO_BOOTFLASH_SIZE - ARCTIC_FFS_SIZE -
- ARCTIC_FIRMWARE_SIZE,
- .offset = ARCTIC_FFS_SIZE,},
+ { .name = "Kernel",
+ .size = KERNEL_SIZE,
+ .offset = FFS1_SIZE,},
+ { .name = "Filesystem",
+ .size = FFS2_SIZE,
+ .offset = FFS1_SIZE + KERNEL_SIZE,},
{ .name = "Firmware",
- .size = ARCTIC_FIRMWARE_SIZE,
- .offset = SUBZERO_BOOTFLASH_SIZE - ARCTIC_FIRMWARE_SIZE,},
+ .size = FIRMWARE_SIZE,
+ .offset = SUBZERO_BOOTFLASH_SIZE - FIRMWARE_SIZE,},
};
static int __init
@@ -107,7 +114,7 @@
arctic_mtd->owner = THIS_MODULE;
- return add_mtd_partitions(arctic_mtd, arctic_partitions, 3);
+ return add_mtd_partitions(arctic_mtd, arctic_partitions, PARTITIONS);
}
static void __exit
More information about the linux-mtd-cvs
mailing list