diff chipsetsw/drivers/drv_app/ffs/board/dev.c @ 27:176f5b1bc360

first round of changes for the Pirelli
author Space Falcon <falcon@ivan.Harhan.ORG>
date Tue, 08 Sep 2015 01:16:54 +0000
parents 509db1a7b7b8
children ecf935c93cd8
line wrap: on
line diff
--- a/chipsetsw/drivers/drv_app/ffs/board/dev.c	Mon Sep 07 19:26:24 2015 +0000
+++ b/chipsetsw/drivers/drv_app/ffs/board/dev.c	Tue Sep 08 01:16:54 2015 +0000
@@ -88,6 +88,42 @@
 // Note that does NOT support a flash definition with different sized blocks
 // so all blocks contained in the device definition MUST be the same size!
 
+// 256 KiB sectors
+static const struct block_info_s flash_32x256[] =
+{
+  { 0x000000, 18 },
+  { 0x040000, 18 },
+  { 0x080000, 18 },
+  { 0x0C0000, 18 },
+  { 0x100000, 18 },
+  { 0x140000, 18 },
+  { 0x180000, 18 },
+  { 0x1C0000, 18 },
+  { 0x200000, 18 },
+  { 0x240000, 18 },
+  { 0x280000, 18 },
+  { 0x2C0000, 18 },
+  { 0x300000, 18 },
+  { 0x340000, 18 },
+  { 0x380000, 18 },
+  { 0x3C0000, 18 },
+  { 0x400000, 18 },
+  { 0x440000, 18 },
+  { 0x480000, 18 },
+  { 0x4C0000, 18 },
+  { 0x500000, 18 },
+  { 0x540000, 18 },
+  { 0x580000, 18 },
+  { 0x5C0000, 18 },
+  { 0x600000, 18 },
+  { 0x640000, 18 },
+  { 0x680000, 18 },
+  { 0x6C0000, 18 },
+  { 0x700000, 18 },
+  { 0x740000, 18 },
+  { 0x780000, 18 },
+  { 0x7C0000, 18 }
+};
 
 // 128x64kb
 static const struct block_info_s flash_128x64[] =
@@ -316,10 +352,11 @@
 
     /********** AMD Devices ***********************************************/
 
-	// AMD Am29DL640F. Ignoring the 8kB sectors
+    // Spansion S71PL129NC0 used in Pirelli DP-L10
     // Multi-id device: 0x227E, 0x2221, 0x2200. Converted to 0x2100
-    { &flash_16x64[0], (char *) 0x01800000, MANUFACT_AMD,     0x2100,
-      FFS_DRIVER_AMD,  15 },
+    // This is an aftermarket FFS config for the Pirelli target
+    { &flash_32x256[0], (char *) 0x02480000, MANUFACT_AMD,     0x2100,
+      FFS_DRIVER_AMD,  6 },
 
 	// AMD Am29DL640G. Ignoring the 8kB sectors
     // Multi-id device: 0x227E, 0x2202, 0x2201. Converted to 0x0201