summaryrefslogtreecommitdiff
path: root/flashchips.c
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2014-05-14 13:19:50 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2014-05-14 13:19:50 +0000
commit53ef6fc7651d59982f002da746d66db965d7eddc (patch)
tree06313b45843d186697c32fcd559b29c09329ab7b /flashchips.c
parentaecfe99172b9e49d9ce03b049946e16fc9f79ae3 (diff)
downloadflashrom-53ef6fc7651d59982f002da746d66db965d7eddc.tar.gz
Add support for Sanyo LE25FU406B.
It is very similar to LE25FW418A, except for HD_READ support (that is not implemented in flashrom anyway yet) and allowed voltage range. Probing, erasing, reading and writing has been tested. This chip is found on Seagate Constellation hard drives. Signed-off-by: Jurij Munda <jurij.munda@uni-mb.si> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1791 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'flashchips.c')
-rw-r--r--flashchips.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/flashchips.c b/flashchips.c
index 8059374..f2f0446 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -9040,6 +9040,37 @@ const struct flashchip flashchips[] = {
{
.vendor = "Sanyo",
+ .name = "LE25FU406B",
+ .bustype = BUS_SPI,
+ .manufacture_id = SANYO_ID,
+ .model_id = SANYO_LE25FU406B,
+ .total_size = 512,
+ .page_size = 256,
+ .feature_bits = FEATURE_WRSR_WREN,
+ .tested = TEST_OK_PREW,
+ .probe = probe_spi_res2,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers = {
+ {
+ .eraseblocks = { {4 * 1024, 128} },
+ .block_erase = spi_block_erase_d7,
+ }, {
+ .eraseblocks = { {64 * 1024, 8} },
+ .block_erase = spi_block_erase_d8,
+ }, {
+ .eraseblocks = { {512 * 1024, 1} },
+ .block_erase = spi_block_erase_c7,
+ }
+ },
+ .printlock = spi_prettyprint_status_register_default_bp2,
+ .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
+ .write = spi_chip_write_256,
+ .read = spi_chip_read,
+ .voltage = {2300, 3600},
+ },
+
+ {
+ .vendor = "Sanyo",
.name = "LE25FW203A",
.bustype = BUS_SPI,
.manufacture_id = SANYO_ID,