summaryrefslogtreecommitdiffstats
path: root/flashchips.c
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2012-05-14 01:51:46 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2012-05-14 01:51:46 +0000
commit2cef9164ef1e35e4d1f347ff58722104e8143454 (patch)
tree90325b6ee425c280bd668ee82b009f5b6c6d55c9 /flashchips.c
parent0b9df97a84ce79217623e2bb32cf86458cdbb043 (diff)
downloadast2050-flashrom-2cef9164ef1e35e4d1f347ff58722104e8143454.zip
ast2050-flashrom-2cef9164ef1e35e4d1f347ff58722104e8143454.tar.gz
Add support for Eon EN25QH32
Its ID was spotted in an descriptor region update by Jetway: http://paste.flashrom.org/view.php?id=1217 Corresponding to flashrom svn r1535. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'flashchips.c')
-rw-r--r--flashchips.c38
1 files changed, 37 insertions, 1 deletions
diff --git a/flashchips.c b/flashchips.c
index b48552c..4736713 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -3565,7 +3565,43 @@ const struct flashchip flashchips[] = {
.unlock = spi_disable_blockprotect,
.write = spi_chip_write_256,
.read = spi_chip_read,
- .voltage = {2700, 3600},
+ .voltage = {2700, 3600},
+ },
+
+ {
+ .vendor = "Eon",
+ .name = "EN25QH32",
+ .bustype = BUS_SPI,
+ .manufacture_id = EON_ID_NOPREFIX,
+ .model_id = EON_EN25QH32,
+ .total_size = 4096,
+ .page_size = 256,
+ /* supports SFDP */
+ /* OTP: 512B total; enter 0x3A */
+ .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
+ .tested = TEST_UNTESTED,
+ .probe = probe_spi_rdid,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { {4 * 1024, 1024} },
+ .block_erase = spi_block_erase_20,
+ }, {
+ .eraseblocks = { {64 * 1024, 64} },
+ .block_erase = spi_block_erase_d8,
+ }, {
+ .eraseblocks = { {1024 * 4096, 1} },
+ .block_erase = spi_block_erase_60,
+ }, {
+ .eraseblocks = { {1024 * 4096, 1} },
+ .block_erase = spi_block_erase_c7,
+ }
+ },
+ .unlock = spi_disable_blockprotect,
+ .write = spi_chip_write_256,
+ .read = spi_chip_read,
+ .voltage = {2700, 3600},
},
{
OpenPOWER on IntegriCloud