comparison src/cs/drivers/drv_app/ffs/board/dev.c @ 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 63cedcedea87
comparison
equal deleted inserted replaced
475:3860b9e50692 476:43853399dbee
475 #else 475 #else
476 { &flash_8x8[0], (char *) 0x1F0000, MANUFACT_INTEL, 0x88C2, 476 { &flash_8x8[0], (char *) 0x1F0000, MANUFACT_INTEL, 0x88C2,
477 FFS_DRIVER_INTEL_SB, 8 }, 477 FFS_DRIVER_INTEL_SB, 8 },
478 #endif 478 #endif
479 479
480 /*
481 * A user in the field found that some Mot C11x phones have 2 MiB
482 * of flash, but use some different flash chip, not our familiar
483 * 28F160C3-T. This chip reports manufacturer ID 0x20 and device
484 * ID 0x88CE, but the CFI structure lists the same sector geometry
485 * as our familiar 28F160C3-T. Let's treat this mystery flash chip
486 * as equivalent to our familiar one.
487 */
488 { &flash_16x64[0], (char *) 0x1C0000, 0x20, 0x88CE,
489 FFS_DRIVER_INTEL_SB, 3 },
490
480 // Intel 28F160C3-B, 16Mb. Using top-most 6x64kB sectors 491 // Intel 28F160C3-B, 16Mb. Using top-most 6x64kB sectors
481 { &flash_16x64[0], (char *) 0x1A0000, MANUFACT_INTEL, 0x88C3, 492 { &flash_16x64[0], (char *) 0x1A0000, MANUFACT_INTEL, 0x88C3,
482 FFS_DRIVER_INTEL_SB, 6 }, 493 FFS_DRIVER_INTEL_SB, 6 },
483 494
484 // Intel 28F320C3-T, 32Mb. Using top-most 8x8kB (parameter) sectors. 495 // Intel 28F320C3-T, 32Mb. Using top-most 8x8kB (parameter) sectors.