Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 1 | /* |
Uwe Hermann | d110764 | 2007-08-29 17:52:32 +0000 | [diff] [blame] | 2 | * This file is part of the flashrom project. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 3 | * |
Uwe Hermann | d22a1d4 | 2007-09-09 20:21:05 +0000 | [diff] [blame] | 4 | * Copyright (C) 2000 Silicon Integrated System Corporation |
| 5 | * Copyright (C) 2004 Tyan Corp |
Stefan Reinauer | 4c390c8 | 2008-07-02 13:33:09 +0000 | [diff] [blame] | 6 | * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org> |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 7 | * Copyright (C) 2006-2009 Carl-Daniel Hailfinger |
Sean Nelson | c57a920 | 2010-01-04 17:15:23 +0000 | [diff] [blame] | 8 | * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com> |
Uwe Hermann | d110764 | 2007-08-29 17:52:32 +0000 | [diff] [blame] | 9 | * |
Stefan Reinauer | ce53297 | 2007-05-23 17:20:56 +0000 | [diff] [blame] | 10 | * This program is free software; you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License as published by |
| 12 | * the Free Software Foundation; either version 2 of the License, or |
| 13 | * (at your option) any later version. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 14 | * |
Stefan Reinauer | ce53297 | 2007-05-23 17:20:56 +0000 | [diff] [blame] | 15 | * This program is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU General Public License for more details. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 19 | * |
Stefan Reinauer | ce53297 | 2007-05-23 17:20:56 +0000 | [diff] [blame] | 20 | * You should have received a copy of the GNU General Public License |
| 21 | * along with this program; if not, write to the Free Software |
Uwe Hermann | d110764 | 2007-08-29 17:52:32 +0000 | [diff] [blame] | 22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 23 | */ |
| 24 | |
| 25 | #include "flash.h" |
Carl-Daniel Hailfinger | 0845464 | 2009-06-15 14:14:48 +0000 | [diff] [blame] | 26 | #include "flashchips.h" |
Sean Nelson | 14ba668 | 2010-02-26 05:48:29 +0000 | [diff] [blame] | 27 | #include "chipdrivers.h" |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 28 | |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 29 | /** |
Uwe Hermann | a972040 | 2009-05-21 15:55:46 +0000 | [diff] [blame] | 30 | * List of supported flash chips. |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 31 | * |
| 32 | * Please keep the list sorted by vendor name and chip name, so that |
| 33 | * the output of 'flashrom -L' is alphabetically sorted. |
| 34 | */ |
Carl-Daniel Hailfinger | 4c82318 | 2011-05-04 00:39:50 +0000 | [diff] [blame] | 35 | const struct flashchip flashchips[] = { |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 36 | |
Carl-Daniel Hailfinger | 21eedec | 2009-07-23 12:42:01 +0000 | [diff] [blame] | 37 | /* |
| 38 | * .vendor = Vendor name |
| 39 | * .name = Chip name |
| 40 | * .bustype = Supported flash bus types (Parallel, LPC...) |
| 41 | * .manufacture_id = Manufacturer chip ID |
| 42 | * .model_id = Model chip ID |
| 43 | * .total_size = Total size in (binary) kbytes |
| 44 | * .page_size = Page or eraseblock(?) size in bytes |
| 45 | * .tested = Test status |
| 46 | * .probe = Probe function |
| 47 | * .probe_timing = Probe function delay |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 48 | * .block_erasers[] = Array of erase layouts and erase functions |
| 49 | * { |
| 50 | * .eraseblocks[] = Array of { blocksize, blockcount } |
| 51 | * .block_erase = Block erase function |
| 52 | * } |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 53 | * .printlock = Chip lock status function |
| 54 | * .unlock = Chip unlock function |
Carl-Daniel Hailfinger | 21eedec | 2009-07-23 12:42:01 +0000 | [diff] [blame] | 55 | * .write = Chip write function |
| 56 | * .read = Chip read function |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 57 | * .voltage = Voltage range in millivolt |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 58 | */ |
| 59 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 60 | { |
| 61 | .vendor = "AMD", |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 62 | .name = "Am29F010A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 63 | .bustype = BUS_PARALLEL, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 64 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 65 | .model_id = AMD_AM29F010B, /* Same as Am29F010A */ |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 66 | .total_size = 128, |
| 67 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 68 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 69 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 70 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 71 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 72 | .block_erasers = |
| 73 | { |
| 74 | { |
| 75 | .eraseblocks = { {16 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 76 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 77 | }, { |
| 78 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 79 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 80 | }, |
| 81 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 82 | .write = write_jedec_1, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 83 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 84 | .voltage = {4500, 5500}, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 85 | }, |
| 86 | |
| 87 | { |
| 88 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 89 | .name = "Am29F002(N)BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 90 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 91 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 92 | .model_id = AMD_AM29F002BB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 93 | .total_size = 256, |
| 94 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 95 | .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 96 | .tested = TEST_UNTESTED, |
| 97 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 98 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 99 | .block_erasers = |
| 100 | { |
| 101 | { |
| 102 | .eraseblocks = { |
| 103 | {16 * 1024, 1}, |
| 104 | {8 * 1024, 2}, |
| 105 | {32 * 1024, 1}, |
| 106 | {64 * 1024, 3}, |
| 107 | }, |
| 108 | .block_erase = erase_sector_jedec, |
| 109 | }, { |
| 110 | .eraseblocks = { {256 * 1024, 1} }, |
| 111 | .block_erase = erase_chip_block_jedec, |
| 112 | }, |
| 113 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 114 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 115 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 116 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 117 | }, |
| 118 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 119 | { |
| 120 | .vendor = "AMD", |
| 121 | .name = "Am29F002(N)BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 122 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 123 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 124 | .model_id = AMD_AM29F002BT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 125 | .total_size = 256, |
| 126 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 127 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA, |
| 128 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 129 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 130 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 131 | .block_erasers = |
| 132 | { |
| 133 | { |
| 134 | .eraseblocks = { |
| 135 | {64 * 1024, 3}, |
| 136 | {32 * 1024, 1}, |
| 137 | {8 * 1024, 2}, |
| 138 | {16 * 1024, 1}, |
| 139 | }, |
| 140 | .block_erase = erase_sector_jedec, |
| 141 | }, { |
| 142 | .eraseblocks = { {256 * 1024, 1} }, |
| 143 | .block_erase = erase_chip_block_jedec, |
| 144 | }, |
| 145 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 146 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 147 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 148 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 149 | }, |
| 150 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 151 | { |
| 152 | .vendor = "AMD", |
| 153 | .name = "Am29F016D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 154 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 155 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 156 | .model_id = AMD_AM29F016D, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 157 | .total_size = 2 * 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 158 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 159 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 160 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 161 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 162 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 163 | .block_erasers = |
| 164 | { |
| 165 | { |
| 166 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 167 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 168 | }, { |
| 169 | .eraseblocks = { {2048 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 170 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 171 | }, |
| 172 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 173 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 174 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 175 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 176 | }, |
| 177 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 178 | { |
| 179 | .vendor = "AMD", |
| 180 | .name = "Am29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 181 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 182 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 183 | .model_id = AMD_AM29F040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 184 | .total_size = 512, |
| 185 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 186 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 187 | .tested = TEST_UNTESTED, |
| 188 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 189 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 190 | .block_erasers = |
| 191 | { |
| 192 | { |
| 193 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 194 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 195 | }, { |
| 196 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 197 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 198 | }, |
| 199 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 200 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 201 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 202 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 203 | }, |
| 204 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 205 | { |
| 206 | .vendor = "AMD", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 207 | .name = "Am29F080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 208 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 209 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 210 | .model_id = AMD_AM29F080B, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 211 | .total_size = 1024, |
| 212 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 213 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 214 | .tested = TEST_UNTESTED, |
| 215 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 216 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 217 | .block_erasers = |
| 218 | { |
| 219 | { |
| 220 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 221 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 222 | }, { |
| 223 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 224 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 225 | }, |
| 226 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 227 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 228 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 229 | .voltage = {4500, 5500}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 230 | }, |
| 231 | |
| 232 | { |
| 233 | .vendor = "AMD", |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 234 | .name = "Am29LV001BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 235 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 236 | .manufacture_id = AMD_ID, |
| 237 | .model_id = AMD_AM29LV001BB, |
| 238 | .total_size = 128, |
| 239 | .page_size = 64 * 1024, /* unused */ |
| 240 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 241 | .tested = TEST_OK_PREW, |
| 242 | .probe = probe_jedec, |
| 243 | .probe_timing = TIMING_ZERO, |
| 244 | .block_erasers = |
| 245 | { |
| 246 | { |
| 247 | .eraseblocks = { |
| 248 | {8 * 1024, 1}, |
| 249 | {4 * 1024, 2}, |
| 250 | {16 * 1024, 7}, |
| 251 | }, |
| 252 | .block_erase = erase_sector_jedec, |
| 253 | }, { |
| 254 | .eraseblocks = { {128 * 1024, 1} }, |
| 255 | .block_erase = erase_chip_block_jedec, |
| 256 | }, |
| 257 | }, |
| 258 | .write = write_jedec_1, |
| 259 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 260 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 261 | }, |
| 262 | |
| 263 | { |
| 264 | .vendor = "AMD", |
| 265 | .name = "Am29LV001BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 266 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 267 | .manufacture_id = AMD_ID, |
| 268 | .model_id = AMD_AM29LV001BT, |
| 269 | .total_size = 128, |
| 270 | .page_size = 64 * 1024, /* unused */ |
| 271 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 272 | .tested = TEST_UNTESTED, |
| 273 | .probe = probe_jedec, |
| 274 | .probe_timing = TIMING_ZERO, |
| 275 | .block_erasers = |
| 276 | { |
| 277 | { |
| 278 | .eraseblocks = { |
| 279 | {16 * 1024, 7}, |
| 280 | {4 * 1024, 2}, |
| 281 | {8 * 1024, 1}, |
| 282 | }, |
| 283 | .block_erase = erase_sector_jedec, |
| 284 | }, { |
| 285 | .eraseblocks = { {128 * 1024, 1} }, |
| 286 | .block_erase = erase_chip_block_jedec, |
| 287 | }, |
| 288 | }, |
| 289 | .write = write_jedec_1, |
| 290 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 291 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 292 | }, |
| 293 | |
| 294 | { |
| 295 | .vendor = "AMD", |
| 296 | .name = "Am29LV002BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 297 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 298 | .manufacture_id = AMD_ID, |
| 299 | .model_id = AMD_AM29LV002BB, |
| 300 | .total_size = 256, |
| 301 | .page_size = 64 * 1024, /* unused */ |
| 302 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 303 | .tested = TEST_UNTESTED, |
| 304 | .probe = probe_jedec, |
| 305 | .probe_timing = TIMING_ZERO, |
| 306 | .block_erasers = |
| 307 | { |
| 308 | { |
| 309 | .eraseblocks = { |
| 310 | {16 * 1024, 1}, |
| 311 | {8 * 1024, 2}, |
| 312 | {32 * 1024, 1}, |
| 313 | {64 * 1024, 3}, |
| 314 | }, |
| 315 | .block_erase = erase_sector_jedec, |
| 316 | }, { |
| 317 | .eraseblocks = { {256 * 1024, 1} }, |
| 318 | .block_erase = erase_chip_block_jedec, |
| 319 | }, |
| 320 | }, |
| 321 | .write = write_jedec_1, |
| 322 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 323 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 324 | }, |
| 325 | |
| 326 | { |
| 327 | .vendor = "AMD", |
| 328 | .name = "Am29LV002BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 329 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 330 | .manufacture_id = AMD_ID, |
| 331 | .model_id = AMD_AM29LV002BT, |
| 332 | .total_size = 256, |
| 333 | .page_size = 64 * 1024, /* unused */ |
| 334 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 335 | .tested = TEST_UNTESTED, |
| 336 | .probe = probe_jedec, |
| 337 | .probe_timing = TIMING_ZERO, |
| 338 | .block_erasers = |
| 339 | { |
| 340 | { |
| 341 | .eraseblocks = { |
| 342 | {64 * 1024, 3}, |
| 343 | {32 * 1024, 1}, |
| 344 | {8 * 1024, 2}, |
| 345 | {16 * 1024, 1}, |
| 346 | }, |
| 347 | .block_erase = erase_sector_jedec, |
| 348 | }, { |
| 349 | .eraseblocks = { {256 * 1024, 1} }, |
| 350 | .block_erase = erase_chip_block_jedec, |
| 351 | }, |
| 352 | }, |
| 353 | .write = write_jedec_1, |
| 354 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 355 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 356 | }, |
| 357 | |
| 358 | { |
| 359 | .vendor = "AMD", |
| 360 | .name = "Am29LV004BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 361 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 362 | .manufacture_id = AMD_ID, |
| 363 | .model_id = AMD_AM29LV004BB, |
| 364 | .total_size = 512, |
| 365 | .page_size = 64 * 1024, /* unused */ |
| 366 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 367 | .tested = TEST_UNTESTED, |
| 368 | .probe = probe_jedec, |
| 369 | .probe_timing = TIMING_ZERO, |
| 370 | .block_erasers = |
| 371 | { |
| 372 | { |
| 373 | .eraseblocks = { |
| 374 | {16 * 1024, 1}, |
| 375 | {8 * 1024, 2}, |
| 376 | {32 * 1024, 1}, |
| 377 | {64 * 1024, 7}, |
| 378 | }, |
| 379 | .block_erase = erase_sector_jedec, |
| 380 | }, { |
| 381 | .eraseblocks = { {512 * 1024, 1} }, |
| 382 | .block_erase = erase_chip_block_jedec, |
| 383 | }, |
| 384 | }, |
| 385 | .write = write_jedec_1, |
| 386 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 387 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 388 | }, |
| 389 | |
| 390 | { |
| 391 | .vendor = "AMD", |
| 392 | .name = "Am29LV004BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 393 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 394 | .manufacture_id = AMD_ID, |
| 395 | .model_id = AMD_AM29LV004BT, |
| 396 | .total_size = 512, |
| 397 | .page_size = 64 * 1024, /* unused */ |
| 398 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 399 | .tested = TEST_UNTESTED, |
| 400 | .probe = probe_jedec, |
| 401 | .probe_timing = TIMING_ZERO, |
| 402 | .block_erasers = |
| 403 | { |
| 404 | { |
| 405 | .eraseblocks = { |
| 406 | {64 * 1024, 7}, |
| 407 | {32 * 1024, 1}, |
| 408 | {8 * 1024, 2}, |
| 409 | {16 * 1024, 1}, |
| 410 | }, |
| 411 | .block_erase = erase_sector_jedec, |
| 412 | }, { |
| 413 | .eraseblocks = { {512 * 1024, 1} }, |
| 414 | .block_erase = erase_chip_block_jedec, |
| 415 | }, |
| 416 | }, |
| 417 | .write = write_jedec_1, |
| 418 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 419 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 420 | }, |
| 421 | |
| 422 | { |
| 423 | .vendor = "AMD", |
| 424 | .name = "Am29LV008BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 425 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 426 | .manufacture_id = AMD_ID, |
| 427 | .model_id = AMD_AM29LV008BB, |
| 428 | .total_size = 1024, |
| 429 | .page_size = 64 * 1024, /* unused */ |
| 430 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Uwe Hermann | 09ebd52 | 2011-08-25 22:54:23 +0000 | [diff] [blame] | 431 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 432 | .probe = probe_jedec, |
| 433 | .probe_timing = TIMING_ZERO, |
| 434 | .block_erasers = |
| 435 | { |
| 436 | { |
| 437 | .eraseblocks = { |
| 438 | {16 * 1024, 1}, |
| 439 | {8 * 1024, 2}, |
| 440 | {32 * 1024, 1}, |
| 441 | {64 * 1024, 15}, |
| 442 | }, |
| 443 | .block_erase = erase_sector_jedec, |
| 444 | }, { |
| 445 | .eraseblocks = { {1024 * 1024, 1} }, |
| 446 | .block_erase = erase_chip_block_jedec, |
| 447 | }, |
| 448 | }, |
| 449 | .write = write_jedec_1, |
| 450 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 451 | .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 452 | }, |
| 453 | |
| 454 | { |
| 455 | .vendor = "AMD", |
| 456 | .name = "Am29LV008BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 457 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 458 | .manufacture_id = AMD_ID, |
| 459 | .model_id = AMD_AM29LV008BT, |
| 460 | .total_size = 1024, |
| 461 | .page_size = 64 * 1024, /* unused */ |
| 462 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 463 | .tested = TEST_UNTESTED, |
| 464 | .probe = probe_jedec, |
| 465 | .probe_timing = TIMING_ZERO, |
| 466 | .block_erasers = |
| 467 | { |
| 468 | { |
| 469 | .eraseblocks = { |
| 470 | {64 * 1024, 15}, |
| 471 | {32 * 1024, 1}, |
| 472 | {8 * 1024, 2}, |
| 473 | {16 * 1024, 1}, |
| 474 | }, |
| 475 | .block_erase = erase_sector_jedec, |
| 476 | }, { |
| 477 | .eraseblocks = { {1024 * 1024, 1} }, |
| 478 | .block_erase = erase_chip_block_jedec, |
| 479 | }, |
| 480 | }, |
| 481 | .write = write_jedec_1, |
| 482 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 483 | .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 484 | }, |
| 485 | |
| 486 | { |
| 487 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 488 | .name = "Am29LV040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 489 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 490 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 491 | .model_id = AMD_AM29LV040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 492 | .total_size = 512, |
| 493 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 494 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 495 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 496 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 497 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 498 | .block_erasers = |
| 499 | { |
| 500 | { |
| 501 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 502 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 503 | }, { |
| 504 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 505 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 506 | }, |
| 507 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 508 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 509 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 510 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 511 | }, |
| 512 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 513 | { |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 514 | .vendor = "AMD", |
| 515 | .name = "Am29LV081B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 516 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 517 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 518 | .model_id = AMD_AM29LV080B, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 519 | .total_size = 1024, |
| 520 | .page_size = 64 * 1024, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 521 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */ |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 522 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 523 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 524 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 525 | .block_erasers = |
| 526 | { |
| 527 | { |
| 528 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 529 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 530 | }, { |
| 531 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 532 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 533 | }, |
| 534 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 535 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 536 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 537 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 538 | }, |
| 539 | |
| 540 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 541 | .vendor = "AMIC", |
| 542 | .name = "A25L05PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 543 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 544 | .manufacture_id = AMIC_ID, |
| 545 | .model_id = AMIC_A25L05PT, |
| 546 | .total_size = 64, |
| 547 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 548 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 549 | .tested = TEST_UNTESTED, |
| 550 | .probe = probe_spi_rdid4, |
| 551 | .probe_timing = TIMING_ZERO, |
| 552 | .block_erasers = |
| 553 | { |
| 554 | { |
| 555 | .eraseblocks = { |
| 556 | {32 * 1024, 1}, |
| 557 | {16 * 1024, 1}, |
| 558 | {8 * 1024, 1}, |
| 559 | {4 * 1024, 2}, |
| 560 | }, |
| 561 | .block_erase = spi_block_erase_d8, |
| 562 | }, { |
| 563 | .eraseblocks = { {64 * 1024, 1} }, |
| 564 | .block_erase = spi_block_erase_c7, |
| 565 | } |
| 566 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 567 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 568 | .unlock = spi_disable_blockprotect, |
| 569 | .write = spi_chip_write_256, |
| 570 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 571 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 572 | }, |
| 573 | |
| 574 | { |
| 575 | .vendor = "AMIC", |
| 576 | .name = "A25L05PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 577 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 578 | .manufacture_id = AMIC_ID, |
| 579 | .model_id = AMIC_A25L05PU, |
| 580 | .total_size = 64, |
| 581 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 582 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 583 | .tested = TEST_UNTESTED, |
| 584 | .probe = probe_spi_rdid4, |
| 585 | .probe_timing = TIMING_ZERO, |
| 586 | .block_erasers = |
| 587 | { |
| 588 | { |
| 589 | .eraseblocks = { |
| 590 | {4 * 1024, 2}, |
| 591 | {8 * 1024, 1}, |
| 592 | {16 * 1024, 1}, |
| 593 | {32 * 1024, 1}, |
| 594 | }, |
| 595 | .block_erase = spi_block_erase_d8, |
| 596 | }, { |
| 597 | .eraseblocks = { {64 * 1024, 1} }, |
| 598 | .block_erase = spi_block_erase_c7, |
| 599 | } |
| 600 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 601 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 602 | .unlock = spi_disable_blockprotect, |
| 603 | .write = spi_chip_write_256, |
| 604 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 605 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 606 | }, |
| 607 | |
| 608 | { |
| 609 | .vendor = "AMIC", |
| 610 | .name = "A25L10PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 611 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 612 | .manufacture_id = AMIC_ID, |
| 613 | .model_id = AMIC_A25L10PT, |
| 614 | .total_size = 128, |
| 615 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 616 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 617 | .tested = TEST_UNTESTED, |
| 618 | .probe = probe_spi_rdid4, |
| 619 | .probe_timing = TIMING_ZERO, |
| 620 | .block_erasers = |
| 621 | { |
| 622 | { |
| 623 | .eraseblocks = { |
| 624 | {64 * 1024, 1}, |
| 625 | {32 * 1024, 1}, |
| 626 | {16 * 1024, 1}, |
| 627 | {8 * 1024, 1}, |
| 628 | {4 * 1024, 2}, |
| 629 | }, |
| 630 | .block_erase = spi_block_erase_d8, |
| 631 | }, { |
| 632 | .eraseblocks = { {128 * 1024, 1} }, |
| 633 | .block_erase = spi_block_erase_c7, |
| 634 | } |
| 635 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 636 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 637 | .unlock = spi_disable_blockprotect, |
| 638 | .write = spi_chip_write_256, |
| 639 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 640 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 641 | }, |
| 642 | |
| 643 | { |
| 644 | .vendor = "AMIC", |
| 645 | .name = "A25L10PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 646 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 647 | .manufacture_id = AMIC_ID, |
| 648 | .model_id = AMIC_A25L10PU, |
| 649 | .total_size = 128, |
| 650 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 651 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 652 | .tested = TEST_UNTESTED, |
| 653 | .probe = probe_spi_rdid4, |
| 654 | .probe_timing = TIMING_ZERO, |
| 655 | .block_erasers = |
| 656 | { |
| 657 | { |
| 658 | .eraseblocks = { |
| 659 | {4 * 1024, 2}, |
| 660 | {8 * 1024, 1}, |
| 661 | {16 * 1024, 1}, |
| 662 | {32 * 1024, 1}, |
| 663 | {64 * 1024, 1}, |
| 664 | }, |
| 665 | .block_erase = spi_block_erase_d8, |
| 666 | }, { |
| 667 | .eraseblocks = { {128 * 1024, 1} }, |
| 668 | .block_erase = spi_block_erase_c7, |
| 669 | } |
| 670 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 671 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 672 | .unlock = spi_disable_blockprotect, |
| 673 | .write = spi_chip_write_256, |
| 674 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 675 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 676 | }, |
| 677 | |
| 678 | { |
| 679 | .vendor = "AMIC", |
| 680 | .name = "A25L20PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 681 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 682 | .manufacture_id = AMIC_ID, |
| 683 | .model_id = AMIC_A25L20PT, |
| 684 | .total_size = 256, |
| 685 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 686 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 687 | .tested = TEST_UNTESTED, |
| 688 | .probe = probe_spi_rdid4, |
| 689 | .probe_timing = TIMING_ZERO, |
| 690 | .block_erasers = |
| 691 | { |
| 692 | { |
| 693 | .eraseblocks = { |
| 694 | {64 * 1024, 3}, |
| 695 | {32 * 1024, 1}, |
| 696 | {16 * 1024, 1}, |
| 697 | {8 * 1024, 1}, |
| 698 | {4 * 1024, 2}, |
| 699 | }, |
| 700 | .block_erase = spi_block_erase_d8, |
| 701 | }, { |
| 702 | .eraseblocks = { {256 * 1024, 1} }, |
| 703 | .block_erase = spi_block_erase_c7, |
| 704 | } |
| 705 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 706 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 707 | .unlock = spi_disable_blockprotect, |
| 708 | .write = spi_chip_write_256, |
| 709 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 710 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 711 | }, |
| 712 | |
| 713 | { |
| 714 | .vendor = "AMIC", |
| 715 | .name = "A25L20PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 716 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 717 | .manufacture_id = AMIC_ID, |
| 718 | .model_id = AMIC_A25L20PU, |
| 719 | .total_size = 256, |
| 720 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 721 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 722 | .tested = TEST_UNTESTED, |
| 723 | .probe = probe_spi_rdid4, |
| 724 | .probe_timing = TIMING_ZERO, |
| 725 | .block_erasers = |
| 726 | { |
| 727 | { |
| 728 | .eraseblocks = { |
| 729 | {4 * 1024, 2}, |
| 730 | {8 * 1024, 1}, |
| 731 | {16 * 1024, 1}, |
| 732 | {32 * 1024, 1}, |
| 733 | {64 * 1024, 3}, |
| 734 | }, |
| 735 | .block_erase = spi_block_erase_d8, |
| 736 | }, { |
| 737 | .eraseblocks = { {256 * 1024, 1} }, |
| 738 | .block_erase = spi_block_erase_c7, |
| 739 | } |
| 740 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 741 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 742 | .unlock = spi_disable_blockprotect, |
| 743 | .write = spi_chip_write_256, |
| 744 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 745 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 746 | }, |
| 747 | |
| 748 | /* The A25L40P{T,U} chips are distinguished by their |
| 749 | * erase block layouts, but without any distinction in RDID. |
| 750 | * This inexplicable quirk was verified by Rudolf Marek |
| 751 | * and discussed on the flashrom mailing list on 2010-07-12. |
| 752 | */ |
| 753 | { |
| 754 | .vendor = "AMIC", |
| 755 | .name = "A25L40PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 756 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 757 | .manufacture_id = AMIC_ID, |
| 758 | .model_id = AMIC_A25L40PT, |
| 759 | .total_size = 512, |
| 760 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 761 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 762 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 763 | .probe = probe_spi_rdid4, |
| 764 | .probe_timing = TIMING_ZERO, |
| 765 | .block_erasers = |
| 766 | { |
| 767 | { |
| 768 | .eraseblocks = { |
| 769 | {64 * 1024, 7}, |
| 770 | {32 * 1024, 1}, |
| 771 | {16 * 1024, 1}, |
| 772 | {8 * 1024, 1}, |
| 773 | {4 * 1024, 2}, |
| 774 | }, |
| 775 | .block_erase = spi_block_erase_d8, |
| 776 | }, { |
| 777 | .eraseblocks = { {512 * 1024, 1} }, |
| 778 | .block_erase = spi_block_erase_c7, |
| 779 | } |
| 780 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 781 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 782 | .unlock = spi_disable_blockprotect, |
| 783 | .write = spi_chip_write_256, |
| 784 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 785 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 786 | }, |
| 787 | |
| 788 | { |
| 789 | .vendor = "AMIC", |
| 790 | .name = "A25L40PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 791 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 792 | .manufacture_id = AMIC_ID, |
| 793 | .model_id = AMIC_A25L40PU, |
| 794 | .total_size = 512, |
| 795 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 796 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 797 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 798 | .probe = probe_spi_rdid4, |
| 799 | .probe_timing = TIMING_ZERO, |
| 800 | .block_erasers = |
| 801 | { |
| 802 | { |
| 803 | .eraseblocks = { |
| 804 | {4 * 1024, 2}, |
| 805 | {8 * 1024, 1}, |
| 806 | {16 * 1024, 1}, |
| 807 | {32 * 1024, 1}, |
| 808 | {64 * 1024, 7}, |
| 809 | }, |
| 810 | .block_erase = spi_block_erase_d8, |
| 811 | }, { |
| 812 | .eraseblocks = { {512 * 1024, 1} }, |
| 813 | .block_erase = spi_block_erase_c7, |
| 814 | } |
| 815 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 816 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 817 | .unlock = spi_disable_blockprotect, |
| 818 | .write = spi_chip_write_256, |
| 819 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 820 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 821 | }, |
| 822 | |
| 823 | { |
| 824 | .vendor = "AMIC", |
| 825 | .name = "A25L80P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 826 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 827 | .manufacture_id = AMIC_ID, |
| 828 | .model_id = AMIC_A25L80P, |
| 829 | .total_size = 1024, |
| 830 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 831 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 832 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 833 | .probe = probe_spi_rdid4, |
| 834 | .probe_timing = TIMING_ZERO, |
| 835 | .block_erasers = |
| 836 | { |
| 837 | { |
| 838 | .eraseblocks = { |
| 839 | {4 * 1024, 2}, |
| 840 | {8 * 1024, 1}, |
| 841 | {16 * 1024, 1}, |
| 842 | {32 * 1024, 1}, |
| 843 | {64 * 1024, 15}, |
| 844 | }, |
| 845 | .block_erase = spi_block_erase_d8, |
| 846 | }, { |
| 847 | .eraseblocks = { {1024 * 1024, 1} }, |
| 848 | .block_erase = spi_block_erase_c7, |
| 849 | } |
| 850 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 851 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 852 | .unlock = spi_disable_blockprotect, |
| 853 | .write = spi_chip_write_256, |
| 854 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 855 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 856 | }, |
| 857 | |
| 858 | { |
| 859 | .vendor = "AMIC", |
| 860 | .name = "A25L16PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 861 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 862 | .manufacture_id = AMIC_ID, |
| 863 | .model_id = AMIC_A25L16PT, |
| 864 | .total_size = 2048, |
| 865 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 866 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 867 | .tested = TEST_UNTESTED, |
| 868 | .probe = probe_spi_rdid4, |
| 869 | .probe_timing = TIMING_ZERO, |
| 870 | .block_erasers = |
| 871 | { |
| 872 | { |
| 873 | .eraseblocks = { |
| 874 | {64 * 1024, 31}, |
| 875 | {32 * 1024, 1}, |
| 876 | {16 * 1024, 1}, |
| 877 | {8 * 1024, 1}, |
| 878 | {4 * 1024, 2}, |
| 879 | }, |
| 880 | .block_erase = spi_block_erase_d8, |
| 881 | }, { |
| 882 | .eraseblocks = { {2048 * 1024, 1} }, |
| 883 | .block_erase = spi_block_erase_60, |
| 884 | }, { |
| 885 | .eraseblocks = { {2048 * 1024, 1} }, |
| 886 | .block_erase = spi_block_erase_c7, |
| 887 | } |
| 888 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 889 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 890 | .unlock = spi_disable_blockprotect, |
| 891 | .write = spi_chip_write_256, |
| 892 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 893 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 894 | }, |
| 895 | |
| 896 | { |
| 897 | .vendor = "AMIC", |
| 898 | .name = "A25L16PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 899 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 900 | .manufacture_id = AMIC_ID, |
| 901 | .model_id = AMIC_A25L16PU, |
| 902 | .total_size = 2048, |
| 903 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 904 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 905 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 906 | .probe = probe_spi_rdid4, |
| 907 | .probe_timing = TIMING_ZERO, |
| 908 | .block_erasers = |
| 909 | { |
| 910 | { |
| 911 | .eraseblocks = { |
| 912 | {4 * 1024, 2}, |
| 913 | {8 * 1024, 1}, |
| 914 | {16 * 1024, 1}, |
| 915 | {32 * 1024, 1}, |
| 916 | {64 * 1024, 31}, |
| 917 | }, |
| 918 | .block_erase = spi_block_erase_d8, |
| 919 | }, { |
| 920 | .eraseblocks = { {2048 * 1024, 1} }, |
| 921 | .block_erase = spi_block_erase_60, |
| 922 | }, { |
| 923 | .eraseblocks = { {2048 * 1024, 1} }, |
| 924 | .block_erase = spi_block_erase_c7, |
| 925 | } |
| 926 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 927 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 928 | .unlock = spi_disable_blockprotect, |
| 929 | .write = spi_chip_write_256, |
| 930 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 931 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 932 | }, |
| 933 | |
| 934 | { |
| 935 | .vendor = "AMIC", |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 936 | .name = "A25L512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 937 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 938 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 939 | .model_id = AMIC_A25L512, |
| 940 | .total_size = 64, |
| 941 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 942 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 943 | .tested = TEST_UNTESTED, |
| 944 | .probe = probe_spi_rdid, |
| 945 | .probe_timing = TIMING_ZERO, |
| 946 | .block_erasers = |
| 947 | { |
| 948 | { |
| 949 | .eraseblocks = { { 4 * 1024, 16 } }, |
| 950 | .block_erase = spi_block_erase_20, |
| 951 | }, { |
| 952 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 953 | .block_erase = spi_block_erase_d8, |
| 954 | }, { |
| 955 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 956 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 957 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 958 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 959 | .printlock = spi_prettyprint_status_register_default_bp2, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 960 | .unlock = spi_disable_blockprotect, |
| 961 | .write = spi_chip_write_256, |
| 962 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 963 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 964 | }, |
| 965 | |
| 966 | { |
| 967 | .vendor = "AMIC", |
| 968 | .name = "A25L010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 969 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 970 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 971 | .model_id = AMIC_A25L010, |
| 972 | .total_size = 128, |
| 973 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 974 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 975 | .tested = TEST_UNTESTED, |
| 976 | .probe = probe_spi_rdid, |
| 977 | .probe_timing = TIMING_ZERO, |
| 978 | .block_erasers = |
| 979 | { |
| 980 | { |
| 981 | .eraseblocks = { { 4 * 1024, 32 } }, |
| 982 | .block_erase = spi_block_erase_20, |
| 983 | }, { |
| 984 | .eraseblocks = { { 64 * 1024, 2 } }, |
| 985 | .block_erase = spi_block_erase_d8, |
| 986 | }, { |
| 987 | .eraseblocks = { { 128 * 1024, 1 } }, |
| 988 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 989 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 990 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 991 | .printlock = spi_prettyprint_status_register_default_bp2, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 992 | .unlock = spi_disable_blockprotect, |
| 993 | .write = spi_chip_write_256, |
| 994 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 995 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 996 | }, |
| 997 | |
| 998 | { |
| 999 | .vendor = "AMIC", |
| 1000 | .name = "A25L020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1001 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1002 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1003 | .model_id = AMIC_A25L020, |
| 1004 | .total_size = 256, |
| 1005 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1006 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1007 | .tested = TEST_UNTESTED, |
| 1008 | .probe = probe_spi_rdid, |
| 1009 | .probe_timing = TIMING_ZERO, |
| 1010 | .block_erasers = |
| 1011 | { |
| 1012 | { |
| 1013 | .eraseblocks = { { 4 * 1024, 64 } }, |
| 1014 | .block_erase = spi_block_erase_20, |
| 1015 | }, { |
| 1016 | .eraseblocks = { { 64 * 1024, 4 } }, |
| 1017 | .block_erase = spi_block_erase_d8, |
| 1018 | }, { |
| 1019 | .eraseblocks = { { 256 * 1024, 1 } }, |
| 1020 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1021 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1022 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 1023 | .printlock = spi_prettyprint_status_register_default_bp2, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1024 | .unlock = spi_disable_blockprotect, |
| 1025 | .write = spi_chip_write_256, |
| 1026 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1027 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1028 | }, |
| 1029 | |
| 1030 | { |
| 1031 | .vendor = "AMIC", |
| 1032 | .name = "A25L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1033 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1034 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1035 | .model_id = AMIC_A25L040, |
| 1036 | .total_size = 512, |
| 1037 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1038 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1039 | .tested = TEST_UNTESTED, |
| 1040 | .probe = probe_spi_rdid, |
| 1041 | .probe_timing = TIMING_ZERO, |
| 1042 | .block_erasers = |
| 1043 | { |
| 1044 | { |
| 1045 | .eraseblocks = { { 4 * 1024, 128 } }, |
| 1046 | .block_erase = spi_block_erase_20, |
| 1047 | }, { |
| 1048 | .eraseblocks = { { 64 * 1024, 8 } }, |
| 1049 | .block_erase = spi_block_erase_d8, |
| 1050 | }, { |
| 1051 | .eraseblocks = { { 512 * 1024, 1 } }, |
| 1052 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1053 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1054 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 1055 | .printlock = spi_prettyprint_status_register_default_bp2, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1056 | .unlock = spi_disable_blockprotect, |
| 1057 | .write = spi_chip_write_256, |
| 1058 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1059 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1060 | }, |
| 1061 | |
| 1062 | { |
| 1063 | .vendor = "AMIC", |
| 1064 | .name = "A25L080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1065 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1066 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1067 | .model_id = AMIC_A25L080, |
| 1068 | .total_size = 1024, |
| 1069 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1070 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1071 | .tested = TEST_UNTESTED, |
| 1072 | .probe = probe_spi_rdid, |
| 1073 | .probe_timing = TIMING_ZERO, |
| 1074 | .block_erasers = |
| 1075 | { |
| 1076 | { |
| 1077 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 1078 | .block_erase = spi_block_erase_20, |
| 1079 | }, { |
| 1080 | .eraseblocks = { { 64 * 1024, 16 } }, |
| 1081 | .block_erase = spi_block_erase_d8, |
| 1082 | }, { |
| 1083 | .eraseblocks = { { 1024 * 1024, 1 } }, |
| 1084 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1085 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1086 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 1087 | .printlock = spi_prettyprint_status_register_default_bp2, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1088 | .unlock = spi_disable_blockprotect, |
| 1089 | .write = spi_chip_write_256, |
| 1090 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1091 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1092 | }, |
| 1093 | |
| 1094 | { |
| 1095 | .vendor = "AMIC", |
| 1096 | .name = "A25L016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1097 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1098 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1099 | .model_id = AMIC_A25L016, |
| 1100 | .total_size = 2048, |
| 1101 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1102 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1103 | .tested = TEST_UNTESTED, |
| 1104 | .probe = probe_spi_rdid, |
| 1105 | .probe_timing = TIMING_ZERO, |
| 1106 | .block_erasers = |
| 1107 | { |
| 1108 | { |
| 1109 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 1110 | .block_erase = spi_block_erase_20, |
| 1111 | }, { |
| 1112 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1113 | .block_erase = spi_block_erase_d8, |
| 1114 | }, { |
| 1115 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1116 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1117 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1118 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 1119 | .printlock = spi_prettyprint_status_register_default_bp2, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1120 | .unlock = spi_disable_blockprotect, |
| 1121 | .write = spi_chip_write_256, |
| 1122 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1123 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1124 | }, |
| 1125 | |
| 1126 | { |
| 1127 | .vendor = "AMIC", |
| 1128 | .name = "A25L032", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1129 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1130 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1131 | .model_id = AMIC_A25L032, |
| 1132 | .total_size = 4096, |
| 1133 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1134 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1135 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 1136 | .tested = TEST_OK_PREW, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1137 | .probe = probe_spi_rdid, |
| 1138 | .probe_timing = TIMING_ZERO, |
| 1139 | .block_erasers = |
| 1140 | { |
| 1141 | { |
| 1142 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 1143 | .block_erase = spi_block_erase_20, |
| 1144 | }, { |
| 1145 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1146 | .block_erase = spi_block_erase_52, |
| 1147 | }, { |
| 1148 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1149 | .block_erase = spi_block_erase_d8, |
| 1150 | }, { |
| 1151 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1152 | .block_erase = spi_block_erase_60, |
| 1153 | }, { |
| 1154 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1155 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1156 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1157 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 1158 | .printlock = spi_prettyprint_status_register_amic_a25l032, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1159 | .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */ |
| 1160 | .write = spi_chip_write_256, |
| 1161 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1162 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1163 | }, |
| 1164 | |
| 1165 | { |
| 1166 | .vendor = "AMIC", |
| 1167 | .name = "A25LQ032", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1168 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1169 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1170 | .model_id = AMIC_A25LQ032, |
| 1171 | .total_size = 4096, |
| 1172 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1173 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1174 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1175 | .tested = TEST_UNTESTED, |
| 1176 | .probe = probe_spi_rdid, |
| 1177 | .probe_timing = TIMING_ZERO, |
| 1178 | .block_erasers = |
| 1179 | { |
| 1180 | { |
| 1181 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 1182 | .block_erase = spi_block_erase_20, |
| 1183 | }, { |
| 1184 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1185 | .block_erase = spi_block_erase_52, |
| 1186 | }, { |
| 1187 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1188 | .block_erase = spi_block_erase_d8, |
| 1189 | }, { |
| 1190 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1191 | .block_erase = spi_block_erase_60, |
| 1192 | }, { |
| 1193 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1194 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1195 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1196 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 1197 | .printlock = spi_prettyprint_status_register_amic_a25l032, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1198 | .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */ |
| 1199 | .write = spi_chip_write_256, |
| 1200 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1201 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1202 | }, |
| 1203 | |
| 1204 | { |
| 1205 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1206 | .name = "A29002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1207 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1208 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1209 | .model_id = AMIC_A29002B, |
| 1210 | .total_size = 256, |
| 1211 | .page_size = 64 * 1024, |
| 1212 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 1213 | .tested = TEST_UNTESTED, |
| 1214 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1215 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1216 | .block_erasers = |
| 1217 | { |
| 1218 | { |
| 1219 | .eraseblocks = { |
| 1220 | {16 * 1024, 1}, |
| 1221 | {8 * 1024, 2}, |
| 1222 | {32 * 1024, 1}, |
| 1223 | {64 * 1024, 3}, |
| 1224 | }, |
| 1225 | .block_erase = erase_sector_jedec, |
| 1226 | }, { |
| 1227 | .eraseblocks = { {256 * 1024, 1} }, |
| 1228 | .block_erase = erase_chip_block_jedec, |
| 1229 | }, |
| 1230 | }, |
| 1231 | .write = write_jedec_1, |
| 1232 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1233 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1234 | }, |
| 1235 | |
| 1236 | { |
| 1237 | .vendor = "AMIC", |
| 1238 | .name = "A29002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1239 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1240 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1241 | .model_id = AMIC_A29002T, |
| 1242 | .total_size = 256, |
| 1243 | .page_size = 64 * 1024, |
| 1244 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 1245 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1246 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1247 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1248 | .block_erasers = |
| 1249 | { |
| 1250 | { |
| 1251 | .eraseblocks = { |
| 1252 | {64 * 1024, 3}, |
| 1253 | {32 * 1024, 1}, |
| 1254 | {8 * 1024, 2}, |
| 1255 | {16 * 1024, 1}, |
| 1256 | }, |
| 1257 | .block_erase = erase_sector_jedec, |
| 1258 | }, { |
| 1259 | .eraseblocks = { {256 * 1024, 1} }, |
| 1260 | .block_erase = erase_chip_block_jedec, |
| 1261 | }, |
| 1262 | }, |
| 1263 | .write = write_jedec_1, |
| 1264 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1265 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1266 | }, |
| 1267 | |
| 1268 | { |
| 1269 | .vendor = "AMIC", |
| 1270 | .name = "A29040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1271 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1272 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1273 | .model_id = AMIC_A29040B, |
| 1274 | .total_size = 512, |
| 1275 | .page_size = 64 * 1024, |
| 1276 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 1277 | .tested = TEST_UNTESTED, |
| 1278 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1279 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1280 | .block_erasers = |
| 1281 | { |
| 1282 | { |
| 1283 | .eraseblocks = { {64 * 1024, 8} }, |
| 1284 | .block_erase = erase_sector_jedec, |
| 1285 | }, { |
| 1286 | .eraseblocks = { {512 * 1024, 1} }, |
| 1287 | .block_erase = erase_chip_block_jedec, |
| 1288 | }, |
| 1289 | }, |
| 1290 | .write = write_jedec_1, |
| 1291 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1292 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1293 | }, |
| 1294 | |
| 1295 | { |
| 1296 | .vendor = "AMIC", |
| 1297 | .name = "A49LF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1298 | .bustype = BUS_LPC, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1299 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1300 | .model_id = AMIC_A49LF040A, |
| 1301 | .total_size = 512, |
| 1302 | .page_size = 64 * 1024, |
| 1303 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 1304 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1305 | .probe = probe_jedec, |
| 1306 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
| 1307 | .block_erasers = |
| 1308 | { |
| 1309 | { |
| 1310 | .eraseblocks = { {64 * 1024, 8} }, |
| 1311 | .block_erase = erase_block_jedec, |
| 1312 | }, { |
| 1313 | .eraseblocks = { {512 * 1024, 1} }, |
| 1314 | .block_erase = erase_chip_block_jedec, |
| 1315 | } |
| 1316 | }, |
| 1317 | .unlock = unlock_49fl00x, |
| 1318 | .write = write_jedec_1, |
| 1319 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1320 | .voltage = {3000, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1321 | }, |
| 1322 | |
| 1323 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1324 | .vendor = "Atmel", |
| 1325 | .name = "AT25DF021", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1326 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1327 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1328 | .model_id = ATMEL_AT25DF021, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1329 | .total_size = 256, |
| 1330 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1331 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1332 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1333 | .tested = TEST_UNTESTED, |
| 1334 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1335 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1336 | .block_erasers = |
| 1337 | { |
| 1338 | { |
| 1339 | .eraseblocks = { {4 * 1024, 64} }, |
| 1340 | .block_erase = spi_block_erase_20, |
| 1341 | }, { |
| 1342 | .eraseblocks = { {32 * 1024, 8} }, |
| 1343 | .block_erase = spi_block_erase_52, |
| 1344 | }, { |
| 1345 | .eraseblocks = { {64 * 1024, 4} }, |
| 1346 | .block_erase = spi_block_erase_d8, |
| 1347 | }, { |
| 1348 | .eraseblocks = { {256 * 1024, 1} }, |
| 1349 | .block_erase = spi_block_erase_60, |
| 1350 | }, { |
| 1351 | .eraseblocks = { {256 * 1024, 1} }, |
| 1352 | .block_erase = spi_block_erase_c7, |
| 1353 | } |
| 1354 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1355 | .printlock = spi_prettyprint_status_register_at25df, |
| 1356 | .unlock = spi_disable_blockprotect_at25df, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1357 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1358 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1359 | .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1360 | }, |
| 1361 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1362 | { |
| 1363 | .vendor = "Atmel", |
| 1364 | .name = "AT25DF041A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1365 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1366 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1367 | .model_id = ATMEL_AT25DF041A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1368 | .total_size = 512, |
| 1369 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1370 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1371 | .tested = TEST_UNTESTED, |
| 1372 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1373 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1374 | .block_erasers = |
| 1375 | { |
| 1376 | { |
| 1377 | .eraseblocks = { {4 * 1024, 128} }, |
| 1378 | .block_erase = spi_block_erase_20, |
| 1379 | }, { |
| 1380 | .eraseblocks = { {32 * 1024, 16} }, |
| 1381 | .block_erase = spi_block_erase_52, |
| 1382 | }, { |
| 1383 | .eraseblocks = { {64 * 1024, 8} }, |
| 1384 | .block_erase = spi_block_erase_d8, |
| 1385 | }, { |
| 1386 | .eraseblocks = { {512 * 1024, 1} }, |
| 1387 | .block_erase = spi_block_erase_60, |
| 1388 | }, { |
| 1389 | .eraseblocks = { {512 * 1024, 1} }, |
| 1390 | .block_erase = spi_block_erase_c7, |
| 1391 | } |
| 1392 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1393 | .printlock = spi_prettyprint_status_register_at25df, |
| 1394 | .unlock = spi_disable_blockprotect_at25df, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1395 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1396 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1397 | .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1398 | }, |
| 1399 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1400 | { |
| 1401 | .vendor = "Atmel", |
| 1402 | .name = "AT25DF081", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1403 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1404 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1405 | .model_id = ATMEL_AT25DF081, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1406 | .total_size = 1024, |
| 1407 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1408 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1409 | .tested = TEST_UNTESTED, |
| 1410 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1411 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1412 | .block_erasers = |
| 1413 | { |
| 1414 | { |
| 1415 | .eraseblocks = { {4 * 1024, 256} }, |
| 1416 | .block_erase = spi_block_erase_20, |
| 1417 | }, { |
| 1418 | .eraseblocks = { {32 * 1024, 32} }, |
| 1419 | .block_erase = spi_block_erase_52, |
| 1420 | }, { |
| 1421 | .eraseblocks = { {64 * 1024, 16} }, |
| 1422 | .block_erase = spi_block_erase_d8, |
| 1423 | }, { |
| 1424 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1425 | .block_erase = spi_block_erase_60, |
| 1426 | }, { |
| 1427 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1428 | .block_erase = spi_block_erase_c7, |
| 1429 | } |
| 1430 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1431 | .printlock = spi_prettyprint_status_register_at25df, |
| 1432 | .unlock = spi_disable_blockprotect_at25df, |
| 1433 | .write = spi_chip_write_256, |
| 1434 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1435 | .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */ |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1436 | }, |
| 1437 | |
| 1438 | { |
| 1439 | .vendor = "Atmel", |
| 1440 | .name = "AT25DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1441 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1442 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1443 | .model_id = ATMEL_AT25DF081A, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1444 | .total_size = 1024, |
| 1445 | .page_size = 256, |
| 1446 | .feature_bits = FEATURE_WRSR_WREN, |
| 1447 | .tested = TEST_UNTESTED, |
| 1448 | .probe = probe_spi_rdid, |
| 1449 | .probe_timing = TIMING_ZERO, |
| 1450 | .block_erasers = |
| 1451 | { |
| 1452 | { |
| 1453 | .eraseblocks = { {4 * 1024, 256} }, |
| 1454 | .block_erase = spi_block_erase_20, |
| 1455 | }, { |
| 1456 | .eraseblocks = { {32 * 1024, 32} }, |
| 1457 | .block_erase = spi_block_erase_52, |
| 1458 | }, { |
| 1459 | .eraseblocks = { {64 * 1024, 16} }, |
| 1460 | .block_erase = spi_block_erase_d8, |
| 1461 | }, { |
| 1462 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1463 | .block_erase = spi_block_erase_60, |
| 1464 | }, { |
| 1465 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1466 | .block_erase = spi_block_erase_c7, |
| 1467 | } |
| 1468 | }, |
| 1469 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1470 | .unlock = spi_disable_blockprotect_at25df_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1471 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1472 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1473 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1474 | }, |
| 1475 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1476 | { |
| 1477 | .vendor = "Atmel", |
| 1478 | .name = "AT25DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1479 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1480 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1481 | .model_id = ATMEL_AT25DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1482 | .total_size = 2048, |
| 1483 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1484 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 2abab94 | 2012-04-27 20:41:23 +0000 | [diff] [blame] | 1485 | .tested = TEST_OK_PROBE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1486 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1487 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1488 | .block_erasers = |
| 1489 | { |
| 1490 | { |
| 1491 | .eraseblocks = { {4 * 1024, 512} }, |
| 1492 | .block_erase = spi_block_erase_20, |
| 1493 | }, { |
| 1494 | .eraseblocks = { {32 * 1024, 64} }, |
| 1495 | .block_erase = spi_block_erase_52, |
| 1496 | }, { |
| 1497 | .eraseblocks = { {64 * 1024, 32} }, |
| 1498 | .block_erase = spi_block_erase_d8, |
| 1499 | }, { |
| 1500 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1501 | .block_erase = spi_block_erase_60, |
| 1502 | }, { |
| 1503 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1504 | .block_erase = spi_block_erase_c7, |
| 1505 | } |
| 1506 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1507 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1508 | .unlock = spi_disable_blockprotect_at25df_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1509 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1510 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1511 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1512 | }, |
| 1513 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1514 | { |
| 1515 | .vendor = "Atmel", |
| 1516 | .name = "AT25DF321", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1517 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1518 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1519 | .model_id = ATMEL_AT25DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1520 | .total_size = 4096, |
| 1521 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1522 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 1523 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1524 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1525 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1526 | .block_erasers = |
| 1527 | { |
| 1528 | { |
| 1529 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1530 | .block_erase = spi_block_erase_20, |
| 1531 | }, { |
| 1532 | .eraseblocks = { {32 * 1024, 128} }, |
| 1533 | .block_erase = spi_block_erase_52, |
| 1534 | }, { |
| 1535 | .eraseblocks = { {64 * 1024, 64} }, |
| 1536 | .block_erase = spi_block_erase_d8, |
| 1537 | }, { |
| 1538 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1539 | .block_erase = spi_block_erase_60, |
| 1540 | }, { |
| 1541 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1542 | .block_erase = spi_block_erase_c7, |
| 1543 | } |
| 1544 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1545 | .printlock = spi_prettyprint_status_register_at25df, |
| 1546 | .unlock = spi_disable_blockprotect_at25df, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1547 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1548 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1549 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1550 | }, |
| 1551 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1552 | { |
| 1553 | .vendor = "Atmel", |
| 1554 | .name = "AT25DF321A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1555 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1556 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1557 | .model_id = ATMEL_AT25DF321A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1558 | .total_size = 4096, |
| 1559 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1560 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1561 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 1562 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1563 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1564 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1565 | .block_erasers = |
| 1566 | { |
| 1567 | { |
| 1568 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1569 | .block_erase = spi_block_erase_20, |
| 1570 | }, { |
| 1571 | .eraseblocks = { {32 * 1024, 128} }, |
| 1572 | .block_erase = spi_block_erase_52, |
| 1573 | }, { |
| 1574 | .eraseblocks = { {64 * 1024, 64} }, |
| 1575 | .block_erase = spi_block_erase_d8, |
| 1576 | }, { |
| 1577 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1578 | .block_erase = spi_block_erase_60, |
| 1579 | }, { |
| 1580 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1581 | .block_erase = spi_block_erase_c7, |
| 1582 | } |
| 1583 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1584 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1585 | .unlock = spi_disable_blockprotect_at25df_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1586 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1587 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1588 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1589 | }, |
| 1590 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1591 | { |
| 1592 | .vendor = "Atmel", |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 1593 | .name = "AT25DF641(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1594 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1595 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1596 | .model_id = ATMEL_AT25DF641, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1597 | .total_size = 8192, |
| 1598 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1599 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1600 | .tested = TEST_UNTESTED, |
| 1601 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1602 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1603 | .block_erasers = |
| 1604 | { |
| 1605 | { |
| 1606 | .eraseblocks = { {4 * 1024, 2048} }, |
| 1607 | .block_erase = spi_block_erase_20, |
| 1608 | }, { |
| 1609 | .eraseblocks = { {32 * 1024, 256} }, |
| 1610 | .block_erase = spi_block_erase_52, |
| 1611 | }, { |
| 1612 | .eraseblocks = { {64 * 1024, 128} }, |
| 1613 | .block_erase = spi_block_erase_d8, |
| 1614 | }, { |
| 1615 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1616 | .block_erase = spi_block_erase_60, |
| 1617 | }, { |
| 1618 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1619 | .block_erase = spi_block_erase_c7, |
| 1620 | } |
| 1621 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1622 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1623 | .unlock = spi_disable_blockprotect_at25df_sec, |
| 1624 | .write = spi_chip_write_256, |
| 1625 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1626 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1627 | }, |
| 1628 | |
| 1629 | { |
| 1630 | .vendor = "Atmel", |
| 1631 | .name = "AT25DQ161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1632 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1633 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1634 | .model_id = ATMEL_AT25DQ161, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1635 | .total_size = 2048, |
| 1636 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1637 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1638 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1639 | .tested = TEST_UNTESTED, |
| 1640 | .probe = probe_spi_rdid, |
| 1641 | .probe_timing = TIMING_ZERO, |
| 1642 | .block_erasers = |
| 1643 | { |
| 1644 | { |
| 1645 | .eraseblocks = { {4 * 1024, 512} }, |
| 1646 | .block_erase = spi_block_erase_20, |
| 1647 | }, { |
| 1648 | .eraseblocks = { {32 * 1024, 64} }, |
| 1649 | .block_erase = spi_block_erase_52, |
| 1650 | }, { |
| 1651 | .eraseblocks = { {64 * 1024, 32} }, |
| 1652 | .block_erase = spi_block_erase_d8, |
| 1653 | }, { |
| 1654 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1655 | .block_erase = spi_block_erase_60, |
| 1656 | }, { |
| 1657 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1658 | .block_erase = spi_block_erase_c7, |
| 1659 | } |
| 1660 | }, |
| 1661 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1662 | .unlock = spi_disable_blockprotect_at25df_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1663 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1664 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1665 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1666 | }, |
| 1667 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1668 | { |
| 1669 | .vendor = "Atmel", |
| 1670 | .name = "AT25F512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1671 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1672 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1673 | .model_id = ATMEL_AT25F512B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1674 | .total_size = 64, |
| 1675 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1676 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1677 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1678 | .tested = TEST_UNTESTED, |
| 1679 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1680 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1681 | .block_erasers = |
| 1682 | { |
| 1683 | { |
| 1684 | .eraseblocks = { {4 * 1024, 16} }, |
| 1685 | .block_erase = spi_block_erase_20, |
| 1686 | }, { |
| 1687 | .eraseblocks = { {32 * 1024, 2} }, |
| 1688 | .block_erase = spi_block_erase_52, |
| 1689 | }, { |
| 1690 | .eraseblocks = { {32 * 1024, 2} }, |
| 1691 | .block_erase = spi_block_erase_d8, |
| 1692 | }, { |
| 1693 | .eraseblocks = { {64 * 1024, 1} }, |
| 1694 | .block_erase = spi_block_erase_60, |
| 1695 | }, { |
| 1696 | .eraseblocks = { {64 * 1024, 1} }, |
| 1697 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | 3c0fcd0 | 2012-09-21 12:46:56 +0000 | [diff] [blame] | 1698 | }, { |
| 1699 | .eraseblocks = { {64 * 1024, 1} }, |
| 1700 | .block_erase = spi_block_erase_62, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1701 | } |
| 1702 | }, |
Stefan Tauner | 7bf4ed9 | 2012-08-26 21:04:27 +0000 | [diff] [blame] | 1703 | .printlock = spi_prettyprint_status_register_at25f512b, |
| 1704 | .unlock = spi_disable_blockprotect_at25f512b, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1705 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1706 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1707 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1708 | }, |
| 1709 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1710 | { |
| 1711 | .vendor = "Atmel", |
| 1712 | .name = "AT25FS010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1713 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1714 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1715 | .model_id = ATMEL_AT25FS010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1716 | .total_size = 128, |
| 1717 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1718 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1719 | .tested = TEST_UNTESTED, |
| 1720 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1721 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1722 | .block_erasers = |
| 1723 | { |
| 1724 | { |
| 1725 | .eraseblocks = { {4 * 1024, 32} }, |
| 1726 | .block_erase = spi_block_erase_20, |
| 1727 | }, { |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1728 | .eraseblocks = { {4 * 1024, 32} }, |
| 1729 | .block_erase = spi_block_erase_d7, |
| 1730 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1731 | .eraseblocks = { {32 * 1024, 4} }, |
| 1732 | .block_erase = spi_block_erase_52, |
| 1733 | }, { |
| 1734 | .eraseblocks = { {32 * 1024, 4} }, |
| 1735 | .block_erase = spi_block_erase_d8, |
| 1736 | }, { |
| 1737 | .eraseblocks = { {128 * 1024, 1} }, |
| 1738 | .block_erase = spi_block_erase_60, |
| 1739 | }, { |
| 1740 | .eraseblocks = { {128 * 1024, 1} }, |
| 1741 | .block_erase = spi_block_erase_c7, |
| 1742 | } |
| 1743 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1744 | .printlock = spi_prettyprint_status_register_at25fs010, |
| 1745 | .unlock = spi_disable_blockprotect_at25fs010, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1746 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1747 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1748 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1749 | }, |
| 1750 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1751 | { |
| 1752 | .vendor = "Atmel", |
| 1753 | .name = "AT25FS040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1754 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1755 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1756 | .model_id = ATMEL_AT25FS040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1757 | .total_size = 512, |
| 1758 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1759 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1760 | .tested = TEST_UNTESTED, |
| 1761 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1762 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1763 | .block_erasers = |
| 1764 | { |
| 1765 | { |
| 1766 | .eraseblocks = { {4 * 1024, 128} }, |
| 1767 | .block_erase = spi_block_erase_20, |
| 1768 | }, { |
| 1769 | .eraseblocks = { {64 * 1024, 8} }, |
| 1770 | .block_erase = spi_block_erase_52, |
| 1771 | }, { |
| 1772 | .eraseblocks = { {64 * 1024, 8} }, |
| 1773 | .block_erase = spi_block_erase_d8, |
| 1774 | }, { |
| 1775 | .eraseblocks = { {512 * 1024, 1} }, |
| 1776 | .block_erase = spi_block_erase_60, |
| 1777 | }, { |
| 1778 | .eraseblocks = { {512 * 1024, 1} }, |
| 1779 | .block_erase = spi_block_erase_c7, |
| 1780 | } |
| 1781 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1782 | .printlock = spi_prettyprint_status_register_at25fs040, |
| 1783 | .unlock = spi_disable_blockprotect_at25fs040, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1784 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1785 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1786 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1787 | }, |
| 1788 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1789 | { |
| 1790 | .vendor = "Atmel", |
| 1791 | .name = "AT26DF041", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1792 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1793 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1794 | .model_id = ATMEL_AT26DF041, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1795 | .total_size = 512, |
| 1796 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1797 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | 94b39b4 | 2012-10-27 00:06:02 +0000 | [diff] [blame] | 1798 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1799 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1800 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1801 | .block_erasers = |
| 1802 | { |
| 1803 | { |
Stefan Tauner | 94b39b4 | 2012-10-27 00:06:02 +0000 | [diff] [blame] | 1804 | .eraseblocks = { {256, 2048} }, |
| 1805 | .block_erase = spi_block_erase_81, |
| 1806 | }, { |
| 1807 | .eraseblocks = { {2 * 1024, 256} }, |
| 1808 | .block_erase = spi_block_erase_50, |
| 1809 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1810 | .eraseblocks = { {4 * 1024, 128} }, |
| 1811 | .block_erase = spi_block_erase_20, |
| 1812 | } |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 1813 | }, |
| 1814 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 1815 | /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */ |
Stefan Tauner | 94b39b4 | 2012-10-27 00:06:02 +0000 | [diff] [blame] | 1816 | .write = spi_chip_write_1, |
| 1817 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1818 | .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1819 | }, |
| 1820 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1821 | { |
| 1822 | .vendor = "Atmel", |
| 1823 | .name = "AT26DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1824 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1825 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1826 | .model_id = ATMEL_AT26DF081A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1827 | .total_size = 1024, |
| 1828 | .page_size = 256, |
Mathias Krause | 2c3afa3 | 2011-01-17 07:45:54 +0000 | [diff] [blame] | 1829 | .feature_bits = FEATURE_WRSR_WREN, |
| 1830 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1831 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1832 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1833 | .block_erasers = |
| 1834 | { |
| 1835 | { |
| 1836 | .eraseblocks = { {4 * 1024, 256} }, |
| 1837 | .block_erase = spi_block_erase_20, |
| 1838 | }, { |
| 1839 | .eraseblocks = { {32 * 1024, 32} }, |
| 1840 | .block_erase = spi_block_erase_52, |
| 1841 | }, { |
| 1842 | .eraseblocks = { {64 * 1024, 16} }, |
| 1843 | .block_erase = spi_block_erase_d8, |
| 1844 | }, { |
| 1845 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1846 | .block_erase = spi_block_erase_60, |
| 1847 | }, { |
| 1848 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1849 | .block_erase = spi_block_erase_c7, |
| 1850 | } |
| 1851 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 1852 | .printlock = spi_prettyprint_status_register_at26df081a, |
Mathias Krause | 2c3afa3 | 2011-01-17 07:45:54 +0000 | [diff] [blame] | 1853 | .unlock = spi_disable_blockprotect_at25df, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1854 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1855 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1856 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1857 | }, |
| 1858 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1859 | { |
| 1860 | .vendor = "Atmel", |
| 1861 | .name = "AT26DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1862 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1863 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1864 | .model_id = ATMEL_AT26DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1865 | .total_size = 2048, |
| 1866 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1867 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 1868 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1869 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1870 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1871 | .block_erasers = |
| 1872 | { |
| 1873 | { |
| 1874 | .eraseblocks = { {4 * 1024, 512} }, |
| 1875 | .block_erase = spi_block_erase_20, |
| 1876 | }, { |
| 1877 | .eraseblocks = { {32 * 1024, 64} }, |
| 1878 | .block_erase = spi_block_erase_52, |
| 1879 | }, { |
| 1880 | .eraseblocks = { {64 * 1024, 32} }, |
| 1881 | .block_erase = spi_block_erase_d8, |
| 1882 | }, { |
| 1883 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1884 | .block_erase = spi_block_erase_60, |
| 1885 | }, { |
| 1886 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1887 | .block_erase = spi_block_erase_c7, |
| 1888 | } |
| 1889 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 1890 | .printlock = spi_prettyprint_status_register_at25df, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1891 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1892 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1893 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1894 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1895 | }, |
| 1896 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1897 | { |
| 1898 | .vendor = "Atmel", |
| 1899 | .name = "AT26DF161A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1900 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1901 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1902 | .model_id = ATMEL_AT26DF161A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1903 | .total_size = 2048, |
| 1904 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1905 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1906 | .tested = TEST_UNTESTED, |
| 1907 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1908 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1909 | .block_erasers = |
| 1910 | { |
| 1911 | { |
| 1912 | .eraseblocks = { {4 * 1024, 512} }, |
| 1913 | .block_erase = spi_block_erase_20, |
| 1914 | }, { |
| 1915 | .eraseblocks = { {32 * 1024, 64} }, |
| 1916 | .block_erase = spi_block_erase_52, |
| 1917 | }, { |
| 1918 | .eraseblocks = { {64 * 1024, 32} }, |
| 1919 | .block_erase = spi_block_erase_d8, |
| 1920 | }, { |
| 1921 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1922 | .block_erase = spi_block_erase_60, |
| 1923 | }, { |
| 1924 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1925 | .block_erase = spi_block_erase_c7, |
| 1926 | } |
| 1927 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 1928 | .printlock = spi_prettyprint_status_register_at26df081a, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1929 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1930 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1931 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1932 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1933 | }, |
| 1934 | |
| 1935 | /*The AT26DF321 has the same ID as the AT25DF321. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1936 | /*{ |
| 1937 | .vendor = "Atmel", |
| 1938 | .name = "AT26DF321", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1939 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1940 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1941 | .model_id = ATMEL_AT26DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1942 | .total_size = 4096, |
| 1943 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1944 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1945 | .tested = TEST_UNTESTED, |
| 1946 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1947 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 1948 | .printlock = spi_prettyprint_status_register_at26df081a, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1949 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1950 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1951 | .read = spi_chip_read, |
| 1952 | },*/ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1953 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1954 | { |
| 1955 | .vendor = "Atmel", |
| 1956 | .name = "AT26F004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1957 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1958 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1959 | .model_id = ATMEL_AT26F004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1960 | .total_size = 512, |
| 1961 | .page_size = 256, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 1962 | .tested = TEST_BAD_WRITE, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1963 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1964 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1965 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1966 | .block_erasers = |
| 1967 | { |
| 1968 | { |
| 1969 | .eraseblocks = { {4 * 1024, 128} }, |
| 1970 | .block_erase = spi_block_erase_20, |
| 1971 | }, { |
| 1972 | .eraseblocks = { {32 * 1024, 16} }, |
| 1973 | .block_erase = spi_block_erase_52, |
| 1974 | }, { |
| 1975 | .eraseblocks = { {64 * 1024, 8} }, |
| 1976 | .block_erase = spi_block_erase_d8, |
| 1977 | }, { |
| 1978 | .eraseblocks = { {512 * 1024, 1} }, |
| 1979 | .block_erase = spi_block_erase_60, |
| 1980 | }, { |
| 1981 | .eraseblocks = { {512 * 1024, 1} }, |
| 1982 | .block_erase = spi_block_erase_c7, |
| 1983 | } |
| 1984 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 1985 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1986 | .write = NULL /* Incompatible Page write */, |
| 1987 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1988 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1989 | }, |
| 1990 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1991 | { |
| 1992 | .vendor = "Atmel", |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 1993 | .name = "AT29C512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1994 | .bustype = BUS_PARALLEL, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 1995 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1996 | .model_id = ATMEL_AT29C512, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 1997 | .total_size = 64, |
| 1998 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1999 | .feature_bits = FEATURE_LONG_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 2000 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 2001 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2002 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2003 | .block_erasers = |
| 2004 | { |
| 2005 | { |
| 2006 | .eraseblocks = { {64 * 1024, 1} }, |
| 2007 | .block_erase = erase_chip_block_jedec, |
| 2008 | } |
| 2009 | }, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2010 | .write = write_jedec, |
| 2011 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2012 | .voltage = {4500, 5500}, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2013 | }, |
| 2014 | |
| 2015 | { |
| 2016 | .vendor = "Atmel", |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2017 | .name = "AT29C010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2018 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2019 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2020 | .model_id = ATMEL_AT29C010A, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2021 | .total_size = 128, |
| 2022 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2023 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2024 | .tested = TEST_OK_PRE, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2025 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2026 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2027 | .block_erasers = |
| 2028 | { |
| 2029 | { |
| 2030 | .eraseblocks = { {128 * 1024, 1} }, |
| 2031 | .block_erase = erase_chip_block_jedec, |
| 2032 | } |
| 2033 | }, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2034 | .write = write_jedec, /* FIXME */ |
| 2035 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2036 | .voltage = {4500, 5500}, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2037 | }, |
| 2038 | |
| 2039 | { |
| 2040 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2041 | .name = "AT29C020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2042 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2043 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2044 | .model_id = ATMEL_AT29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2045 | .total_size = 256, |
| 2046 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2047 | .feature_bits = FEATURE_LONG_RESET, |
| 2048 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2049 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 2050 | .probe_timing = 10000, /* 10ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2051 | .block_erasers = |
| 2052 | { |
| 2053 | { |
| 2054 | .eraseblocks = { {256 * 1024, 1} }, |
| 2055 | .block_erase = erase_chip_block_jedec, |
| 2056 | } |
| 2057 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2058 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2059 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2060 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2061 | }, |
| 2062 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2063 | { |
| 2064 | .vendor = "Atmel", |
| 2065 | .name = "AT29C040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2066 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2067 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2068 | .model_id = ATMEL_AT29C040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2069 | .total_size = 512, |
| 2070 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2071 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2072 | .tested = TEST_UNTESTED, |
| 2073 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 2074 | .probe_timing = 10000, /* 10 ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2075 | .block_erasers = |
| 2076 | { |
| 2077 | { |
| 2078 | .eraseblocks = { {512 * 1024, 1} }, |
| 2079 | .block_erase = erase_chip_block_jedec, |
| 2080 | } |
| 2081 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2082 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2083 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2084 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2085 | }, |
| 2086 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2087 | { |
| 2088 | .vendor = "Atmel", |
| 2089 | .name = "AT45CS1282", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2090 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2091 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2092 | .model_id = ATMEL_AT45CS1282, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2093 | .total_size = 16896 /* No power of two sizes */, |
| 2094 | .page_size = 1056 /* No power of two sizes */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2095 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2096 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2097 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2098 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2099 | .write = NULL /* Incompatible Page write */, |
| 2100 | .read = NULL /* Incompatible read */, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2101 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2102 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2103 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2104 | { |
| 2105 | .vendor = "Atmel", |
| 2106 | .name = "AT45DB011D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2107 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2108 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2109 | .model_id = ATMEL_AT45DB011D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2110 | .total_size = 128 /* Size can only be determined from status register */, |
| 2111 | .page_size = 256 /* Size can only be determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2112 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2113 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2114 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2115 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2116 | .write = NULL, |
| 2117 | .read = NULL, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2118 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2119 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2120 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2121 | { |
| 2122 | .vendor = "Atmel", |
| 2123 | .name = "AT45DB021D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2124 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2125 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2126 | .model_id = ATMEL_AT45DB021D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2127 | .total_size = 256 /* Size can only be determined from status register */, |
| 2128 | .page_size = 256 /* Size can only be determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2129 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2130 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2131 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2132 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2133 | .write = NULL, |
| 2134 | .read = NULL, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2135 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2136 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2137 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2138 | { |
| 2139 | .vendor = "Atmel", |
| 2140 | .name = "AT45DB041D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2141 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2142 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2143 | .model_id = ATMEL_AT45DB041D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2144 | .total_size = 512 /* Size can only be determined from status register */, |
| 2145 | .page_size = 256 /* Size can only be determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2146 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2147 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2148 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2149 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2150 | .write = NULL, |
| 2151 | .read = NULL, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2152 | .voltage = {2500, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2153 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2154 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2155 | { |
| 2156 | .vendor = "Atmel", |
| 2157 | .name = "AT45DB081D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2158 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2159 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2160 | .model_id = ATMEL_AT45DB081D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2161 | .total_size = 1024 /* Size can only be determined from status register */, |
| 2162 | .page_size = 256 /* Size can only be determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2163 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2164 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2165 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2166 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2167 | .write = NULL, |
| 2168 | .read = NULL, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2169 | .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2170 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2171 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2172 | { |
| 2173 | .vendor = "Atmel", |
| 2174 | .name = "AT45DB161D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2175 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2176 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2177 | .model_id = ATMEL_AT45DB161D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2178 | .total_size = 2048 /* Size can only be determined from status register */, |
| 2179 | .page_size = 512 /* Size can only be determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2180 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2181 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2182 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2183 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2184 | .write = NULL, |
| 2185 | .read = NULL, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2186 | .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2187 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2188 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2189 | { |
| 2190 | .vendor = "Atmel", |
| 2191 | .name = "AT45DB321C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2192 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2193 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2194 | .model_id = ATMEL_AT45DB321C, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2195 | .total_size = 4224 /* No power of two sizes */, |
| 2196 | .page_size = 528 /* No power of two sizes */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2197 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2198 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2199 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2200 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2201 | .write = NULL, |
| 2202 | .read = NULL /* Incompatible read */, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2203 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2204 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2205 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2206 | { |
| 2207 | .vendor = "Atmel", |
| 2208 | .name = "AT45DB321D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2209 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2210 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2211 | .model_id = ATMEL_AT45DB321D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2212 | .total_size = 4096 /* Size can only be determined from status register */, |
| 2213 | .page_size = 512 /* Size can only be determined from status register */, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 2214 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2215 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 2216 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2217 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2218 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2219 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2220 | .write = NULL, |
| 2221 | .read = NULL, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2222 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2223 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2224 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2225 | { |
| 2226 | .vendor = "Atmel", |
| 2227 | .name = "AT45DB642D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2228 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2229 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2230 | .model_id = ATMEL_AT45DB642D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2231 | .total_size = 8192 /* Size can only be determined from status register */, |
| 2232 | .page_size = 1024 /* Size can only be determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2233 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2234 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2235 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2236 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2237 | .write = NULL, |
| 2238 | .read = NULL, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2239 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2240 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2241 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2242 | { |
| 2243 | .vendor = "Atmel", |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2244 | .name = "AT49BV512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2245 | .bustype = BUS_PARALLEL, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2246 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2247 | .model_id = ATMEL_AT49BV512, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2248 | .total_size = 64, |
| 2249 | .page_size = 64, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2250 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 2251 | .tested = TEST_OK_PREW, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2252 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2253 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2254 | .block_erasers = |
| 2255 | { |
| 2256 | { |
| 2257 | .eraseblocks = { {64 * 1024, 1} }, |
| 2258 | .block_erase = erase_chip_block_jedec, |
| 2259 | } |
| 2260 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2261 | .write = write_jedec_1, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2262 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2263 | .voltage = {2700, 3600}, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2264 | }, |
| 2265 | |
| 2266 | { |
| 2267 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2268 | .name = "AT49F002(N)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2269 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2270 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2271 | .model_id = ATMEL_AT49F002N, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2272 | .total_size = 256, |
| 2273 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2274 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2275 | .tested = TEST_UNTESTED, |
| 2276 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2277 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2278 | .block_erasers = |
| 2279 | { |
| 2280 | { |
| 2281 | .eraseblocks = { |
| 2282 | {16 * 1024, 1}, |
| 2283 | {8 * 1024, 2}, |
| 2284 | {96 * 1024, 1}, |
| 2285 | {128 * 1024, 1}, |
| 2286 | }, |
| 2287 | .block_erase = erase_sector_jedec, |
| 2288 | }, { |
| 2289 | .eraseblocks = { {256 * 1024, 1} }, |
| 2290 | .block_erase = erase_chip_block_jedec, |
| 2291 | } |
| 2292 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2293 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2294 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2295 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2296 | }, |
| 2297 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2298 | { |
| 2299 | .vendor = "Atmel", |
| 2300 | .name = "AT49F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2301 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2302 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2303 | .model_id = ATMEL_AT49F002NT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2304 | .total_size = 256, |
| 2305 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2306 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2307 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2308 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2309 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2310 | .block_erasers = |
| 2311 | { |
| 2312 | { |
| 2313 | .eraseblocks = { |
| 2314 | {128 * 1024, 1}, |
| 2315 | {96 * 1024, 1}, |
| 2316 | {8 * 1024, 2}, |
| 2317 | {16 * 1024, 1}, |
| 2318 | }, |
| 2319 | .block_erase = erase_sector_jedec, |
| 2320 | }, { |
| 2321 | .eraseblocks = { {256 * 1024, 1} }, |
| 2322 | .block_erase = erase_chip_block_jedec, |
| 2323 | } |
| 2324 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2325 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2326 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2327 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2328 | }, |
| 2329 | |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 2330 | { |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 2331 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2332 | .name = "AT49(H)F010", |
| 2333 | .bustype = BUS_PARALLEL, |
| 2334 | .manufacture_id = ATMEL_ID, |
| 2335 | .model_id = ATMEL_AT49F010, |
| 2336 | .total_size = 128, |
| 2337 | .page_size = 0, /* unused */ |
| 2338 | .feature_bits = FEATURE_EITHER_RESET, |
| 2339 | .tested = TEST_OK_PREW, |
| 2340 | .probe = probe_jedec, |
| 2341 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2342 | .block_erasers = |
| 2343 | { |
| 2344 | { |
| 2345 | .eraseblocks = { {128 * 1024, 1} }, |
| 2346 | .block_erase = erase_chip_block_jedec, |
| 2347 | } |
| 2348 | }, |
| 2349 | .printlock = printlock_at49f, |
| 2350 | .write = write_jedec_1, |
| 2351 | .read = read_memmapped, |
| 2352 | .voltage = {4500, 5500}, |
| 2353 | }, |
| 2354 | |
| 2355 | { |
| 2356 | .vendor = "Atmel", |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 2357 | .name = "AT49F020", |
| 2358 | .bustype = BUS_PARALLEL, |
| 2359 | .manufacture_id = ATMEL_ID, |
| 2360 | .model_id = ATMEL_AT49F020, |
| 2361 | .total_size = 256, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2362 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 2363 | .feature_bits = FEATURE_EITHER_RESET, |
| 2364 | .tested = TEST_OK_PRE, |
| 2365 | .probe = probe_jedec, |
| 2366 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2367 | .block_erasers = |
| 2368 | { |
| 2369 | { |
| 2370 | .eraseblocks = { {256 * 1024, 1} }, |
| 2371 | .block_erase = erase_chip_block_jedec, |
| 2372 | } |
| 2373 | /* Chip features an optional permanent write protection |
| 2374 | * of the first 8 kB. The erase function is the same as |
| 2375 | * above, but 00000H to 01FFFH will not be erased. |
| 2376 | * FIXME: add another eraser when partial erasers are |
| 2377 | * supported. |
| 2378 | */ |
| 2379 | }, |
| 2380 | .printlock = printlock_at49f, |
| 2381 | .write = write_jedec_1, |
| 2382 | .read = read_memmapped, |
| 2383 | .voltage = {4500, 5500}, |
| 2384 | }, |
| 2385 | |
| 2386 | { |
| 2387 | .vendor = "Atmel", |
| 2388 | .name = "AT49F040", |
| 2389 | .bustype = BUS_PARALLEL, |
| 2390 | .manufacture_id = ATMEL_ID, |
| 2391 | .model_id = ATMEL_AT49F040, |
| 2392 | .total_size = 512, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2393 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 2394 | .feature_bits = FEATURE_EITHER_RESET, |
| 2395 | .tested = TEST_UNTESTED, |
| 2396 | .probe = probe_jedec, |
| 2397 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2398 | .block_erasers = |
| 2399 | { |
| 2400 | { |
| 2401 | .eraseblocks = { {512 * 1024, 1} }, |
| 2402 | .block_erase = erase_chip_block_jedec, |
| 2403 | } |
| 2404 | /* Chip features an optional permanent write protection |
| 2405 | * of the first 16 kB. The erase function is the same as |
| 2406 | * above, but 00000H to 03FFFH will not be erased. |
| 2407 | * FIXME: add another eraser when partial erasers are |
| 2408 | * supported. |
| 2409 | */ |
| 2410 | }, |
| 2411 | .printlock = printlock_at49f, |
| 2412 | .write = write_jedec_1, |
| 2413 | .read = read_memmapped, |
| 2414 | .voltage = {4500, 5500}, |
| 2415 | }, |
| 2416 | |
| 2417 | { |
| 2418 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2419 | .name = "AT49F080", |
| 2420 | .bustype = BUS_PARALLEL, |
| 2421 | .manufacture_id = ATMEL_ID, |
| 2422 | .model_id = ATMEL_AT49F080, |
| 2423 | .total_size = 1024, |
| 2424 | .page_size = 0, /* unused */ |
| 2425 | .feature_bits = FEATURE_EITHER_RESET, |
| 2426 | .tested = TEST_UNTESTED, |
| 2427 | .probe = probe_jedec, |
| 2428 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2429 | .block_erasers = |
| 2430 | { |
| 2431 | { |
| 2432 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2433 | .block_erase = erase_chip_block_jedec, |
| 2434 | } |
| 2435 | /* Chip features an optional permanent write protection |
| 2436 | * of the first 16 kB. The erase function is the same as |
| 2437 | * above, but 00000H to 03FFFH will not be erased. |
| 2438 | * FIXME: add another eraser when partial erasers are |
| 2439 | * supported. |
| 2440 | */ |
| 2441 | }, |
| 2442 | .printlock = printlock_at49f, |
| 2443 | .write = write_jedec_1, |
| 2444 | .read = read_memmapped, |
| 2445 | .voltage = {4500, 5500}, |
| 2446 | }, |
| 2447 | |
| 2448 | { |
| 2449 | /* 'top' version of AT49F080. equal in all aspects but the boot block address */ |
| 2450 | .vendor = "Atmel", |
| 2451 | .name = "AT49F080T", |
| 2452 | .bustype = BUS_PARALLEL, |
| 2453 | .manufacture_id = ATMEL_ID, |
| 2454 | .model_id = ATMEL_AT49F080T, |
| 2455 | .total_size = 1024, |
| 2456 | .page_size = 0, /* unused */ |
| 2457 | .feature_bits = FEATURE_EITHER_RESET, |
| 2458 | .tested = TEST_UNTESTED, |
| 2459 | .probe = probe_jedec, |
| 2460 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2461 | .block_erasers = |
| 2462 | { |
| 2463 | { |
| 2464 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2465 | .block_erase = erase_chip_block_jedec, |
| 2466 | } |
| 2467 | /* Chip features an optional permanent write protection |
| 2468 | * of the first 16 kB. The erase function is the same as |
| 2469 | * above, but FC000H to FFFFFH will not be erased. |
| 2470 | * FIXME: add another eraser when partial erasers are |
| 2471 | * supported. |
| 2472 | */ |
| 2473 | }, |
| 2474 | .printlock = printlock_at49f, |
| 2475 | .write = write_jedec_1, |
| 2476 | .read = read_memmapped, |
| 2477 | .voltage = {4500, 5500}, |
| 2478 | }, |
| 2479 | |
| 2480 | { |
| 2481 | .vendor = "Atmel", |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 2482 | .name = "AT49LH002", |
| 2483 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 2484 | .manufacture_id = ATMEL_ID, |
| 2485 | .model_id = ATMEL_AT49LH002, |
| 2486 | .total_size = 256, |
| 2487 | .page_size = 0, /* unused */ |
| 2488 | .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */ |
| 2489 | .tested = TEST_UNTESTED, |
| 2490 | .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */ |
| 2491 | .probe_timing = TIMING_FIXME, |
| 2492 | .block_erasers = |
| 2493 | { |
| 2494 | { |
| 2495 | .eraseblocks = { |
| 2496 | {64 * 1024, 3}, |
| 2497 | {32 * 1024, 1}, |
| 2498 | {8 * 1024, 2}, |
| 2499 | {16 * 1024, 1}, |
| 2500 | }, |
| 2501 | .block_erase = erase_block_82802ab, |
| 2502 | }, { |
| 2503 | .eraseblocks = { |
| 2504 | {64 * 1024, 4}, |
| 2505 | }, |
| 2506 | .block_erase = NULL, /* TODO: Implement. */ |
| 2507 | }, |
| 2508 | }, |
| 2509 | .printlock = NULL, /* TODO */ |
| 2510 | .unlock = NULL, /* unlock_82802ab() not correct(?) */ |
| 2511 | .write = write_82802ab, |
| 2512 | .read = read_memmapped, |
| 2513 | .voltage = {3000, 3600}, |
| 2514 | }, |
| 2515 | |
| 2516 | { |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 2517 | .vendor = "Catalyst", |
| 2518 | .name = "CAT28F512", |
| 2519 | .bustype = BUS_PARALLEL, |
| 2520 | .manufacture_id = CATALYST_ID, |
| 2521 | .model_id = CATALYST_CAT28F512, |
| 2522 | .total_size = 64, |
| 2523 | .page_size = 0, /* unused */ |
| 2524 | .feature_bits = 0, |
| 2525 | .tested = TEST_OK_PR, |
| 2526 | .probe = probe_jedec, /* FIXME! */ |
| 2527 | .probe_timing = TIMING_ZERO, |
| 2528 | .block_erasers = |
| 2529 | { |
| 2530 | { |
| 2531 | .eraseblocks = { {64 * 1024, 1} }, |
| 2532 | .block_erase = NULL, /* TODO */ |
| 2533 | }, |
| 2534 | }, |
| 2535 | .write = NULL, /* TODO */ |
| 2536 | .read = read_memmapped, |
| 2537 | .voltage = {4500, 5500}, |
| 2538 | }, |
| 2539 | |
| 2540 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 2541 | .vendor = "Bright", |
| 2542 | .name = "BM29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2543 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 2544 | .manufacture_id = BRIGHT_ID, |
| 2545 | .model_id = BRIGHT_BM29F040, |
| 2546 | .total_size = 512, |
| 2547 | .page_size = 64 * 1024, |
| 2548 | .feature_bits = FEATURE_EITHER_RESET, |
| 2549 | .tested = TEST_OK_PR, |
| 2550 | .probe = probe_jedec, |
| 2551 | .probe_timing = TIMING_ZERO, |
| 2552 | .block_erasers = |
| 2553 | { |
| 2554 | { |
| 2555 | .eraseblocks = { {64 * 1024, 8} }, |
| 2556 | .block_erase = erase_sector_jedec, |
| 2557 | }, { |
| 2558 | .eraseblocks = { {512 * 1024, 1} }, |
| 2559 | .block_erase = erase_chip_block_jedec, |
| 2560 | }, |
| 2561 | }, |
| 2562 | .write = write_jedec_1, |
| 2563 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2564 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 2565 | }, |
| 2566 | |
| 2567 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2568 | .vendor = "EMST", |
| 2569 | .name = "F49B002UA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2570 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2571 | .manufacture_id = EMST_ID, |
| 2572 | .model_id = EMST_F49B002UA, |
| 2573 | .total_size = 256, |
| 2574 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2575 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2576 | .tested = TEST_UNTESTED, |
| 2577 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2578 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2579 | .block_erasers = |
| 2580 | { |
| 2581 | { |
| 2582 | .eraseblocks = { |
| 2583 | {128 * 1024, 1}, |
| 2584 | {96 * 1024, 1}, |
| 2585 | {8 * 1024, 2}, |
| 2586 | {16 * 1024, 1}, |
| 2587 | }, |
| 2588 | .block_erase = erase_sector_jedec, |
| 2589 | }, { |
| 2590 | .eraseblocks = { {256 * 1024, 1} }, |
| 2591 | .block_erase = erase_chip_block_jedec, |
| 2592 | } |
| 2593 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2594 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2595 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2596 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2597 | }, |
| 2598 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2599 | { |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 2600 | .vendor = "EMST", |
| 2601 | .name = "F25L008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2602 | .bustype = BUS_SPI, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 2603 | .manufacture_id = EMST_ID, |
| 2604 | .model_id = EMST_F25L008A, |
| 2605 | .total_size = 1024, |
| 2606 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2607 | .feature_bits = FEATURE_WRSR_EITHER, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 2608 | .tested = TEST_OK_PREW, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 2609 | .probe = probe_spi_rdid, |
| 2610 | .probe_timing = TIMING_ZERO, |
| 2611 | .block_erasers = |
| 2612 | { |
| 2613 | { |
| 2614 | .eraseblocks = { {4 * 1024, 256} }, |
| 2615 | .block_erase = spi_block_erase_20, |
| 2616 | }, { |
| 2617 | .eraseblocks = { {64 * 1024, 16} }, |
| 2618 | .block_erase = spi_block_erase_d8, |
| 2619 | }, { |
| 2620 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2621 | .block_erase = spi_block_erase_60, |
| 2622 | }, { |
| 2623 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2624 | .block_erase = spi_block_erase_c7, |
| 2625 | } |
| 2626 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2627 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2628 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 9a795d8 | 2010-07-14 16:19:05 +0000 | [diff] [blame] | 2629 | .write = spi_chip_write_1, |
Michael Karcher | 4497e86 | 2010-07-10 19:34:15 +0000 | [diff] [blame] | 2630 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2631 | .voltage = {2700, 3600}, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 2632 | }, |
| 2633 | |
| 2634 | { |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2635 | .vendor = "Eon", |
| 2636 | .name = "EN25B05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2637 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2638 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2639 | .model_id = EON_EN25B05, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2640 | .total_size = 64, |
| 2641 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2642 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2643 | .tested = TEST_UNTESTED, |
| 2644 | .probe = probe_spi_rdid, |
| 2645 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2646 | .block_erasers = |
| 2647 | { |
| 2648 | { |
| 2649 | .eraseblocks = { |
| 2650 | {4 * 1024, 2}, |
| 2651 | {8 * 1024, 1}, |
| 2652 | {16 * 1024, 1}, |
| 2653 | {32 * 1024, 1}, |
| 2654 | }, |
| 2655 | .block_erase = spi_block_erase_d8, |
| 2656 | }, { |
| 2657 | .eraseblocks = { {64 * 1024, 1} }, |
| 2658 | .block_erase = spi_block_erase_c7, |
| 2659 | } |
| 2660 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2661 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2662 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2663 | .write = spi_chip_write_256, |
| 2664 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2665 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2666 | }, |
| 2667 | |
| 2668 | { |
| 2669 | .vendor = "Eon", |
| 2670 | .name = "EN25B05T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2671 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2672 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2673 | .model_id = EON_EN25B05, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2674 | .total_size = 64, |
| 2675 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2676 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2677 | .tested = TEST_UNTESTED, |
| 2678 | .probe = probe_spi_rdid, |
| 2679 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2680 | .block_erasers = |
| 2681 | { |
| 2682 | { |
| 2683 | .eraseblocks = { |
| 2684 | {32 * 1024, 1}, |
| 2685 | {16 * 1024, 1}, |
| 2686 | {8 * 1024, 1}, |
| 2687 | {4 * 1024, 2}, |
| 2688 | }, |
| 2689 | .block_erase = spi_block_erase_d8, |
| 2690 | }, { |
| 2691 | .eraseblocks = { {64 * 1024, 1} }, |
| 2692 | .block_erase = spi_block_erase_c7, |
| 2693 | } |
| 2694 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2695 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2696 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2697 | .write = spi_chip_write_256, |
| 2698 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2699 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2700 | }, |
| 2701 | |
| 2702 | { |
| 2703 | .vendor = "Eon", |
| 2704 | .name = "EN25B10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2705 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2706 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2707 | .model_id = EON_EN25B10, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2708 | .total_size = 128, |
| 2709 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2710 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2711 | .tested = TEST_UNTESTED, |
| 2712 | .probe = probe_spi_rdid, |
| 2713 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2714 | .block_erasers = |
| 2715 | { |
| 2716 | { |
| 2717 | .eraseblocks = { |
| 2718 | {4 * 1024, 2}, |
| 2719 | {8 * 1024, 1}, |
| 2720 | {16 * 1024, 1}, |
| 2721 | {32 * 1024, 3}, |
| 2722 | }, |
| 2723 | .block_erase = spi_block_erase_d8, |
| 2724 | }, { |
| 2725 | .eraseblocks = { {128 * 1024, 1} }, |
| 2726 | .block_erase = spi_block_erase_c7, |
| 2727 | } |
| 2728 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2729 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2730 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2731 | .write = spi_chip_write_256, |
| 2732 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2733 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2734 | }, |
| 2735 | |
| 2736 | { |
| 2737 | .vendor = "Eon", |
| 2738 | .name = "EN25B10T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2739 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2740 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2741 | .model_id = EON_EN25B10, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2742 | .total_size = 128, |
| 2743 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2744 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2745 | .tested = TEST_UNTESTED, |
| 2746 | .probe = probe_spi_rdid, |
| 2747 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2748 | .block_erasers = |
| 2749 | { |
| 2750 | { |
| 2751 | .eraseblocks = { |
| 2752 | {32 * 1024, 3}, |
| 2753 | {16 * 1024, 1}, |
| 2754 | {8 * 1024, 1}, |
| 2755 | {4 * 1024, 2}, |
| 2756 | }, |
| 2757 | .block_erase = spi_block_erase_d8, |
| 2758 | }, { |
| 2759 | .eraseblocks = { {128 * 1024, 1} }, |
| 2760 | .block_erase = spi_block_erase_c7, |
| 2761 | } |
| 2762 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2763 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2764 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2765 | .write = spi_chip_write_256, |
| 2766 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2767 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2768 | }, |
| 2769 | |
| 2770 | { |
| 2771 | .vendor = "Eon", |
| 2772 | .name = "EN25B20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2773 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2774 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2775 | .model_id = EON_EN25B20, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2776 | .total_size = 256, |
| 2777 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2778 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2779 | .tested = TEST_UNTESTED, |
| 2780 | .probe = probe_spi_rdid, |
| 2781 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2782 | .block_erasers = |
| 2783 | { |
| 2784 | { |
| 2785 | .eraseblocks = { |
| 2786 | {4 * 1024, 2}, |
| 2787 | {8 * 1024, 1}, |
| 2788 | {16 * 1024, 1}, |
| 2789 | {32 * 1024, 1}, |
| 2790 | {64 * 1024, 3} |
| 2791 | }, |
| 2792 | .block_erase = spi_block_erase_d8, |
| 2793 | }, { |
| 2794 | .eraseblocks = { {256 * 1024, 1} }, |
| 2795 | .block_erase = spi_block_erase_c7, |
| 2796 | } |
| 2797 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2798 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2799 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2800 | .write = spi_chip_write_256, |
| 2801 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2802 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2803 | }, |
| 2804 | |
| 2805 | { |
| 2806 | .vendor = "Eon", |
| 2807 | .name = "EN25B20T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2808 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2809 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2810 | .model_id = EON_EN25B20, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2811 | .total_size = 256, |
| 2812 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2813 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2814 | .tested = TEST_UNTESTED, |
| 2815 | .probe = probe_spi_rdid, |
| 2816 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2817 | .block_erasers = |
| 2818 | { |
| 2819 | { |
| 2820 | .eraseblocks = { |
| 2821 | {64 * 1024, 3}, |
| 2822 | {32 * 1024, 1}, |
| 2823 | {16 * 1024, 1}, |
| 2824 | {8 * 1024, 1}, |
| 2825 | {4 * 1024, 2}, |
| 2826 | }, |
| 2827 | .block_erase = spi_block_erase_d8, |
| 2828 | }, { |
| 2829 | .eraseblocks = { {256 * 1024, 1} }, |
| 2830 | .block_erase = spi_block_erase_c7, |
| 2831 | } |
| 2832 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2833 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2834 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2835 | .write = spi_chip_write_256, |
| 2836 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2837 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2838 | }, |
| 2839 | |
| 2840 | { |
| 2841 | .vendor = "Eon", |
| 2842 | .name = "EN25B40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2843 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2844 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2845 | .model_id = EON_EN25B40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2846 | .total_size = 512, |
| 2847 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2848 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2849 | .tested = TEST_UNTESTED, |
| 2850 | .probe = probe_spi_rdid, |
| 2851 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2852 | .block_erasers = |
| 2853 | { |
| 2854 | { |
| 2855 | .eraseblocks = { |
| 2856 | {4 * 1024, 2}, |
| 2857 | {8 * 1024, 1}, |
| 2858 | {16 * 1024, 1}, |
| 2859 | {32 * 1024, 1}, |
| 2860 | {64 * 1024, 7} |
| 2861 | }, |
| 2862 | .block_erase = spi_block_erase_d8, |
| 2863 | }, { |
| 2864 | .eraseblocks = { {512 * 1024, 1} }, |
| 2865 | .block_erase = spi_block_erase_c7, |
| 2866 | } |
| 2867 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2868 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2869 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2870 | .write = spi_chip_write_256, |
| 2871 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2872 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2873 | }, |
| 2874 | |
| 2875 | { |
| 2876 | .vendor = "Eon", |
| 2877 | .name = "EN25B40T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2878 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2879 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2880 | .model_id = EON_EN25B40, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2881 | .total_size = 512, |
| 2882 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2883 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2884 | .tested = TEST_UNTESTED, |
| 2885 | .probe = probe_spi_rdid, |
| 2886 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2887 | .block_erasers = |
| 2888 | { |
| 2889 | { |
| 2890 | .eraseblocks = { |
| 2891 | {64 * 1024, 7}, |
| 2892 | {32 * 1024, 1}, |
| 2893 | {16 * 1024, 1}, |
| 2894 | {8 * 1024, 1}, |
| 2895 | {4 * 1024, 2}, |
| 2896 | }, |
| 2897 | .block_erase = spi_block_erase_d8, |
| 2898 | }, { |
| 2899 | .eraseblocks = { {512 * 1024, 1} }, |
| 2900 | .block_erase = spi_block_erase_c7, |
| 2901 | } |
| 2902 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2903 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2904 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2905 | .write = spi_chip_write_256, |
| 2906 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2907 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2908 | }, |
| 2909 | |
| 2910 | { |
| 2911 | .vendor = "Eon", |
| 2912 | .name = "EN25B80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2913 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2914 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2915 | .model_id = EON_EN25B80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2916 | .total_size = 1024, |
| 2917 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2918 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2919 | .tested = TEST_UNTESTED, |
| 2920 | .probe = probe_spi_rdid, |
| 2921 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2922 | .block_erasers = |
| 2923 | { |
| 2924 | { |
| 2925 | .eraseblocks = { |
| 2926 | {4 * 1024, 2}, |
| 2927 | {8 * 1024, 1}, |
| 2928 | {16 * 1024, 1}, |
| 2929 | {32 * 1024, 1}, |
| 2930 | {64 * 1024, 15} |
| 2931 | }, |
| 2932 | .block_erase = spi_block_erase_d8, |
| 2933 | }, { |
| 2934 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2935 | .block_erase = spi_block_erase_c7, |
| 2936 | } |
| 2937 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2938 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2939 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2940 | .write = spi_chip_write_256, |
| 2941 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2942 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2943 | }, |
| 2944 | |
| 2945 | { |
| 2946 | .vendor = "Eon", |
| 2947 | .name = "EN25B80T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2948 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2949 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2950 | .model_id = EON_EN25B80, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2951 | .total_size = 1024, |
| 2952 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2953 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2954 | .tested = TEST_UNTESTED, |
| 2955 | .probe = probe_spi_rdid, |
| 2956 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2957 | .block_erasers = |
| 2958 | { |
| 2959 | { |
| 2960 | .eraseblocks = { |
| 2961 | {64 * 1024, 15}, |
| 2962 | {32 * 1024, 1}, |
| 2963 | {16 * 1024, 1}, |
| 2964 | {8 * 1024, 1}, |
| 2965 | {4 * 1024, 2}, |
| 2966 | }, |
| 2967 | .block_erase = spi_block_erase_d8, |
| 2968 | }, { |
| 2969 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2970 | .block_erase = spi_block_erase_c7, |
| 2971 | } |
| 2972 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2973 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2974 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2975 | .write = spi_chip_write_256, |
| 2976 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2977 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2978 | }, |
| 2979 | |
| 2980 | { |
| 2981 | .vendor = "Eon", |
| 2982 | .name = "EN25B16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2983 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2984 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2985 | .model_id = EON_EN25B16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2986 | .total_size = 2048, |
| 2987 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2988 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2989 | .tested = TEST_UNTESTED, |
| 2990 | .probe = probe_spi_rdid, |
| 2991 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2992 | .block_erasers = |
| 2993 | { |
| 2994 | { |
| 2995 | .eraseblocks = { |
| 2996 | {4 * 1024, 2}, |
| 2997 | {8 * 1024, 1}, |
| 2998 | {16 * 1024, 1}, |
| 2999 | {32 * 1024, 1}, |
| 3000 | {64 * 1024, 31}, |
| 3001 | }, |
| 3002 | .block_erase = spi_block_erase_d8, |
| 3003 | }, { |
| 3004 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3005 | .block_erase = spi_block_erase_c7, |
| 3006 | } |
| 3007 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3008 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3009 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3010 | .write = spi_chip_write_256, |
| 3011 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3012 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3013 | }, |
| 3014 | |
| 3015 | { |
| 3016 | .vendor = "Eon", |
| 3017 | .name = "EN25B16T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3018 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3019 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3020 | .model_id = EON_EN25B16, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3021 | .total_size = 2048, |
| 3022 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3023 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3024 | .tested = TEST_UNTESTED, |
| 3025 | .probe = probe_spi_rdid, |
| 3026 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3027 | .block_erasers = |
| 3028 | { |
| 3029 | { |
| 3030 | .eraseblocks = { |
| 3031 | {64 * 1024, 31}, |
| 3032 | {32 * 1024, 1}, |
| 3033 | {16 * 1024, 1}, |
| 3034 | {8 * 1024, 1}, |
| 3035 | {4 * 1024, 2}, |
| 3036 | }, |
| 3037 | .block_erase = spi_block_erase_d8, |
| 3038 | }, { |
| 3039 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3040 | .block_erase = spi_block_erase_c7, |
| 3041 | } |
| 3042 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3043 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3044 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3045 | .write = spi_chip_write_256, |
| 3046 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3047 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3048 | }, |
| 3049 | |
| 3050 | { |
| 3051 | .vendor = "Eon", |
| 3052 | .name = "EN25B32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3053 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3054 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3055 | .model_id = EON_EN25B32, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3056 | .total_size = 4096, |
| 3057 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3058 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3059 | .tested = TEST_UNTESTED, |
| 3060 | .probe = probe_spi_rdid, |
| 3061 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3062 | .block_erasers = |
| 3063 | { |
| 3064 | { |
| 3065 | .eraseblocks = { |
| 3066 | {4 * 1024, 2}, |
| 3067 | {8 * 1024, 1}, |
| 3068 | {16 * 1024, 1}, |
| 3069 | {32 * 1024, 1}, |
| 3070 | {64 * 1024, 63}, |
| 3071 | }, |
| 3072 | .block_erase = spi_block_erase_d8, |
| 3073 | }, { |
| 3074 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3075 | .block_erase = spi_block_erase_c7, |
| 3076 | } |
| 3077 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3078 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3079 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3080 | .write = spi_chip_write_256, |
| 3081 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3082 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3083 | }, |
| 3084 | |
| 3085 | { |
| 3086 | .vendor = "Eon", |
| 3087 | .name = "EN25B32T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3088 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3089 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3090 | .model_id = EON_EN25B32, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3091 | .total_size = 4096, |
| 3092 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3093 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3094 | .tested = TEST_UNTESTED, |
| 3095 | .probe = probe_spi_rdid, |
| 3096 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3097 | .block_erasers = |
| 3098 | { |
| 3099 | { |
| 3100 | .eraseblocks = { |
| 3101 | {64 * 1024, 63}, |
| 3102 | {32 * 1024, 1}, |
| 3103 | {16 * 1024, 1}, |
| 3104 | {8 * 1024, 1}, |
| 3105 | {4 * 1024, 2}, |
| 3106 | }, |
| 3107 | .block_erase = spi_block_erase_d8, |
| 3108 | }, { |
| 3109 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3110 | .block_erase = spi_block_erase_c7, |
| 3111 | } |
| 3112 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3113 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3114 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3115 | .write = spi_chip_write_256, |
| 3116 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3117 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3118 | }, |
| 3119 | |
| 3120 | { |
| 3121 | .vendor = "Eon", |
| 3122 | .name = "EN25B64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3123 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3124 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3125 | .model_id = EON_EN25B64, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3126 | .total_size = 8192, |
| 3127 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3128 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3129 | .tested = TEST_UNTESTED, |
| 3130 | .probe = probe_spi_rdid, |
| 3131 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3132 | .block_erasers = |
| 3133 | { |
| 3134 | { |
| 3135 | .eraseblocks = { |
| 3136 | {4 * 1024, 2}, |
| 3137 | {8 * 1024, 1}, |
| 3138 | {16 * 1024, 1}, |
| 3139 | {32 * 1024, 1}, |
| 3140 | {64 * 1024, 127}, |
| 3141 | }, |
| 3142 | .block_erase = spi_block_erase_d8, |
| 3143 | }, { |
| 3144 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3145 | .block_erase = spi_block_erase_c7, |
| 3146 | } |
| 3147 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3148 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3149 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3150 | .write = spi_chip_write_256, |
| 3151 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3152 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3153 | }, |
| 3154 | |
| 3155 | { |
| 3156 | .vendor = "Eon", |
| 3157 | .name = "EN25B64T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3158 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3159 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3160 | .model_id = EON_EN25B64, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3161 | .total_size = 8192, |
| 3162 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3163 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3164 | .tested = TEST_UNTESTED, |
| 3165 | .probe = probe_spi_rdid, |
| 3166 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3167 | .block_erasers = |
| 3168 | { |
| 3169 | { |
| 3170 | .eraseblocks = { |
| 3171 | {64 * 1024, 127}, |
| 3172 | {32 * 1024, 1}, |
| 3173 | {16 * 1024, 1}, |
| 3174 | {8 * 1024, 1}, |
| 3175 | {4 * 1024, 2}, |
| 3176 | }, |
| 3177 | .block_erase = spi_block_erase_d8, |
| 3178 | }, { |
| 3179 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3180 | .block_erase = spi_block_erase_c7, |
| 3181 | } |
| 3182 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3183 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3184 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3185 | .write = spi_chip_write_256, |
| 3186 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3187 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3188 | }, |
| 3189 | |
| 3190 | { |
| 3191 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3192 | .name = "EN25F05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3193 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3194 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3195 | .model_id = EON_EN25F05, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3196 | .total_size = 64, |
| 3197 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3198 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3199 | .tested = TEST_UNTESTED, |
| 3200 | .probe = probe_spi_rdid, |
| 3201 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3202 | .block_erasers = |
| 3203 | { |
| 3204 | { |
| 3205 | .eraseblocks = { {4 * 1024, 16} }, |
| 3206 | .block_erase = spi_block_erase_20, |
| 3207 | }, { |
| 3208 | .eraseblocks = { {32 * 1024, 2} }, |
| 3209 | .block_erase = spi_block_erase_d8, |
| 3210 | }, { |
| 3211 | .eraseblocks = { {32 * 1024, 2} }, |
| 3212 | .block_erase = spi_block_erase_52, |
| 3213 | }, { |
| 3214 | .eraseblocks = { {64 * 1024, 1} }, |
| 3215 | .block_erase = spi_block_erase_60, |
| 3216 | }, { |
| 3217 | .eraseblocks = { {64 * 1024, 1} }, |
| 3218 | .block_erase = spi_block_erase_c7, |
| 3219 | } |
| 3220 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3221 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3222 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3223 | .write = spi_chip_write_256, |
| 3224 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3225 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3226 | }, |
| 3227 | |
| 3228 | { |
| 3229 | .vendor = "Eon", |
| 3230 | .name = "EN25F10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3231 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3232 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3233 | .model_id = EON_EN25F10, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3234 | .total_size = 128, |
| 3235 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3236 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3237 | .tested = TEST_UNTESTED, |
| 3238 | .probe = probe_spi_rdid, |
| 3239 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3240 | .block_erasers = |
| 3241 | { |
| 3242 | { |
| 3243 | .eraseblocks = { {4 * 1024, 32} }, |
| 3244 | .block_erase = spi_block_erase_20, |
| 3245 | }, { |
| 3246 | .eraseblocks = { {32 * 1024, 4} }, |
| 3247 | .block_erase = spi_block_erase_d8, |
| 3248 | }, { |
| 3249 | .eraseblocks = { {32 * 1024, 4} }, |
| 3250 | .block_erase = spi_block_erase_52, |
| 3251 | }, { |
| 3252 | .eraseblocks = { {128 * 1024, 1} }, |
| 3253 | .block_erase = spi_block_erase_60, |
| 3254 | }, { |
| 3255 | .eraseblocks = { {128 * 1024, 1} }, |
| 3256 | .block_erase = spi_block_erase_c7, |
| 3257 | } |
| 3258 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3259 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3260 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3261 | .write = spi_chip_write_256, |
| 3262 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3263 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3264 | }, |
| 3265 | |
| 3266 | { |
| 3267 | .vendor = "Eon", |
| 3268 | .name = "EN25F20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3269 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3270 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3271 | .model_id = EON_EN25F20, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3272 | .total_size = 256, |
| 3273 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3274 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3275 | .tested = TEST_UNTESTED, |
| 3276 | .probe = probe_spi_rdid, |
| 3277 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3278 | .block_erasers = |
| 3279 | { |
| 3280 | { |
| 3281 | .eraseblocks = { {4 * 1024, 64} }, |
| 3282 | .block_erase = spi_block_erase_20, |
| 3283 | }, { |
| 3284 | .eraseblocks = { {64 * 1024, 4} }, |
| 3285 | .block_erase = spi_block_erase_d8, |
| 3286 | }, { |
| 3287 | .eraseblocks = { {64 * 1024, 4} }, |
| 3288 | .block_erase = spi_block_erase_52, |
| 3289 | }, { |
| 3290 | .eraseblocks = { {256 * 1024, 1} }, |
| 3291 | .block_erase = spi_block_erase_60, |
| 3292 | }, { |
| 3293 | .eraseblocks = { {256 * 1024, 1} }, |
| 3294 | .block_erase = spi_block_erase_c7, |
| 3295 | } |
| 3296 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3297 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3298 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3299 | .write = spi_chip_write_256, |
| 3300 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3301 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3302 | }, |
| 3303 | |
| 3304 | { |
| 3305 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3306 | .name = "EN25F40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3307 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3308 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3309 | .model_id = EON_EN25F40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3310 | .total_size = 512, |
| 3311 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3312 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | faaa2b2 | 2009-06-22 10:06:28 +0000 | [diff] [blame] | 3313 | .tested = TEST_OK_PROBE, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3314 | .probe = probe_spi_rdid, |
| 3315 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3316 | .block_erasers = |
| 3317 | { |
| 3318 | { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3319 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3320 | .block_erase = spi_block_erase_20, |
| 3321 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3322 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3323 | .block_erase = spi_block_erase_d8, |
| 3324 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3325 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3326 | .block_erase = spi_block_erase_60, |
| 3327 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3328 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3329 | .block_erase = spi_block_erase_c7, |
| 3330 | }, |
| 3331 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3332 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3333 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3334 | .write = spi_chip_write_256, |
| 3335 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3336 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3337 | }, |
| 3338 | |
| 3339 | { |
| 3340 | .vendor = "Eon", |
| 3341 | .name = "EN25F80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3342 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3343 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3344 | .model_id = EON_EN25F80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3345 | .total_size = 1024, |
| 3346 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3347 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 3348 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3349 | .probe = probe_spi_rdid, |
| 3350 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3351 | .block_erasers = |
| 3352 | { |
| 3353 | { |
| 3354 | .eraseblocks = { {4 * 1024, 256} }, |
| 3355 | .block_erase = spi_block_erase_20, |
| 3356 | }, { |
| 3357 | .eraseblocks = { {64 * 1024, 16} }, |
| 3358 | .block_erase = spi_block_erase_d8, |
| 3359 | }, { |
| 3360 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3361 | .block_erase = spi_block_erase_60, |
| 3362 | }, { |
| 3363 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3364 | .block_erase = spi_block_erase_c7, |
| 3365 | } |
| 3366 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3367 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3368 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3369 | .write = spi_chip_write_256, |
| 3370 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3371 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3372 | }, |
| 3373 | |
| 3374 | { |
| 3375 | .vendor = "Eon", |
| 3376 | .name = "EN25F16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3377 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3378 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3379 | .model_id = EON_EN25F16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3380 | .total_size = 2048, |
| 3381 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3382 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 3383 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3384 | .probe = probe_spi_rdid, |
| 3385 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3386 | .block_erasers = |
| 3387 | { |
| 3388 | { |
| 3389 | .eraseblocks = { {4 * 1024, 512} }, |
| 3390 | .block_erase = spi_block_erase_20, |
| 3391 | }, { |
| 3392 | .eraseblocks = { {64 * 1024, 32} }, |
| 3393 | .block_erase = spi_block_erase_d8, |
| 3394 | }, { |
| 3395 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3396 | .block_erase = spi_block_erase_60, |
| 3397 | }, { |
| 3398 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3399 | .block_erase = spi_block_erase_c7, |
| 3400 | } |
| 3401 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3402 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3403 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3404 | .write = spi_chip_write_256, |
| 3405 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3406 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3407 | }, |
| 3408 | |
| 3409 | { |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3410 | .vendor = "Eon", |
| 3411 | .name = "EN25F32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3412 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3413 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3414 | .model_id = EON_EN25F32, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3415 | .total_size = 4096, |
| 3416 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3417 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3418 | .tested = TEST_UNTESTED, |
| 3419 | .probe = probe_spi_rdid, |
| 3420 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3421 | .block_erasers = |
| 3422 | { |
| 3423 | { |
| 3424 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3425 | .block_erase = spi_block_erase_20, |
| 3426 | }, { |
| 3427 | .eraseblocks = { {64 * 1024, 64} }, |
| 3428 | .block_erase = spi_block_erase_d8, |
| 3429 | }, { |
| 3430 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3431 | .block_erase = spi_block_erase_60, |
| 3432 | }, { |
| 3433 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3434 | .block_erase = spi_block_erase_c7, |
| 3435 | } |
| 3436 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3437 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3438 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3439 | .write = spi_chip_write_256, |
| 3440 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3441 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3442 | }, |
| 3443 | |
| 3444 | { |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 3445 | .vendor = "Eon", |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 3446 | .name = "EN25F64", |
| 3447 | .bustype = BUS_SPI, |
| 3448 | .manufacture_id = EON_ID_NOPREFIX, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 3449 | .model_id = EON_EN25F64, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 3450 | .total_size = 8192, |
| 3451 | .page_size = 256, |
| 3452 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 3453 | .tested = TEST_OK_PR, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 3454 | .probe = probe_spi_rdid, |
| 3455 | .probe_timing = TIMING_ZERO, |
| 3456 | .block_erasers = |
| 3457 | { |
| 3458 | { |
| 3459 | .eraseblocks = { {4 * 1024, 2048} }, |
| 3460 | .block_erase = spi_block_erase_20, |
| 3461 | }, { |
| 3462 | .eraseblocks = { {64 * 1024, 128} }, |
| 3463 | .block_erase = spi_block_erase_d8, |
| 3464 | }, { |
| 3465 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3466 | .block_erase = spi_block_erase_60, |
| 3467 | }, { |
| 3468 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3469 | .block_erase = spi_block_erase_c7, |
| 3470 | } |
| 3471 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3472 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 3473 | .unlock = spi_disable_blockprotect, |
| 3474 | .write = spi_chip_write_256, |
| 3475 | .read = spi_chip_read, |
| 3476 | .voltage = {2700, 3600}, |
| 3477 | }, |
| 3478 | |
| 3479 | { |
| 3480 | .vendor = "Eon", |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3481 | .name = "EN25Q40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3482 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3483 | .manufacture_id = EON_ID_NOPREFIX, |
| 3484 | .model_id = EON_EN25Q40, |
| 3485 | .total_size = 512, |
| 3486 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3487 | /* OTP: 256B total; enter 0x3A */ |
| 3488 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3489 | .tested = TEST_UNTESTED, |
| 3490 | .probe = probe_spi_rdid, |
| 3491 | .probe_timing = TIMING_ZERO, |
| 3492 | .block_erasers = |
| 3493 | { |
| 3494 | { |
| 3495 | .eraseblocks = { {4 * 1024, 128} }, |
| 3496 | .block_erase = spi_block_erase_20, |
| 3497 | }, { |
| 3498 | .eraseblocks = { {64 * 1024, 8} }, |
| 3499 | .block_erase = spi_block_erase_d8, |
| 3500 | }, { |
| 3501 | .eraseblocks = { {512 * 1024, 1} }, |
| 3502 | .block_erase = spi_block_erase_60, |
| 3503 | }, { |
| 3504 | .eraseblocks = { {512 * 1024, 1} }, |
| 3505 | .block_erase = spi_block_erase_c7, |
| 3506 | } |
| 3507 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3508 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3509 | .unlock = spi_disable_blockprotect, |
| 3510 | .write = spi_chip_write_256, |
| 3511 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3512 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3513 | }, |
| 3514 | |
| 3515 | { |
| 3516 | .vendor = "Eon", |
| 3517 | .name = "EN25Q80(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3518 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3519 | .manufacture_id = EON_ID_NOPREFIX, |
| 3520 | .model_id = EON_EN25Q80, |
| 3521 | .total_size = 1024, |
| 3522 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3523 | /* OTP: 256B total; enter 0x3A */ |
| 3524 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3525 | .tested = TEST_UNTESTED, |
| 3526 | .probe = probe_spi_rdid, |
| 3527 | .probe_timing = TIMING_ZERO, |
| 3528 | .block_erasers = |
| 3529 | { |
| 3530 | { |
| 3531 | .eraseblocks = { {4 * 1024, 256} }, |
| 3532 | .block_erase = spi_block_erase_20, |
| 3533 | }, { |
| 3534 | .eraseblocks = { {64 * 1024, 16} }, |
| 3535 | .block_erase = spi_block_erase_d8, |
| 3536 | }, { |
| 3537 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3538 | .block_erase = spi_block_erase_60, |
| 3539 | }, { |
| 3540 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3541 | .block_erase = spi_block_erase_c7, |
| 3542 | } |
| 3543 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3544 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3545 | .unlock = spi_disable_blockprotect, |
| 3546 | .write = spi_chip_write_256, |
| 3547 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3548 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3549 | }, |
| 3550 | |
| 3551 | { |
| 3552 | /* Note: EN25D16 is an evil twin which shares the model ID |
| 3553 | but has different write protection capabilities */ |
| 3554 | .vendor = "Eon", |
| 3555 | .name = "EN25Q16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3556 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3557 | .manufacture_id = EON_ID_NOPREFIX, |
| 3558 | .model_id = EON_EN25Q16, |
| 3559 | .total_size = 2048, |
| 3560 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3561 | /* OTP: D16 512B/Q16 128B total; enter 0x3A */ |
| 3562 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3563 | .tested = TEST_UNTESTED, |
| 3564 | .probe = probe_spi_rdid, |
| 3565 | .probe_timing = TIMING_ZERO, |
| 3566 | .block_erasers = |
| 3567 | { |
| 3568 | { |
| 3569 | .eraseblocks = { {4 * 1024, 512} }, |
| 3570 | .block_erase = spi_block_erase_20, |
| 3571 | }, { |
| 3572 | .eraseblocks = { {64 * 1024, 32} }, |
| 3573 | .block_erase = spi_block_erase_d8, |
| 3574 | }, { |
| 3575 | /* not supported by Q16 version */ |
| 3576 | .eraseblocks = { {64 * 1024, 32} }, |
| 3577 | .block_erase = spi_block_erase_52, |
| 3578 | }, { |
| 3579 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3580 | .block_erase = spi_block_erase_60, |
| 3581 | }, { |
| 3582 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3583 | .block_erase = spi_block_erase_c7, |
| 3584 | } |
| 3585 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3586 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3587 | .unlock = spi_disable_blockprotect, |
| 3588 | .write = spi_chip_write_256, |
| 3589 | .read = spi_chip_read, |
| 3590 | .voltage = {2700, 3600}, |
| 3591 | }, |
| 3592 | |
| 3593 | { |
| 3594 | .vendor = "Eon", |
| 3595 | .name = "EN25Q32(A/B)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3596 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3597 | .manufacture_id = EON_ID_NOPREFIX, |
| 3598 | .model_id = EON_EN25Q32, |
| 3599 | .total_size = 4096, |
| 3600 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3601 | /* OTP: 512B total; enter 0x3A */ |
| 3602 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 2abab94 | 2012-04-27 20:41:23 +0000 | [diff] [blame] | 3603 | .tested = TEST_OK_PROBE, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3604 | .probe = probe_spi_rdid, |
| 3605 | .probe_timing = TIMING_ZERO, |
| 3606 | .block_erasers = |
| 3607 | { |
| 3608 | { |
| 3609 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3610 | .block_erase = spi_block_erase_20, |
| 3611 | }, { |
| 3612 | .eraseblocks = { {64 * 1024, 64} }, |
| 3613 | .block_erase = spi_block_erase_d8, |
| 3614 | }, { |
| 3615 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3616 | .block_erase = spi_block_erase_60, |
| 3617 | }, { |
| 3618 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3619 | .block_erase = spi_block_erase_c7, |
| 3620 | } |
| 3621 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3622 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3623 | .unlock = spi_disable_blockprotect, |
| 3624 | .write = spi_chip_write_256, |
| 3625 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3626 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3627 | }, |
| 3628 | |
| 3629 | { |
| 3630 | .vendor = "Eon", |
| 3631 | .name = "EN25Q64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3632 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3633 | .manufacture_id = EON_ID_NOPREFIX, |
| 3634 | .model_id = EON_EN25Q64, |
| 3635 | .total_size = 8192, |
| 3636 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3637 | /* OTP: 512B total; enter 0x3A */ |
| 3638 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3639 | .tested = TEST_UNTESTED, |
| 3640 | .probe = probe_spi_rdid, |
| 3641 | .probe_timing = TIMING_ZERO, |
| 3642 | .block_erasers = |
| 3643 | { |
| 3644 | { |
| 3645 | .eraseblocks = { {4 * 1024, 2048} }, |
| 3646 | .block_erase = spi_block_erase_20, |
| 3647 | }, { |
| 3648 | .eraseblocks = { {64 * 1024, 128} }, |
| 3649 | .block_erase = spi_block_erase_d8, |
| 3650 | }, { |
| 3651 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3652 | .block_erase = spi_block_erase_60, |
| 3653 | }, { |
| 3654 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3655 | .block_erase = spi_block_erase_c7, |
| 3656 | } |
| 3657 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3658 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3659 | .unlock = spi_disable_blockprotect, |
| 3660 | .write = spi_chip_write_256, |
| 3661 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3662 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3663 | }, |
| 3664 | |
| 3665 | { |
| 3666 | .vendor = "Eon", |
| 3667 | .name = "EN25Q128", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3668 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3669 | .manufacture_id = EON_ID_NOPREFIX, |
| 3670 | .model_id = EON_EN25Q128, |
| 3671 | .total_size = 16384, |
| 3672 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3673 | /* OTP: 512B total; enter 0x3A */ |
| 3674 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3675 | .tested = TEST_UNTESTED, |
| 3676 | .probe = probe_spi_rdid, |
| 3677 | .probe_timing = TIMING_ZERO, |
| 3678 | .block_erasers = |
| 3679 | { |
| 3680 | { |
| 3681 | .eraseblocks = { {4 * 1024, 4096} }, |
| 3682 | .block_erase = spi_block_erase_20, |
| 3683 | }, { |
| 3684 | .eraseblocks = { {64 * 1024, 256} }, |
| 3685 | .block_erase = spi_block_erase_d8, |
| 3686 | }, { |
| 3687 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 3688 | .block_erase = spi_block_erase_60, |
| 3689 | }, { |
| 3690 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 3691 | .block_erase = spi_block_erase_c7, |
| 3692 | } |
| 3693 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3694 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3695 | .unlock = spi_disable_blockprotect, |
| 3696 | .write = spi_chip_write_256, |
| 3697 | .read = spi_chip_read, |
| 3698 | }, |
| 3699 | |
| 3700 | { |
| 3701 | .vendor = "Eon", |
| 3702 | .name = "EN25QH16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3703 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3704 | .manufacture_id = EON_ID_NOPREFIX, |
| 3705 | .model_id = EON_EN25QH16, |
| 3706 | .total_size = 2048, |
| 3707 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3708 | /* supports SFDP */ |
| 3709 | /* OTP: 512B total; enter 0x3A */ |
| 3710 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 3711 | .tested = TEST_OK_PR, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3712 | .probe = probe_spi_rdid, |
| 3713 | .probe_timing = TIMING_ZERO, |
| 3714 | .block_erasers = |
| 3715 | { |
| 3716 | { |
| 3717 | .eraseblocks = { {4 * 1024, 512} }, |
| 3718 | .block_erase = spi_block_erase_20, |
| 3719 | }, { |
| 3720 | .eraseblocks = { {64 * 1024, 32} }, |
| 3721 | .block_erase = spi_block_erase_d8, |
| 3722 | }, { |
| 3723 | .eraseblocks = { {1024 * 2048, 1} }, |
| 3724 | .block_erase = spi_block_erase_60, |
| 3725 | }, { |
| 3726 | .eraseblocks = { {1024 * 2048, 1} }, |
| 3727 | .block_erase = spi_block_erase_c7, |
| 3728 | } |
| 3729 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3730 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3731 | .unlock = spi_disable_blockprotect, |
| 3732 | .write = spi_chip_write_256, |
| 3733 | .read = spi_chip_read, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 3734 | .voltage = {2700, 3600}, |
| 3735 | }, |
| 3736 | |
| 3737 | { |
| 3738 | .vendor = "Eon", |
| 3739 | .name = "EN25QH32", |
| 3740 | .bustype = BUS_SPI, |
| 3741 | .manufacture_id = EON_ID_NOPREFIX, |
| 3742 | .model_id = EON_EN25QH32, |
| 3743 | .total_size = 4096, |
| 3744 | .page_size = 256, |
| 3745 | /* supports SFDP */ |
| 3746 | /* OTP: 512B total; enter 0x3A */ |
| 3747 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 3748 | .tested = TEST_UNTESTED, |
| 3749 | .probe = probe_spi_rdid, |
| 3750 | .probe_timing = TIMING_ZERO, |
| 3751 | .block_erasers = |
| 3752 | { |
| 3753 | { |
| 3754 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3755 | .block_erase = spi_block_erase_20, |
| 3756 | }, { |
| 3757 | .eraseblocks = { {64 * 1024, 64} }, |
| 3758 | .block_erase = spi_block_erase_d8, |
| 3759 | }, { |
| 3760 | .eraseblocks = { {1024 * 4096, 1} }, |
| 3761 | .block_erase = spi_block_erase_60, |
| 3762 | }, { |
| 3763 | .eraseblocks = { {1024 * 4096, 1} }, |
| 3764 | .block_erase = spi_block_erase_c7, |
| 3765 | } |
| 3766 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3767 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 3768 | .unlock = spi_disable_blockprotect, |
| 3769 | .write = spi_chip_write_256, |
| 3770 | .read = spi_chip_read, |
| 3771 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3772 | }, |
| 3773 | |
| 3774 | { |
| 3775 | .vendor = "Eon", |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 3776 | .name = "EN29F010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3777 | .bustype = BUS_PARALLEL, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 3778 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3779 | .model_id = EON_EN29F010, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 3780 | .total_size = 128, |
| 3781 | .page_size = 128, |
| 3782 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 3783 | .tested = TEST_OK_PRE, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 3784 | .probe = probe_jedec, |
| 3785 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3786 | .block_erasers = |
| 3787 | { |
| 3788 | { |
| 3789 | .eraseblocks = { {16 * 1024, 8} }, |
| 3790 | .block_erase = erase_sector_jedec, |
| 3791 | }, |
| 3792 | { |
| 3793 | .eraseblocks = { {128 * 1024, 1} }, |
| 3794 | .block_erase = erase_chip_block_jedec, |
| 3795 | }, |
| 3796 | }, |
| 3797 | .write = write_jedec_1, |
| 3798 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3799 | .voltage = {4500, 5500}, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 3800 | }, |
| 3801 | |
| 3802 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 3803 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3804 | .name = "EN29F002(A)(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3805 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3806 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3807 | .model_id = EON_EN29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3808 | .total_size = 256, |
| 3809 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3810 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 3811 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3812 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3813 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3814 | .block_erasers = |
| 3815 | { |
| 3816 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 3817 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3818 | {16 * 1024, 1}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 3819 | {8 * 1024, 2}, |
| 3820 | {32 * 1024, 1}, |
| 3821 | {64 * 1024, 3}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3822 | }, |
| 3823 | .block_erase = erase_sector_jedec, |
| 3824 | }, { |
| 3825 | .eraseblocks = { {256 * 1024, 1} }, |
| 3826 | .block_erase = erase_chip_block_jedec, |
| 3827 | }, |
| 3828 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 3829 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3830 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3831 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3832 | }, |
| 3833 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3834 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 3835 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3836 | .name = "EN29F002(A)(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3837 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3838 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3839 | .model_id = EON_EN29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3840 | .total_size = 256, |
| 3841 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3842 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 3843 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3844 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3845 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3846 | .block_erasers = |
| 3847 | { |
| 3848 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 3849 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3850 | {64 * 1024, 3}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 3851 | {32 * 1024, 1}, |
| 3852 | {8 * 1024, 2}, |
| 3853 | {16 * 1024, 1}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3854 | }, |
| 3855 | .block_erase = erase_sector_jedec, |
| 3856 | }, { |
| 3857 | .eraseblocks = { {256 * 1024, 1} }, |
| 3858 | .block_erase = erase_chip_block_jedec, |
| 3859 | }, |
| 3860 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 3861 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3862 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3863 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3864 | }, |
| 3865 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3866 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 3867 | .vendor = "Eon", |
| 3868 | .name = "EN29LV640B", |
| 3869 | .bustype = BUS_PARALLEL, |
| 3870 | .manufacture_id = EON_ID, |
| 3871 | .model_id = EON_EN29LV640B, |
| 3872 | .total_size = 8192, |
| 3873 | .page_size = 8192, |
| 3874 | .feature_bits = 0, |
| 3875 | .tested = TEST_OK_PREW, |
| 3876 | .probe = probe_en29lv640b, |
| 3877 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3878 | .block_erasers = |
| 3879 | { |
| 3880 | { |
| 3881 | .eraseblocks = { |
| 3882 | {8 * 1024, 8}, |
| 3883 | {64 * 1024, 127}, |
| 3884 | }, |
| 3885 | .block_erase = block_erase_en29lv640b, |
| 3886 | }, { |
| 3887 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3888 | .block_erase = block_erase_chip_en29lv640b, |
| 3889 | }, |
| 3890 | }, |
| 3891 | .write = write_en29lv640b, |
| 3892 | .read = read_memmapped, |
| 3893 | .voltage = {2700, 3600}, |
| 3894 | }, |
| 3895 | |
| 3896 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3897 | .vendor = "Fujitsu", |
| 3898 | .name = "MBM29F004BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3899 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3900 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3901 | .model_id = FUJITSU_MBM29F004BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3902 | .total_size = 512, |
| 3903 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3904 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3905 | .tested = TEST_UNTESTED, |
| 3906 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3907 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3908 | .block_erasers = |
| 3909 | { |
| 3910 | { |
| 3911 | .eraseblocks = { |
| 3912 | {16 * 1024, 1}, |
| 3913 | {8 * 1024, 2}, |
| 3914 | {32 * 1024, 1}, |
| 3915 | {64 * 1024, 7}, |
| 3916 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3917 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3918 | }, { |
| 3919 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3920 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3921 | }, |
| 3922 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3923 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3924 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3925 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3926 | }, |
| 3927 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3928 | { |
| 3929 | .vendor = "Fujitsu", |
| 3930 | .name = "MBM29F004TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3931 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3932 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3933 | .model_id = FUJITSU_MBM29F004TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3934 | .total_size = 512, |
| 3935 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3936 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3937 | .tested = TEST_UNTESTED, |
| 3938 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3939 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3940 | .block_erasers = |
| 3941 | { |
| 3942 | { |
| 3943 | .eraseblocks = { |
| 3944 | {64 * 1024, 7}, |
| 3945 | {32 * 1024, 1}, |
| 3946 | {8 * 1024, 2}, |
| 3947 | {16 * 1024, 1}, |
| 3948 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3949 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3950 | }, { |
| 3951 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3952 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3953 | }, |
| 3954 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3955 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3956 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3957 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3958 | }, |
| 3959 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3960 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3961 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3962 | .vendor = "Fujitsu", |
| 3963 | .name = "MBM29F400BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3964 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3965 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3966 | .model_id = FUJITSU_MBM29F400BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3967 | .total_size = 512, |
| 3968 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3969 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 3970 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3971 | .probe = probe_m29f400bt, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 3972 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3973 | .block_erasers = |
| 3974 | { |
| 3975 | { |
| 3976 | .eraseblocks = { |
| 3977 | {16 * 1024, 1}, |
| 3978 | {8 * 1024, 2}, |
| 3979 | {32 * 1024, 1}, |
| 3980 | {64 * 1024, 7}, |
| 3981 | }, |
| 3982 | .block_erase = block_erase_m29f400bt, |
| 3983 | }, { |
| 3984 | .eraseblocks = { {512 * 1024, 1} }, |
| 3985 | .block_erase = block_erase_chip_m29f400bt, |
| 3986 | }, |
| 3987 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 3988 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3989 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 3990 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3991 | }, |
| 3992 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3993 | { |
| 3994 | .vendor = "Fujitsu", |
| 3995 | .name = "MBM29F400TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3996 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3997 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3998 | .model_id = FUJITSU_MBM29F400TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3999 | .total_size = 512, |
| 4000 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4001 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4002 | .tested = TEST_UNTESTED, |
| 4003 | .probe = probe_m29f400bt, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 4004 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4005 | .block_erasers = |
| 4006 | { |
| 4007 | { |
| 4008 | .eraseblocks = { |
| 4009 | {64 * 1024, 7}, |
| 4010 | {32 * 1024, 1}, |
| 4011 | {8 * 1024, 2}, |
| 4012 | {16 * 1024, 1}, |
| 4013 | }, |
| 4014 | .block_erase = block_erase_m29f400bt, |
| 4015 | }, { |
| 4016 | .eraseblocks = { {512 * 1024, 1} }, |
| 4017 | .block_erase = block_erase_chip_m29f400bt, |
| 4018 | }, |
| 4019 | }, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 4020 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4021 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 4022 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4023 | }, |
| 4024 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4025 | { |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4026 | .vendor = "GigaDevice", |
| 4027 | .name = "GD25Q20", |
| 4028 | .bustype = BUS_SPI, |
| 4029 | .manufacture_id = GIGADEVICE_ID, |
| 4030 | .model_id = GIGADEVICE_GD25Q20, |
| 4031 | .total_size = 256, |
| 4032 | .page_size = 256, |
| 4033 | .feature_bits = FEATURE_WRSR_WREN, |
| 4034 | .tested = TEST_UNTESTED, |
| 4035 | .probe = probe_spi_rdid, |
| 4036 | .probe_timing = TIMING_ZERO, |
| 4037 | .block_erasers = |
| 4038 | { |
| 4039 | { |
| 4040 | .eraseblocks = { {4 * 1024, 64} }, |
| 4041 | .block_erase = spi_block_erase_20, |
| 4042 | }, { |
| 4043 | .eraseblocks = { {32 * 1024, 8} }, |
| 4044 | .block_erase = spi_block_erase_52, |
| 4045 | }, { |
| 4046 | .eraseblocks = { {64 * 1024, 4} }, |
| 4047 | .block_erase = spi_block_erase_d8, |
| 4048 | }, { |
| 4049 | .eraseblocks = { {256 * 1024, 1} }, |
| 4050 | .block_erase = spi_block_erase_60, |
| 4051 | }, { |
| 4052 | .eraseblocks = { {256 * 1024, 1} }, |
| 4053 | .block_erase = spi_block_erase_c7, |
| 4054 | } |
| 4055 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4056 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4057 | .unlock = spi_disable_blockprotect, |
| 4058 | .write = spi_chip_write_256, |
| 4059 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4060 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4061 | }, |
| 4062 | |
| 4063 | { |
| 4064 | .vendor = "GigaDevice", |
| 4065 | .name = "GD25Q40", |
| 4066 | .bustype = BUS_SPI, |
| 4067 | .manufacture_id = GIGADEVICE_ID, |
| 4068 | .model_id = GIGADEVICE_GD25Q40, |
| 4069 | .total_size = 512, |
| 4070 | .page_size = 256, |
| 4071 | .feature_bits = FEATURE_WRSR_WREN, |
| 4072 | .tested = TEST_UNTESTED, |
| 4073 | .probe = probe_spi_rdid, |
| 4074 | .probe_timing = TIMING_ZERO, |
| 4075 | .block_erasers = |
| 4076 | { |
| 4077 | { |
| 4078 | .eraseblocks = { {4 * 1024, 128} }, |
| 4079 | .block_erase = spi_block_erase_20, |
| 4080 | }, { |
| 4081 | .eraseblocks = { {32 * 1024, 16} }, |
| 4082 | .block_erase = spi_block_erase_52, |
| 4083 | }, { |
| 4084 | .eraseblocks = { {64 * 1024, 8} }, |
| 4085 | .block_erase = spi_block_erase_d8, |
| 4086 | }, { |
| 4087 | .eraseblocks = { {512 * 1024, 1} }, |
| 4088 | .block_erase = spi_block_erase_60, |
| 4089 | }, { |
| 4090 | .eraseblocks = { {512 * 1024, 1} }, |
| 4091 | .block_erase = spi_block_erase_c7, |
| 4092 | } |
| 4093 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4094 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4095 | .unlock = spi_disable_blockprotect, |
| 4096 | .write = spi_chip_write_256, |
| 4097 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4098 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4099 | }, |
| 4100 | |
| 4101 | { |
| 4102 | .vendor = "GigaDevice", |
| 4103 | .name = "GD25Q80", |
| 4104 | .bustype = BUS_SPI, |
| 4105 | .manufacture_id = GIGADEVICE_ID, |
| 4106 | .model_id = GIGADEVICE_GD25Q80, |
| 4107 | .total_size = 1024, |
| 4108 | .page_size = 256, |
| 4109 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */ |
| 4110 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4111 | .tested = TEST_OK_PREW, |
| 4112 | .probe = probe_spi_rdid, |
| 4113 | .probe_timing = TIMING_ZERO, |
| 4114 | .block_erasers = |
| 4115 | { |
| 4116 | { |
| 4117 | .eraseblocks = { {4 * 1024, 256} }, |
| 4118 | .block_erase = spi_block_erase_20, |
| 4119 | }, { |
| 4120 | .eraseblocks = { {32 * 1024, 32} }, |
| 4121 | .block_erase = spi_block_erase_52, |
| 4122 | }, { |
| 4123 | .eraseblocks = { {64 * 1024, 16} }, |
| 4124 | .block_erase = spi_block_erase_d8, |
| 4125 | }, { |
| 4126 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4127 | .block_erase = spi_block_erase_60, |
| 4128 | }, { |
| 4129 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4130 | .block_erase = spi_block_erase_c7, |
| 4131 | } |
| 4132 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4133 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4134 | .unlock = spi_disable_blockprotect, |
| 4135 | .write = spi_chip_write_256, |
| 4136 | .read = spi_chip_read, |
| 4137 | .voltage = {2700, 3600}, |
| 4138 | }, |
| 4139 | |
| 4140 | { |
| 4141 | .vendor = "GigaDevice", |
| 4142 | .name = "GD25Q16", |
| 4143 | .bustype = BUS_SPI, |
| 4144 | .manufacture_id = GIGADEVICE_ID, |
| 4145 | .model_id = GIGADEVICE_GD25Q16, |
| 4146 | .total_size = 2048, |
| 4147 | .page_size = 256, |
| 4148 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */ |
| 4149 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4150 | .tested = TEST_UNTESTED, |
| 4151 | .probe = probe_spi_rdid, |
| 4152 | .probe_timing = TIMING_ZERO, |
| 4153 | .block_erasers = |
| 4154 | { |
| 4155 | { |
| 4156 | .eraseblocks = { {4 * 1024, 512} }, |
| 4157 | .block_erase = spi_block_erase_20, |
| 4158 | }, { |
| 4159 | .eraseblocks = { {32 * 1024, 64} }, |
| 4160 | .block_erase = spi_block_erase_52, |
| 4161 | }, { |
| 4162 | .eraseblocks = { {64 * 1024, 32} }, |
| 4163 | .block_erase = spi_block_erase_d8, |
| 4164 | }, { |
| 4165 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4166 | .block_erase = spi_block_erase_60, |
| 4167 | }, { |
| 4168 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4169 | .block_erase = spi_block_erase_c7, |
| 4170 | } |
| 4171 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4172 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4173 | .unlock = spi_disable_blockprotect, |
| 4174 | .write = spi_chip_write_256, |
| 4175 | .read = spi_chip_read, |
| 4176 | .voltage = {2700, 3600}, |
| 4177 | }, |
| 4178 | |
| 4179 | { |
| 4180 | .vendor = "GigaDevice", |
| 4181 | .name = "GD25Q32", |
| 4182 | .bustype = BUS_SPI, |
| 4183 | .manufacture_id = GIGADEVICE_ID, |
| 4184 | .model_id = GIGADEVICE_GD25Q32, |
| 4185 | .total_size = 4096, |
| 4186 | .page_size = 256, |
| 4187 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */ |
| 4188 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4189 | .tested = TEST_UNTESTED, |
| 4190 | .probe = probe_spi_rdid, |
| 4191 | .probe_timing = TIMING_ZERO, |
| 4192 | .block_erasers = |
| 4193 | { |
| 4194 | { |
| 4195 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4196 | .block_erase = spi_block_erase_20, |
| 4197 | }, { |
| 4198 | .eraseblocks = { {32 * 1024, 128} }, |
| 4199 | .block_erase = spi_block_erase_52, |
| 4200 | }, { |
| 4201 | .eraseblocks = { {64 * 1024, 64} }, |
| 4202 | .block_erase = spi_block_erase_d8, |
| 4203 | }, { |
| 4204 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4205 | .block_erase = spi_block_erase_60, |
| 4206 | }, { |
| 4207 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4208 | .block_erase = spi_block_erase_c7, |
| 4209 | } |
| 4210 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4211 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4212 | .unlock = spi_disable_blockprotect, |
| 4213 | .write = spi_chip_write_256, |
| 4214 | .read = spi_chip_read, |
| 4215 | .voltage = {2700, 3600}, |
| 4216 | }, |
| 4217 | |
| 4218 | { |
| 4219 | .vendor = "GigaDevice", |
| 4220 | .name = "GD25Q64", |
| 4221 | .bustype = BUS_SPI, |
| 4222 | .manufacture_id = GIGADEVICE_ID, |
| 4223 | .model_id = GIGADEVICE_GD25Q64, |
| 4224 | .total_size = 8192, |
| 4225 | .page_size = 256, |
| 4226 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */ |
| 4227 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4228 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4229 | .probe = probe_spi_rdid, |
| 4230 | .probe_timing = TIMING_ZERO, |
| 4231 | .block_erasers = |
| 4232 | { |
| 4233 | { |
| 4234 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4235 | .block_erase = spi_block_erase_20, |
| 4236 | }, { |
| 4237 | .eraseblocks = { {32 * 1024, 256} }, |
| 4238 | .block_erase = spi_block_erase_52, |
| 4239 | }, { |
| 4240 | .eraseblocks = { {64 * 1024, 128} }, |
| 4241 | .block_erase = spi_block_erase_d8, |
| 4242 | }, { |
| 4243 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4244 | .block_erase = spi_block_erase_60, |
| 4245 | }, { |
| 4246 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4247 | .block_erase = spi_block_erase_c7, |
| 4248 | } |
| 4249 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4250 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4251 | .unlock = spi_disable_blockprotect, |
| 4252 | .write = spi_chip_write_256, |
| 4253 | .read = spi_chip_read, |
| 4254 | }, |
| 4255 | |
| 4256 | { |
| 4257 | .vendor = "GigaDevice", |
| 4258 | .name = "GD25Q128", |
| 4259 | .bustype = BUS_SPI, |
| 4260 | .manufacture_id = GIGADEVICE_ID, |
| 4261 | .model_id = GIGADEVICE_GD25Q128, |
| 4262 | .total_size = 16384, |
| 4263 | .page_size = 256, |
| 4264 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */ |
| 4265 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4266 | .tested = TEST_UNTESTED, |
| 4267 | .probe = probe_spi_rdid, |
| 4268 | .probe_timing = TIMING_ZERO, |
| 4269 | .block_erasers = |
| 4270 | { |
| 4271 | { |
| 4272 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4273 | .block_erase = spi_block_erase_20, |
| 4274 | }, { |
| 4275 | .eraseblocks = { {32 * 1024, 512} }, |
| 4276 | .block_erase = spi_block_erase_52, |
| 4277 | }, { |
| 4278 | .eraseblocks = { {64 * 1024, 256} }, |
| 4279 | .block_erase = spi_block_erase_d8, |
| 4280 | }, { |
| 4281 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4282 | .block_erase = spi_block_erase_60, |
| 4283 | }, { |
| 4284 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4285 | .block_erase = spi_block_erase_c7, |
| 4286 | } |
| 4287 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4288 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4289 | .unlock = spi_disable_blockprotect, |
| 4290 | .write = spi_chip_write_256, |
| 4291 | .read = spi_chip_read, |
| 4292 | }, |
| 4293 | |
| 4294 | { |
Bryan Freed | 5bfef9d | 2012-09-17 00:05:44 +0000 | [diff] [blame] | 4295 | .vendor = "GigaDevice", |
| 4296 | .name = "GD25LQ32", |
| 4297 | .bustype = BUS_SPI, |
| 4298 | .manufacture_id = GIGADEVICE_ID, |
| 4299 | .model_id = GIGADEVICE_GD25LQ32, |
| 4300 | .total_size = 4096, |
| 4301 | .page_size = 256, |
| 4302 | .feature_bits = FEATURE_WRSR_WREN, |
| 4303 | .tested = TEST_OK_PREW, |
| 4304 | .probe = probe_spi_rdid, |
| 4305 | .probe_timing = TIMING_ZERO, |
| 4306 | .block_erasers = |
| 4307 | { |
| 4308 | { |
| 4309 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4310 | .block_erase = spi_block_erase_20, |
| 4311 | }, { |
| 4312 | .eraseblocks = { {32 * 1024, 128} }, |
| 4313 | .block_erase = spi_block_erase_52, |
| 4314 | }, { |
| 4315 | .eraseblocks = { {64 * 1024, 64} }, |
| 4316 | .block_erase = spi_block_erase_d8, |
| 4317 | }, { |
| 4318 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4319 | .block_erase = spi_block_erase_60, |
| 4320 | }, { |
| 4321 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4322 | .block_erase = spi_block_erase_c7, |
| 4323 | } |
| 4324 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4325 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Bryan Freed | 5bfef9d | 2012-09-17 00:05:44 +0000 | [diff] [blame] | 4326 | .unlock = spi_disable_blockprotect, |
| 4327 | .write = spi_chip_write_256, |
| 4328 | .read = spi_chip_read, |
| 4329 | .voltage = {1700, 1950}, |
| 4330 | }, |
| 4331 | |
| 4332 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 4333 | .vendor = "Hyundai", |
| 4334 | .name = "HY29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4335 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 4336 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4337 | .model_id = HYUNDAI_HY29F002T, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 4338 | .total_size = 256, |
| 4339 | .page_size = 256 * 1024, |
| 4340 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 4341 | .tested = TEST_OK_PRE, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 4342 | .probe = probe_jedec, |
| 4343 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4344 | .block_erasers = |
| 4345 | { |
| 4346 | { |
| 4347 | .eraseblocks = { |
| 4348 | {64 * 1024, 3}, |
| 4349 | {32 * 1024, 1}, |
| 4350 | {8 * 1024, 2}, |
| 4351 | {16 * 1024, 1}, |
| 4352 | }, |
| 4353 | .block_erase = erase_sector_jedec, |
| 4354 | }, { |
| 4355 | .eraseblocks = { {256 * 1024, 1} }, |
| 4356 | .block_erase = erase_chip_block_jedec, |
| 4357 | }, |
| 4358 | }, |
| 4359 | .write = write_jedec_1, |
| 4360 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 4361 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */ |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 4362 | }, |
| 4363 | |
| 4364 | { |
| 4365 | .vendor = "Hyundai", |
| 4366 | .name = "HY29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4367 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 4368 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4369 | .model_id = HYUNDAI_HY29F002B, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 4370 | .total_size = 256, |
| 4371 | .page_size = 256 * 1024, |
| 4372 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
| 4373 | .tested = TEST_UNTESTED, |
| 4374 | .probe = probe_jedec, |
| 4375 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4376 | .block_erasers = |
| 4377 | { |
| 4378 | { |
| 4379 | .eraseblocks = { |
| 4380 | {16 * 1024, 1}, |
| 4381 | {8 * 1024, 2}, |
| 4382 | {32 * 1024, 1}, |
| 4383 | {64 * 1024, 3}, |
| 4384 | }, |
| 4385 | .block_erase = erase_sector_jedec, |
| 4386 | }, { |
| 4387 | .eraseblocks = { {256 * 1024, 1} }, |
| 4388 | .block_erase = erase_chip_block_jedec, |
| 4389 | }, |
| 4390 | }, |
| 4391 | .write = write_jedec_1, |
| 4392 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 4393 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */ |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 4394 | }, |
| 4395 | |
| 4396 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 4397 | .vendor = "Hyundai", |
| 4398 | .name = "HY29F040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4399 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 4400 | .manufacture_id = HYUNDAI_ID, |
| 4401 | .model_id = HYUNDAI_HY29F040A, |
| 4402 | .total_size = 512, |
| 4403 | .page_size = 64 * 1024, |
| 4404 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 4405 | .tested = TEST_UNTESTED, |
| 4406 | .probe = probe_jedec, |
| 4407 | .probe_timing = TIMING_ZERO, |
| 4408 | .block_erasers = |
| 4409 | { |
| 4410 | { |
| 4411 | .eraseblocks = { {64 * 1024, 8} }, |
| 4412 | .block_erase = erase_sector_jedec, |
| 4413 | }, { |
| 4414 | .eraseblocks = { {512 * 1024, 1} }, |
| 4415 | .block_erase = erase_chip_block_jedec, |
| 4416 | }, |
| 4417 | }, |
| 4418 | .write = write_jedec_1, |
| 4419 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 4420 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 4421 | }, |
| 4422 | |
| 4423 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4424 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4425 | .name = "28F001BN/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4426 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 4427 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4428 | .model_id = INTEL_28F001B, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 4429 | .total_size = 128, |
| 4430 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 4431 | .tested = TEST_UNTESTED, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 4432 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4433 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4434 | .block_erasers = |
| 4435 | { |
| 4436 | { |
| 4437 | .eraseblocks = { |
| 4438 | {8 * 1024, 1}, |
| 4439 | {4 * 1024, 2}, |
| 4440 | {112 * 1024, 1}, |
| 4441 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 4442 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4443 | }, |
| 4444 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 4445 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 4446 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4447 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 4448 | }, |
| 4449 | |
| 4450 | { |
| 4451 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4452 | .name = "28F001BN/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4453 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 4454 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4455 | .model_id = INTEL_28F001T, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 4456 | .total_size = 128, |
| 4457 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 4458 | .tested = TEST_OK_PR, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 4459 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4460 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4461 | .block_erasers = |
| 4462 | { |
| 4463 | { |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 4464 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4465 | {112 * 1024, 1}, |
| 4466 | {4 * 1024, 2}, |
| 4467 | {8 * 1024, 1}, |
| 4468 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 4469 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4470 | }, |
| 4471 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 4472 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 4473 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4474 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 4475 | }, |
| 4476 | |
| 4477 | { |
| 4478 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4479 | .name = "28F002BC/BL/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4480 | .bustype = BUS_PARALLEL, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 4481 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4482 | .model_id = INTEL_28F002T, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 4483 | .total_size = 256, |
| 4484 | .page_size = 256 * 1024, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 4485 | .tested = TEST_OK_PRE, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 4486 | .probe = probe_82802ab, |
| 4487 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4488 | .block_erasers = |
| 4489 | { |
| 4490 | { |
| 4491 | .eraseblocks = { |
| 4492 | {128 * 1024, 1}, |
| 4493 | {96 * 1024, 1}, |
| 4494 | {8 * 1024, 2}, |
| 4495 | {16 * 1024, 1}, |
| 4496 | }, |
| 4497 | .block_erase = erase_block_82802ab, |
| 4498 | }, |
| 4499 | }, |
| 4500 | .write = write_82802ab, |
| 4501 | .read = read_memmapped, |
| 4502 | }, |
| 4503 | |
| 4504 | { |
| 4505 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4506 | .name = "28F008S3/S5/SC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4507 | .bustype = BUS_PARALLEL, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 4508 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4509 | .model_id = INTEL_28F004S3, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 4510 | .total_size = 512, |
| 4511 | .page_size = 256, |
| 4512 | .tested = TEST_UNTESTED, |
| 4513 | .probe = probe_82802ab, |
| 4514 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 4515 | .block_erasers = |
| 4516 | { |
| 4517 | { |
| 4518 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 4519 | .block_erase = erase_block_82802ab, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 4520 | }, |
| 4521 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 4522 | .unlock = unlock_28f004s5, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 4523 | .write = write_82802ab, |
| 4524 | .read = read_memmapped, |
| 4525 | }, |
| 4526 | |
| 4527 | { |
| 4528 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4529 | .name = "28F004B5/BE/BV/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4530 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 4531 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4532 | .model_id = INTEL_28F004B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 4533 | .total_size = 512, |
| 4534 | .page_size = 128 * 1024, /* maximal block size */ |
| 4535 | .tested = TEST_UNTESTED, |
| 4536 | .probe = probe_82802ab, |
| 4537 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4538 | .block_erasers = |
| 4539 | { |
| 4540 | { |
| 4541 | .eraseblocks = { |
| 4542 | {16 * 1024, 1}, |
| 4543 | {8 * 1024, 2}, |
| 4544 | {96 * 1024, 1}, |
| 4545 | {128 * 1024, 3}, |
| 4546 | }, |
| 4547 | .block_erase = erase_block_82802ab, |
| 4548 | }, |
| 4549 | }, |
| 4550 | .write = write_82802ab, |
| 4551 | .read = read_memmapped, |
| 4552 | }, |
| 4553 | |
| 4554 | { |
| 4555 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4556 | .name = "28F004B5/BE/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4557 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 4558 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4559 | .model_id = INTEL_28F004T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 4560 | .total_size = 512, |
| 4561 | .page_size = 128 * 1024, /* maximal block size */ |
| 4562 | .tested = TEST_UNTESTED, |
| 4563 | .probe = probe_82802ab, |
| 4564 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4565 | .block_erasers = |
| 4566 | { |
| 4567 | { |
| 4568 | .eraseblocks = { |
| 4569 | {128 * 1024, 3}, |
| 4570 | {96 * 1024, 1}, |
| 4571 | {8 * 1024, 2}, |
| 4572 | {16 * 1024, 1}, |
| 4573 | }, |
| 4574 | .block_erase = erase_block_82802ab, |
| 4575 | }, |
| 4576 | }, |
| 4577 | .write = write_82802ab, |
| 4578 | .read = read_memmapped, |
| 4579 | }, |
| 4580 | |
| 4581 | { |
| 4582 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4583 | .name = "28F400BV/BX/CE/CV-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4584 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 4585 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4586 | .model_id = INTEL_28F400B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 4587 | .total_size = 512, |
| 4588 | .page_size = 128 * 1024, /* maximal block size */ |
| 4589 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 4590 | .tested = TEST_UNTESTED, |
| 4591 | .probe = probe_82802ab, |
| 4592 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4593 | .block_erasers = |
| 4594 | { |
| 4595 | { |
| 4596 | .eraseblocks = { |
| 4597 | {16 * 1024, 1}, |
| 4598 | {8 * 1024, 2}, |
| 4599 | {96 * 1024, 1}, |
| 4600 | {128 * 1024, 3}, |
| 4601 | }, |
| 4602 | .block_erase = erase_block_82802ab, |
| 4603 | }, |
| 4604 | }, |
| 4605 | .write = write_82802ab, |
| 4606 | .read = read_memmapped, |
| 4607 | }, |
| 4608 | |
| 4609 | { |
| 4610 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4611 | .name = "28F400BV/BX/CE/CV-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4612 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 4613 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4614 | .model_id = INTEL_28F400T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 4615 | .total_size = 512, |
| 4616 | .page_size = 128 * 1024, /* maximal block size */ |
| 4617 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 4618 | .tested = TEST_UNTESTED, |
| 4619 | .probe = probe_82802ab, |
| 4620 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4621 | .block_erasers = |
| 4622 | { |
| 4623 | { |
| 4624 | .eraseblocks = { |
| 4625 | {128 * 1024, 3}, |
| 4626 | {96 * 1024, 1}, |
| 4627 | {8 * 1024, 2}, |
| 4628 | {16 * 1024, 1}, |
| 4629 | }, |
| 4630 | .block_erase = erase_block_82802ab, |
| 4631 | }, |
| 4632 | }, |
| 4633 | .write = write_82802ab, |
| 4634 | .read = read_memmapped, |
| 4635 | }, |
| 4636 | |
| 4637 | { |
| 4638 | .vendor = "Intel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4639 | .name = "82802AB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4640 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4641 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4642 | .model_id = INTEL_82802AB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4643 | .total_size = 512, |
| 4644 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 4645 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 4646 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4647 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4648 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4649 | .block_erasers = |
| 4650 | { |
| 4651 | { |
| 4652 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 4653 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4654 | }, |
| 4655 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 4656 | .unlock = unlock_82802ab, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4657 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4658 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4659 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4660 | }, |
| 4661 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4662 | { |
| 4663 | .vendor = "Intel", |
| 4664 | .name = "82802AC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4665 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4666 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4667 | .model_id = INTEL_82802AC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4668 | .total_size = 1024, |
| 4669 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 4670 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 4671 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4672 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4673 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4674 | .block_erasers = |
| 4675 | { |
| 4676 | { |
| 4677 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 4678 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4679 | }, |
| 4680 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 4681 | .unlock = unlock_82802ab, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4682 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4683 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4684 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4685 | }, |
| 4686 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4687 | { |
| 4688 | .vendor = "Macronix", |
| 4689 | .name = "MX25L512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4690 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4691 | .manufacture_id = MACRONIX_ID, |
| 4692 | .model_id = MACRONIX_MX25L512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4693 | .total_size = 64, |
| 4694 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 4695 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4696 | .tested = TEST_UNTESTED, |
| 4697 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4698 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 4699 | .block_erasers = |
| 4700 | { |
| 4701 | { |
| 4702 | .eraseblocks = { {4 * 1024, 16} }, |
| 4703 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 4704 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 4705 | .eraseblocks = { {64 * 1024, 1} }, |
| 4706 | .block_erase = spi_block_erase_52, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 4707 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 4708 | .eraseblocks = { {64 * 1024, 1} }, |
| 4709 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 4710 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 4711 | .eraseblocks = { {64 * 1024, 1} }, |
| 4712 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 4713 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 4714 | .eraseblocks = { {64 * 1024, 1} }, |
| 4715 | .block_erase = spi_block_erase_c7, |
| 4716 | }, |
| 4717 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4718 | .printlock = spi_prettyprint_status_register_default_bp1, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4719 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4720 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4721 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4722 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4723 | }, |
| 4724 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4725 | { |
| 4726 | .vendor = "Macronix", |
| 4727 | .name = "MX25L1005", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4728 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4729 | .manufacture_id = MACRONIX_ID, |
| 4730 | .model_id = MACRONIX_MX25L1005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4731 | .total_size = 128, |
| 4732 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 4733 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 4734 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4735 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4736 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 4737 | .block_erasers = |
| 4738 | { |
| 4739 | { |
| 4740 | .eraseblocks = { {4 * 1024, 32} }, |
| 4741 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 4742 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 4743 | .eraseblocks = { {64 * 1024, 2} }, |
| 4744 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 4745 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 4746 | .eraseblocks = { {128 * 1024, 1} }, |
| 4747 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 4748 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 4749 | .eraseblocks = { {128 * 1024, 1} }, |
| 4750 | .block_erase = spi_block_erase_c7, |
| 4751 | }, |
| 4752 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4753 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4754 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4755 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4756 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4757 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4758 | }, |
| 4759 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4760 | { |
| 4761 | .vendor = "Macronix", |
| 4762 | .name = "MX25L2005", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4763 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4764 | .manufacture_id = MACRONIX_ID, |
| 4765 | .model_id = MACRONIX_MX25L2005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4766 | .total_size = 256, |
| 4767 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 4768 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4769 | .tested = TEST_UNTESTED, |
| 4770 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4771 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 4772 | .block_erasers = |
| 4773 | { |
| 4774 | { |
| 4775 | .eraseblocks = { {4 * 1024, 64} }, |
| 4776 | .block_erase = spi_block_erase_20, |
| 4777 | }, { |
| 4778 | .eraseblocks = { {64 * 1024, 4} }, |
| 4779 | .block_erase = spi_block_erase_52, |
| 4780 | }, { |
| 4781 | .eraseblocks = { {64 * 1024, 4} }, |
| 4782 | .block_erase = spi_block_erase_d8, |
| 4783 | }, { |
| 4784 | .eraseblocks = { {256 * 1024, 1} }, |
| 4785 | .block_erase = spi_block_erase_60, |
| 4786 | }, { |
| 4787 | .eraseblocks = { {256 * 1024, 1} }, |
| 4788 | .block_erase = spi_block_erase_c7, |
| 4789 | }, |
| 4790 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4791 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4792 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4793 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4794 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4795 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4796 | }, |
| 4797 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4798 | { |
| 4799 | .vendor = "Macronix", |
| 4800 | .name = "MX25L4005", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4801 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4802 | .manufacture_id = MACRONIX_ID, |
| 4803 | .model_id = MACRONIX_MX25L4005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4804 | .total_size = 512, |
| 4805 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 4806 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 4807 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4808 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4809 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 4810 | .block_erasers = |
| 4811 | { |
| 4812 | { |
| 4813 | .eraseblocks = { {4 * 1024, 128} }, |
| 4814 | .block_erase = spi_block_erase_20, |
| 4815 | }, { |
| 4816 | .eraseblocks = { {64 * 1024, 8} }, |
| 4817 | .block_erase = spi_block_erase_52, |
| 4818 | }, { |
| 4819 | .eraseblocks = { {64 * 1024, 8} }, |
| 4820 | .block_erase = spi_block_erase_d8, |
| 4821 | }, { |
| 4822 | .eraseblocks = { {512 * 1024, 1} }, |
| 4823 | .block_erase = spi_block_erase_60, |
| 4824 | }, { |
| 4825 | .eraseblocks = { {512 * 1024, 1} }, |
| 4826 | .block_erase = spi_block_erase_c7, |
| 4827 | }, |
| 4828 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4829 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4830 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4831 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4832 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4833 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4834 | }, |
| 4835 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4836 | { |
| 4837 | .vendor = "Macronix", |
| 4838 | .name = "MX25L8005", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4839 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4840 | .manufacture_id = MACRONIX_ID, |
| 4841 | .model_id = MACRONIX_MX25L8005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4842 | .total_size = 1024, |
| 4843 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 4844 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 4845 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4846 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4847 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 4848 | .block_erasers = |
| 4849 | { |
| 4850 | { |
| 4851 | .eraseblocks = { {4 * 1024, 256} }, |
| 4852 | .block_erase = spi_block_erase_20, |
| 4853 | }, { |
| 4854 | .eraseblocks = { {64 * 1024, 16} }, |
| 4855 | .block_erase = spi_block_erase_52, |
| 4856 | }, { |
| 4857 | .eraseblocks = { {64 * 1024, 16} }, |
| 4858 | .block_erase = spi_block_erase_d8, |
| 4859 | }, { |
| 4860 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4861 | .block_erase = spi_block_erase_60, |
| 4862 | }, { |
| 4863 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4864 | .block_erase = spi_block_erase_c7, |
| 4865 | }, |
| 4866 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4867 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4868 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4869 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4870 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4871 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4872 | }, |
| 4873 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4874 | { |
| 4875 | .vendor = "Macronix", |
| 4876 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4877 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4878 | .manufacture_id = MACRONIX_ID, |
| 4879 | .model_id = MACRONIX_MX25L1605, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4880 | .total_size = 2048, |
| 4881 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 4882 | .feature_bits = FEATURE_WRSR_WREN, |
Sven Schnelle | 4bd8a40 | 2011-03-07 10:59:06 +0000 | [diff] [blame] | 4883 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4884 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4885 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 4886 | .block_erasers = |
| 4887 | { |
| 4888 | { |
| 4889 | .eraseblocks = { {4 * 1024, 512} }, |
| 4890 | .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */ |
| 4891 | }, { |
| 4892 | .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */ |
| 4893 | .block_erase = spi_block_erase_52, |
| 4894 | }, { |
| 4895 | .eraseblocks = { {64 * 1024, 32} }, |
| 4896 | .block_erase = spi_block_erase_d8, |
| 4897 | }, { |
| 4898 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4899 | .block_erase = spi_block_erase_60, |
| 4900 | }, { |
| 4901 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4902 | .block_erase = spi_block_erase_c7, |
| 4903 | }, |
| 4904 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4905 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4906 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4907 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4908 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4909 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4910 | }, |
| 4911 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4912 | { |
| 4913 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 4914 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4915 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4916 | .manufacture_id = MACRONIX_ID, |
| 4917 | .model_id = MACRONIX_MX25L1635D, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 4918 | .total_size = 2048, |
| 4919 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 4920 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 4921 | .tested = TEST_UNTESTED, |
| 4922 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4923 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4924 | .block_erasers = |
| 4925 | { |
| 4926 | { |
| 4927 | .eraseblocks = { {4 * 1024, 512} }, |
| 4928 | .block_erase = spi_block_erase_20, |
| 4929 | }, { |
| 4930 | .eraseblocks = { {64 * 1024, 32} }, |
| 4931 | .block_erase = spi_block_erase_d8, |
| 4932 | }, { |
| 4933 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4934 | .block_erase = spi_block_erase_60, |
| 4935 | }, { |
| 4936 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4937 | .block_erase = spi_block_erase_c7, |
| 4938 | } |
| 4939 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4940 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4941 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4942 | .write = spi_chip_write_256, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 4943 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4944 | .voltage = {2700, 3600}, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 4945 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 4946 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 4947 | { |
| 4948 | .vendor = "Macronix", |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 4949 | .name = "MX25L1635E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4950 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4951 | .manufacture_id = MACRONIX_ID, |
| 4952 | .model_id = MACRONIX_MX25L1635E, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 4953 | .total_size = 2048, |
| 4954 | .page_size = 256, |
| 4955 | .feature_bits = FEATURE_WRSR_WREN, |
| 4956 | .tested = TEST_UNTESTED, |
| 4957 | .probe = probe_spi_rdid, |
| 4958 | .probe_timing = TIMING_ZERO, |
| 4959 | .block_erasers = |
| 4960 | { |
| 4961 | { |
| 4962 | .eraseblocks = { {4 * 1024, 512} }, |
| 4963 | .block_erase = spi_block_erase_20, |
| 4964 | }, { |
| 4965 | .eraseblocks = { {64 * 1024, 32} }, |
| 4966 | .block_erase = spi_block_erase_d8, |
| 4967 | }, { |
| 4968 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4969 | .block_erase = spi_block_erase_60, |
| 4970 | }, { |
| 4971 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4972 | .block_erase = spi_block_erase_c7, |
| 4973 | } |
| 4974 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4975 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 4976 | .unlock = spi_disable_blockprotect, |
| 4977 | .write = spi_chip_write_256, |
| 4978 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 4979 | .voltage = {2700, 3600}, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 4980 | }, |
| 4981 | |
| 4982 | { |
| 4983 | .vendor = "Macronix", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4984 | .name = "MX25L3205", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4985 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4986 | .manufacture_id = MACRONIX_ID, |
| 4987 | .model_id = MACRONIX_MX25L3205, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4988 | .total_size = 4096, |
| 4989 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 4990 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 4991 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4992 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4993 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4994 | .block_erasers = |
| 4995 | { |
| 4996 | { |
| 4997 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4998 | .block_erase = spi_block_erase_20, |
| 4999 | }, { |
| 5000 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5001 | .block_erase = spi_block_erase_d8, |
| 5002 | }, { |
| 5003 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5004 | .block_erase = spi_block_erase_60, |
| 5005 | }, { |
| 5006 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5007 | .block_erase = spi_block_erase_c7, |
| 5008 | }, |
| 5009 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5010 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5011 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5012 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5013 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5014 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5015 | }, |
| 5016 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5017 | { |
| 5018 | .vendor = "Macronix", |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 5019 | .name = "MX25L3235D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5020 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5021 | .manufacture_id = MACRONIX_ID, |
| 5022 | .model_id = MACRONIX_MX25L3235D, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 5023 | .total_size = 4096, |
| 5024 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5025 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 5026 | .tested = TEST_UNTESTED, |
| 5027 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5028 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5029 | .block_erasers = |
| 5030 | { |
| 5031 | { |
| 5032 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5033 | .block_erase = spi_block_erase_20, |
| 5034 | }, { |
| 5035 | .eraseblocks = { {64 * 1024, 64} }, |
| 5036 | .block_erase = spi_block_erase_d8, |
| 5037 | }, { |
| 5038 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5039 | .block_erase = spi_block_erase_60, |
| 5040 | }, { |
| 5041 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5042 | .block_erase = spi_block_erase_c7, |
| 5043 | } |
| 5044 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5045 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5046 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5047 | .write = spi_chip_write_256, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 5048 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5049 | .voltage = {2700, 3600}, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 5050 | }, |
| 5051 | |
| 5052 | { |
| 5053 | .vendor = "Macronix", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5054 | .name = "MX25L6405", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5055 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5056 | .manufacture_id = MACRONIX_ID, |
| 5057 | .model_id = MACRONIX_MX25L6405, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5058 | .total_size = 8192, |
| 5059 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5060 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 5061 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5062 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5063 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5064 | .block_erasers = |
| 5065 | { |
| 5066 | { |
| 5067 | .eraseblocks = { {64 * 1024, 128} }, |
| 5068 | .block_erase = spi_block_erase_20, |
| 5069 | }, { |
| 5070 | .eraseblocks = { {64 * 1024, 128} }, |
| 5071 | .block_erase = spi_block_erase_d8, |
| 5072 | }, { |
| 5073 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5074 | .block_erase = spi_block_erase_60, |
| 5075 | }, { |
| 5076 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5077 | .block_erase = spi_block_erase_c7, |
| 5078 | } |
| 5079 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5080 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5081 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5082 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5083 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5084 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5085 | }, |
| 5086 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5087 | { |
| 5088 | .vendor = "Macronix", |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 5089 | .name = "MX25L12805", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5090 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5091 | .manufacture_id = MACRONIX_ID, |
| 5092 | .model_id = MACRONIX_MX25L12805, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 5093 | .total_size = 16384, |
| 5094 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5095 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5096 | .tested = TEST_OK_PROBE, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 5097 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5098 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5099 | .block_erasers = |
| 5100 | { |
| 5101 | { |
| 5102 | .eraseblocks = { {4 * 1024, 4096} }, |
| 5103 | .block_erase = spi_block_erase_20, |
| 5104 | }, { |
| 5105 | .eraseblocks = { {64 * 1024, 256} }, |
| 5106 | .block_erase = spi_block_erase_d8, |
| 5107 | }, { |
| 5108 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5109 | .block_erase = spi_block_erase_60, |
| 5110 | }, { |
| 5111 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5112 | .block_erase = spi_block_erase_c7, |
| 5113 | } |
| 5114 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5115 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5116 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5117 | .write = spi_chip_write_256, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 5118 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5119 | .voltage = {2700, 3600}, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 5120 | }, |
| 5121 | |
| 5122 | { |
| 5123 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 5124 | .name = "MX29F001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5125 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5126 | .manufacture_id = MACRONIX_ID, |
| 5127 | .model_id = MACRONIX_MX29F001B, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 5128 | .total_size = 128, |
| 5129 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5130 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5131 | .tested = TEST_UNTESTED, |
| 5132 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 5133 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5134 | .block_erasers = |
| 5135 | { |
| 5136 | { |
| 5137 | .eraseblocks = { |
| 5138 | {8 * 1024, 1}, |
| 5139 | {4 * 1024, 2}, |
| 5140 | {8 * 1024, 2}, |
| 5141 | {32 * 1024, 1}, |
| 5142 | {64 * 1024, 1}, |
| 5143 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5144 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5145 | }, { |
| 5146 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5147 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5148 | } |
| 5149 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5150 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 5151 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5152 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 5153 | }, |
| 5154 | |
| 5155 | { |
| 5156 | .vendor = "Macronix", |
| 5157 | .name = "MX29F001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5158 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5159 | .manufacture_id = MACRONIX_ID, |
| 5160 | .model_id = MACRONIX_MX29F001T, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 5161 | .total_size = 128, |
| 5162 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5163 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stefan Tauner | 74c6ec6 | 2011-05-18 01:31:46 +0000 | [diff] [blame] | 5164 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5165 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 5166 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5167 | .block_erasers = |
| 5168 | { |
| 5169 | { |
| 5170 | .eraseblocks = { |
| 5171 | {64 * 1024, 1}, |
| 5172 | {32 * 1024, 1}, |
| 5173 | {8 * 1024, 2}, |
| 5174 | {4 * 1024, 2}, |
| 5175 | {8 * 1024, 1}, |
| 5176 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5177 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5178 | }, { |
| 5179 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5180 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5181 | } |
| 5182 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5183 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 5184 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5185 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 5186 | }, |
| 5187 | |
| 5188 | { |
| 5189 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 5190 | .name = "MX29F002(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5191 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5192 | .manufacture_id = MACRONIX_ID, |
| 5193 | .model_id = MACRONIX_MX29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5194 | .total_size = 256, |
| 5195 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5196 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5197 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5198 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 5199 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5200 | .block_erasers = |
| 5201 | { |
| 5202 | { |
| 5203 | .eraseblocks = { |
| 5204 | {16 * 1024, 1}, |
| 5205 | {8 * 1024, 2}, |
| 5206 | {32 * 1024, 1}, |
| 5207 | {64 * 1024, 3}, |
| 5208 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5209 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5210 | }, { |
| 5211 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5212 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5213 | }, |
| 5214 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5215 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5216 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5217 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5218 | }, |
| 5219 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5220 | { |
| 5221 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 5222 | .name = "MX29F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5223 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5224 | .manufacture_id = MACRONIX_ID, |
| 5225 | .model_id = MACRONIX_MX29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5226 | .total_size = 256, |
| 5227 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5228 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 5229 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5230 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 5231 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5232 | .block_erasers = |
| 5233 | { |
| 5234 | { |
| 5235 | .eraseblocks = { |
| 5236 | {64 * 1024, 3}, |
| 5237 | {32 * 1024, 1}, |
| 5238 | {8 * 1024, 2}, |
| 5239 | {16 * 1024, 1}, |
| 5240 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5241 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5242 | }, { |
| 5243 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5244 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5245 | }, |
| 5246 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5247 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5248 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5249 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5250 | }, |
| 5251 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5252 | { |
| 5253 | .vendor = "Macronix", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 5254 | .name = "MX29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5255 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 5256 | .manufacture_id = MACRONIX_ID, |
| 5257 | .model_id = MACRONIX_MX29F040, |
| 5258 | .total_size = 512, |
| 5259 | .page_size = 64 * 1024, |
| 5260 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5261 | .tested = TEST_UNTESTED, |
| 5262 | .probe = probe_jedec, |
| 5263 | .probe_timing = TIMING_ZERO, |
| 5264 | .block_erasers = |
| 5265 | { |
| 5266 | { |
| 5267 | .eraseblocks = { {64 * 1024, 8} }, |
| 5268 | .block_erase = erase_sector_jedec, |
| 5269 | }, { |
| 5270 | .eraseblocks = { {512 * 1024, 1} }, |
| 5271 | .block_erase = erase_chip_block_jedec, |
| 5272 | }, |
| 5273 | }, |
| 5274 | .write = write_jedec_1, |
| 5275 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5276 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 5277 | }, |
| 5278 | |
| 5279 | { |
| 5280 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 5281 | .name = "MX29LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5282 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5283 | .manufacture_id = MACRONIX_ID, |
| 5284 | .model_id = MACRONIX_MX29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5285 | .total_size = 512, |
| 5286 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5287 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5288 | .tested = TEST_UNTESTED, |
| 5289 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 5290 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5291 | .block_erasers = |
| 5292 | { |
| 5293 | { |
| 5294 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5295 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5296 | }, { |
| 5297 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5298 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5299 | }, |
| 5300 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5301 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5302 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5303 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 5304 | }, |
| 5305 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5306 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 5307 | .vendor = "MoselVitelic", |
| 5308 | .name = "V29C51000B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5309 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 5310 | .manufacture_id = SYNCMOS_MVC_ID, |
| 5311 | .model_id = MVC_V29C51000B, |
| 5312 | .total_size = 64, |
| 5313 | .page_size = 512, |
| 5314 | .feature_bits = FEATURE_EITHER_RESET, |
| 5315 | .tested = TEST_UNTESTED, |
| 5316 | .probe = probe_jedec, |
| 5317 | .probe_timing = TIMING_ZERO, |
| 5318 | .block_erasers = |
| 5319 | { |
| 5320 | { |
| 5321 | .eraseblocks = { {512, 128} }, |
| 5322 | .block_erase = erase_sector_jedec, |
| 5323 | }, { |
| 5324 | .eraseblocks = { {64 * 1024, 1} }, |
| 5325 | .block_erase = erase_chip_block_jedec, |
| 5326 | }, |
| 5327 | }, |
| 5328 | .write = write_jedec_1, |
| 5329 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5330 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 5331 | }, |
| 5332 | |
| 5333 | { |
| 5334 | .vendor = "MoselVitelic", |
| 5335 | .name = "V29C51000T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5336 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 5337 | .manufacture_id = SYNCMOS_MVC_ID, |
| 5338 | .model_id = MVC_V29C51000T, |
| 5339 | .total_size = 64, |
| 5340 | .page_size = 512, |
| 5341 | .feature_bits = FEATURE_EITHER_RESET, |
| 5342 | .tested = TEST_UNTESTED, |
| 5343 | .probe = probe_jedec, |
| 5344 | .probe_timing = TIMING_ZERO, |
| 5345 | .block_erasers = |
| 5346 | { |
| 5347 | { |
| 5348 | .eraseblocks = { {512, 128} }, |
| 5349 | .block_erase = erase_sector_jedec, |
| 5350 | }, { |
| 5351 | .eraseblocks = { {64 * 1024, 1} }, |
| 5352 | .block_erase = erase_chip_block_jedec, |
| 5353 | }, |
| 5354 | }, |
| 5355 | .write = write_jedec_1, |
| 5356 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5357 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 5358 | }, |
| 5359 | |
| 5360 | { |
| 5361 | .vendor = "MoselVitelic", |
| 5362 | .name = "V29C51400B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5363 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 5364 | .manufacture_id = SYNCMOS_MVC_ID, |
| 5365 | .model_id = MVC_V29C51400B, |
| 5366 | .total_size = 512, |
| 5367 | .page_size = 1024, |
| 5368 | .feature_bits = FEATURE_EITHER_RESET, |
| 5369 | .tested = TEST_UNTESTED, |
| 5370 | .probe = probe_jedec, |
| 5371 | .probe_timing = TIMING_ZERO, |
| 5372 | .block_erasers = |
| 5373 | { |
| 5374 | { |
| 5375 | .eraseblocks = { {1024, 512} }, |
| 5376 | .block_erase = erase_sector_jedec, |
| 5377 | }, { |
| 5378 | .eraseblocks = { {512 * 1024, 1} }, |
| 5379 | .block_erase = erase_chip_block_jedec, |
| 5380 | }, |
| 5381 | }, |
| 5382 | .write = write_jedec_1, |
| 5383 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5384 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 5385 | }, |
| 5386 | |
| 5387 | { |
| 5388 | .vendor = "MoselVitelic", |
| 5389 | .name = "V29C51400T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5390 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 5391 | .manufacture_id = SYNCMOS_MVC_ID, |
| 5392 | .model_id = MVC_V29C51400T, |
| 5393 | .total_size = 512, |
| 5394 | .page_size = 1024, |
| 5395 | .feature_bits = FEATURE_EITHER_RESET, |
| 5396 | .tested = TEST_UNTESTED, |
| 5397 | .probe = probe_jedec, |
| 5398 | .probe_timing = TIMING_ZERO, |
| 5399 | .block_erasers = |
| 5400 | { |
| 5401 | { |
| 5402 | .eraseblocks = { {1024, 512} }, |
| 5403 | .block_erase = erase_sector_jedec, |
| 5404 | }, { |
| 5405 | .eraseblocks = { {512 * 1024, 1} }, |
| 5406 | .block_erase = erase_chip_block_jedec, |
| 5407 | }, |
| 5408 | }, |
| 5409 | .write = write_jedec_1, |
| 5410 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5411 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 5412 | }, |
| 5413 | |
| 5414 | { |
| 5415 | .vendor = "MoselVitelic", |
| 5416 | .name = "V29LC51000", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5417 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 5418 | .manufacture_id = SYNCMOS_MVC_ID, |
| 5419 | .model_id = MVC_V29LC51000, |
| 5420 | .total_size = 64, |
| 5421 | .page_size = 512, |
| 5422 | .feature_bits = FEATURE_EITHER_RESET, |
| 5423 | .tested = TEST_UNTESTED, |
| 5424 | .probe = probe_jedec, |
| 5425 | .probe_timing = TIMING_ZERO, |
| 5426 | .block_erasers = |
| 5427 | { |
| 5428 | { |
| 5429 | .eraseblocks = { {512, 128} }, |
| 5430 | .block_erase = erase_sector_jedec, |
| 5431 | }, { |
| 5432 | .eraseblocks = { {64 * 1024, 1} }, |
| 5433 | .block_erase = erase_chip_block_jedec, |
| 5434 | }, |
| 5435 | }, |
| 5436 | .write = write_jedec_1, |
| 5437 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5438 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 5439 | }, |
| 5440 | |
| 5441 | { |
| 5442 | .vendor = "MoselVitelic", |
| 5443 | .name = "V29LC51001", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5444 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 5445 | .manufacture_id = SYNCMOS_MVC_ID, |
| 5446 | .model_id = MVC_V29LC51001, |
| 5447 | .total_size = 128, |
| 5448 | .page_size = 512, |
| 5449 | .feature_bits = FEATURE_EITHER_RESET, |
| 5450 | .tested = TEST_UNTESTED, |
| 5451 | .probe = probe_jedec, |
| 5452 | .probe_timing = TIMING_ZERO, |
| 5453 | .block_erasers = |
| 5454 | { |
| 5455 | { |
| 5456 | .eraseblocks = { {512, 256} }, |
| 5457 | .block_erase = erase_sector_jedec, |
| 5458 | }, { |
| 5459 | .eraseblocks = { {128 * 1024, 1} }, |
| 5460 | .block_erase = erase_chip_block_jedec, |
| 5461 | }, |
| 5462 | }, |
| 5463 | .write = write_jedec_1, |
| 5464 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5465 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 5466 | }, |
| 5467 | |
| 5468 | { |
| 5469 | .vendor = "MoselVitelic", |
| 5470 | .name = "V29LC51002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5471 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 5472 | .manufacture_id = SYNCMOS_MVC_ID, |
| 5473 | .model_id = MVC_V29LC51002, |
| 5474 | .total_size = 256, |
| 5475 | .page_size = 512, |
| 5476 | .feature_bits = FEATURE_EITHER_RESET, |
| 5477 | .tested = TEST_UNTESTED, |
| 5478 | .probe = probe_jedec, |
| 5479 | .probe_timing = TIMING_ZERO, |
| 5480 | .block_erasers = |
| 5481 | { |
| 5482 | { |
| 5483 | .eraseblocks = { {512, 512} }, |
| 5484 | .block_erase = erase_sector_jedec, |
| 5485 | }, { |
| 5486 | .eraseblocks = { {256 * 1024, 1} }, |
| 5487 | .block_erase = erase_chip_block_jedec, |
| 5488 | }, |
| 5489 | }, |
| 5490 | .write = write_jedec_1, |
| 5491 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5492 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 5493 | }, |
| 5494 | |
| 5495 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5496 | .vendor = "Numonyx", |
| 5497 | .name = "M25PE10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5498 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5499 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5500 | .model_id = ST_M25PE10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5501 | .total_size = 128, |
| 5502 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 5503 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5504 | .tested = TEST_UNTESTED, |
| 5505 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5506 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 5507 | .block_erasers = |
| 5508 | { |
| 5509 | { |
| 5510 | .eraseblocks = { {4 * 1024, 32} }, |
| 5511 | .block_erase = spi_block_erase_20, |
| 5512 | }, { |
| 5513 | .eraseblocks = { {64 * 1024, 2} }, |
| 5514 | .block_erase = spi_block_erase_d8, |
| 5515 | }, { |
| 5516 | .eraseblocks = { {128 * 1024, 1} }, |
| 5517 | .block_erase = spi_block_erase_c7, |
| 5518 | } |
| 5519 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5520 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5521 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5522 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5523 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5524 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5525 | }, |
| 5526 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5527 | { |
| 5528 | .vendor = "Numonyx", |
| 5529 | .name = "M25PE20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5530 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5531 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5532 | .model_id = ST_M25PE20, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5533 | .total_size = 256, |
| 5534 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 5535 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5536 | .tested = TEST_UNTESTED, |
| 5537 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5538 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 5539 | .block_erasers = |
| 5540 | { |
| 5541 | { |
| 5542 | .eraseblocks = { {4 * 1024, 64} }, |
| 5543 | .block_erase = spi_block_erase_20, |
| 5544 | }, { |
| 5545 | .eraseblocks = { {64 * 1024, 4} }, |
| 5546 | .block_erase = spi_block_erase_d8, |
| 5547 | }, { |
| 5548 | .eraseblocks = { {256 * 1024, 1} }, |
| 5549 | .block_erase = spi_block_erase_c7, |
| 5550 | } |
| 5551 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5552 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5553 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5554 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5555 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5556 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5557 | }, |
| 5558 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5559 | { |
| 5560 | .vendor = "Numonyx", |
| 5561 | .name = "M25PE40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5562 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5563 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5564 | .model_id = ST_M25PE40, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 5565 | .total_size = 512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5566 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 5567 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5568 | .tested = TEST_UNTESTED, |
| 5569 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5570 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 5571 | .block_erasers = |
| 5572 | { |
| 5573 | { |
| 5574 | .eraseblocks = { {4 * 1024, 128} }, |
| 5575 | .block_erase = spi_block_erase_20, |
| 5576 | }, { |
| 5577 | .eraseblocks = { {64 * 1024, 8} }, |
| 5578 | .block_erase = spi_block_erase_d8, |
| 5579 | }, { |
| 5580 | .eraseblocks = { {512 * 1024, 1} }, |
| 5581 | .block_erase = spi_block_erase_c7, |
| 5582 | } |
| 5583 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5584 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5585 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5586 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5587 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5588 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5589 | }, |
| 5590 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5591 | { |
| 5592 | .vendor = "Numonyx", |
| 5593 | .name = "M25PE80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5594 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5595 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5596 | .model_id = ST_M25PE80, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5597 | .total_size = 1024, |
| 5598 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 5599 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 5600 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5601 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5602 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 5603 | .block_erasers = |
| 5604 | { |
| 5605 | { |
| 5606 | .eraseblocks = { {4 * 1024, 256} }, |
| 5607 | .block_erase = spi_block_erase_20, |
| 5608 | }, { |
| 5609 | .eraseblocks = { {64 * 1024, 16} }, |
| 5610 | .block_erase = spi_block_erase_d8, |
| 5611 | }, { |
| 5612 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5613 | .block_erase = spi_block_erase_c7, |
| 5614 | } |
| 5615 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5616 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5617 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5618 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5619 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5620 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5621 | }, |
| 5622 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5623 | { |
| 5624 | .vendor = "Numonyx", |
| 5625 | .name = "M25PE16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5626 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5627 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5628 | .model_id = ST_M25PE16, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5629 | .total_size = 2048, |
| 5630 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 5631 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5632 | .tested = TEST_UNTESTED, |
| 5633 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5634 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 5635 | .block_erasers = |
| 5636 | { |
| 5637 | { |
| 5638 | .eraseblocks = { {4 * 1024, 512} }, |
| 5639 | .block_erase = spi_block_erase_20, |
| 5640 | }, { |
| 5641 | .eraseblocks = { {64 * 1024, 32} }, |
| 5642 | .block_erase = spi_block_erase_d8, |
| 5643 | }, { |
| 5644 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5645 | .block_erase = spi_block_erase_c7, |
| 5646 | } |
| 5647 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5648 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5649 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5650 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5651 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5652 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5653 | }, |
| 5654 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5655 | { |
Niklas Söderlund | ae4294f | 2012-04-14 21:04:03 +0000 | [diff] [blame] | 5656 | .vendor = "Numonyx", |
Stefan Tauner | d956f82 | 2012-10-26 16:49:15 +0000 | [diff] [blame] | 5657 | .name = "N25Q016", |
| 5658 | .bustype = BUS_SPI, |
| 5659 | .manufacture_id = ST_ID, |
| 5660 | .model_id = ST_N25Q016__1E, |
| 5661 | .total_size = 2048, |
| 5662 | .page_size = 256, |
| 5663 | /* supports SFDP */ |
| 5664 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 5665 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5666 | .tested = TEST_UNTESTED, |
| 5667 | .probe = probe_spi_rdid, |
| 5668 | .probe_timing = TIMING_ZERO, |
| 5669 | .block_erasers = |
| 5670 | { |
| 5671 | { |
| 5672 | .eraseblocks = { {4 * 1024, 512} }, |
| 5673 | .block_erase = spi_block_erase_20, |
| 5674 | }, { |
| 5675 | .eraseblocks = { {32 * 1024, 64} }, |
| 5676 | .block_erase = spi_block_erase_52, |
| 5677 | }, { |
| 5678 | .eraseblocks = { {64 * 1024, 32} }, |
| 5679 | .block_erase = spi_block_erase_d8, |
| 5680 | }, { |
| 5681 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5682 | .block_erase = spi_block_erase_c7, |
| 5683 | } |
| 5684 | }, |
| 5685 | .unlock = spi_disable_blockprotect, |
| 5686 | .write = spi_chip_write_256, |
| 5687 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5688 | .voltage = {1700, 2000}, |
| 5689 | }, |
| 5690 | |
| 5691 | { |
| 5692 | .vendor = "Numonyx", |
| 5693 | .name = "N25Q032..1E", |
| 5694 | .bustype = BUS_SPI, |
| 5695 | .manufacture_id = ST_ID, |
| 5696 | .model_id = ST_N25Q032__1E, |
| 5697 | .total_size = 4096, |
| 5698 | .page_size = 256, |
| 5699 | /* supports SFDP */ |
| 5700 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 5701 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5702 | .tested = TEST_UNTESTED, |
| 5703 | .probe = probe_spi_rdid, |
| 5704 | .probe_timing = TIMING_ZERO, |
| 5705 | .block_erasers = |
| 5706 | { |
| 5707 | { |
| 5708 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5709 | .block_erase = spi_block_erase_20, |
| 5710 | }, { |
| 5711 | .eraseblocks = { {64 * 1024, 64} }, |
| 5712 | .block_erase = spi_block_erase_d8, |
| 5713 | }, { |
| 5714 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5715 | .block_erase = spi_block_erase_c7, |
| 5716 | } |
| 5717 | }, |
| 5718 | .unlock = spi_disable_blockprotect, |
| 5719 | .write = spi_chip_write_256, |
| 5720 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5721 | .voltage = {1700, 2000}, |
| 5722 | }, |
| 5723 | |
| 5724 | { |
| 5725 | .vendor = "Numonyx", |
| 5726 | .name = "N25Q032..3E", |
| 5727 | .bustype = BUS_SPI, |
| 5728 | .manufacture_id = ST_ID, |
| 5729 | .model_id = ST_N25Q032__3E, |
| 5730 | .total_size = 4096, |
| 5731 | .page_size = 256, |
| 5732 | /* supports SFDP */ |
| 5733 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 5734 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5735 | .tested = TEST_UNTESTED, |
| 5736 | .probe = probe_spi_rdid, |
| 5737 | .probe_timing = TIMING_ZERO, |
| 5738 | .block_erasers = |
| 5739 | { |
| 5740 | { |
| 5741 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5742 | .block_erase = spi_block_erase_20, |
| 5743 | }, { |
| 5744 | .eraseblocks = { {64 * 1024, 64} }, |
| 5745 | .block_erase = spi_block_erase_d8, |
| 5746 | }, { |
| 5747 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5748 | .block_erase = spi_block_erase_c7, |
| 5749 | } |
| 5750 | }, |
| 5751 | .unlock = spi_disable_blockprotect, |
| 5752 | .write = spi_chip_write_256, |
| 5753 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5754 | .voltage = {2700, 3600}, |
| 5755 | }, |
| 5756 | |
| 5757 | { |
| 5758 | .vendor = "Numonyx", |
David Hendricks | 99f947d | 2012-10-04 14:41:20 +0000 | [diff] [blame] | 5759 | .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
Niklas Söderlund | ae4294f | 2012-04-14 21:04:03 +0000 | [diff] [blame] | 5760 | .bustype = BUS_SPI, |
| 5761 | .manufacture_id = ST_ID, |
David Hendricks | 99f947d | 2012-10-04 14:41:20 +0000 | [diff] [blame] | 5762 | .model_id = ST_N25Q064__1E, |
Niklas Söderlund | ae4294f | 2012-04-14 21:04:03 +0000 | [diff] [blame] | 5763 | .total_size = 8192, |
| 5764 | .page_size = 256, |
David Hendricks | 99f947d | 2012-10-04 14:41:20 +0000 | [diff] [blame] | 5765 | /* supports SFDP */ |
| 5766 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 5767 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5768 | .tested = TEST_UNTESTED, |
| 5769 | .probe = probe_spi_rdid, |
| 5770 | .probe_timing = TIMING_ZERO, |
| 5771 | .block_erasers = |
| 5772 | { |
| 5773 | { |
| 5774 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 5775 | .block_erase = spi_block_erase_20, |
| 5776 | }, { |
| 5777 | .eraseblocks = { {64 * 1024, 128} }, |
| 5778 | .block_erase = spi_block_erase_d8, |
| 5779 | }, { |
| 5780 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5781 | .block_erase = spi_block_erase_c7, |
| 5782 | } |
| 5783 | }, |
| 5784 | .unlock = spi_disable_blockprotect, |
| 5785 | .write = spi_chip_write_256, |
Stefan Tauner | d956f82 | 2012-10-26 16:49:15 +0000 | [diff] [blame] | 5786 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
David Hendricks | 99f947d | 2012-10-04 14:41:20 +0000 | [diff] [blame] | 5787 | .voltage = {1700, 2000}, |
| 5788 | }, |
| 5789 | |
| 5790 | { |
| 5791 | .vendor = "Numonyx", |
| 5792 | .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 5793 | .bustype = BUS_SPI, |
| 5794 | .manufacture_id = ST_ID, |
| 5795 | .model_id = ST_N25Q064__3E, |
| 5796 | .total_size = 8192, |
| 5797 | .page_size = 256, |
| 5798 | /* supports SFDP */ |
| 5799 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 5800 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Niklas Söderlund | ae4294f | 2012-04-14 21:04:03 +0000 | [diff] [blame] | 5801 | .tested = TEST_OK_PREW, |
| 5802 | .probe = probe_spi_rdid, |
| 5803 | .probe_timing = TIMING_ZERO, |
| 5804 | .block_erasers = |
| 5805 | { |
| 5806 | { |
| 5807 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 5808 | .block_erase = spi_block_erase_20, |
| 5809 | }, { |
| 5810 | .eraseblocks = { {64 * 1024, 128} }, |
| 5811 | .block_erase = spi_block_erase_d8, |
| 5812 | }, { |
| 5813 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5814 | .block_erase = spi_block_erase_c7, |
| 5815 | } |
| 5816 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5817 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Niklas Söderlund | ae4294f | 2012-04-14 21:04:03 +0000 | [diff] [blame] | 5818 | .unlock = spi_disable_blockprotect, |
| 5819 | .write = spi_chip_write_256, |
Stefan Tauner | d956f82 | 2012-10-26 16:49:15 +0000 | [diff] [blame] | 5820 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
David Hendricks | 99f947d | 2012-10-04 14:41:20 +0000 | [diff] [blame] | 5821 | .voltage = {2700, 3600}, |
Niklas Söderlund | ae4294f | 2012-04-14 21:04:03 +0000 | [diff] [blame] | 5822 | }, |
| 5823 | |
| 5824 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5825 | .vendor = "PMC", |
| 5826 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5827 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5828 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5829 | .model_id = PMC_PM25LV010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5830 | .total_size = 128, |
| 5831 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 5832 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5833 | .tested = TEST_UNTESTED, |
| 5834 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5835 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 5836 | .block_erasers = |
| 5837 | { |
| 5838 | { |
| 5839 | .eraseblocks = { {4 * 1024, 32} }, |
| 5840 | .block_erase = spi_block_erase_d7, |
| 5841 | }, { |
| 5842 | .eraseblocks = { {32 * 1024, 4} }, |
| 5843 | .block_erase = spi_block_erase_d8, |
| 5844 | }, { |
| 5845 | .eraseblocks = { {128 * 1024, 1} }, |
| 5846 | .block_erase = spi_block_erase_c7, |
| 5847 | } |
| 5848 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5849 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5850 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5851 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5852 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5853 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5854 | }, |
| 5855 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5856 | { |
| 5857 | .vendor = "PMC", |
| 5858 | .name = "Pm25LV016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5859 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5860 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5861 | .model_id = PMC_PM25LV016B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5862 | .total_size = 2048, |
| 5863 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 5864 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5865 | .tested = TEST_UNTESTED, |
| 5866 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5867 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 5868 | .block_erasers = |
| 5869 | { |
| 5870 | { |
| 5871 | .eraseblocks = { {4 * 1024, 512} }, |
| 5872 | .block_erase = spi_block_erase_d7, |
| 5873 | }, { |
| 5874 | .eraseblocks = { {4 * 1024, 512} }, |
| 5875 | .block_erase = spi_block_erase_20, |
| 5876 | }, { |
| 5877 | .eraseblocks = { {64 * 1024, 32} }, |
| 5878 | .block_erase = spi_block_erase_d8, |
| 5879 | }, { |
| 5880 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5881 | .block_erase = spi_block_erase_60, |
| 5882 | }, { |
| 5883 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5884 | .block_erase = spi_block_erase_c7, |
| 5885 | } |
| 5886 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5887 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5888 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5889 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5890 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5891 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5892 | }, |
| 5893 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5894 | { |
| 5895 | .vendor = "PMC", |
| 5896 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5897 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5898 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5899 | .model_id = PMC_PM25LV020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5900 | .total_size = 256, |
| 5901 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 5902 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5903 | .tested = TEST_UNTESTED, |
| 5904 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5905 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 5906 | .block_erasers = |
| 5907 | { |
| 5908 | { |
| 5909 | .eraseblocks = { {4 * 1024, 64} }, |
| 5910 | .block_erase = spi_block_erase_d7, |
| 5911 | }, { |
| 5912 | .eraseblocks = { {64 * 1024, 4} }, |
| 5913 | .block_erase = spi_block_erase_d8, |
| 5914 | }, { |
| 5915 | .eraseblocks = { {256 * 1024, 1} }, |
| 5916 | .block_erase = spi_block_erase_c7, |
| 5917 | } |
| 5918 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5919 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5920 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5921 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5922 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5923 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5924 | }, |
| 5925 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5926 | { |
| 5927 | .vendor = "PMC", |
| 5928 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5929 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5930 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5931 | .model_id = PMC_PM25LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5932 | .total_size = 512, |
| 5933 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 5934 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 5935 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5936 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5937 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 5938 | .block_erasers = |
| 5939 | { |
| 5940 | { |
| 5941 | .eraseblocks = { {4 * 1024, 128} }, |
| 5942 | .block_erase = spi_block_erase_d7, |
| 5943 | }, { |
| 5944 | .eraseblocks = { {64 * 1024, 8} }, |
| 5945 | .block_erase = spi_block_erase_d8, |
| 5946 | }, { |
| 5947 | .eraseblocks = { {512 * 1024, 1} }, |
| 5948 | .block_erase = spi_block_erase_c7, |
| 5949 | } |
| 5950 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5951 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5952 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5953 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5954 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5955 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5956 | }, |
| 5957 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5958 | { |
| 5959 | .vendor = "PMC", |
| 5960 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5961 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5962 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5963 | .model_id = PMC_PM25LV080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5964 | .total_size = 1024, |
| 5965 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 5966 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5967 | .tested = TEST_UNTESTED, |
| 5968 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5969 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 5970 | .block_erasers = |
| 5971 | { |
| 5972 | { |
| 5973 | .eraseblocks = { {4 * 1024, 256} }, |
| 5974 | .block_erase = spi_block_erase_d7, |
| 5975 | }, { |
| 5976 | .eraseblocks = { {4 * 1024, 256} }, |
| 5977 | .block_erase = spi_block_erase_20, |
| 5978 | }, { |
| 5979 | .eraseblocks = { {64 * 1024, 16} }, |
| 5980 | .block_erase = spi_block_erase_d8, |
| 5981 | }, { |
| 5982 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5983 | .block_erase = spi_block_erase_60, |
| 5984 | }, { |
| 5985 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5986 | .block_erase = spi_block_erase_c7, |
| 5987 | } |
| 5988 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5989 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5990 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5991 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5992 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5993 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5994 | }, |
| 5995 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5996 | { |
| 5997 | .vendor = "PMC", |
| 5998 | .name = "Pm25LV512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5999 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6000 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6001 | .model_id = PMC_PM25LV512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6002 | .total_size = 64, |
| 6003 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6004 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6005 | .tested = TEST_UNTESTED, |
| 6006 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6007 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6008 | .block_erasers = |
| 6009 | { |
| 6010 | { |
| 6011 | .eraseblocks = { {4 * 1024, 16} }, |
| 6012 | .block_erase = spi_block_erase_d7, |
| 6013 | }, { |
| 6014 | .eraseblocks = { {32 * 1024, 2} }, |
| 6015 | .block_erase = spi_block_erase_d8, |
| 6016 | }, { |
| 6017 | .eraseblocks = { {64 * 1024, 1} }, |
| 6018 | .block_erase = spi_block_erase_c7, |
| 6019 | } |
| 6020 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6021 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6022 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6023 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6024 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6025 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6026 | }, |
| 6027 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6028 | { |
| 6029 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 6030 | .name = "Pm29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6031 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 6032 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6033 | .model_id = PMC_PM29F002T, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 6034 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 6035 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6036 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 6037 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6038 | .probe = probe_jedec, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 6039 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 6040 | .block_erasers = |
| 6041 | { |
| 6042 | { |
| 6043 | .eraseblocks = { |
| 6044 | {128 * 1024, 1}, |
| 6045 | {96 * 1024, 1}, |
| 6046 | {8 * 1024, 2}, |
| 6047 | {16 * 1024, 1}, |
| 6048 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6049 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 6050 | }, { |
| 6051 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6052 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 6053 | }, |
| 6054 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6055 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 6056 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6057 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 6058 | }, |
| 6059 | |
| 6060 | { |
| 6061 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 6062 | .name = "Pm29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6063 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 6064 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6065 | .model_id = PMC_PM29F002B, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 6066 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 6067 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6068 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 6069 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6070 | .probe = probe_jedec, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 6071 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 6072 | .block_erasers = |
| 6073 | { |
| 6074 | { |
| 6075 | .eraseblocks = { |
| 6076 | {16 * 1024, 1}, |
| 6077 | {8 * 1024, 2}, |
| 6078 | {96 * 1024, 1}, |
| 6079 | {128 * 1024, 1}, |
| 6080 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6081 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 6082 | }, { |
| 6083 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6084 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 6085 | }, |
| 6086 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6087 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 6088 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6089 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 6090 | }, |
| 6091 | |
| 6092 | { |
| 6093 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 6094 | .name = "Pm39LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6095 | .bustype = BUS_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 6096 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6097 | .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */ |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 6098 | .total_size = 128, |
| 6099 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6100 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 6101 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 6102 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6103 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6104 | .block_erasers = |
| 6105 | { |
| 6106 | { |
| 6107 | .eraseblocks = { {4 * 1024, 32} }, |
| 6108 | .block_erase = erase_sector_jedec, |
| 6109 | }, { |
| 6110 | .eraseblocks = { {64 * 1024, 2} }, |
| 6111 | .block_erase = erase_block_jedec, |
| 6112 | }, { |
| 6113 | .eraseblocks = { {128 * 1024, 1} }, |
| 6114 | .block_erase = erase_chip_block_jedec, |
| 6115 | } |
| 6116 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6117 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 6118 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6119 | .voltage = {2700, 3600}, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 6120 | }, |
| 6121 | |
| 6122 | { |
| 6123 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 6124 | .name = "Pm39LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6125 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 6126 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6127 | .model_id = PMC_PM39LV020, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 6128 | .total_size = 256, |
| 6129 | .page_size = 4096, |
| 6130 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 6131 | .tested = TEST_UNTESTED, |
| 6132 | .probe = probe_jedec, |
| 6133 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6134 | .block_erasers = |
| 6135 | { |
| 6136 | { |
| 6137 | .eraseblocks = { {4 * 1024, 64} }, |
| 6138 | .block_erase = erase_sector_jedec, |
| 6139 | }, { |
| 6140 | .eraseblocks = { {64 * 1024, 4} }, |
| 6141 | .block_erase = erase_block_jedec, |
| 6142 | }, { |
| 6143 | .eraseblocks = { {256 * 1024, 1} }, |
| 6144 | .block_erase = erase_chip_block_jedec, |
| 6145 | } |
| 6146 | }, |
| 6147 | .write = write_jedec_1, |
| 6148 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6149 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 6150 | }, |
| 6151 | |
| 6152 | { |
| 6153 | .vendor = "PMC", |
| 6154 | .name = "Pm39LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6155 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 6156 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6157 | .model_id = PMC_PM39LV040, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 6158 | .total_size = 512, |
| 6159 | .page_size = 4096, |
| 6160 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 6161 | .tested = TEST_OK_PR, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 6162 | .probe = probe_jedec, |
| 6163 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6164 | .block_erasers = |
| 6165 | { |
| 6166 | { |
| 6167 | .eraseblocks = { {4 * 1024, 128} }, |
| 6168 | .block_erase = erase_sector_jedec, |
| 6169 | }, { |
| 6170 | .eraseblocks = { {64 * 1024, 8} }, |
| 6171 | .block_erase = erase_block_jedec, |
| 6172 | }, { |
| 6173 | .eraseblocks = { {512 * 1024, 1} }, |
| 6174 | .block_erase = erase_chip_block_jedec, |
| 6175 | } |
| 6176 | }, |
| 6177 | .write = write_jedec_1, |
| 6178 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6179 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 6180 | }, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 6181 | |
| 6182 | { |
| 6183 | .vendor = "PMC", |
| 6184 | .name = "Pm39LV512", |
| 6185 | .bustype = BUS_PARALLEL, |
| 6186 | .manufacture_id = PMC_ID_NOPREFIX, |
| 6187 | .model_id = PMC_PM39LV512, |
| 6188 | .total_size = 64, |
| 6189 | .page_size = 4096, |
| 6190 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 6191 | .tested = TEST_OK_PREW, |
| 6192 | .probe = probe_jedec, |
| 6193 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6194 | .block_erasers = |
| 6195 | { |
| 6196 | { |
| 6197 | .eraseblocks = { {4 * 1024, 16} }, |
| 6198 | .block_erase = erase_sector_jedec, |
| 6199 | }, { |
| 6200 | .eraseblocks = { {64 * 1024, 1} }, |
| 6201 | .block_erase = erase_block_jedec, |
| 6202 | }, { |
| 6203 | .eraseblocks = { {64 * 1024, 1} }, |
| 6204 | .block_erase = erase_chip_block_jedec, |
| 6205 | } |
| 6206 | }, |
| 6207 | .write = write_jedec_1, |
| 6208 | .read = read_memmapped, |
| 6209 | .voltage = {2700, 3600}, |
| 6210 | }, |
| 6211 | |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 6212 | { |
| 6213 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6214 | .name = "Pm49FL002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6215 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6216 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6217 | .model_id = PMC_PM49FL002, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6218 | .total_size = 256, |
| 6219 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6220 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 6221 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 6222 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6223 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6224 | .block_erasers = |
| 6225 | { |
| 6226 | { |
| 6227 | .eraseblocks = { {4 * 1024, 64} }, |
| 6228 | .block_erase = erase_sector_jedec, |
| 6229 | }, { |
| 6230 | .eraseblocks = { {16 * 1024, 16} }, |
| 6231 | .block_erase = erase_block_jedec, |
| 6232 | }, { |
| 6233 | .eraseblocks = { {256 * 1024, 1} }, |
| 6234 | .block_erase = erase_chip_block_jedec, |
| 6235 | } |
| 6236 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 6237 | .unlock = unlock_49fl00x, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 6238 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6239 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6240 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6241 | }, |
| 6242 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6243 | { |
| 6244 | .vendor = "PMC", |
| 6245 | .name = "Pm49FL004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6246 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6247 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6248 | .model_id = PMC_PM49FL004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6249 | .total_size = 512, |
| 6250 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6251 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 6252 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 6253 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6254 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6255 | .block_erasers = |
| 6256 | { |
| 6257 | { |
| 6258 | .eraseblocks = { {4 * 1024, 128} }, |
| 6259 | .block_erase = erase_sector_jedec, |
| 6260 | }, { |
| 6261 | .eraseblocks = { {64 * 1024, 8} }, |
| 6262 | .block_erase = erase_block_jedec, |
| 6263 | }, { |
| 6264 | .eraseblocks = { {512 * 1024, 1} }, |
| 6265 | .block_erase = erase_chip_block_jedec, |
| 6266 | } |
| 6267 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 6268 | .unlock = unlock_49fl00x, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 6269 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6270 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6271 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6272 | }, |
| 6273 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6274 | { |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 6275 | .vendor = "Sanyo", |
| 6276 | .name = "LF25FW203A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6277 | .bustype = BUS_SPI, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 6278 | .manufacture_id = SANYO_ID, |
| 6279 | .model_id = SANYO_LE25FW203A, |
| 6280 | .total_size = 2048, |
| 6281 | .page_size = 256, |
| 6282 | .tested = TEST_UNTESTED, |
| 6283 | .probe = probe_spi_rdid, |
| 6284 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6285 | .block_erasers = |
| 6286 | { |
| 6287 | { |
| 6288 | .eraseblocks = { {64 * 1024, 32} }, |
| 6289 | .block_erase = spi_block_erase_d8, |
| 6290 | }, { |
| 6291 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6292 | .block_erase = spi_block_erase_c7, |
| 6293 | } |
| 6294 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6295 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6296 | .unlock = spi_disable_blockprotect, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 6297 | .write = spi_chip_write_256, |
| 6298 | .read = spi_chip_read, |
| 6299 | }, |
| 6300 | |
| 6301 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6302 | .vendor = "Sharp", |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 6303 | .name = "LH28F008BJT-BTLZ1", |
| 6304 | .bustype = BUS_PARALLEL, |
| 6305 | .manufacture_id = SHARP_ID, |
| 6306 | .model_id = SHARP_LH28F008BJxxPB, |
| 6307 | .total_size = 1024, |
| 6308 | .page_size = 64 * 1024, |
| 6309 | .tested = TEST_OK_PREW, |
| 6310 | .probe = probe_82802ab, |
| 6311 | .probe_timing = TIMING_ZERO, |
| 6312 | .block_erasers = |
| 6313 | { |
| 6314 | { |
| 6315 | .eraseblocks = { |
| 6316 | {8 * 1024, 8}, |
| 6317 | {64 * 1024, 15} |
| 6318 | }, |
| 6319 | .block_erase = erase_block_82802ab, |
| 6320 | }, { |
| 6321 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6322 | .block_erase = erase_sector_49lfxxxc, |
| 6323 | } |
| 6324 | }, |
| 6325 | .unlock = unlock_lh28f008bjt, |
| 6326 | .write = write_82802ab, |
| 6327 | .read = read_memmapped, |
| 6328 | .voltage = {2700, 3600}, |
| 6329 | }, |
| 6330 | |
| 6331 | { |
| 6332 | .vendor = "Sharp", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6333 | .name = "LHF00L04", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6334 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6335 | .manufacture_id = SHARP_ID, |
| 6336 | .model_id = SHARP_LHF00L04, |
| 6337 | .total_size = 1024, |
| 6338 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6339 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6340 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6341 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 6342 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 6343 | .block_erasers = |
| 6344 | { |
| 6345 | { |
| 6346 | .eraseblocks = { |
| 6347 | {64 * 1024, 15}, |
| 6348 | {8 * 1024, 8} |
| 6349 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6350 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 6351 | }, { |
| 6352 | .eraseblocks = { |
| 6353 | {1024 * 1024, 1} |
| 6354 | }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 6355 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 6356 | }, |
| 6357 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6358 | .unlock = unlock_82802ab, |
| 6359 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6360 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6361 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6362 | }, |
| 6363 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6364 | { |
| 6365 | .vendor = "Spansion", |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 6366 | .name = "S25FL004A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6367 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 6368 | .manufacture_id = SPANSION_ID, |
| 6369 | .model_id = SPANSION_S25FL004A, |
| 6370 | .total_size = 512, |
| 6371 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6372 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 6373 | .tested = TEST_UNTESTED, |
| 6374 | .probe = probe_spi_rdid, |
| 6375 | .probe_timing = TIMING_ZERO, |
| 6376 | .block_erasers = |
| 6377 | { |
| 6378 | { |
| 6379 | .eraseblocks = { {64 * 1024, 8} }, |
| 6380 | .block_erase = spi_block_erase_d8, |
| 6381 | }, { |
| 6382 | .eraseblocks = { {512 * 1024, 1} }, |
| 6383 | .block_erase = spi_block_erase_c7, |
| 6384 | } |
| 6385 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6386 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 6387 | .unlock = spi_disable_blockprotect, |
| 6388 | .write = spi_chip_write_256, |
| 6389 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6390 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 6391 | }, |
| 6392 | |
| 6393 | { |
| 6394 | .vendor = "Spansion", |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 6395 | .name = "S25FL008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6396 | .bustype = BUS_SPI, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 6397 | .manufacture_id = SPANSION_ID, |
| 6398 | .model_id = SPANSION_S25FL008A, |
| 6399 | .total_size = 1024, |
| 6400 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6401 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 6402 | .tested = TEST_OK_PRE, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 6403 | .probe = probe_spi_rdid, |
| 6404 | .probe_timing = TIMING_ZERO, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 6405 | .block_erasers = |
| 6406 | { |
| 6407 | { |
| 6408 | .eraseblocks = { {64 * 1024, 16} }, |
| 6409 | .block_erase = spi_block_erase_d8, |
| 6410 | }, { |
| 6411 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6412 | .block_erase = spi_block_erase_c7, |
| 6413 | } |
| 6414 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6415 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6416 | .unlock = spi_disable_blockprotect, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 6417 | .write = spi_chip_write_256, |
| 6418 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6419 | .voltage = {2700, 3600}, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 6420 | }, |
| 6421 | |
| 6422 | { |
| 6423 | .vendor = "Spansion", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6424 | .name = "S25FL016A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6425 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6426 | .manufacture_id = SPANSION_ID, |
| 6427 | .model_id = SPANSION_S25FL016A, |
| 6428 | .total_size = 2048, |
| 6429 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6430 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 6431 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6432 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6433 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6434 | .block_erasers = |
| 6435 | { |
| 6436 | { |
| 6437 | .eraseblocks = { {64 * 1024, 32} }, |
| 6438 | .block_erase = spi_block_erase_d8, |
| 6439 | }, { |
| 6440 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6441 | .block_erase = spi_block_erase_c7, |
| 6442 | } |
| 6443 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6444 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6445 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6446 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6447 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6448 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6449 | }, |
| 6450 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6451 | { |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 6452 | .vendor = "Spansion", |
| 6453 | .name = "S25FL032A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6454 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 6455 | .manufacture_id = SPANSION_ID, |
| 6456 | .model_id = SPANSION_S25FL032A, |
| 6457 | .total_size = 4096, |
| 6458 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6459 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 2abab94 | 2012-04-27 20:41:23 +0000 | [diff] [blame] | 6460 | .tested = TEST_OK_PR, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 6461 | .probe = probe_spi_rdid, |
| 6462 | .probe_timing = TIMING_ZERO, |
| 6463 | .block_erasers = |
| 6464 | { |
| 6465 | { |
| 6466 | .eraseblocks = { {64 * 1024, 64} }, |
| 6467 | .block_erase = spi_block_erase_d8, |
| 6468 | }, { |
| 6469 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6470 | .block_erase = spi_block_erase_c7, |
| 6471 | } |
| 6472 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6473 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 6474 | .unlock = spi_disable_blockprotect, |
| 6475 | .write = spi_chip_write_256, |
| 6476 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6477 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 6478 | }, |
| 6479 | |
| 6480 | { |
| 6481 | .vendor = "Spansion", |
| 6482 | .name = "S25FL064A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6483 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 6484 | .manufacture_id = SPANSION_ID, |
| 6485 | .model_id = SPANSION_S25FL064A, |
| 6486 | .total_size = 8192, |
| 6487 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6488 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 6489 | .tested = TEST_OK_PREW, |
| 6490 | .probe = probe_spi_rdid, |
| 6491 | .probe_timing = TIMING_ZERO, |
| 6492 | .block_erasers = |
| 6493 | { |
| 6494 | { |
| 6495 | .eraseblocks = { {64 * 1024, 128} }, |
| 6496 | .block_erase = spi_block_erase_d8, |
| 6497 | }, { |
| 6498 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6499 | .block_erase = spi_block_erase_c7, |
| 6500 | } |
| 6501 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6502 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 6503 | .unlock = spi_disable_blockprotect, |
| 6504 | .write = spi_chip_write_256, |
| 6505 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6506 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 6507 | }, |
| 6508 | |
| 6509 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6510 | .vendor = "SST", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 6511 | .name = "SST25LF040A", |
| 6512 | .bustype = BUS_SPI, |
| 6513 | .manufacture_id = SST_ID, |
| 6514 | .model_id = SST_SST25VF040_REMS, |
| 6515 | .total_size = 512, |
| 6516 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6517 | .feature_bits = FEATURE_WRSR_EWSR, |
Uwe Hermann | 4335ec8 | 2011-09-07 20:20:25 +0000 | [diff] [blame] | 6518 | .tested = TEST_OK_PREW, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 6519 | .probe = probe_spi_res2, |
| 6520 | .probe_timing = TIMING_ZERO, |
| 6521 | .block_erasers = |
| 6522 | { |
| 6523 | { |
| 6524 | .eraseblocks = { {4 * 1024, 128} }, |
| 6525 | .block_erase = spi_block_erase_20, |
| 6526 | }, { |
| 6527 | .eraseblocks = { {32 * 1024, 16} }, |
| 6528 | .block_erase = spi_block_erase_52, |
| 6529 | }, { |
| 6530 | .eraseblocks = { {512 * 1024, 1} }, |
| 6531 | .block_erase = spi_block_erase_60, |
| 6532 | }, |
| 6533 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6534 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 6535 | .unlock = spi_disable_blockprotect, |
| 6536 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 6537 | .read = spi_chip_read, |
| 6538 | .voltage = {3000, 3600}, |
| 6539 | }, |
| 6540 | |
| 6541 | { |
| 6542 | .vendor = "SST", |
| 6543 | .name = "SST25LF080A", |
| 6544 | .bustype = BUS_SPI, |
| 6545 | .manufacture_id = SST_ID, |
| 6546 | .model_id = SST_SST25VF080_REMS, |
| 6547 | .total_size = 1024, |
| 6548 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6549 | .feature_bits = FEATURE_WRSR_EWSR, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 6550 | .tested = TEST_UNTESTED, |
| 6551 | .probe = probe_spi_res2, |
| 6552 | .probe_timing = TIMING_ZERO, |
| 6553 | .block_erasers = |
| 6554 | { |
| 6555 | { |
| 6556 | .eraseblocks = { {4 * 1024, 256} }, |
| 6557 | .block_erase = spi_block_erase_20, |
| 6558 | }, { |
| 6559 | .eraseblocks = { {32 * 1024, 32} }, |
| 6560 | .block_erase = spi_block_erase_52, |
| 6561 | }, { |
| 6562 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6563 | .block_erase = spi_block_erase_60, |
| 6564 | }, |
| 6565 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6566 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 6567 | .unlock = spi_disable_blockprotect, |
| 6568 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 6569 | .read = spi_chip_read, |
| 6570 | .voltage = {3000, 3600}, |
| 6571 | }, |
| 6572 | |
| 6573 | { |
| 6574 | .vendor = "SST", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 6575 | .name = "SST25VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6576 | .bustype = BUS_SPI, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 6577 | .manufacture_id = SST_ID, |
| 6578 | .model_id = SST_SST25VF010_REMS, |
| 6579 | .total_size = 128, |
| 6580 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6581 | .feature_bits = FEATURE_WRSR_EWSR, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 6582 | .tested = TEST_OK_PREW, |
| 6583 | .probe = probe_spi_rems, |
| 6584 | .probe_timing = TIMING_ZERO, |
| 6585 | .block_erasers = |
| 6586 | { |
| 6587 | { |
| 6588 | .eraseblocks = { {4 * 1024, 32} }, |
| 6589 | .block_erase = spi_block_erase_20, |
| 6590 | }, { |
| 6591 | .eraseblocks = { {32 * 1024, 4} }, |
| 6592 | .block_erase = spi_block_erase_52, |
| 6593 | }, { |
| 6594 | .eraseblocks = { {128 * 1024, 1} }, |
| 6595 | .block_erase = spi_block_erase_60, |
| 6596 | }, |
| 6597 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6598 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 6599 | .unlock = spi_disable_blockprotect, |
| 6600 | .write = spi_chip_write_1, |
| 6601 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6602 | .voltage = {2700, 3600}, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 6603 | }, |
| 6604 | |
| 6605 | { |
| 6606 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6607 | .name = "SST25VF016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6608 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6609 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6610 | .model_id = SST_SST25VF016B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6611 | .total_size = 2048, |
| 6612 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6613 | .feature_bits = FEATURE_WRSR_EWSR, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 6614 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6615 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6616 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 6617 | .block_erasers = |
| 6618 | { |
| 6619 | { |
| 6620 | .eraseblocks = { {4 * 1024, 512} }, |
| 6621 | .block_erase = spi_block_erase_20, |
| 6622 | }, { |
| 6623 | .eraseblocks = { {32 * 1024, 64} }, |
| 6624 | .block_erase = spi_block_erase_52, |
| 6625 | }, { |
| 6626 | .eraseblocks = { {64 * 1024, 32} }, |
| 6627 | .block_erase = spi_block_erase_d8, |
| 6628 | }, { |
| 6629 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6630 | .block_erase = spi_block_erase_60, |
| 6631 | }, { |
| 6632 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6633 | .block_erase = spi_block_erase_c7, |
| 6634 | }, |
| 6635 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6636 | .printlock = spi_prettyprint_status_register_sst25vf016, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6637 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 6638 | .write = spi_aai_write, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6639 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6640 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6641 | }, |
| 6642 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6643 | { |
| 6644 | .vendor = "SST", |
| 6645 | .name = "SST25VF032B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6646 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6647 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6648 | .model_id = SST_SST25VF032B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6649 | .total_size = 4096, |
| 6650 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6651 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | fcf6a8c | 2011-05-18 01:32:00 +0000 | [diff] [blame] | 6652 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6653 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6654 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 6655 | .block_erasers = |
| 6656 | { |
| 6657 | { |
| 6658 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6659 | .block_erase = spi_block_erase_20, |
| 6660 | }, { |
| 6661 | .eraseblocks = { {32 * 1024, 128} }, |
| 6662 | .block_erase = spi_block_erase_52, |
| 6663 | }, { |
| 6664 | .eraseblocks = { {64 * 1024, 64} }, |
| 6665 | .block_erase = spi_block_erase_d8, |
| 6666 | }, { |
| 6667 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6668 | .block_erase = spi_block_erase_60, |
| 6669 | }, { |
| 6670 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6671 | .block_erase = spi_block_erase_c7, |
| 6672 | }, |
| 6673 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6674 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6675 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 6676 | .write = spi_aai_write, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 6677 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6678 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 6679 | }, |
| 6680 | |
| 6681 | { |
| 6682 | .vendor = "SST", |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 6683 | .name = "SST25VF064C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6684 | .bustype = BUS_SPI, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 6685 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6686 | .model_id = SST_SST25VF064C, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 6687 | .total_size = 8192, |
| 6688 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6689 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 6690 | .tested = TEST_OK_PREW, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 6691 | .probe = probe_spi_rdid, |
| 6692 | .probe_timing = TIMING_ZERO, |
| 6693 | .block_erasers = |
| 6694 | { |
| 6695 | { |
| 6696 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6697 | .block_erase = spi_block_erase_20, |
| 6698 | }, { |
| 6699 | .eraseblocks = { {32 * 1024, 256} }, |
| 6700 | .block_erase = spi_block_erase_52, |
| 6701 | }, { |
| 6702 | .eraseblocks = { {64 * 1024, 128} }, |
| 6703 | .block_erase = spi_block_erase_d8, |
| 6704 | }, { |
| 6705 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6706 | .block_erase = spi_block_erase_60, |
| 6707 | }, { |
| 6708 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6709 | .block_erase = spi_block_erase_c7, |
| 6710 | }, |
| 6711 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6712 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 6713 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 6714 | .write = spi_chip_write_256, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 6715 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6716 | .voltage = {2700, 3600}, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 6717 | }, |
| 6718 | |
| 6719 | { |
| 6720 | .vendor = "SST", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 6721 | .name = "SST25VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6722 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 6723 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6724 | .model_id = SST_SST25VF040_REMS, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 6725 | .total_size = 512, |
| 6726 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6727 | .feature_bits = FEATURE_WRSR_EWSR, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 6728 | .tested = TEST_OK_PR, |
| 6729 | .probe = probe_spi_rems, |
| 6730 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 6731 | .block_erasers = |
| 6732 | { |
| 6733 | { |
| 6734 | .eraseblocks = { {4 * 1024, 128} }, |
| 6735 | .block_erase = spi_block_erase_20, |
| 6736 | }, { |
| 6737 | .eraseblocks = { {32 * 1024, 16} }, |
| 6738 | .block_erase = spi_block_erase_52, |
| 6739 | }, { |
| 6740 | .eraseblocks = { {512 * 1024, 1} }, |
| 6741 | .block_erase = spi_block_erase_60, |
| 6742 | }, |
| 6743 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6744 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6745 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 6746 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6747 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6748 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6749 | }, |
| 6750 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6751 | { |
| 6752 | .vendor = "SST", |
| 6753 | .name = "SST25VF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6754 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6755 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6756 | .model_id = SST_SST25VF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6757 | .total_size = 512, |
| 6758 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6759 | .feature_bits = FEATURE_WRSR_EWSR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6760 | .tested = TEST_UNTESTED, |
| 6761 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6762 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 6763 | .block_erasers = |
| 6764 | { |
| 6765 | { |
| 6766 | .eraseblocks = { {4 * 1024, 128} }, |
| 6767 | .block_erase = spi_block_erase_20, |
| 6768 | }, { |
| 6769 | .eraseblocks = { {32 * 1024, 16} }, |
| 6770 | .block_erase = spi_block_erase_52, |
| 6771 | }, { |
| 6772 | .eraseblocks = { {64 * 1024, 8} }, |
| 6773 | .block_erase = spi_block_erase_d8, |
| 6774 | }, { |
| 6775 | .eraseblocks = { {512 * 1024, 1} }, |
| 6776 | .block_erase = spi_block_erase_60, |
| 6777 | }, { |
| 6778 | .eraseblocks = { {512 * 1024, 1} }, |
| 6779 | .block_erase = spi_block_erase_c7, |
| 6780 | }, |
| 6781 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6782 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6783 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 6784 | .write = spi_aai_write, |
Zheng Bao | 0677dff | 2009-02-25 08:07:33 +0000 | [diff] [blame] | 6785 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6786 | .voltage = {2700, 3600}, |
Zheng Bao | 0677dff | 2009-02-25 08:07:33 +0000 | [diff] [blame] | 6787 | }, |
| 6788 | |
| 6789 | { |
| 6790 | .vendor = "SST", |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 6791 | .name = "SST25VF040B.REMS", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6792 | .bustype = BUS_SPI, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 6793 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6794 | .model_id = SST_SST25VF040B_REMS, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 6795 | .total_size = 512, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 6796 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6797 | .feature_bits = FEATURE_WRSR_EWSR, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 6798 | .tested = TEST_OK_PR, |
| 6799 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6800 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 6801 | .block_erasers = |
| 6802 | { |
| 6803 | { |
| 6804 | .eraseblocks = { {4 * 1024, 128} }, |
| 6805 | .block_erase = spi_block_erase_20, |
| 6806 | }, { |
| 6807 | .eraseblocks = { {32 * 1024, 16} }, |
| 6808 | .block_erase = spi_block_erase_52, |
| 6809 | }, { |
| 6810 | .eraseblocks = { {64 * 1024, 8} }, |
| 6811 | .block_erase = spi_block_erase_d8, |
| 6812 | }, { |
| 6813 | .eraseblocks = { {512 * 1024, 1} }, |
| 6814 | .block_erase = spi_block_erase_60, |
| 6815 | }, { |
| 6816 | .eraseblocks = { {512 * 1024, 1} }, |
| 6817 | .block_erase = spi_block_erase_c7, |
| 6818 | }, |
| 6819 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6820 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6821 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 6822 | .write = spi_aai_write, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 6823 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6824 | .voltage = {2700, 3600}, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 6825 | }, |
| 6826 | |
| 6827 | { |
| 6828 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6829 | .name = "SST25VF080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6830 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6831 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6832 | .model_id = SST_SST25VF080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6833 | .total_size = 1024, |
| 6834 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6835 | .feature_bits = FEATURE_WRSR_EWSR, |
John Schmerge | c965c2d | 2011-05-18 11:28:47 +0000 | [diff] [blame] | 6836 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6837 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6838 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 6839 | .block_erasers = |
| 6840 | { |
| 6841 | { |
| 6842 | .eraseblocks = { {4 * 1024, 256} }, |
| 6843 | .block_erase = spi_block_erase_20, |
| 6844 | }, { |
| 6845 | .eraseblocks = { {32 * 1024, 32} }, |
| 6846 | .block_erase = spi_block_erase_52, |
| 6847 | }, { |
| 6848 | .eraseblocks = { {64 * 1024, 16} }, |
| 6849 | .block_erase = spi_block_erase_d8, |
| 6850 | }, { |
| 6851 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6852 | .block_erase = spi_block_erase_60, |
| 6853 | }, { |
| 6854 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6855 | .block_erase = spi_block_erase_c7, |
| 6856 | }, |
| 6857 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6858 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6859 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 6860 | .write = spi_aai_write, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6861 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6862 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6863 | }, |
| 6864 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6865 | { |
| 6866 | .vendor = "SST", |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 6867 | .name = "SST25WF512", |
| 6868 | .bustype = BUS_SPI, |
| 6869 | .manufacture_id = SST_ID, |
| 6870 | .model_id = SST_SST25WF512, |
| 6871 | .total_size = 64, |
| 6872 | .page_size = 256, |
| 6873 | .feature_bits = FEATURE_WRSR_EITHER, |
| 6874 | .tested = TEST_UNTESTED, |
| 6875 | .probe = probe_spi_rdid, |
| 6876 | .probe_timing = TIMING_ZERO, |
| 6877 | .block_erasers = |
| 6878 | { |
| 6879 | { |
| 6880 | .eraseblocks = { {4 * 1024, 16} }, |
| 6881 | .block_erase = spi_block_erase_20, |
| 6882 | }, { |
| 6883 | .eraseblocks = { {32 * 1024, 2} }, |
| 6884 | .block_erase = spi_block_erase_52, |
| 6885 | }, { |
| 6886 | .eraseblocks = { {1024 * 64, 1} }, |
| 6887 | .block_erase = spi_block_erase_60, |
| 6888 | }, { |
| 6889 | .eraseblocks = { {1024 * 64, 1} }, |
| 6890 | .block_erase = spi_block_erase_c7, |
| 6891 | }, |
| 6892 | }, |
| 6893 | .unlock = spi_disable_blockprotect, |
| 6894 | .write = spi_aai_write, |
| 6895 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6896 | .voltage = {1650, 1950}, |
| 6897 | }, |
| 6898 | |
| 6899 | { |
| 6900 | .vendor = "SST", |
| 6901 | .name = "SST25WF010", |
| 6902 | .bustype = BUS_SPI, |
| 6903 | .manufacture_id = SST_ID, |
| 6904 | .model_id = SST_SST25WF010, |
| 6905 | .total_size = 128, |
| 6906 | .page_size = 256, |
| 6907 | .feature_bits = FEATURE_WRSR_EITHER, |
| 6908 | .tested = TEST_UNTESTED, |
| 6909 | .probe = probe_spi_rdid, |
| 6910 | .probe_timing = TIMING_ZERO, |
| 6911 | .block_erasers = |
| 6912 | { |
| 6913 | { |
| 6914 | .eraseblocks = { {4 * 1024, 32} }, |
| 6915 | .block_erase = spi_block_erase_20, |
| 6916 | }, { |
| 6917 | .eraseblocks = { {32 * 1024, 4} }, |
| 6918 | .block_erase = spi_block_erase_52, |
| 6919 | }, { |
| 6920 | .eraseblocks = { {1024 * 128, 1} }, |
| 6921 | .block_erase = spi_block_erase_60, |
| 6922 | }, { |
| 6923 | .eraseblocks = { {1024 * 128, 1} }, |
| 6924 | .block_erase = spi_block_erase_c7, |
| 6925 | }, |
| 6926 | }, |
| 6927 | .unlock = spi_disable_blockprotect, |
| 6928 | .write = spi_aai_write, |
| 6929 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6930 | .voltage = {1650, 1950}, |
| 6931 | }, |
| 6932 | |
| 6933 | { |
| 6934 | .vendor = "SST", |
| 6935 | .name = "SST25WF020", |
| 6936 | .bustype = BUS_SPI, |
| 6937 | .manufacture_id = SST_ID, |
| 6938 | .model_id = SST_SST25WF020, |
| 6939 | .total_size = 256, |
| 6940 | .page_size = 256, |
| 6941 | .feature_bits = FEATURE_WRSR_EITHER, |
| 6942 | .tested = TEST_UNTESTED, |
| 6943 | .probe = probe_spi_rdid, |
| 6944 | .probe_timing = TIMING_ZERO, |
| 6945 | .block_erasers = |
| 6946 | { |
| 6947 | { |
| 6948 | .eraseblocks = { {4 * 1024, 64} }, |
| 6949 | .block_erase = spi_block_erase_20, |
| 6950 | }, { |
| 6951 | .eraseblocks = { {32 * 1024, 8} }, |
| 6952 | .block_erase = spi_block_erase_52, |
| 6953 | }, { |
| 6954 | .eraseblocks = { {64 * 1024, 4} }, |
| 6955 | .block_erase = spi_block_erase_d8, |
| 6956 | }, { |
| 6957 | .eraseblocks = { {1024 * 256, 1} }, |
| 6958 | .block_erase = spi_block_erase_60, |
| 6959 | }, { |
| 6960 | .eraseblocks = { {1024 * 256, 1} }, |
| 6961 | .block_erase = spi_block_erase_c7, |
| 6962 | }, |
| 6963 | }, |
| 6964 | .unlock = spi_disable_blockprotect, |
| 6965 | .write = spi_aai_write, |
| 6966 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6967 | .voltage = {1650, 1950}, |
| 6968 | }, |
| 6969 | |
| 6970 | { |
| 6971 | .vendor = "SST", |
| 6972 | .name = "SST25WF040", |
| 6973 | .bustype = BUS_SPI, |
| 6974 | .manufacture_id = SST_ID, |
| 6975 | .model_id = SST_SST25WF040, |
| 6976 | .total_size = 512, |
| 6977 | .page_size = 256, |
| 6978 | .feature_bits = FEATURE_WRSR_EITHER, |
| 6979 | .tested = TEST_UNTESTED, |
| 6980 | .probe = probe_spi_rdid, |
| 6981 | .probe_timing = TIMING_ZERO, |
| 6982 | .block_erasers = |
| 6983 | { |
| 6984 | { |
| 6985 | .eraseblocks = { {4 * 1024, 128} }, |
| 6986 | .block_erase = spi_block_erase_20, |
| 6987 | }, { |
| 6988 | .eraseblocks = { {32 * 1024, 16} }, |
| 6989 | .block_erase = spi_block_erase_52, |
| 6990 | }, { |
| 6991 | .eraseblocks = { {64 * 1024, 8} }, |
| 6992 | .block_erase = spi_block_erase_d8, |
| 6993 | }, { |
| 6994 | .eraseblocks = { {1024 * 512, 1} }, |
| 6995 | .block_erase = spi_block_erase_60, |
| 6996 | }, { |
| 6997 | .eraseblocks = { {1024 * 512, 1} }, |
| 6998 | .block_erase = spi_block_erase_c7, |
| 6999 | }, |
| 7000 | }, |
| 7001 | .unlock = spi_disable_blockprotect, |
| 7002 | .write = spi_aai_write, |
| 7003 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7004 | .voltage = {1650, 1950}, |
| 7005 | }, |
| 7006 | |
| 7007 | { |
| 7008 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7009 | .name = "SST28SF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7010 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7011 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7012 | .model_id = SST_SST28SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7013 | .total_size = 512, |
| 7014 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7015 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7016 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7017 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 7018 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7019 | .block_erasers = |
| 7020 | { |
| 7021 | { |
| 7022 | .eraseblocks = { {128, 4096} }, |
| 7023 | .block_erase = erase_sector_28sf040, |
| 7024 | }, { |
| 7025 | .eraseblocks = { {512 * 1024, 1} }, |
| 7026 | .block_erase = erase_chip_28sf040, |
| 7027 | } |
| 7028 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 7029 | .unlock = unprotect_28sf040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7030 | .write = write_28sf040, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7031 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7032 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7033 | }, |
| 7034 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7035 | { |
| 7036 | .vendor = "SST", |
| 7037 | .name = "SST29EE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7038 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7039 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7040 | .model_id = SST_SST29EE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7041 | .total_size = 128, |
| 7042 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7043 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 7044 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7045 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 7046 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7047 | .block_erasers = |
| 7048 | { |
| 7049 | { |
| 7050 | .eraseblocks = { {128 * 1024, 1} }, |
| 7051 | .block_erase = erase_chip_block_jedec, |
| 7052 | } |
| 7053 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7054 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7055 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7056 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7057 | }, |
| 7058 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7059 | { |
| 7060 | .vendor = "SST", |
| 7061 | .name = "SST29LE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7062 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7063 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7064 | .model_id = SST_SST29LE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7065 | .total_size = 128, |
| 7066 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7067 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7068 | .tested = TEST_UNTESTED, |
| 7069 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 7070 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7071 | .block_erasers = |
| 7072 | { |
| 7073 | { |
| 7074 | .eraseblocks = { {128 * 1024, 1} }, |
| 7075 | .block_erase = erase_chip_block_jedec, |
| 7076 | } |
| 7077 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7078 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7079 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7080 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7081 | }, |
| 7082 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7083 | { |
| 7084 | .vendor = "SST", |
| 7085 | .name = "SST29EE020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7086 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7087 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7088 | .model_id = SST_SST29EE020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7089 | .total_size = 256, |
| 7090 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7091 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 7092 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7093 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 7094 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7095 | .block_erasers = |
| 7096 | { |
| 7097 | { |
| 7098 | .eraseblocks = { {256 * 1024, 1} }, |
| 7099 | .block_erase = erase_chip_block_jedec, |
| 7100 | } |
| 7101 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7102 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7103 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7104 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7105 | }, |
| 7106 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7107 | { |
| 7108 | .vendor = "SST", |
| 7109 | .name = "SST29LE020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7110 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7111 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7112 | .model_id = SST_SST29LE020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7113 | .total_size = 256, |
| 7114 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7115 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 7116 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7117 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 7118 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7119 | .block_erasers = |
| 7120 | { |
| 7121 | { |
| 7122 | .eraseblocks = { {256 * 1024, 1} }, |
| 7123 | .block_erase = erase_chip_block_jedec, |
| 7124 | } |
| 7125 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7126 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7127 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7128 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7129 | }, |
| 7130 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7131 | { |
| 7132 | .vendor = "SST", |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 7133 | .name = "SST39SF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7134 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 7135 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7136 | .model_id = SST_SST39SF512, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 7137 | .total_size = 64, |
| 7138 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7139 | .feature_bits = FEATURE_EITHER_RESET, |
Idwer Vollering | 7913fb4 | 2011-03-07 15:32:58 +0000 | [diff] [blame] | 7140 | .tested = TEST_OK_PREW, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 7141 | .probe = probe_jedec, |
| 7142 | .probe_timing = 1, /* 150 ns */ |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 7143 | .block_erasers = |
| 7144 | { |
| 7145 | { |
| 7146 | .eraseblocks = { {4 * 1024, 16} }, |
| 7147 | .block_erase = erase_sector_jedec, |
| 7148 | }, { |
| 7149 | .eraseblocks = { {64 * 1024, 1} }, |
| 7150 | .block_erase = erase_chip_block_jedec, |
| 7151 | } |
| 7152 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7153 | .write = write_jedec_1, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 7154 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7155 | .voltage = {4500, 5500}, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 7156 | }, |
| 7157 | |
| 7158 | { |
| 7159 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7160 | .name = "SST39SF010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7161 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7162 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7163 | .model_id = SST_SST39SF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7164 | .total_size = 128, |
| 7165 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7166 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 7167 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7168 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 7169 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7170 | .block_erasers = |
| 7171 | { |
| 7172 | { |
| 7173 | .eraseblocks = { {4 * 1024, 32} }, |
| 7174 | .block_erase = erase_sector_jedec, |
| 7175 | }, { |
| 7176 | .eraseblocks = { {128 * 1024, 1} }, |
| 7177 | .block_erase = erase_chip_block_jedec, |
| 7178 | } |
| 7179 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7180 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7181 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7182 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7183 | }, |
| 7184 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7185 | { |
| 7186 | .vendor = "SST", |
| 7187 | .name = "SST39SF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7188 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7189 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7190 | .model_id = SST_SST39SF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7191 | .total_size = 256, |
| 7192 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7193 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 7194 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7195 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 7196 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7197 | .block_erasers = |
| 7198 | { |
| 7199 | { |
| 7200 | .eraseblocks = { {4 * 1024, 64} }, |
| 7201 | .block_erase = erase_sector_jedec, |
| 7202 | }, { |
| 7203 | .eraseblocks = { {256 * 1024, 1} }, |
| 7204 | .block_erase = erase_chip_block_jedec, |
| 7205 | } |
| 7206 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7207 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7208 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7209 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7210 | }, |
| 7211 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7212 | { |
| 7213 | .vendor = "SST", |
| 7214 | .name = "SST39SF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7215 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7216 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7217 | .model_id = SST_SST39SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7218 | .total_size = 512, |
| 7219 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7220 | .feature_bits = FEATURE_EITHER_RESET, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 7221 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7222 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 7223 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7224 | .block_erasers = |
| 7225 | { |
| 7226 | { |
| 7227 | .eraseblocks = { {4 * 1024, 128} }, |
| 7228 | .block_erase = erase_sector_jedec, |
| 7229 | }, { |
| 7230 | .eraseblocks = { {512 * 1024, 1} }, |
| 7231 | .block_erase = erase_chip_block_jedec, |
| 7232 | } |
| 7233 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7234 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7235 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7236 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7237 | }, |
| 7238 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7239 | { |
| 7240 | .vendor = "SST", |
| 7241 | .name = "SST39VF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7242 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7243 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7244 | .model_id = SST_SST39VF512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7245 | .total_size = 64, |
| 7246 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7247 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 7248 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7249 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 7250 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7251 | .block_erasers = |
| 7252 | { |
| 7253 | { |
| 7254 | .eraseblocks = { {4 * 1024, 16} }, |
| 7255 | .block_erase = erase_sector_jedec, |
| 7256 | }, { |
| 7257 | .eraseblocks = { {64 * 1024, 1} }, |
| 7258 | .block_erase = erase_chip_block_jedec, |
| 7259 | } |
| 7260 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7261 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7262 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7263 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7264 | }, |
| 7265 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7266 | { |
| 7267 | .vendor = "SST", |
| 7268 | .name = "SST39VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7269 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7270 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7271 | .model_id = SST_SST39VF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7272 | .total_size = 128, |
| 7273 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7274 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 7275 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7276 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 7277 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7278 | .block_erasers = |
| 7279 | { |
| 7280 | { |
| 7281 | .eraseblocks = { {4 * 1024, 32} }, |
| 7282 | .block_erase = erase_sector_jedec, |
| 7283 | }, { |
| 7284 | .eraseblocks = { {128 * 1024, 1} }, |
| 7285 | .block_erase = erase_chip_block_jedec, |
| 7286 | } |
| 7287 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7288 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7289 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7290 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7291 | }, |
| 7292 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7293 | { |
| 7294 | .vendor = "SST", |
| 7295 | .name = "SST39VF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7296 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7297 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7298 | .model_id = SST_SST39VF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7299 | .total_size = 256, |
| 7300 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7301 | .feature_bits = FEATURE_EITHER_RESET, |
| 7302 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7303 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 7304 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7305 | .block_erasers = |
| 7306 | { |
| 7307 | { |
| 7308 | .eraseblocks = { {4 * 1024, 64} }, |
| 7309 | .block_erase = erase_sector_jedec, |
| 7310 | }, { |
| 7311 | .eraseblocks = { {256 * 1024, 1} }, |
| 7312 | .block_erase = erase_chip_block_jedec, |
| 7313 | } |
| 7314 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7315 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7316 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7317 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7318 | }, |
| 7319 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7320 | { |
| 7321 | .vendor = "SST", |
| 7322 | .name = "SST39VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7323 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7324 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7325 | .model_id = SST_SST39VF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7326 | .total_size = 512, |
| 7327 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7328 | .feature_bits = FEATURE_EITHER_RESET, |
| 7329 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7330 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 7331 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7332 | .block_erasers = |
| 7333 | { |
| 7334 | { |
| 7335 | .eraseblocks = { {4 * 1024, 128} }, |
| 7336 | .block_erase = erase_sector_jedec, |
| 7337 | }, { |
| 7338 | .eraseblocks = { {512 * 1024, 1} }, |
| 7339 | .block_erase = erase_chip_block_jedec, |
| 7340 | } |
| 7341 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7342 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7343 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7344 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 7345 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7346 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7347 | { |
| 7348 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 7349 | .name = "SST39VF080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7350 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 7351 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7352 | .model_id = SST_SST39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 7353 | .total_size = 1024, |
| 7354 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7355 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 7356 | .tested = TEST_UNTESTED, |
| 7357 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 7358 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7359 | .block_erasers = |
| 7360 | { |
| 7361 | { |
| 7362 | .eraseblocks = { {4 * 1024, 256} }, |
| 7363 | .block_erase = erase_sector_jedec, |
| 7364 | }, { |
| 7365 | .eraseblocks = { {64 * 1024, 16} }, |
| 7366 | .block_erase = erase_block_jedec, |
| 7367 | }, { |
| 7368 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7369 | .block_erase = erase_chip_block_jedec, |
| 7370 | } |
| 7371 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7372 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7373 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7374 | .voltage = {2700, 3600}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 7375 | }, |
| 7376 | |
| 7377 | { |
| 7378 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7379 | .name = "SST49LF002A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7380 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7381 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7382 | .model_id = SST_SST49LF002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7383 | .total_size = 256, |
| 7384 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7385 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 7386 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7387 | .probe = probe_jedec, |
| 7388 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7389 | .block_erasers = |
| 7390 | { |
| 7391 | { |
| 7392 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 7393 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7394 | }, { |
| 7395 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 7396 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7397 | }, { |
| 7398 | .eraseblocks = { {256 * 1024, 1} }, |
| 7399 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 7400 | } |
| 7401 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7402 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 7403 | .unlock = unlock_sst_fwhub, |
| 7404 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7405 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7406 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7407 | }, |
| 7408 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7409 | { |
| 7410 | .vendor = "SST", |
| 7411 | .name = "SST49LF003A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7412 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7413 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7414 | .model_id = SST_SST49LF003A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7415 | .total_size = 384, |
| 7416 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7417 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 7418 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7419 | .probe = probe_jedec, |
| 7420 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7421 | .block_erasers = |
| 7422 | { |
| 7423 | { |
| 7424 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 7425 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7426 | }, { |
| 7427 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 7428 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7429 | }, { |
| 7430 | .eraseblocks = { {384 * 1024, 1} }, |
| 7431 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 7432 | } |
| 7433 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7434 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 7435 | .unlock = unlock_sst_fwhub, |
| 7436 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7437 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7438 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7439 | }, |
| 7440 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7441 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 7442 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 7443 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 7444 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7445 | .vendor = "SST", |
| 7446 | .name = "SST49LF004A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7447 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7448 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7449 | .model_id = SST_SST49LF004A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7450 | .total_size = 512, |
| 7451 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7452 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 7453 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7454 | .probe = probe_jedec, |
| 7455 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 7456 | .block_erasers = |
| 7457 | { |
| 7458 | { |
| 7459 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 7460 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 7461 | }, { |
| 7462 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 7463 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 7464 | }, { |
| 7465 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7466 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 7467 | }, |
| 7468 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7469 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 7470 | .unlock = unlock_sst_fwhub, |
| 7471 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7472 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7473 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7474 | }, |
| 7475 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7476 | { |
| 7477 | .vendor = "SST", |
| 7478 | .name = "SST49LF004C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7479 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7480 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7481 | .model_id = SST_SST49LF004C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7482 | .total_size = 512, |
| 7483 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7484 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7485 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7486 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 7487 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7488 | .block_erasers = |
| 7489 | { |
| 7490 | { |
| 7491 | .eraseblocks = { {4 * 1024, 128} }, |
| 7492 | .block_erase = erase_sector_49lfxxxc, |
| 7493 | }, { |
| 7494 | .eraseblocks = { |
| 7495 | {64 * 1024, 7}, |
| 7496 | {32 * 1024, 1}, |
| 7497 | {8 * 1024, 2}, |
| 7498 | {16 * 1024, 1}, |
| 7499 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 7500 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7501 | } |
| 7502 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 7503 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 7504 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7505 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7506 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7507 | }, |
| 7508 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7509 | { |
| 7510 | .vendor = "SST", |
| 7511 | .name = "SST49LF008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7512 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7513 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7514 | .model_id = SST_SST49LF008A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7515 | .total_size = 1024, |
| 7516 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7517 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 7518 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7519 | .probe = probe_jedec, |
| 7520 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7521 | .block_erasers = |
| 7522 | { |
| 7523 | { |
| 7524 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 7525 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7526 | }, { |
| 7527 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 7528 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7529 | }, { |
| 7530 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7531 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 7532 | } |
| 7533 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7534 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 7535 | .unlock = unlock_sst_fwhub, |
| 7536 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7537 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7538 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7539 | }, |
| 7540 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7541 | { |
| 7542 | .vendor = "SST", |
| 7543 | .name = "SST49LF008C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7544 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7545 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7546 | .model_id = SST_SST49LF008C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7547 | .total_size = 1024, |
| 7548 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7549 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7550 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7551 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 7552 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7553 | .block_erasers = |
| 7554 | { |
| 7555 | { |
| 7556 | .eraseblocks = { {4 * 1024, 256} }, |
| 7557 | .block_erase = erase_sector_49lfxxxc, |
| 7558 | }, { |
| 7559 | .eraseblocks = { |
| 7560 | {64 * 1024, 15}, |
| 7561 | {32 * 1024, 1}, |
| 7562 | {8 * 1024, 2}, |
| 7563 | {16 * 1024, 1}, |
| 7564 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 7565 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7566 | } |
| 7567 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 7568 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 7569 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7570 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7571 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7572 | }, |
| 7573 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7574 | { |
| 7575 | .vendor = "SST", |
| 7576 | .name = "SST49LF016C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7577 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7578 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7579 | .model_id = SST_SST49LF016C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7580 | .total_size = 2048, |
| 7581 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7582 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | 2abab94 | 2012-04-27 20:41:23 +0000 | [diff] [blame] | 7583 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7584 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 7585 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7586 | .block_erasers = |
| 7587 | { |
| 7588 | { |
| 7589 | .eraseblocks = { {4 * 1024, 512} }, |
| 7590 | .block_erase = erase_sector_49lfxxxc, |
| 7591 | }, { |
| 7592 | .eraseblocks = { |
| 7593 | {64 * 1024, 31}, |
| 7594 | {32 * 1024, 1}, |
| 7595 | {8 * 1024, 2}, |
| 7596 | {16 * 1024, 1}, |
| 7597 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 7598 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7599 | } |
| 7600 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 7601 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 7602 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7603 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7604 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7605 | }, |
| 7606 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7607 | { |
| 7608 | .vendor = "SST", |
| 7609 | .name = "SST49LF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7610 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7611 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7612 | .model_id = SST_SST49LF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7613 | .total_size = 256, |
| 7614 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7615 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 7616 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7617 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 7618 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7619 | .block_erasers = |
| 7620 | { |
| 7621 | { |
| 7622 | .eraseblocks = { {4 * 1024, 64} }, |
| 7623 | .block_erase = erase_sector_jedec, |
| 7624 | }, { |
| 7625 | .eraseblocks = { {16 * 1024, 16} }, |
| 7626 | .block_erase = erase_block_jedec, |
| 7627 | }, { |
| 7628 | .eraseblocks = { {256 * 1024, 1} }, |
| 7629 | .block_erase = NULL, |
| 7630 | } |
| 7631 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7632 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7633 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7634 | .voltage = {3000, 3600}, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 7635 | }, |
| 7636 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7637 | { |
| 7638 | .vendor = "SST", |
| 7639 | .name = "SST49LF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7640 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7641 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7642 | .model_id = SST_SST49LF020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7643 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 7644 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7645 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 7646 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7647 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 7648 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7649 | .block_erasers = |
| 7650 | { |
| 7651 | { |
| 7652 | .eraseblocks = { {4 * 1024, 64} }, |
| 7653 | .block_erase = erase_sector_jedec, |
| 7654 | }, { |
| 7655 | .eraseblocks = { {16 * 1024, 16} }, |
| 7656 | .block_erase = erase_block_jedec, |
| 7657 | }, { |
| 7658 | .eraseblocks = { {256 * 1024, 1} }, |
| 7659 | .block_erase = NULL, |
| 7660 | } |
| 7661 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7662 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7663 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7664 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7665 | }, |
| 7666 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7667 | { |
| 7668 | .vendor = "SST", |
| 7669 | .name = "SST49LF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7670 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7671 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7672 | .model_id = SST_SST49LF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7673 | .total_size = 512, |
| 7674 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7675 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 7676 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7677 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 7678 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7679 | .block_erasers = |
| 7680 | { |
| 7681 | { |
| 7682 | .eraseblocks = { {4 * 1024, 128} }, |
| 7683 | .block_erase = erase_sector_jedec, |
| 7684 | }, { |
| 7685 | .eraseblocks = { {64 * 1024, 8} }, |
| 7686 | .block_erase = erase_block_jedec, |
| 7687 | }, { |
| 7688 | .eraseblocks = { {512 * 1024, 1} }, |
| 7689 | .block_erase = NULL, |
| 7690 | } |
| 7691 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7692 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7693 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7694 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7695 | }, |
| 7696 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7697 | { |
| 7698 | .vendor = "SST", |
| 7699 | .name = "SST49LF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7700 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7701 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7702 | .model_id = SST_SST49LF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7703 | .total_size = 512, |
| 7704 | .page_size = 64 * 1024, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 7705 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 7706 | .tested = TEST_OK_PREW, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7707 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7708 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7709 | .block_erasers = |
| 7710 | { |
| 7711 | { |
| 7712 | .eraseblocks = { {4 * 1024, 128} }, |
| 7713 | .block_erase = erase_sector_jedec, |
| 7714 | }, { |
| 7715 | .eraseblocks = { {64 * 1024, 8} }, |
| 7716 | .block_erase = erase_block_jedec, |
| 7717 | }, { |
| 7718 | .eraseblocks = { {512 * 1024, 1} }, |
| 7719 | .block_erase = NULL, |
| 7720 | } |
| 7721 | }, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 7722 | .unlock = unlock_82802ab, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7723 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7724 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7725 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7726 | }, |
| 7727 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7728 | { |
| 7729 | .vendor = "SST", |
| 7730 | .name = "SST49LF080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7731 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7732 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7733 | .model_id = SST_SST49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7734 | .total_size = 1024, |
| 7735 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7736 | .feature_bits = FEATURE_EITHER_RESET, |
Brandon Dowdy | f07bf32 | 2011-03-06 18:31:11 +0000 | [diff] [blame] | 7737 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7738 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 7739 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7740 | .block_erasers = |
| 7741 | { |
| 7742 | { |
| 7743 | .eraseblocks = { {4 * 1024, 256} }, |
| 7744 | .block_erase = erase_sector_jedec, |
| 7745 | }, { |
| 7746 | .eraseblocks = { {64 * 1024, 16} }, |
| 7747 | .block_erase = erase_block_jedec, |
| 7748 | }, { |
| 7749 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7750 | .block_erase = NULL, |
| 7751 | } |
| 7752 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7753 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7754 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7755 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7756 | }, |
| 7757 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7758 | { |
| 7759 | .vendor = "SST", |
| 7760 | .name = "SST49LF160C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7761 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7762 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7763 | .model_id = SST_SST49LF160C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7764 | .total_size = 2048, |
| 7765 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7766 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 7767 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7768 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 7769 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7770 | .block_erasers = |
| 7771 | { |
| 7772 | { |
| 7773 | .eraseblocks = { {4 * 1024, 512} }, |
| 7774 | .block_erase = erase_sector_49lfxxxc, |
| 7775 | }, { |
| 7776 | .eraseblocks = { |
| 7777 | {64 * 1024, 31}, |
| 7778 | {32 * 1024, 1}, |
| 7779 | {8 * 1024, 2}, |
| 7780 | {16 * 1024, 1}, |
| 7781 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 7782 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7783 | } |
| 7784 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 7785 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 7786 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7787 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7788 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7789 | }, |
| 7790 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7791 | { |
| 7792 | .vendor = "ST", |
| 7793 | .name = "M25P05-A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7794 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7795 | .manufacture_id = ST_ID, |
| 7796 | .model_id = ST_M25P05A, |
| 7797 | .total_size = 64, |
| 7798 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7799 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7800 | .tested = TEST_UNTESTED, |
| 7801 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7802 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 7803 | .block_erasers = |
| 7804 | { |
| 7805 | { |
| 7806 | .eraseblocks = { {32 * 1024, 2} }, |
| 7807 | .block_erase = spi_block_erase_d8, |
| 7808 | }, { |
| 7809 | .eraseblocks = { {64 * 1024, 1} }, |
| 7810 | .block_erase = spi_block_erase_c7, |
| 7811 | } |
| 7812 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7813 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7814 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7815 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7816 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7817 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7818 | }, |
| 7819 | |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 7820 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 7821 | * ST M25P05-A in RES mode, but supports only 128 byte writes instead |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 7822 | * of 256 byte writes. We rely heavily on the fact that probe_spi_res1 |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 7823 | * only is successful if RDID does not work. |
| 7824 | */ |
| 7825 | { |
| 7826 | .vendor = "ST", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 7827 | .name = "M25P05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7828 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 7829 | .manufacture_id = 0, /* Not used. */ |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 7830 | .model_id = ST_M25P05_RES, |
| 7831 | .total_size = 64, |
| 7832 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7833 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 7834 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 7835 | .probe = probe_spi_res1, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 7836 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 7837 | .block_erasers = |
| 7838 | { |
| 7839 | { |
| 7840 | .eraseblocks = { {32 * 1024, 2} }, |
| 7841 | .block_erase = spi_block_erase_d8, |
| 7842 | }, { |
| 7843 | .eraseblocks = { {64 * 1024, 1} }, |
| 7844 | .block_erase = spi_block_erase_c7, |
| 7845 | } |
| 7846 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7847 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7848 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 7849 | .write = spi_chip_write_1, /* 128 */ |
| 7850 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7851 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 7852 | }, |
| 7853 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7854 | { |
| 7855 | .vendor = "ST", |
| 7856 | .name = "M25P10-A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7857 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7858 | .manufacture_id = ST_ID, |
| 7859 | .model_id = ST_M25P10A, |
| 7860 | .total_size = 128, |
| 7861 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7862 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 7863 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7864 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7865 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 7866 | .block_erasers = |
| 7867 | { |
| 7868 | { |
| 7869 | .eraseblocks = { {32 * 1024, 4} }, |
| 7870 | .block_erase = spi_block_erase_d8, |
| 7871 | }, { |
| 7872 | .eraseblocks = { {128 * 1024, 1} }, |
| 7873 | .block_erase = spi_block_erase_c7, |
| 7874 | } |
| 7875 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7876 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7877 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7878 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7879 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7880 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7881 | }, |
| 7882 | |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 7883 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 7884 | { |
| 7885 | .vendor = "ST", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 7886 | .name = "M25P10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7887 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 7888 | .manufacture_id = 0, /* Not used. */ |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 7889 | .model_id = ST_M25P10_RES, |
| 7890 | .total_size = 128, |
| 7891 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7892 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 7893 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 7894 | .probe = probe_spi_res1, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 7895 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 7896 | .block_erasers = |
| 7897 | { |
| 7898 | { |
| 7899 | .eraseblocks = { {32 * 1024, 4} }, |
| 7900 | .block_erase = spi_block_erase_d8, |
| 7901 | }, { |
| 7902 | .eraseblocks = { {128 * 1024, 1} }, |
| 7903 | .block_erase = spi_block_erase_c7, |
| 7904 | } |
| 7905 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7906 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7907 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 7908 | .write = spi_chip_write_1, /* 128 */ |
| 7909 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7910 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 7911 | }, |
| 7912 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7913 | { |
| 7914 | .vendor = "ST", |
| 7915 | .name = "M25P20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7916 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7917 | .manufacture_id = ST_ID, |
| 7918 | .model_id = ST_M25P20, |
| 7919 | .total_size = 256, |
| 7920 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7921 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7922 | .tested = TEST_UNTESTED, |
| 7923 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7924 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 7925 | .block_erasers = |
| 7926 | { |
| 7927 | { |
| 7928 | .eraseblocks = { {64 * 1024, 4} }, |
| 7929 | .block_erase = spi_block_erase_d8, |
| 7930 | }, { |
| 7931 | .eraseblocks = { {256 * 1024, 1} }, |
| 7932 | .block_erase = spi_block_erase_c7, |
| 7933 | } |
| 7934 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7935 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7936 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7937 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7938 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7939 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7940 | }, |
| 7941 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7942 | { |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 7943 | .vendor = "ST", /* Numonyx */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7944 | .name = "M25P40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7945 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7946 | .manufacture_id = ST_ID, |
| 7947 | .model_id = ST_M25P40, |
| 7948 | .total_size = 512, |
| 7949 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7950 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 7951 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7952 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7953 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 7954 | .block_erasers = |
| 7955 | { |
| 7956 | { |
| 7957 | .eraseblocks = { {64 * 1024, 8} }, |
| 7958 | .block_erase = spi_block_erase_d8, |
| 7959 | }, { |
| 7960 | .eraseblocks = { {512 * 1024, 1} }, |
| 7961 | .block_erase = spi_block_erase_c7, |
| 7962 | } |
| 7963 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7964 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7965 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7966 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7967 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7968 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7969 | }, |
| 7970 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7971 | { |
| 7972 | .vendor = "ST", |
| 7973 | .name = "M25P40-old", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7974 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 7975 | .manufacture_id = 0, /* Not used. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7976 | .model_id = ST_M25P40_RES, |
| 7977 | .total_size = 512, |
| 7978 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7979 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7980 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 7981 | .probe = probe_spi_res1, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7982 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 7983 | .block_erasers = |
| 7984 | { |
| 7985 | { |
| 7986 | .eraseblocks = { {64 * 1024, 8} }, |
| 7987 | .block_erase = spi_block_erase_d8, |
| 7988 | }, { |
| 7989 | .eraseblocks = { {512 * 1024, 1} }, |
| 7990 | .block_erase = spi_block_erase_c7, |
| 7991 | } |
| 7992 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7993 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7994 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7995 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7996 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7997 | }, |
| 7998 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7999 | { |
| 8000 | .vendor = "ST", |
| 8001 | .name = "M25P80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8002 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8003 | .manufacture_id = ST_ID, |
| 8004 | .model_id = ST_M25P80, |
| 8005 | .total_size = 1024, |
| 8006 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8007 | .feature_bits = FEATURE_WRSR_WREN, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 8008 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8009 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8010 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8011 | .block_erasers = |
| 8012 | { |
| 8013 | { |
| 8014 | .eraseblocks = { {64 * 1024, 16} }, |
| 8015 | .block_erase = spi_block_erase_d8, |
| 8016 | }, { |
| 8017 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8018 | .block_erase = spi_block_erase_c7, |
| 8019 | } |
| 8020 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8021 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8022 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8023 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8024 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8025 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8026 | }, |
| 8027 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8028 | { |
| 8029 | .vendor = "ST", |
| 8030 | .name = "M25P16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8031 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8032 | .manufacture_id = ST_ID, |
| 8033 | .model_id = ST_M25P16, |
| 8034 | .total_size = 2048, |
| 8035 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8036 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 8037 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8038 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8039 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8040 | .block_erasers = |
| 8041 | { |
| 8042 | { |
| 8043 | .eraseblocks = { {64 * 1024, 32} }, |
| 8044 | .block_erase = spi_block_erase_d8, |
| 8045 | }, { |
| 8046 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8047 | .block_erase = spi_block_erase_c7, |
| 8048 | } |
| 8049 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8050 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8051 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8052 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8053 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8054 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8055 | }, |
| 8056 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8057 | { |
| 8058 | .vendor = "ST", |
| 8059 | .name = "M25P32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8060 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8061 | .manufacture_id = ST_ID, |
| 8062 | .model_id = ST_M25P32, |
| 8063 | .total_size = 4096, |
| 8064 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8065 | .feature_bits = FEATURE_WRSR_WREN, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 8066 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8067 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8068 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8069 | .block_erasers = |
| 8070 | { |
| 8071 | { |
| 8072 | .eraseblocks = { {64 * 1024, 64} }, |
| 8073 | .block_erase = spi_block_erase_d8, |
| 8074 | }, { |
| 8075 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8076 | .block_erase = spi_block_erase_c7, |
| 8077 | } |
| 8078 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8079 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8080 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8081 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8082 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8083 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8084 | }, |
| 8085 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8086 | { |
| 8087 | .vendor = "ST", |
| 8088 | .name = "M25P64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8089 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8090 | .manufacture_id = ST_ID, |
| 8091 | .model_id = ST_M25P64, |
| 8092 | .total_size = 8192, |
| 8093 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8094 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 8095 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8096 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8097 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8098 | .block_erasers = |
| 8099 | { |
| 8100 | { |
| 8101 | .eraseblocks = { {64 * 1024, 128} }, |
| 8102 | .block_erase = spi_block_erase_d8, |
| 8103 | }, { |
| 8104 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8105 | .block_erase = spi_block_erase_c7, |
| 8106 | } |
| 8107 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8108 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8109 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8110 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8111 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8112 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8113 | }, |
| 8114 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8115 | { |
| 8116 | .vendor = "ST", |
| 8117 | .name = "M25P128", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8118 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8119 | .manufacture_id = ST_ID, |
| 8120 | .model_id = ST_M25P128, |
| 8121 | .total_size = 16384, |
| 8122 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8123 | .feature_bits = FEATURE_WRSR_WREN, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 8124 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8125 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8126 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8127 | .block_erasers = |
| 8128 | { |
| 8129 | { |
| 8130 | .eraseblocks = { {256 * 1024, 64} }, |
| 8131 | .block_erase = spi_block_erase_d8, |
| 8132 | }, { |
| 8133 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8134 | .block_erase = spi_block_erase_c7, |
| 8135 | } |
| 8136 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8137 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8138 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8139 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8140 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8141 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8142 | }, |
| 8143 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8144 | { |
| 8145 | .vendor = "ST", |
Carl Worth | d1dd72c | 2011-03-06 18:45:40 +0000 | [diff] [blame] | 8146 | .name = "M25PX16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8147 | .bustype = BUS_SPI, |
Carl Worth | d1dd72c | 2011-03-06 18:45:40 +0000 | [diff] [blame] | 8148 | .manufacture_id = ST_ID, |
| 8149 | .model_id = ST_M25PX16, |
| 8150 | .total_size = 2048, |
| 8151 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 8152 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8153 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl Worth | d1dd72c | 2011-03-06 18:45:40 +0000 | [diff] [blame] | 8154 | .tested = TEST_OK_PREW, |
| 8155 | .probe = probe_spi_rdid, |
| 8156 | .probe_timing = TIMING_ZERO, |
| 8157 | .block_erasers = |
| 8158 | { |
| 8159 | { |
| 8160 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 8161 | .block_erase = spi_block_erase_20, |
| 8162 | }, { |
| 8163 | .eraseblocks = { {64 * 1024, 32} }, |
| 8164 | .block_erase = spi_block_erase_d8, |
| 8165 | }, { |
| 8166 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8167 | .block_erase = spi_block_erase_c7, |
| 8168 | } |
| 8169 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8170 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl Worth | d1dd72c | 2011-03-06 18:45:40 +0000 | [diff] [blame] | 8171 | .unlock = spi_disable_blockprotect, |
| 8172 | .write = spi_chip_write_256, |
| 8173 | .read = spi_chip_read, |
| 8174 | }, |
| 8175 | |
| 8176 | { |
| 8177 | .vendor = "ST", |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 8178 | .name = "M25PX32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8179 | .bustype = BUS_SPI, |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 8180 | .manufacture_id = ST_ID, |
| 8181 | .model_id = ST_M25PX32, |
| 8182 | .total_size = 4096, |
| 8183 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8184 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 8185 | .tested = TEST_OK_PRE, |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 8186 | .probe = probe_spi_rdid, |
| 8187 | .probe_timing = TIMING_ZERO, |
| 8188 | .block_erasers = |
| 8189 | { |
| 8190 | { |
| 8191 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 8192 | .block_erase = spi_block_erase_20, |
| 8193 | }, { |
| 8194 | .eraseblocks = { {64 * 1024, 64} }, |
| 8195 | .block_erase = spi_block_erase_d8, |
| 8196 | }, { |
| 8197 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8198 | .block_erase = spi_block_erase_c7, |
| 8199 | } |
| 8200 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8201 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 8202 | .unlock = spi_disable_blockprotect, |
| 8203 | .write = spi_chip_write_256, |
| 8204 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8205 | .voltage = {2700, 3600}, |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 8206 | }, |
| 8207 | |
| 8208 | { |
| 8209 | .vendor = "ST", |
| 8210 | .name = "M25PX64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8211 | .bustype = BUS_SPI, |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 8212 | .manufacture_id = ST_ID, |
| 8213 | .model_id = ST_M25PX64, |
| 8214 | .total_size = 8192, |
| 8215 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8216 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 8217 | .tested = TEST_OK_PRE, |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 8218 | .probe = probe_spi_rdid, |
| 8219 | .probe_timing = TIMING_ZERO, |
| 8220 | .block_erasers = |
| 8221 | { |
| 8222 | { |
| 8223 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 8224 | .block_erase = spi_block_erase_20, |
| 8225 | }, { |
| 8226 | .eraseblocks = { {64 * 1024, 128} }, |
| 8227 | .block_erase = spi_block_erase_d8, |
| 8228 | }, { |
| 8229 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8230 | .block_erase = spi_block_erase_c7, |
| 8231 | } |
| 8232 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8233 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 8234 | .unlock = spi_disable_blockprotect, |
| 8235 | .write = spi_chip_write_256, |
| 8236 | .read = spi_chip_read, |
| 8237 | }, |
| 8238 | |
| 8239 | { |
| 8240 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8241 | .name = "M29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8242 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8243 | .manufacture_id = ST_ID, |
| 8244 | .model_id = ST_M29F002B, |
| 8245 | .total_size = 256, |
| 8246 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8247 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8248 | .tested = TEST_UNTESTED, |
| 8249 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8250 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8251 | .block_erasers = |
| 8252 | { |
| 8253 | { |
| 8254 | .eraseblocks = { |
| 8255 | {16 * 1024, 1}, |
| 8256 | {8 * 1024, 2}, |
| 8257 | {32 * 1024, 1}, |
| 8258 | {64 * 1024, 3}, |
| 8259 | }, |
| 8260 | .block_erase = erase_sector_jedec, |
| 8261 | }, { |
| 8262 | .eraseblocks = { {256 * 1024, 1} }, |
| 8263 | .block_erase = erase_chip_block_jedec, |
| 8264 | } |
| 8265 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8266 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8267 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8268 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8269 | }, |
| 8270 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8271 | { |
| 8272 | .vendor = "ST", |
| 8273 | .name = "M29F002T/NT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8274 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8275 | .manufacture_id = ST_ID, |
| 8276 | .model_id = ST_M29F002T, |
| 8277 | .total_size = 256, |
| 8278 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8279 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
| 8280 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8281 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8282 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8283 | .block_erasers = |
| 8284 | { |
| 8285 | { |
| 8286 | .eraseblocks = { |
| 8287 | {64 * 1024, 3}, |
| 8288 | {32 * 1024, 1}, |
| 8289 | {8 * 1024, 2}, |
| 8290 | {16 * 1024, 1}, |
| 8291 | }, |
| 8292 | .block_erase = erase_sector_jedec, |
| 8293 | }, { |
| 8294 | .eraseblocks = { {256 * 1024, 1} }, |
| 8295 | .block_erase = erase_chip_block_jedec, |
| 8296 | } |
| 8297 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8298 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8299 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8300 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8301 | }, |
| 8302 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8303 | { |
| 8304 | .vendor = "ST", |
| 8305 | .name = "M29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8306 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8307 | .manufacture_id = ST_ID, |
| 8308 | .model_id = ST_M29F040B, |
| 8309 | .total_size = 512, |
| 8310 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8311 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 8312 | .tested = TEST_UNTESTED, |
| 8313 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 8314 | .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8315 | .block_erasers = |
| 8316 | { |
| 8317 | { |
| 8318 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8319 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8320 | }, { |
| 8321 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8322 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8323 | } |
| 8324 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8325 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8326 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8327 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8328 | }, |
| 8329 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8330 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8331 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8332 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 8333 | .name = "M29F400BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8334 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 8335 | .manufacture_id = ST_ID, |
| 8336 | .model_id = ST_M29F400BB, |
| 8337 | .total_size = 512, |
| 8338 | .page_size = 64 * 1024, |
| 8339 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 8340 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 8341 | .probe = probe_m29f400bt, |
| 8342 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
| 8343 | .block_erasers = |
| 8344 | { |
| 8345 | { |
| 8346 | .eraseblocks = { |
| 8347 | {16 * 1024, 1}, |
| 8348 | {8 * 1024, 2}, |
| 8349 | {32 * 1024, 1}, |
| 8350 | {64 * 1024, 7}, |
| 8351 | }, |
| 8352 | .block_erase = block_erase_m29f400bt, |
| 8353 | }, { |
| 8354 | .eraseblocks = { {512 * 1024, 1} }, |
| 8355 | .block_erase = block_erase_chip_m29f400bt, |
| 8356 | } |
| 8357 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 8358 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 8359 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8360 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 8361 | }, |
| 8362 | { |
| 8363 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 8364 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8365 | .name = "M29F400BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8366 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8367 | .manufacture_id = ST_ID, |
| 8368 | .model_id = ST_M29F400BT, |
| 8369 | .total_size = 512, |
| 8370 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8371 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8372 | .tested = TEST_UNTESTED, |
| 8373 | .probe = probe_m29f400bt, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 8374 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8375 | .block_erasers = |
| 8376 | { |
| 8377 | { |
| 8378 | .eraseblocks = { |
| 8379 | {64 * 1024, 7}, |
| 8380 | {32 * 1024, 1}, |
| 8381 | {8 * 1024, 2}, |
| 8382 | {16 * 1024, 1}, |
| 8383 | }, |
| 8384 | .block_erase = block_erase_m29f400bt, |
| 8385 | }, { |
| 8386 | .eraseblocks = { {512 * 1024, 1} }, |
| 8387 | .block_erase = block_erase_chip_m29f400bt, |
| 8388 | } |
| 8389 | }, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 8390 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8391 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8392 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8393 | }, |
| 8394 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8395 | { |
| 8396 | .vendor = "ST", |
| 8397 | .name = "M29W010B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8398 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8399 | .manufacture_id = ST_ID, |
| 8400 | .model_id = ST_M29W010B, |
| 8401 | .total_size = 128, |
| 8402 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8403 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8404 | .tested = TEST_UNTESTED, |
| 8405 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8406 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8407 | .block_erasers = |
| 8408 | { |
| 8409 | { |
| 8410 | .eraseblocks = { {16 * 1024, 8}, }, |
| 8411 | .block_erase = erase_sector_jedec, |
| 8412 | }, { |
| 8413 | .eraseblocks = { {128 * 1024, 1} }, |
| 8414 | .block_erase = erase_chip_block_jedec, |
| 8415 | } |
| 8416 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8417 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8418 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8419 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8420 | }, |
| 8421 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8422 | { |
| 8423 | .vendor = "ST", |
| 8424 | .name = "M29W040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8425 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8426 | .manufacture_id = ST_ID, |
| 8427 | .model_id = ST_M29W040B, |
| 8428 | .total_size = 512, |
| 8429 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8430 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8431 | .tested = TEST_UNTESTED, |
| 8432 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8433 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8434 | .block_erasers = |
| 8435 | { |
| 8436 | { |
| 8437 | .eraseblocks = { {64 * 1024, 8}, }, |
| 8438 | .block_erase = erase_sector_jedec, |
| 8439 | }, { |
| 8440 | .eraseblocks = { {512 * 1024, 1} }, |
| 8441 | .block_erase = erase_chip_block_jedec, |
| 8442 | } |
| 8443 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8444 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8445 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8446 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8447 | }, |
| 8448 | |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 8449 | { |
| 8450 | .vendor = "ST", |
| 8451 | .name = "M29W512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8452 | .bustype = BUS_PARALLEL, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 8453 | .manufacture_id = ST_ID, |
| 8454 | .model_id = ST_M29W512B, |
| 8455 | .total_size = 64, |
| 8456 | .page_size = 64 * 1024, |
| 8457 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 8458 | .tested = TEST_OK_PRE, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 8459 | .probe = probe_jedec, |
| 8460 | .probe_timing = TIMING_ZERO, |
| 8461 | .block_erasers = |
| 8462 | { |
| 8463 | { |
| 8464 | .eraseblocks = { {64 * 1024, 1} }, |
| 8465 | .block_erase = erase_chip_block_jedec, |
| 8466 | } |
| 8467 | }, |
| 8468 | .write = write_jedec_1, |
| 8469 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8470 | .voltage = {2700, 3600}, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 8471 | }, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 8472 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8473 | { |
| 8474 | .vendor = "ST", |
| 8475 | .name = "M50FLW040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8476 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8477 | .manufacture_id = ST_ID, |
| 8478 | .model_id = ST_M50FLW040A, |
| 8479 | .total_size = 512, |
| 8480 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8481 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8482 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8483 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 8484 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8485 | .block_erasers = |
| 8486 | { |
| 8487 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 8488 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 8489 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 8490 | {64 * 1024, 5}, /* block */ |
| 8491 | {4 * 1024, 16}, /* sector */ |
| 8492 | {4 * 1024, 16}, /* sector */ |
| 8493 | }, |
| 8494 | .block_erase = NULL, |
| 8495 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8496 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 8497 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8498 | } |
| 8499 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 8500 | .unlock = unlock_stm50flw0x0x, |
| 8501 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8502 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8503 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8504 | }, |
| 8505 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8506 | { |
| 8507 | .vendor = "ST", |
| 8508 | .name = "M50FLW040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8509 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8510 | .manufacture_id = ST_ID, |
| 8511 | .model_id = ST_M50FLW040B, |
| 8512 | .total_size = 512, |
| 8513 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8514 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8515 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8516 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 8517 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8518 | .block_erasers = |
| 8519 | { |
| 8520 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 8521 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 8522 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 8523 | {4 * 1024, 16}, /* sector */ |
| 8524 | {64 * 1024, 5}, /* block */ |
| 8525 | {4 * 1024, 16}, /* sector */ |
| 8526 | }, |
| 8527 | .block_erase = NULL, |
| 8528 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8529 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 8530 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8531 | } |
| 8532 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 8533 | .unlock = unlock_stm50flw0x0x, |
| 8534 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8535 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8536 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8537 | }, |
| 8538 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8539 | { |
| 8540 | .vendor = "ST", |
| 8541 | .name = "M50FLW080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8542 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8543 | .manufacture_id = ST_ID, |
| 8544 | .model_id = ST_M50FLW080A, |
| 8545 | .total_size = 1024, |
| 8546 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8547 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 8548 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8549 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 8550 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8551 | .block_erasers = |
| 8552 | { |
| 8553 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 8554 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 8555 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 8556 | {64 * 1024, 13}, /* block */ |
| 8557 | {4 * 1024, 16}, /* sector */ |
| 8558 | {4 * 1024, 16}, /* sector */ |
| 8559 | }, |
| 8560 | .block_erase = NULL, |
| 8561 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8562 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 8563 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8564 | } |
| 8565 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 8566 | .unlock = unlock_stm50flw0x0x, |
| 8567 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8568 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8569 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8570 | }, |
| 8571 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8572 | { |
| 8573 | .vendor = "ST", |
| 8574 | .name = "M50FLW080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8575 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8576 | .manufacture_id = ST_ID, |
| 8577 | .model_id = ST_M50FLW080B, |
| 8578 | .total_size = 1024, |
| 8579 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8580 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8581 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8582 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 8583 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8584 | .block_erasers = |
| 8585 | { |
| 8586 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 8587 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 8588 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 8589 | {4 * 1024, 16}, /* sector */ |
| 8590 | {64 * 1024, 13}, /* block */ |
| 8591 | {4 * 1024, 16}, /* sector */ |
| 8592 | }, |
| 8593 | .block_erase = NULL, |
| 8594 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8595 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 8596 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8597 | } |
| 8598 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 8599 | .unlock = unlock_stm50flw0x0x, |
| 8600 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8601 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8602 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8603 | }, |
| 8604 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8605 | { |
| 8606 | .vendor = "ST", |
| 8607 | .name = "M50FW002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8608 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8609 | .manufacture_id = ST_ID, |
| 8610 | .model_id = ST_M50FW002, |
| 8611 | .total_size = 256, |
| 8612 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8613 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8614 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8615 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 8616 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8617 | .block_erasers = |
| 8618 | { |
| 8619 | { |
| 8620 | .eraseblocks = { |
| 8621 | {64 * 1024, 3}, |
| 8622 | {32 * 1024, 1}, |
| 8623 | {8 * 1024, 2}, |
| 8624 | {16 * 1024, 1}, |
| 8625 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 8626 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8627 | } |
| 8628 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 8629 | .unlock = unlock_stm50flw0x0x, |
| 8630 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8631 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8632 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8633 | }, |
| 8634 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8635 | { |
| 8636 | .vendor = "ST", |
| 8637 | .name = "M50FW016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8638 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8639 | .manufacture_id = ST_ID, |
| 8640 | .model_id = ST_M50FW016, |
| 8641 | .total_size = 2048, |
| 8642 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8643 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8644 | .tested = TEST_UNTESTED, |
| 8645 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 8646 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8647 | .block_erasers = |
| 8648 | { |
| 8649 | { |
| 8650 | .eraseblocks = { {64 * 1024, 32}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 8651 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8652 | } |
| 8653 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 8654 | .unlock = unlock_stm50flw0x0x, |
| 8655 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8656 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8657 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8658 | }, |
| 8659 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8660 | { |
| 8661 | .vendor = "ST", |
| 8662 | .name = "M50FW040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8663 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8664 | .manufacture_id = ST_ID, |
| 8665 | .model_id = ST_M50FW040, |
| 8666 | .total_size = 512, |
| 8667 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8668 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 8669 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8670 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 8671 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8672 | .block_erasers = |
| 8673 | { |
| 8674 | { |
| 8675 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 8676 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8677 | } |
| 8678 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 8679 | .unlock = unlock_stm50flw0x0x, |
| 8680 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8681 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8682 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8683 | }, |
| 8684 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8685 | { |
| 8686 | .vendor = "ST", |
| 8687 | .name = "M50FW080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8688 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8689 | .manufacture_id = ST_ID, |
| 8690 | .model_id = ST_M50FW080, |
| 8691 | .total_size = 1024, |
| 8692 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8693 | .feature_bits = FEATURE_REGISTERMAP, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 8694 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8695 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 8696 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8697 | .block_erasers = |
| 8698 | { |
| 8699 | { |
| 8700 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 8701 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8702 | } |
| 8703 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 8704 | .unlock = unlock_stm50flw0x0x, |
| 8705 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8706 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8707 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8708 | }, |
| 8709 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8710 | { |
| 8711 | .vendor = "ST", |
| 8712 | .name = "M50LPW116", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8713 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8714 | .manufacture_id = ST_ID, |
| 8715 | .model_id = ST_M50LPW116, |
| 8716 | .total_size = 2048, |
| 8717 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8718 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8719 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8720 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8721 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8722 | .block_erasers = |
| 8723 | { |
| 8724 | { |
| 8725 | .eraseblocks = { |
| 8726 | {4 * 1024, 16}, |
| 8727 | {64 * 1024, 30}, |
| 8728 | {32 * 1024, 1}, |
| 8729 | {8 * 1024, 2}, |
| 8730 | {16 * 1024, 1}, |
| 8731 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 8732 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8733 | } |
| 8734 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 8735 | .unlock = unlock_stm50flw0x0x, |
| 8736 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8737 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8738 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8739 | }, |
| 8740 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8741 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8742 | .vendor = "SyncMOS/MoselVitelic", |
| 8743 | .name = "{F,S,V}29C51001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8744 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8745 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8746 | .model_id = SM_MVC_29C51001B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8747 | .total_size = 128, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8748 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8749 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8750 | .tested = TEST_UNTESTED, |
| 8751 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8752 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8753 | .block_erasers = |
| 8754 | { |
| 8755 | { |
| 8756 | .eraseblocks = { {512, 256} }, |
| 8757 | .block_erase = erase_sector_jedec, |
| 8758 | }, { |
| 8759 | .eraseblocks = { {128 * 1024, 1} }, |
| 8760 | .block_erase = erase_chip_block_jedec, |
| 8761 | }, |
| 8762 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8763 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8764 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8765 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8766 | }, |
| 8767 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8768 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8769 | .vendor = "SyncMOS/MoselVitelic", |
| 8770 | .name = "{F,S,V}29C51001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8771 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8772 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8773 | .model_id = SM_MVC_29C51001T, |
| 8774 | .total_size = 128, |
| 8775 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8776 | .feature_bits = FEATURE_EITHER_RESET, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8777 | .tested = TEST_UNTESTED, |
| 8778 | .probe = probe_jedec, |
| 8779 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8780 | .block_erasers = |
| 8781 | { |
| 8782 | { |
| 8783 | .eraseblocks = { {512, 256} }, |
| 8784 | .block_erase = erase_sector_jedec, |
| 8785 | }, { |
| 8786 | .eraseblocks = { {128 * 1024, 1} }, |
| 8787 | .block_erase = erase_chip_block_jedec, |
| 8788 | }, |
| 8789 | }, |
| 8790 | .write = write_jedec_1, |
| 8791 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8792 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8793 | }, |
| 8794 | |
| 8795 | { |
| 8796 | .vendor = "SyncMOS/MoselVitelic", |
| 8797 | .name = "{F,S,V}29C51002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8798 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8799 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8800 | .model_id = SM_MVC_29C51002B, |
| 8801 | .total_size = 256, |
| 8802 | .page_size = 512, |
| 8803 | .feature_bits = FEATURE_EITHER_RESET, |
| 8804 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8805 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8806 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8807 | .block_erasers = |
| 8808 | { |
| 8809 | { |
| 8810 | .eraseblocks = { {512, 512} }, |
| 8811 | .block_erase = erase_sector_jedec, |
| 8812 | }, { |
| 8813 | .eraseblocks = { {256 * 1024, 1} }, |
| 8814 | .block_erase = erase_chip_block_jedec, |
| 8815 | }, |
| 8816 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8817 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8818 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8819 | }, |
| 8820 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8821 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8822 | .vendor = "SyncMOS/MoselVitelic", |
| 8823 | .name = "{F,S,V}29C51002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8824 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8825 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8826 | .model_id = SM_MVC_29C51002T, |
| 8827 | .total_size = 256, |
| 8828 | .page_size = 512, |
| 8829 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 8830 | .tested = TEST_OK_PREW, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8831 | .probe = probe_jedec, |
| 8832 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8833 | .block_erasers = |
| 8834 | { |
| 8835 | { |
| 8836 | .eraseblocks = { {512, 512} }, |
| 8837 | .block_erase = erase_sector_jedec, |
| 8838 | }, { |
| 8839 | .eraseblocks = { {256 * 1024, 1} }, |
| 8840 | .block_erase = erase_chip_block_jedec, |
| 8841 | }, |
| 8842 | }, |
| 8843 | .write = write_jedec_1, |
| 8844 | .read = read_memmapped, |
| 8845 | }, |
| 8846 | |
| 8847 | { |
| 8848 | .vendor = "SyncMOS/MoselVitelic", |
| 8849 | .name = "{F,S,V}29C51004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8850 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8851 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8852 | .model_id = SM_MVC_29C51004B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8853 | .total_size = 512, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8854 | .page_size = 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8855 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8856 | .tested = TEST_UNTESTED, |
| 8857 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8858 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8859 | .block_erasers = |
| 8860 | { |
| 8861 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8862 | .eraseblocks = { {1024, 512} }, |
| 8863 | .block_erase = erase_sector_jedec, |
| 8864 | }, { |
| 8865 | .eraseblocks = { {512 * 1024, 1} }, |
| 8866 | .block_erase = erase_chip_block_jedec, |
| 8867 | }, |
| 8868 | }, |
| 8869 | .write = write_jedec_1, |
| 8870 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8871 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8872 | }, |
| 8873 | |
| 8874 | { |
| 8875 | .vendor = "SyncMOS/MoselVitelic", |
| 8876 | .name = "{F,S,V}29C51004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8877 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8878 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8879 | .model_id = SM_MVC_29C51004T, |
| 8880 | .total_size = 512, |
| 8881 | .page_size = 1024, |
| 8882 | .feature_bits = FEATURE_EITHER_RESET, |
| 8883 | .tested = TEST_UNTESTED, |
| 8884 | .probe = probe_jedec, |
| 8885 | .probe_timing = TIMING_ZERO, |
| 8886 | .block_erasers = |
| 8887 | { |
| 8888 | { |
| 8889 | .eraseblocks = { {1024, 512} }, |
| 8890 | .block_erase = erase_sector_jedec, |
| 8891 | }, { |
| 8892 | .eraseblocks = { {512 * 1024, 1} }, |
| 8893 | .block_erase = erase_chip_block_jedec, |
| 8894 | }, |
| 8895 | }, |
| 8896 | .write = write_jedec_1, |
| 8897 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8898 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8899 | }, |
| 8900 | |
| 8901 | { |
| 8902 | .vendor = "SyncMOS/MoselVitelic", |
| 8903 | .name = "{S,V}29C31004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8904 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8905 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8906 | .model_id = SM_MVC_29C31004B, |
| 8907 | .total_size = 512, |
| 8908 | .page_size = 1024, |
| 8909 | .feature_bits = FEATURE_EITHER_RESET, |
| 8910 | .tested = TEST_UNTESTED, |
| 8911 | .probe = probe_jedec, |
| 8912 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8913 | .block_erasers = |
| 8914 | { |
| 8915 | { |
| 8916 | .eraseblocks = { {1024, 512} }, |
| 8917 | .block_erase = erase_sector_jedec, |
| 8918 | }, { |
| 8919 | .eraseblocks = { {512 * 1024, 1} }, |
| 8920 | .block_erase = erase_chip_block_jedec, |
| 8921 | }, |
| 8922 | }, |
| 8923 | .write = write_jedec_1, |
| 8924 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8925 | .voltage = {3000, 3600}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8926 | }, |
| 8927 | |
| 8928 | { |
| 8929 | .vendor = "SyncMOS/MoselVitelic", |
| 8930 | .name = "{S,V}29C31004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8931 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8932 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8933 | .model_id = SM_MVC_29C31004T, |
| 8934 | .total_size = 512, |
| 8935 | .page_size = 1024, |
| 8936 | .feature_bits = FEATURE_EITHER_RESET, |
| 8937 | .tested = TEST_UNTESTED, |
| 8938 | .probe = probe_jedec, |
| 8939 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8940 | .block_erasers = |
| 8941 | { |
| 8942 | { |
| 8943 | .eraseblocks = { {1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8944 | .block_erase = erase_sector_jedec, |
| 8945 | }, { |
| 8946 | .eraseblocks = { {512 * 1024, 1} }, |
| 8947 | .block_erase = erase_chip_block_jedec, |
| 8948 | }, |
| 8949 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8950 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8951 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8952 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8953 | }, |
| 8954 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8955 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 8956 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 8957 | .name = "TMS29F002RB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8958 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 8959 | .manufacture_id = TI_OLD_ID, |
| 8960 | .model_id = TI_TMS29F002RB, |
| 8961 | .total_size = 256, |
| 8962 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8963 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 8964 | .tested = TEST_UNTESTED, |
| 8965 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8966 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8967 | .block_erasers = |
| 8968 | { |
| 8969 | { |
| 8970 | .eraseblocks = { |
| 8971 | {16 * 1024, 1}, |
| 8972 | {8 * 1024, 2}, |
| 8973 | {32 * 1024, 1}, |
| 8974 | {64 * 1024, 3}, |
| 8975 | }, |
| 8976 | .block_erase = erase_sector_jedec, |
| 8977 | }, { |
| 8978 | .eraseblocks = { {256 * 1024, 1} }, |
| 8979 | .block_erase = erase_chip_block_jedec, |
| 8980 | }, |
| 8981 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8982 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 8983 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8984 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 8985 | }, |
| 8986 | |
| 8987 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 8988 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 8989 | .name = "TMS29F002RT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8990 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 8991 | .manufacture_id = TI_OLD_ID, |
| 8992 | .model_id = TI_TMS29F002RT, |
| 8993 | .total_size = 256, |
| 8994 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8995 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 8996 | .tested = TEST_UNTESTED, |
| 8997 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8998 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8999 | .block_erasers = |
| 9000 | { |
| 9001 | { |
| 9002 | .eraseblocks = { |
| 9003 | {64 * 1024, 3}, |
| 9004 | {32 * 1024, 1}, |
| 9005 | {8 * 1024, 2}, |
| 9006 | {16 * 1024, 1}, |
| 9007 | }, |
| 9008 | .block_erase = erase_sector_jedec, |
| 9009 | }, { |
| 9010 | .eraseblocks = { {256 * 1024, 1} }, |
| 9011 | .block_erase = erase_chip_block_jedec, |
| 9012 | }, |
| 9013 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9014 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 9015 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9016 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 9017 | }, |
| 9018 | |
| 9019 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9020 | .vendor = "Winbond", |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 9021 | .name = "W25Q80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9022 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 9023 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9024 | .model_id = WINBOND_NEX_W25Q80, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 9025 | .total_size = 1024, |
| 9026 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 9027 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */ |
| 9028 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 9029 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 9030 | .probe = probe_spi_rdid, |
| 9031 | .probe_timing = TIMING_ZERO, |
| 9032 | .block_erasers = |
| 9033 | { |
| 9034 | { |
| 9035 | .eraseblocks = { {4 * 1024, 256} }, |
| 9036 | .block_erase = spi_block_erase_20, |
| 9037 | }, { |
| 9038 | .eraseblocks = { {32 * 1024, 32} }, |
| 9039 | .block_erase = spi_block_erase_52, |
| 9040 | }, { |
| 9041 | .eraseblocks = { {64 * 1024, 16} }, |
| 9042 | .block_erase = spi_block_erase_d8, |
| 9043 | }, { |
| 9044 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9045 | .block_erase = spi_block_erase_60, |
| 9046 | }, { |
| 9047 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9048 | .block_erase = spi_block_erase_c7, |
| 9049 | } |
| 9050 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9051 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9052 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 9053 | .write = spi_chip_write_256, |
| 9054 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9055 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 9056 | }, |
| 9057 | |
| 9058 | { |
| 9059 | .vendor = "Winbond", |
| 9060 | .name = "W25Q16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9061 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 9062 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9063 | .model_id = WINBOND_NEX_W25Q16, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 9064 | .total_size = 2048, |
| 9065 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 9066 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */ |
| 9067 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 9068 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 9069 | .probe = probe_spi_rdid, |
| 9070 | .probe_timing = TIMING_ZERO, |
| 9071 | .block_erasers = |
| 9072 | { |
| 9073 | { |
| 9074 | .eraseblocks = { {4 * 1024, 512} }, |
| 9075 | .block_erase = spi_block_erase_20, |
| 9076 | }, { |
| 9077 | .eraseblocks = { {32 * 1024, 64} }, |
| 9078 | .block_erase = spi_block_erase_52, |
| 9079 | }, { |
| 9080 | .eraseblocks = { {64 * 1024, 32} }, |
| 9081 | .block_erase = spi_block_erase_d8, |
| 9082 | }, { |
| 9083 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9084 | .block_erase = spi_block_erase_60, |
| 9085 | }, { |
| 9086 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9087 | .block_erase = spi_block_erase_c7, |
| 9088 | } |
| 9089 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9090 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9091 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 9092 | .write = spi_chip_write_256, |
| 9093 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9094 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 9095 | }, |
| 9096 | |
| 9097 | { |
| 9098 | .vendor = "Winbond", |
| 9099 | .name = "W25Q32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9100 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 9101 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9102 | .model_id = WINBOND_NEX_W25Q32, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 9103 | .total_size = 4096, |
| 9104 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 9105 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */ |
| 9106 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 9107 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 9108 | .probe = probe_spi_rdid, |
| 9109 | .probe_timing = TIMING_ZERO, |
| 9110 | .block_erasers = |
| 9111 | { |
| 9112 | { |
| 9113 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9114 | .block_erase = spi_block_erase_20, |
| 9115 | }, { |
| 9116 | .eraseblocks = { {32 * 1024, 128} }, |
| 9117 | .block_erase = spi_block_erase_52, |
| 9118 | }, { |
| 9119 | .eraseblocks = { {64 * 1024, 64} }, |
| 9120 | .block_erase = spi_block_erase_d8, |
| 9121 | }, { |
| 9122 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9123 | .block_erase = spi_block_erase_60, |
| 9124 | }, { |
| 9125 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9126 | .block_erase = spi_block_erase_c7, |
| 9127 | } |
| 9128 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9129 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9130 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 9131 | .write = spi_chip_write_256, |
| 9132 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9133 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 9134 | }, |
| 9135 | |
| 9136 | { |
| 9137 | .vendor = "Winbond", |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 9138 | .name = "W25Q64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9139 | .bustype = BUS_SPI, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 9140 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9141 | .model_id = WINBOND_NEX_W25Q64, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 9142 | .total_size = 8192, |
| 9143 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 9144 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */ |
| 9145 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 9146 | .tested = TEST_OK_PREW, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 9147 | .probe = probe_spi_rdid, |
| 9148 | .probe_timing = TIMING_ZERO, |
| 9149 | .block_erasers = |
| 9150 | { |
| 9151 | { |
| 9152 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9153 | .block_erase = spi_block_erase_20, |
| 9154 | }, { |
| 9155 | .eraseblocks = { {32 * 1024, 256} }, |
| 9156 | .block_erase = spi_block_erase_52, |
| 9157 | }, { |
| 9158 | .eraseblocks = { {64 * 1024, 128} }, |
| 9159 | .block_erase = spi_block_erase_d8, |
| 9160 | }, { |
| 9161 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9162 | .block_erase = spi_block_erase_60, |
| 9163 | }, { |
| 9164 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9165 | .block_erase = spi_block_erase_c7, |
| 9166 | } |
| 9167 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9168 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9169 | .unlock = spi_disable_blockprotect, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 9170 | .write = spi_chip_write_256, |
| 9171 | .read = spi_chip_read, |
| 9172 | }, |
| 9173 | |
| 9174 | { |
| 9175 | .vendor = "Winbond", |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 9176 | .name = "W25Q128", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9177 | .bustype = BUS_SPI, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 9178 | .manufacture_id = WINBOND_NEX_ID, |
| 9179 | .model_id = WINBOND_NEX_W25Q128, |
| 9180 | .total_size = 16384, |
| 9181 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 9182 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */ |
| 9183 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 9184 | .tested = TEST_OK_PROBE, |
| 9185 | .probe = probe_spi_rdid, |
| 9186 | .probe_timing = TIMING_ZERO, |
| 9187 | .block_erasers = |
| 9188 | { |
| 9189 | { |
| 9190 | .eraseblocks = { {4 * 1024, 4096} }, |
| 9191 | .block_erase = spi_block_erase_20, |
| 9192 | }, { |
| 9193 | .eraseblocks = { {32 * 1024, 512} }, |
| 9194 | .block_erase = spi_block_erase_52, |
| 9195 | }, { |
| 9196 | .eraseblocks = { {64 * 1024, 256} }, |
| 9197 | .block_erase = spi_block_erase_d8, |
| 9198 | }, { |
| 9199 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9200 | .block_erase = spi_block_erase_60, |
| 9201 | }, { |
| 9202 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9203 | .block_erase = spi_block_erase_c7, |
| 9204 | } |
| 9205 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9206 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 9207 | .unlock = spi_disable_blockprotect, |
| 9208 | .write = spi_chip_write_256, |
| 9209 | .read = spi_chip_read, |
| 9210 | }, |
| 9211 | |
| 9212 | { |
| 9213 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 9214 | .name = "W25X10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9215 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9216 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9217 | .model_id = WINBOND_NEX_W25X10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9218 | .total_size = 128, |
| 9219 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 9220 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9221 | .tested = TEST_UNTESTED, |
| 9222 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9223 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9224 | .block_erasers = |
| 9225 | { |
| 9226 | { |
| 9227 | .eraseblocks = { {4 * 1024, 32} }, |
| 9228 | .block_erase = spi_block_erase_20, |
| 9229 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9230 | .eraseblocks = { {64 * 1024, 2} }, |
| 9231 | .block_erase = spi_block_erase_d8, |
| 9232 | }, { |
| 9233 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9234 | .block_erase = spi_block_erase_c7, |
| 9235 | } |
| 9236 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9237 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9238 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9239 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9240 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9241 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9242 | }, |
| 9243 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9244 | { |
| 9245 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 9246 | .name = "W25X20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9247 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9248 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9249 | .model_id = WINBOND_NEX_W25X20, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9250 | .total_size = 256, |
| 9251 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 9252 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9253 | .tested = TEST_UNTESTED, |
| 9254 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9255 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9256 | .block_erasers = |
| 9257 | { |
| 9258 | { |
| 9259 | .eraseblocks = { {4 * 1024, 64} }, |
| 9260 | .block_erase = spi_block_erase_20, |
| 9261 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9262 | .eraseblocks = { {64 * 1024, 4} }, |
| 9263 | .block_erase = spi_block_erase_d8, |
| 9264 | }, { |
| 9265 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9266 | .block_erase = spi_block_erase_c7, |
| 9267 | } |
| 9268 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9269 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9270 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9271 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9272 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9273 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9274 | }, |
| 9275 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9276 | { |
| 9277 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 9278 | .name = "W25X40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9279 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9280 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9281 | .model_id = WINBOND_NEX_W25X40, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9282 | .total_size = 512, |
| 9283 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 9284 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 9285 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9286 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9287 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9288 | .block_erasers = |
| 9289 | { |
| 9290 | { |
| 9291 | .eraseblocks = { {4 * 1024, 128} }, |
| 9292 | .block_erase = spi_block_erase_20, |
| 9293 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9294 | .eraseblocks = { {64 * 1024, 8} }, |
| 9295 | .block_erase = spi_block_erase_d8, |
| 9296 | }, { |
| 9297 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9298 | .block_erase = spi_block_erase_c7, |
| 9299 | } |
| 9300 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9301 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9302 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9303 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9304 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9305 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9306 | }, |
| 9307 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9308 | { |
| 9309 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 9310 | .name = "W25X80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9311 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9312 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9313 | .model_id = WINBOND_NEX_W25X80, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9314 | .total_size = 1024, |
| 9315 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 9316 | .feature_bits = FEATURE_WRSR_WREN, |
Yul Rottmann | 6d6ab74 | 2011-03-05 16:31:57 +0000 | [diff] [blame] | 9317 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9318 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9319 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9320 | .block_erasers = |
| 9321 | { |
| 9322 | { |
| 9323 | .eraseblocks = { {4 * 1024, 256} }, |
| 9324 | .block_erase = spi_block_erase_20, |
| 9325 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9326 | .eraseblocks = { {64 * 1024, 16} }, |
| 9327 | .block_erase = spi_block_erase_d8, |
| 9328 | }, { |
| 9329 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9330 | .block_erase = spi_block_erase_c7, |
| 9331 | } |
| 9332 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9333 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9334 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9335 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9336 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9337 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9338 | }, |
| 9339 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9340 | { |
| 9341 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 9342 | .name = "W25X16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9343 | .bustype = BUS_SPI, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 9344 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9345 | .model_id = WINBOND_NEX_W25X16, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 9346 | .total_size = 2048, |
| 9347 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 9348 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 9349 | .tested = TEST_OK_PREW, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 9350 | .probe = probe_spi_rdid, |
| 9351 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9352 | .block_erasers = |
| 9353 | { |
| 9354 | { |
| 9355 | .eraseblocks = { {4 * 1024, 512} }, |
| 9356 | .block_erase = spi_block_erase_20, |
| 9357 | }, { |
| 9358 | .eraseblocks = { {32 * 1024, 64} }, |
| 9359 | .block_erase = spi_block_erase_52, |
| 9360 | }, { |
| 9361 | .eraseblocks = { {64 * 1024, 32} }, |
| 9362 | .block_erase = spi_block_erase_d8, |
| 9363 | }, { |
| 9364 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9365 | .block_erase = spi_block_erase_60, |
| 9366 | }, { |
| 9367 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9368 | .block_erase = spi_block_erase_c7, |
| 9369 | } |
| 9370 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9371 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9372 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 9373 | .write = spi_chip_write_256, |
| 9374 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9375 | .voltage = {2700, 3600}, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 9376 | }, |
| 9377 | |
| 9378 | { |
| 9379 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 9380 | .name = "W25X32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9381 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 9382 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9383 | .model_id = WINBOND_NEX_W25X32, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 9384 | .total_size = 4096, |
| 9385 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 9386 | .feature_bits = FEATURE_WRSR_WREN, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 9387 | .tested = TEST_OK_PROBE, |
| 9388 | .probe = probe_spi_rdid, |
| 9389 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9390 | .block_erasers = |
| 9391 | { |
| 9392 | { |
| 9393 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9394 | .block_erase = spi_block_erase_20, |
| 9395 | }, { |
| 9396 | .eraseblocks = { {32 * 1024, 128} }, |
| 9397 | .block_erase = spi_block_erase_52, |
| 9398 | }, { |
| 9399 | .eraseblocks = { {64 * 1024, 64} }, |
| 9400 | .block_erase = spi_block_erase_d8, |
| 9401 | }, { |
| 9402 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9403 | .block_erase = spi_block_erase_60, |
| 9404 | }, { |
| 9405 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9406 | .block_erase = spi_block_erase_c7, |
| 9407 | } |
| 9408 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9409 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9410 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 9411 | .write = spi_chip_write_256, |
| 9412 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9413 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 9414 | }, |
| 9415 | |
| 9416 | { |
| 9417 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 9418 | .name = "W25X64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9419 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 9420 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9421 | .model_id = WINBOND_NEX_W25X64, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 9422 | .total_size = 8192, |
| 9423 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 9424 | .feature_bits = FEATURE_WRSR_WREN, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 9425 | .tested = TEST_OK_PROBE, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 9426 | .probe = probe_spi_rdid, |
| 9427 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9428 | .block_erasers = |
| 9429 | { |
| 9430 | { |
| 9431 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9432 | .block_erase = spi_block_erase_20, |
| 9433 | }, { |
| 9434 | .eraseblocks = { {32 * 1024, 256} }, |
| 9435 | .block_erase = spi_block_erase_52, |
| 9436 | }, { |
| 9437 | .eraseblocks = { {64 * 1024, 128} }, |
| 9438 | .block_erase = spi_block_erase_d8, |
| 9439 | }, { |
| 9440 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9441 | .block_erase = spi_block_erase_60, |
| 9442 | }, { |
| 9443 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9444 | .block_erase = spi_block_erase_c7, |
| 9445 | } |
| 9446 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9447 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9448 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 9449 | .write = spi_chip_write_256, |
| 9450 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9451 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 9452 | }, |
| 9453 | |
| 9454 | { |
| 9455 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 9456 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9457 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 9458 | .manufacture_id = WINBOND_ID, |
| 9459 | .model_id = WINBOND_W29C010, |
| 9460 | .total_size = 128, |
| 9461 | .page_size = 128, |
| 9462 | .feature_bits = FEATURE_LONG_RESET, |
| 9463 | .tested = TEST_OK_PRE, |
| 9464 | .probe = probe_w29ee011, |
| 9465 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */ |
| 9466 | .block_erasers = |
| 9467 | { |
| 9468 | { |
| 9469 | .eraseblocks = { {128 * 1024, 1} }, |
| 9470 | .block_erase = erase_chip_block_jedec, |
| 9471 | } |
| 9472 | }, |
| 9473 | .write = write_jedec, |
| 9474 | .read = read_memmapped, |
| 9475 | }, |
| 9476 | |
| 9477 | {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */ |
| 9478 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9479 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9480 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9481 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9482 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9483 | .total_size = 128, |
| 9484 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9485 | .feature_bits = FEATURE_LONG_RESET, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 9486 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9487 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 9488 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9489 | .block_erasers = |
| 9490 | { |
| 9491 | { |
| 9492 | .eraseblocks = { {128 * 1024, 1} }, |
| 9493 | .block_erase = erase_chip_block_jedec, |
| 9494 | } |
| 9495 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9496 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9497 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9498 | }, |
| 9499 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9500 | { |
| 9501 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9502 | .name = "W29C020(C)/W29C022", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9503 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9504 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9505 | .model_id = WINBOND_W29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9506 | .total_size = 256, |
| 9507 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9508 | .feature_bits = FEATURE_LONG_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 9509 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9510 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 9511 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9512 | .block_erasers = |
| 9513 | { |
| 9514 | { |
| 9515 | .eraseblocks = { {256 * 1024, 1} }, |
| 9516 | .block_erase = erase_chip_block_jedec, |
| 9517 | } |
| 9518 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9519 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9520 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9521 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9522 | }, |
| 9523 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9524 | { |
| 9525 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9526 | .name = "W29C040/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9527 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9528 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9529 | .model_id = WINBOND_W29C040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9530 | .total_size = 512, |
| 9531 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9532 | .feature_bits = FEATURE_LONG_RESET, |
| 9533 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9534 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 9535 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9536 | .block_erasers = |
| 9537 | { |
| 9538 | { |
| 9539 | .eraseblocks = { {512 * 1024, 1} }, |
| 9540 | .block_erase = erase_chip_block_jedec, |
| 9541 | } |
| 9542 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9543 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9544 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9545 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9546 | }, |
| 9547 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9548 | { |
| 9549 | .vendor = "Winbond", |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 9550 | .name = "W39F010", |
| 9551 | .bustype = BUS_PARALLEL, |
| 9552 | .manufacture_id = WINBOND_ID, |
| 9553 | .model_id = WINBOND_W39F010, |
| 9554 | .total_size = 128, |
| 9555 | .page_size = 4 * 1024, |
| 9556 | .feature_bits = FEATURE_EITHER_RESET, |
| 9557 | .tested = TEST_OK_PREW, |
| 9558 | .probe = probe_jedec, |
| 9559 | .probe_timing = 10, |
| 9560 | .block_erasers = |
| 9561 | { |
| 9562 | { |
| 9563 | .eraseblocks = { {4 * 1024, 32} }, |
| 9564 | .block_erase = erase_block_jedec, |
| 9565 | }, { |
| 9566 | .eraseblocks = { {128 * 1024, 1} }, |
| 9567 | .block_erase = erase_chip_block_jedec, |
| 9568 | } |
| 9569 | }, |
| 9570 | .printlock = printlock_w39f010, |
| 9571 | .write = write_jedec_1, |
| 9572 | .read = read_memmapped, |
| 9573 | .voltage = {4500, 5500}, |
| 9574 | }, |
| 9575 | |
| 9576 | { |
| 9577 | .vendor = "Winbond", |
| 9578 | .name = "W39L010", |
| 9579 | .bustype = BUS_PARALLEL, |
| 9580 | .manufacture_id = WINBOND_ID, |
| 9581 | .model_id = WINBOND_W39L010, |
| 9582 | .total_size = 128, |
| 9583 | .page_size = 4 * 1024, |
| 9584 | .feature_bits = FEATURE_EITHER_RESET, |
| 9585 | .tested = TEST_UNTESTED, |
| 9586 | .probe = probe_jedec, |
| 9587 | .probe_timing = 10, |
| 9588 | .block_erasers = |
| 9589 | { |
| 9590 | { |
| 9591 | .eraseblocks = { {4 * 1024, 32} }, |
| 9592 | .block_erase = erase_block_jedec, |
| 9593 | }, { |
| 9594 | .eraseblocks = { {128 * 1024, 1} }, |
| 9595 | .block_erase = erase_chip_block_jedec, |
| 9596 | } |
| 9597 | }, |
| 9598 | .printlock = printlock_w39l010, |
| 9599 | .write = write_jedec_1, |
| 9600 | .read = read_memmapped, |
| 9601 | .voltage = {3000, 3600}, |
| 9602 | }, |
| 9603 | |
| 9604 | { |
| 9605 | .vendor = "Winbond", |
| 9606 | .name = "W39L020", |
| 9607 | .bustype = BUS_PARALLEL, |
| 9608 | .manufacture_id = WINBOND_ID, |
| 9609 | .model_id = WINBOND_W39L020, |
| 9610 | .total_size = 256, |
| 9611 | .page_size = 4 * 1024, |
| 9612 | .feature_bits = FEATURE_EITHER_RESET, |
| 9613 | .tested = TEST_UNTESTED, |
| 9614 | .probe = probe_jedec, |
| 9615 | .probe_timing = 10, |
| 9616 | .block_erasers = |
| 9617 | { |
| 9618 | { |
| 9619 | .eraseblocks = { {4 * 1024, 64} }, |
| 9620 | .block_erase = erase_block_jedec, |
| 9621 | }, { |
| 9622 | .eraseblocks = { {64 * 1024, 4} }, |
| 9623 | .block_erase = erase_sector_jedec, |
| 9624 | }, { |
| 9625 | .eraseblocks = { {256 * 1024, 1} }, |
| 9626 | .block_erase = erase_chip_block_jedec, |
| 9627 | } |
| 9628 | }, |
| 9629 | .printlock = printlock_w39l020, |
| 9630 | .write = write_jedec_1, |
| 9631 | .read = read_memmapped, |
| 9632 | .voltage = {3000, 3600}, |
| 9633 | }, |
| 9634 | |
| 9635 | { |
| 9636 | .vendor = "Winbond", |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 9637 | .name = "W39L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9638 | .bustype = BUS_PARALLEL, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 9639 | .manufacture_id = WINBOND_ID, |
| 9640 | .model_id = WINBOND_W39L040, |
| 9641 | .total_size = 512, |
| 9642 | .page_size = 64 * 1024, |
| 9643 | .feature_bits = FEATURE_EITHER_RESET, |
| 9644 | .tested = TEST_OK_PR, |
| 9645 | .probe = probe_jedec, |
| 9646 | .probe_timing = 10, |
| 9647 | .block_erasers = |
| 9648 | { |
| 9649 | { |
| 9650 | .eraseblocks = { {4 * 1024, 128} }, |
| 9651 | .block_erase = erase_block_jedec, |
| 9652 | }, { |
| 9653 | .eraseblocks = { {64 * 1024, 8} }, |
| 9654 | .block_erase = erase_sector_jedec, |
| 9655 | }, { |
| 9656 | .eraseblocks = { {512 * 1024, 1} }, |
| 9657 | .block_erase = erase_chip_block_jedec, |
| 9658 | } |
| 9659 | }, |
| 9660 | .printlock = printlock_w39l040, |
| 9661 | .write = write_jedec_1, |
| 9662 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9663 | .voltage = {3000, 3600}, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 9664 | }, |
| 9665 | |
| 9666 | { |
| 9667 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9668 | .name = "W39V040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9669 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9670 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9671 | .model_id = WINBOND_W39V040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9672 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 9673 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9674 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 9675 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9676 | .probe = probe_jedec, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 9677 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9678 | .block_erasers = |
| 9679 | { |
| 9680 | { |
| 9681 | .eraseblocks = { {64 * 1024, 8} }, |
| 9682 | .block_erase = erase_sector_jedec, |
| 9683 | }, { |
| 9684 | .eraseblocks = { {512 * 1024, 1} }, |
| 9685 | .block_erase = erase_chip_block_jedec, |
| 9686 | } |
| 9687 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 9688 | .printlock = printlock_w39v040a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9689 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9690 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9691 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9692 | }, |
| 9693 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9694 | { |
| 9695 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 9696 | .name = "W39V040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9697 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9698 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9699 | .model_id = WINBOND_W39V040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9700 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 9701 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9702 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 9703 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9704 | .probe = probe_jedec, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 9705 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9706 | .block_erasers = |
| 9707 | { |
| 9708 | { |
| 9709 | .eraseblocks = { {64 * 1024, 8} }, |
| 9710 | .block_erase = erase_sector_jedec, |
| 9711 | }, { |
| 9712 | .eraseblocks = { {512 * 1024, 1} }, |
| 9713 | .block_erase = erase_chip_block_jedec, |
| 9714 | } |
| 9715 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 9716 | .printlock = printlock_w39v040b, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9717 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9718 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9719 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9720 | }, |
| 9721 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9722 | { |
| 9723 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 9724 | .name = "W39V040C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9725 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9726 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9727 | .model_id = WINBOND_W39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9728 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 9729 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9730 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 9731 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9732 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 9733 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9734 | .block_erasers = |
| 9735 | { |
| 9736 | { |
| 9737 | .eraseblocks = { {64 * 1024, 8} }, |
| 9738 | .block_erase = erase_sector_jedec, |
| 9739 | }, { |
| 9740 | .eraseblocks = { {512 * 1024, 1} }, |
| 9741 | .block_erase = erase_chip_block_jedec, |
| 9742 | } |
| 9743 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 9744 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9745 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9746 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9747 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9748 | }, |
| 9749 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9750 | { |
| 9751 | .vendor = "Winbond", |
| 9752 | .name = "W39V040FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9753 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9754 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9755 | .model_id = WINBOND_W39V040FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9756 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 9757 | .page_size = 64 * 1024, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 9758 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 9759 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9760 | .probe = probe_jedec, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 9761 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9762 | .block_erasers = |
| 9763 | { |
| 9764 | { |
| 9765 | .eraseblocks = { {4 * 1024, 128} }, |
| 9766 | .block_erase = erase_block_jedec, |
| 9767 | }, { |
| 9768 | .eraseblocks = { {64 * 1024, 8} }, |
| 9769 | .block_erase = erase_sector_jedec, |
| 9770 | }, { |
| 9771 | .eraseblocks = { {512 * 1024, 1} }, |
| 9772 | .block_erase = erase_chip_block_jedec, |
| 9773 | } |
| 9774 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 9775 | .printlock = printlock_w39v040fa, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 9776 | .unlock = unlock_sst_fwhub, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9777 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9778 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9779 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9780 | }, |
| 9781 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9782 | { |
| 9783 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 9784 | .name = "W39V040FB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9785 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 9786 | .manufacture_id = WINBOND_ID, |
| 9787 | .model_id = WINBOND_W39V040B, |
| 9788 | .total_size = 512, |
| 9789 | .page_size = 64 * 1024, |
| 9790 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 9791 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 9792 | .probe = probe_jedec, |
| 9793 | .probe_timing = 10, |
| 9794 | .block_erasers = |
| 9795 | { |
| 9796 | { |
| 9797 | .eraseblocks = { {64 * 1024, 8} }, |
| 9798 | .block_erase = erase_sector_jedec, |
| 9799 | }, { |
| 9800 | .eraseblocks = { {512 * 1024, 1} }, |
| 9801 | .block_erase = erase_chip_block_jedec, |
| 9802 | } |
| 9803 | }, |
| 9804 | .printlock = printlock_w39v040fb, |
Idwer Vollering | ecc6707 | 2010-12-26 23:55:12 +0000 | [diff] [blame] | 9805 | .unlock = unlock_w39v040fb, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 9806 | .write = write_jedec_1, |
| 9807 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9808 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 9809 | }, |
| 9810 | |
| 9811 | { |
| 9812 | .vendor = "Winbond", |
| 9813 | .name = "W39V040FC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9814 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 9815 | .manufacture_id = WINBOND_ID, |
| 9816 | .model_id = WINBOND_W39V040C, |
| 9817 | .total_size = 512, |
| 9818 | .page_size = 64 * 1024, |
| 9819 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 9820 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 9821 | .probe = probe_jedec, |
| 9822 | .probe_timing = 10, |
| 9823 | .block_erasers = |
| 9824 | { |
| 9825 | { |
| 9826 | .eraseblocks = { {64 * 1024, 8} }, |
| 9827 | .block_erase = erase_sector_jedec, |
| 9828 | }, { |
| 9829 | .eraseblocks = { {512 * 1024, 1} }, |
| 9830 | .block_erase = erase_chip_block_jedec, |
| 9831 | } |
| 9832 | }, |
| 9833 | .printlock = printlock_w39v040fc, |
| 9834 | .write = write_jedec_1, |
| 9835 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9836 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 9837 | }, |
| 9838 | |
| 9839 | { |
| 9840 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9841 | .name = "W39V080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9842 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9843 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9844 | .model_id = WINBOND_W39V080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9845 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 9846 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9847 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 9848 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9849 | .probe = probe_jedec, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 9850 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9851 | .block_erasers = |
| 9852 | { |
| 9853 | { |
| 9854 | .eraseblocks = { {64 * 1024, 16} }, |
| 9855 | .block_erase = erase_sector_jedec, |
| 9856 | }, { |
| 9857 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9858 | .block_erase = erase_chip_block_jedec, |
| 9859 | } |
| 9860 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 9861 | .printlock = printlock_w39v080a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9862 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9863 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9864 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9865 | }, |
| 9866 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9867 | { |
| 9868 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9869 | .name = "W49F002U/N", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9870 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9871 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9872 | .model_id = WINBOND_W49F002U, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9873 | .total_size = 256, |
| 9874 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9875 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 9876 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9877 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 9878 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9879 | .block_erasers = |
| 9880 | { |
| 9881 | { |
| 9882 | .eraseblocks = { |
| 9883 | {128 * 1024, 1}, |
| 9884 | {96 * 1024, 1}, |
| 9885 | {8 * 1024, 2}, |
| 9886 | {16 * 1024, 1}, |
| 9887 | }, |
| 9888 | .block_erase = erase_sector_jedec, |
| 9889 | }, { |
| 9890 | .eraseblocks = { {256 * 1024, 1} }, |
| 9891 | .block_erase = erase_chip_block_jedec, |
| 9892 | } |
| 9893 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9894 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9895 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9896 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9897 | }, |
| 9898 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9899 | { |
| 9900 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 9901 | .name = "W49F020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9902 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 9903 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9904 | .model_id = WINBOND_W49F020, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 9905 | .total_size = 256, |
| 9906 | .page_size = 128, |
| 9907 | .feature_bits = FEATURE_EITHER_RESET, |
| 9908 | .tested = TEST_OK_PROBE, |
| 9909 | .probe = probe_jedec, |
| 9910 | .probe_timing = 10, |
| 9911 | .block_erasers = |
| 9912 | { |
| 9913 | { |
| 9914 | .eraseblocks = { {256 * 1024, 1} }, |
| 9915 | .block_erase = erase_chip_block_jedec, |
| 9916 | } |
| 9917 | }, |
| 9918 | .write = write_jedec_1, |
| 9919 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9920 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 9921 | }, |
| 9922 | |
| 9923 | { |
| 9924 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9925 | .name = "W49V002A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9926 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9927 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9928 | .model_id = WINBOND_W49V002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9929 | .total_size = 256, |
| 9930 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9931 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 9932 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9933 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 9934 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9935 | .block_erasers = |
| 9936 | { |
| 9937 | { |
| 9938 | .eraseblocks = { |
| 9939 | {64 * 1024, 3}, |
| 9940 | {32 * 1024, 1}, |
| 9941 | {8 * 1024, 2}, |
| 9942 | {16 * 1024, 1}, |
| 9943 | }, |
| 9944 | .block_erase = erase_sector_jedec, |
| 9945 | }, { |
| 9946 | .eraseblocks = { {256 * 1024, 1} }, |
| 9947 | .block_erase = erase_chip_block_jedec, |
| 9948 | } |
| 9949 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9950 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9951 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9952 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9953 | }, |
| 9954 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9955 | { |
| 9956 | .vendor = "Winbond", |
| 9957 | .name = "W49V002FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9958 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9959 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9960 | .model_id = WINBOND_W49V002FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9961 | .total_size = 256, |
| 9962 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9963 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 9964 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9965 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 9966 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9967 | .block_erasers = |
| 9968 | { |
| 9969 | { |
| 9970 | .eraseblocks = { |
| 9971 | {64 * 1024, 3}, |
| 9972 | {32 * 1024, 1}, |
| 9973 | {8 * 1024, 2}, |
| 9974 | {16 * 1024, 1}, |
| 9975 | }, |
| 9976 | .block_erase = erase_sector_jedec, |
| 9977 | }, { |
| 9978 | .eraseblocks = { {256 * 1024, 1} }, |
| 9979 | .block_erase = erase_chip_block_jedec, |
| 9980 | } |
| 9981 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9982 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9983 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9984 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9985 | }, |
| 9986 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9987 | { |
| 9988 | .vendor = "Winbond", |
| 9989 | .name = "W39V080FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9990 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9991 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 9992 | .model_id = WINBOND_W39V080FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9993 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 9994 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9995 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 9996 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 9997 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 9998 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 9999 | .block_erasers = |
| 10000 | { |
| 10001 | { |
| 10002 | .eraseblocks = { {64 * 1024, 16}, }, |
| 10003 | .block_erase = erase_sector_jedec, |
| 10004 | }, { |
| 10005 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10006 | .block_erase = erase_chip_block_jedec, |
| 10007 | } |
| 10008 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 10009 | .printlock = printlock_w39v080fa, |
| 10010 | .unlock = unlock_w39v080fa, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10011 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10012 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10013 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10014 | }, |
| 10015 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10016 | { |
| 10017 | .vendor = "Winbond", |
| 10018 | .name = "W39V080FA (dual mode)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10019 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10020 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 10021 | .model_id = WINBOND_W39V080FA_DM, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10022 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 10023 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10024 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10025 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 10026 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 10027 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 10028 | .block_erasers = |
| 10029 | { |
| 10030 | { |
| 10031 | .eraseblocks = { {64 * 1024, 8}, }, |
| 10032 | .block_erase = erase_sector_jedec, |
| 10033 | }, { |
| 10034 | .eraseblocks = { {512 * 1024, 1} }, |
| 10035 | .block_erase = erase_chip_block_jedec, |
| 10036 | } |
| 10037 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 10038 | .printlock = printlock_w39v080fa_dual, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10039 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10040 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10041 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10042 | }, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 10043 | |
| 10044 | { |
| 10045 | .vendor = "Unknown", |
| 10046 | .name = "SFDP-capable chip", |
| 10047 | .bustype = BUS_SPI, |
| 10048 | .manufacture_id = GENERIC_MANUF_ID, |
| 10049 | .model_id = SFDP_DEVICE_ID, |
| 10050 | /* We present our own "report this" text hence we do not |
| 10051 | * want the default "This flash part has status UNTESTED..." |
| 10052 | * text to be printed. */ |
| 10053 | .tested = TEST_OK_PREW, |
| 10054 | .probe = probe_spi_sfdp, |
| 10055 | .unlock = spi_disable_blockprotect, /* is this safe? */ |
| 10056 | .read = spi_chip_read, |
| 10057 | /* FIXME: some vendor extensions define this */ |
Carl-Daniel Hailfinger | 1c6d2ff | 2012-08-27 00:44:42 +0000 | [diff] [blame] | 10058 | .voltage = {0}, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 10059 | /* Everything below will be set by the probing function. */ |
| 10060 | .write = NULL, |
| 10061 | .total_size = 0, |
| 10062 | .page_size = 0, |
| 10063 | .feature_bits = 0, |
| 10064 | .block_erasers = {}, |
| 10065 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10066 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10067 | { |
Carl-Daniel Hailfinger | 532c717 | 2011-11-04 21:35:26 +0000 | [diff] [blame] | 10068 | .vendor = "Programmer", |
| 10069 | .name = "Opaque flash chip", |
| 10070 | .bustype = BUS_PROG, |
| 10071 | .manufacture_id = PROGMANUF_ID, |
| 10072 | .model_id = PROGDEV_ID, |
| 10073 | .total_size = 0, |
| 10074 | .page_size = 256, |
| 10075 | /* probe is assumed to work, rest will be filled in by probe */ |
| 10076 | .tested = TEST_OK_PROBE, |
| 10077 | .probe = probe_opaque, |
| 10078 | /* eraseblock sizes will be set by the probing function */ |
| 10079 | .block_erasers = |
| 10080 | { |
| 10081 | { |
| 10082 | .block_erase = erase_opaque, |
| 10083 | } |
| 10084 | }, |
| 10085 | .write = write_opaque, |
| 10086 | .read = read_opaque, |
| 10087 | }, |
| 10088 | |
| 10089 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 10090 | .vendor = "AMIC", |
| 10091 | .name = "unknown AMIC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10092 | .bustype = BUS_SPI, |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 10093 | .manufacture_id = AMIC_ID, |
| 10094 | .model_id = GENERIC_DEVICE_ID, |
| 10095 | .total_size = 0, |
| 10096 | .page_size = 256, |
| 10097 | .tested = TEST_BAD_PREW, |
| 10098 | .probe = probe_spi_rdid4, |
| 10099 | .probe_timing = TIMING_ZERO, |
| 10100 | .write = NULL, |
| 10101 | .read = NULL, |
| 10102 | }, |
| 10103 | |
| 10104 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10105 | .vendor = "Atmel", |
| 10106 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10107 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10108 | .manufacture_id = ATMEL_ID, |
| 10109 | .model_id = GENERIC_DEVICE_ID, |
| 10110 | .total_size = 0, |
| 10111 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 10112 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10113 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10114 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10115 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10116 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10117 | }, |
| 10118 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10119 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 10120 | .vendor = "Eon", |
| 10121 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10122 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10123 | .manufacture_id = EON_ID_NOPREFIX, |
| 10124 | .model_id = GENERIC_DEVICE_ID, |
| 10125 | .total_size = 0, |
| 10126 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 10127 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10128 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10129 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10130 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10131 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10132 | }, |
| 10133 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10134 | { |
| 10135 | .vendor = "Macronix", |
| 10136 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10137 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10138 | .manufacture_id = MACRONIX_ID, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10139 | .model_id = GENERIC_DEVICE_ID, |
| 10140 | .total_size = 0, |
| 10141 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 10142 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10143 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10144 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10145 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10146 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10147 | }, |
| 10148 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10149 | { |
| 10150 | .vendor = "PMC", |
| 10151 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10152 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10153 | .manufacture_id = PMC_ID, |
| 10154 | .model_id = GENERIC_DEVICE_ID, |
| 10155 | .total_size = 0, |
| 10156 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 10157 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10158 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10159 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10160 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10161 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10162 | }, |
| 10163 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10164 | { |
| 10165 | .vendor = "SST", |
| 10166 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10167 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10168 | .manufacture_id = SST_ID, |
| 10169 | .model_id = GENERIC_DEVICE_ID, |
| 10170 | .total_size = 0, |
| 10171 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 10172 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10173 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10174 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10175 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10176 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10177 | }, |
| 10178 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10179 | { |
| 10180 | .vendor = "ST", |
| 10181 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10182 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10183 | .manufacture_id = ST_ID, |
| 10184 | .model_id = GENERIC_DEVICE_ID, |
| 10185 | .total_size = 0, |
| 10186 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 10187 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10188 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10189 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10190 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10191 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10192 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 10193 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 10194 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 10195 | .vendor = "Sanyo", |
| 10196 | .name = "unknown Sanyo SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10197 | .bustype = BUS_SPI, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 10198 | .manufacture_id = SANYO_ID, |
| 10199 | .model_id = GENERIC_DEVICE_ID, |
| 10200 | .total_size = 0, |
| 10201 | .page_size = 256, |
| 10202 | .tested = TEST_BAD_PREW, |
| 10203 | .probe = probe_spi_rdid, |
| 10204 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 10205 | .write = NULL, |
| 10206 | .read = NULL, |
| 10207 | }, |
| 10208 | |
| 10209 | { |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 10210 | .vendor = "Winbond", |
| 10211 | .name = "unknown Winbond (ex Nexcom) SPI chip", |
| 10212 | .bustype = BUS_SPI, |
| 10213 | .manufacture_id = WINBOND_NEX_ID, |
| 10214 | .model_id = GENERIC_DEVICE_ID, |
| 10215 | .total_size = 0, |
| 10216 | .page_size = 256, |
| 10217 | .tested = TEST_BAD_PREW, |
| 10218 | .probe = probe_spi_rdid, |
| 10219 | .probe_timing = TIMING_ZERO, |
| 10220 | .write = NULL, |
| 10221 | .read = NULL, |
| 10222 | }, |
| 10223 | |
| 10224 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 10225 | .vendor = "Generic", |
| 10226 | .name = "unknown SPI chip (RDID)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10227 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 10228 | .manufacture_id = GENERIC_MANUF_ID, |
| 10229 | .model_id = GENERIC_DEVICE_ID, |
| 10230 | .total_size = 0, |
| 10231 | .page_size = 256, |
| 10232 | .tested = TEST_BAD_PREW, |
| 10233 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 10234 | .write = NULL, |
| 10235 | }, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 10236 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 10237 | { |
| 10238 | .vendor = "Generic", |
| 10239 | .name = "unknown SPI chip (REMS)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10240 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 10241 | .manufacture_id = GENERIC_MANUF_ID, |
| 10242 | .model_id = GENERIC_DEVICE_ID, |
| 10243 | .total_size = 0, |
| 10244 | .page_size = 256, |
| 10245 | .tested = TEST_BAD_PREW, |
| 10246 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 10247 | .write = NULL, |
| 10248 | }, |
| 10249 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10250 | { NULL } |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 10251 | }; |