Author: cmjones
Date: 2010-03-10 14:53:34 +0000 (Wed, 10 Mar 2010)
New Revision: 1013
Modified:
balloon/branches/novlio/bootldr/btflash.c
Log:
Added support for M29W640G NOR Flash chip on M3 build boards
Modified: balloon/branches/novlio/bootldr/btflash.c
===================================================================
--- balloon/branches/novlio/bootldr/btflash.c 2010-03-08 15:09:56 UTC (rev 1012)
+++ balloon/branches/novlio/bootldr/btflash.c 2010-03-10 14:53:34 UTC (rev 1013)
@@ -343,7 +343,32 @@
#endif
};
+// M29W640G has the same sector and partition layout as 29LV650
+static struct FlashDescriptor flashDescriptor_S29GL064A_1x16= {
+ "M29W640G_1x16",
+ 0x20, 0x227e,
+ &amdFlashAlgorithm_1x16,
+ sizeof(flashSectors_MBM29LV650UE_1x16)/sizeof(dword) - 1, flashSectors_MBM29LV650UE_1x16,
+ { "bootldr", 0x00000000, BOOTLDR_SIZE, LFR_BOOTLDR },
+#if defined(CONFIG_MACH_BALLOON) && defined(CONFIG_PXA)
+#if defined(CONFIG_BALLOON_FPGA)
+#define FPGA_IMAGE_SIZE 0x100000L
+ { "fpga", FPGA_IMAGE_ADDRESS, FPGA_IMAGE_SIZE, 0 },
#else
+#define FPGA__IMAGE_ADDRESS BOOTLDR_SIZE
+#define FPGA_IMAGE_SIZE 0
+#endif
+ { "kernel", FPGA_IMAGE_ADDRESS+FPGA_IMAGE_SIZE, BOOT_SIZE, 0 },
+#endif
+#if defined(CONFIG_NAND) && defined(CONFIG_YAFFS_BOOTLDR)
+ { "boot", 0x00000000, BOOT_SIZE, LFR_NAND | LFR_NAND_YAFFS },
+ { "root", BOOT_SIZE, NAND_SIZE-BOOT_SIZE, LFR_NAND | LFR_NAND_YAFFS }
+#else
+// { "boot", BOOTLDR_SIZE, BOOT_SIZE, 0 },
+ { "root", BOOTLDR_SIZE+BOOT_SIZE, 0, 0 }
+#endif
+};
+#else
static struct FlashDescriptor flashDescriptor_Am29LV160BB = {
"Am29LV160BB",
bothbanks(1), bothbanks(0x2249),