diff src/cs/drivers/drv_app/ffs/board/dev.c @ 23:3ca9a198c6ee

support new FC Tourmaline C139 aftermarket FFS config
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 18 Oct 2020 02:34:21 +0000
parents 92470e5d0b9e
children 680f6fdb5e62
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/ffs/board/dev.c	Fri May 22 18:26:16 2020 +0000
+++ b/src/cs/drivers/drv_app/ffs/board/dev.c	Sun Oct 18 02:34:21 2020 +0000
@@ -442,6 +442,19 @@
     { &flash_16x64[0], (char *) 0x1C0000,           0x20,   0x88CE,
       FFS_DRIVER_INTEL_SB,  3 },
 
+#ifdef NEW_C139_FFS_CONFIG
+
+    // Intel 28F320C3-T, 32Mb. Using top-most 8x8kB (parameter) sectors.
+    // Changed for C139 aftermarket FFS config: 64x7 at 0x300000
+    { &flash_16x64[0], (char *) 0x300000, MANUFACT_INTEL,   0x88C4,
+      FFS_DRIVER_INTEL_SB,  7 },
+
+    /* ST equivalent of 28F320C3T found in some Mot C139 phones */
+    { &flash_16x64[0], (char *) 0x300000,           0x20,   0x88BA,
+      FFS_DRIVER_INTEL_SB,  7 },
+
+#else
+
     // Intel 28F320C3-T, 32Mb. Using top-most 8x8kB (parameter) sectors.
     // Changed for C139 aftermarket FFS config: 64x3 at 0x3C0000
     { &flash_16x64[0], (char *) 0x3C0000, MANUFACT_INTEL,   0x88C4,
@@ -451,6 +464,8 @@
     { &flash_16x64[0], (char *) 0x3C0000,           0x20,   0x88BA,
       FFS_DRIVER_INTEL_SB,  3 },
 
+#endif
+
     // Intel 28F640C3-B, 64Mb. Using top-most 16x64kB sectors
     // Changed for C155 aftermarket FFS config: 64x13 at 0x700000
     { &flash_16x64[0], (char *) 0x700000, MANUFACT_INTEL,   0x88CD,