aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Borg <borg.db@gmail.com>2010-06-21 16:12:22 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-06-21 16:12:22 +0000
commitc96a8bd458a985fdc2ffe299482dfb353728dbd1 (patch)
treeda6fb8611db0d6d7ba4e296c7a538f6a628f05e4
parent7f9922dcd746b5122ce82784d98c5c38b80af87a (diff)
downloadflashrom-c96a8bd458a985fdc2ffe299482dfb353728dbd1.tar.gz
flashrom-c96a8bd458a985fdc2ffe299482dfb353728dbd1.tar.bz2
flashrom-c96a8bd458a985fdc2ffe299482dfb353728dbd1.zip
Add support for Hyundai HY29F002 and HY29F002B
Corresponding to flashrom svn r1056. Signed-off-by: David Borg <borg.db@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
-rw-r--r--flashchips.c62
-rw-r--r--flashchips.h3
2 files changed, 64 insertions, 1 deletions
diff --git a/flashchips.c b/flashchips.c
index b324feb0..6431e799 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -2363,6 +2363,68 @@ struct flashchip flashchips[] = {
},
{
+ .vendor = "Hyundai",
+ .name = "HY29F002T",
+ .bustype = CHIP_BUSTYPE_PARALLEL,
+ .manufacture_id = HYUNDAI_ID,
+ .model_id = HY_29F002T,
+ .total_size = 256,
+ .page_size = 256 * 1024,
+ .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
+ .tested = TEST_OK_PREW,
+ .probe = probe_jedec,
+ .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
+ .block_erasers =
+ {
+ {
+ .eraseblocks = {
+ {64 * 1024, 3},
+ {32 * 1024, 1},
+ {8 * 1024, 2},
+ {16 * 1024, 1},
+ },
+ .block_erase = erase_sector_jedec,
+ }, {
+ .eraseblocks = { {256 * 1024, 1} },
+ .block_erase = erase_chip_block_jedec,
+ },
+ },
+ .write = write_jedec_1,
+ .read = read_memmapped,
+ },
+
+ {
+ .vendor = "Hyundai",
+ .name = "HY29F002B",
+ .bustype = CHIP_BUSTYPE_PARALLEL,
+ .manufacture_id = HYUNDAI_ID,
+ .model_id = HY_29F002B,
+ .total_size = 256,
+ .page_size = 256 * 1024,
+ .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
+ .tested = TEST_UNTESTED,
+ .probe = probe_jedec,
+ .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
+ .block_erasers =
+ {
+ {
+ .eraseblocks = {
+ {16 * 1024, 1},
+ {8 * 1024, 2},
+ {32 * 1024, 1},
+ {64 * 1024, 3},
+ },
+ .block_erase = erase_sector_jedec,
+ }, {
+ .eraseblocks = { {256 * 1024, 1} },
+ .block_erase = erase_chip_block_jedec,
+ },
+ },
+ .write = write_jedec_1,
+ .read = read_memmapped,
+ },
+
+ {
.vendor = "Intel",
.name = "28F001BX-B",
.bustype = CHIP_BUSTYPE_PARALLEL,
diff --git a/flashchips.h b/flashchips.h
index 9bcf6232..6edb5b36 100644
--- a/flashchips.h
+++ b/flashchips.h
@@ -242,7 +242,8 @@
#define HY_29LV800B 0x5B
#define HY_29F040A 0xA4
#define HY_29F400B 0xAB /* Same as HY_29F400AB */
-#define HY_29F002 0xB0
+#define HY_29F002B 0x34
+#define HY_29F002T 0xB0
#define HY_29LV400T 0xB9
#define HY_29LV400B 0xBA
#define HY_29F080 0xD5