changeset 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 f2fa3f590209
children d7740787396c
files src/cs/drivers/drv_app/ffs/board/dev.c
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
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,