summaryrefslogtreecommitdiffstats
path: root/flashchips.c
diff options
context:
space:
mode:
authorDavid Borg <borg.db@gmail.com>2012-04-15 13:16:32 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2012-04-15 13:16:32 +0000
commitf5a30f65ad6d50706d3d92010c9d7e5b3c0782d0 (patch)
tree815a620645ca472bccc630476073106250f8ff2e /flashchips.c
parent47eff6b5b4e924627583f45f9b321119899a589c (diff)
downloadflashrom-f5a30f65ad6d50706d3d92010c9d7e5b3c0782d0.tar.gz
flashrom-f5a30f65ad6d50706d3d92010c9d7e5b3c0782d0.tar.bz2
flashrom-f5a30f65ad6d50706d3d92010c9d7e5b3c0782d0.zip
Add support for for the Atmel AT49F040 chip
Chip features an optional permanent boot block write protection. Corresponding to flashrom svn r1522. Signed-off-by: David Borg <borg.db@gmail.com> Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'flashchips.c')
-rw-r--r--flashchips.c78
1 files changed, 58 insertions, 20 deletions
diff --git a/flashchips.c b/flashchips.c
index 6d997be99..09daa0a77 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -2226,19 +2226,27 @@ const struct flashchip flashchips[] = {
{
.vendor = "Atmel",
- .name = "AT49F020",
+ .name = "AT49F002(N)",
.bustype = BUS_PARALLEL,
.manufacture_id = ATMEL_ID,
- .model_id = ATMEL_AT49F020,
+ .model_id = ATMEL_AT49F002N,
.total_size = 256,
.page_size = 256,
.feature_bits = FEATURE_EITHER_RESET,
- .tested = TEST_OK_PRE,
+ .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},
+ {96 * 1024, 1},
+ {128 * 1024, 1},
+ },
+ .block_erase = erase_sector_jedec,
+ }, {
.eraseblocks = { {256 * 1024, 1} },
.block_erase = erase_chip_block_jedec,
}
@@ -2250,24 +2258,24 @@ const struct flashchip flashchips[] = {
{
.vendor = "Atmel",
- .name = "AT49F002(N)",
+ .name = "AT49F002(N)T",
.bustype = BUS_PARALLEL,
.manufacture_id = ATMEL_ID,
- .model_id = ATMEL_AT49F002N,
+ .model_id = ATMEL_AT49F002NT,
.total_size = 256,
.page_size = 256,
.feature_bits = FEATURE_EITHER_RESET,
- .tested = TEST_UNTESTED,
+ .tested = TEST_OK_PR,
.probe = probe_jedec,
.probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
.block_erasers =
{
{
.eraseblocks = {
- {16 * 1024, 1},
- {8 * 1024, 2},
- {96 * 1024, 1},
{128 * 1024, 1},
+ {96 * 1024, 1},
+ {8 * 1024, 2},
+ {16 * 1024, 1},
},
.block_erase = erase_sector_jedec,
}, {
@@ -2282,31 +2290,61 @@ const struct flashchip flashchips[] = {
{
.vendor = "Atmel",
- .name = "AT49F002(N)T",
+ .name = "AT49F020",
.bustype = BUS_PARALLEL,
.manufacture_id = ATMEL_ID,
- .model_id = ATMEL_AT49F002NT,
+ .model_id = ATMEL_AT49F020,
.total_size = 256,
.page_size = 256,
.feature_bits = FEATURE_EITHER_RESET,
- .tested = TEST_OK_PR,
+ .tested = TEST_OK_PRE,
.probe = probe_jedec,
.probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
.block_erasers =
{
{
- .eraseblocks = {
- {128 * 1024, 1},
- {96 * 1024, 1},
- {8 * 1024, 2},
- {16 * 1024, 1},
- },
- .block_erase = erase_sector_jedec,
- }, {
.eraseblocks = { {256 * 1024, 1} },
.block_erase = erase_chip_block_jedec,
}
+ /* Chip features an optional permanent write protection
+ * of the first 8 kB. The erase function is the same as
+ * above, but 00000H to 01FFFH will not be erased.
+ * FIXME: add another eraser when partial erasers are
+ * supported.
+ */
+ },
+ .printlock = printlock_at49f,
+ .write = write_jedec_1,
+ .read = read_memmapped,
+ .voltage = {4500, 5500},
+ },
+
+ {
+ .vendor = "Atmel",
+ .name = "AT49F040",
+ .bustype = BUS_PARALLEL,
+ .manufacture_id = ATMEL_ID,
+ .model_id = ATMEL_AT49F040,
+ .total_size = 512,
+ .page_size = 512,
+ .feature_bits = FEATURE_EITHER_RESET,
+ .tested = TEST_UNTESTED,
+ .probe = probe_jedec,
+ .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { {512 * 1024, 1} },
+ .block_erase = erase_chip_block_jedec,
+ }
+ /* Chip features an optional permanent write protection
+ * of the first 16 kB. The erase function is the same as
+ * above, but 00000H to 03FFFH will not be erased.
+ * FIXME: add another eraser when partial erasers are
+ * supported.
+ */
},
+ .printlock = printlock_at49f,
.write = write_jedec_1,
.read = read_memmapped,
.voltage = {4500, 5500},