changeset 476:43853399dbee

FFS: support different flash chip found on some Mot C11x phones
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 30 Mar 2018 15:40:40 +0000
parents 3860b9e50692
children f65a4399093d
files src/cs/drivers/drv_app/ffs/board/dev.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/ffs/board/dev.c	Fri Mar 30 06:39:13 2018 +0000
+++ b/src/cs/drivers/drv_app/ffs/board/dev.c	Fri Mar 30 15:40:40 2018 +0000
@@ -477,6 +477,17 @@
       FFS_DRIVER_INTEL_SB,  8 },
 #endif
 
+    /*
+     * A user in the field found that some Mot C11x phones have 2 MiB
+     * of flash, but use some different flash chip, not our familiar
+     * 28F160C3-T.  This chip reports manufacturer ID 0x20 and device
+     * ID 0x88CE, but the CFI structure lists the same sector geometry
+     * as our familiar 28F160C3-T.  Let's treat this mystery flash chip
+     * as equivalent to our familiar one.
+     */
+    { &flash_16x64[0], (char *) 0x1C0000,           0x20,   0x88CE,
+      FFS_DRIVER_INTEL_SB,  3 },
+
     // Intel 28F160C3-B, 16Mb. Using top-most 6x64kB sectors
     { &flash_16x64[0], (char *) 0x1A0000, MANUFACT_INTEL,   0x88C3,
       FFS_DRIVER_INTEL_SB,  6 },