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 | * |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 32 | * Please keep the list sorted by vendor name and chip family, so that the output of 'flashrom -L' is roughly |
| 33 | * alphabetically sorted. Within families keep them in order of density. |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 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 | }, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1158 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1159 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 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", |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1167 | .name = "A25LQ16", |
| 1168 | .bustype = BUS_SPI, |
| 1169 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1170 | .model_id = AMIC_A25LQ16, |
| 1171 | .total_size = 2048, |
| 1172 | .page_size = 256, |
| 1173 | /* supports SFDP */ |
| 1174 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1175 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1176 | .tested = TEST_UNTESTED, |
| 1177 | .probe = probe_spi_rdid, |
| 1178 | .probe_timing = TIMING_ZERO, |
| 1179 | .block_erasers = { |
| 1180 | { |
| 1181 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 1182 | .block_erase = spi_block_erase_20, |
| 1183 | }, { |
| 1184 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1185 | .block_erase = spi_block_erase_52, |
| 1186 | }, { |
| 1187 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1188 | .block_erase = spi_block_erase_d8, |
| 1189 | }, { |
| 1190 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1191 | .block_erase = spi_block_erase_60, |
| 1192 | }, { |
| 1193 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1194 | .block_erase = spi_block_erase_c7, |
| 1195 | } |
| 1196 | }, |
| 1197 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1198 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 1199 | .write = spi_chip_write_256, |
| 1200 | .read = spi_chip_read, |
| 1201 | .voltage = {2700, 3600}, |
| 1202 | }, |
| 1203 | |
| 1204 | { |
| 1205 | .vendor = "AMIC", |
| 1206 | .name = "A25LQ032/A25LQ32A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1207 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1208 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1209 | .model_id = AMIC_A25LQ032, |
| 1210 | .total_size = 4096, |
| 1211 | .page_size = 256, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1212 | /* A25LQ32A supports SFDP */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1213 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1214 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1215 | .tested = TEST_UNTESTED, |
| 1216 | .probe = probe_spi_rdid, |
| 1217 | .probe_timing = TIMING_ZERO, |
| 1218 | .block_erasers = |
| 1219 | { |
| 1220 | { |
| 1221 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 1222 | .block_erase = spi_block_erase_20, |
| 1223 | }, { |
| 1224 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1225 | .block_erase = spi_block_erase_52, |
| 1226 | }, { |
| 1227 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1228 | .block_erase = spi_block_erase_d8, |
| 1229 | }, { |
| 1230 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1231 | .block_erase = spi_block_erase_60, |
| 1232 | }, { |
| 1233 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1234 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1235 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1236 | }, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1237 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1238 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 1239 | .write = spi_chip_write_256, |
| 1240 | .read = spi_chip_read, |
| 1241 | .voltage = {2700, 3600}, |
| 1242 | }, |
| 1243 | |
| 1244 | { |
| 1245 | .vendor = "AMIC", |
| 1246 | .name = "A25LQ64", |
| 1247 | .bustype = BUS_SPI, |
| 1248 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1249 | .model_id = AMIC_A25LQ032, |
| 1250 | .total_size = 8192, |
| 1251 | .page_size = 256, |
| 1252 | /* supports SFDP */ |
| 1253 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 1254 | /* QPI enable 0x35, disable 0xF5 */ |
| 1255 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 1256 | .tested = TEST_UNTESTED, |
| 1257 | .probe = probe_spi_rdid, |
| 1258 | .probe_timing = TIMING_ZERO, |
| 1259 | .block_erasers = |
| 1260 | { |
| 1261 | { |
| 1262 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 1263 | .block_erase = spi_block_erase_20, |
| 1264 | }, { |
| 1265 | .eraseblocks = { { 32 * 1024, 256 } }, |
| 1266 | .block_erase = spi_block_erase_52, |
| 1267 | }, { |
| 1268 | .eraseblocks = { { 64 * 1024, 128 } }, |
| 1269 | .block_erase = spi_block_erase_d8, |
| 1270 | }, { |
| 1271 | .eraseblocks = { { 8192 * 1024, 1 } }, |
| 1272 | .block_erase = spi_block_erase_60, |
| 1273 | }, { |
| 1274 | .eraseblocks = { { 8192 * 1024, 1 } }, |
| 1275 | .block_erase = spi_block_erase_c7, |
| 1276 | } |
| 1277 | }, |
| 1278 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enhance (sic!) */ |
| 1279 | .unlock = spi_disable_blockprotect, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1280 | .write = spi_chip_write_256, |
| 1281 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1282 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1283 | }, |
| 1284 | |
| 1285 | { |
| 1286 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1287 | .name = "A29002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1288 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1289 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1290 | .model_id = AMIC_A29002B, |
| 1291 | .total_size = 256, |
| 1292 | .page_size = 64 * 1024, |
| 1293 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 1294 | .tested = TEST_UNTESTED, |
| 1295 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1296 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1297 | .block_erasers = |
| 1298 | { |
| 1299 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1300 | .eraseblocks = { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1301 | {16 * 1024, 1}, |
| 1302 | {8 * 1024, 2}, |
| 1303 | {32 * 1024, 1}, |
| 1304 | {64 * 1024, 3}, |
| 1305 | }, |
| 1306 | .block_erase = erase_sector_jedec, |
| 1307 | }, { |
| 1308 | .eraseblocks = { {256 * 1024, 1} }, |
| 1309 | .block_erase = erase_chip_block_jedec, |
| 1310 | }, |
| 1311 | }, |
| 1312 | .write = write_jedec_1, |
| 1313 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1314 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1315 | }, |
| 1316 | |
| 1317 | { |
| 1318 | .vendor = "AMIC", |
| 1319 | .name = "A29002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1320 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1321 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1322 | .model_id = AMIC_A29002T, |
| 1323 | .total_size = 256, |
| 1324 | .page_size = 64 * 1024, |
| 1325 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 1326 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1327 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1328 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1329 | .block_erasers = |
| 1330 | { |
| 1331 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1332 | .eraseblocks = { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1333 | {64 * 1024, 3}, |
| 1334 | {32 * 1024, 1}, |
| 1335 | {8 * 1024, 2}, |
| 1336 | {16 * 1024, 1}, |
| 1337 | }, |
| 1338 | .block_erase = erase_sector_jedec, |
| 1339 | }, { |
| 1340 | .eraseblocks = { {256 * 1024, 1} }, |
| 1341 | .block_erase = erase_chip_block_jedec, |
| 1342 | }, |
| 1343 | }, |
| 1344 | .write = write_jedec_1, |
| 1345 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1346 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1347 | }, |
| 1348 | |
| 1349 | { |
| 1350 | .vendor = "AMIC", |
| 1351 | .name = "A29040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1352 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1353 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1354 | .model_id = AMIC_A29040B, |
| 1355 | .total_size = 512, |
| 1356 | .page_size = 64 * 1024, |
| 1357 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Corey Osgood | cbd5665 | 2013-09-10 10:42:48 +0000 | [diff] [blame] | 1358 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1359 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1360 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1361 | .block_erasers = |
| 1362 | { |
| 1363 | { |
| 1364 | .eraseblocks = { {64 * 1024, 8} }, |
| 1365 | .block_erase = erase_sector_jedec, |
| 1366 | }, { |
| 1367 | .eraseblocks = { {512 * 1024, 1} }, |
| 1368 | .block_erase = erase_chip_block_jedec, |
| 1369 | }, |
| 1370 | }, |
| 1371 | .write = write_jedec_1, |
| 1372 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1373 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1374 | }, |
| 1375 | |
| 1376 | { |
| 1377 | .vendor = "AMIC", |
| 1378 | .name = "A49LF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1379 | .bustype = BUS_LPC, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1380 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1381 | .model_id = AMIC_A49LF040A, |
| 1382 | .total_size = 512, |
| 1383 | .page_size = 64 * 1024, |
| 1384 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 1385 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1386 | .probe = probe_jedec, |
| 1387 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
| 1388 | .block_erasers = |
| 1389 | { |
| 1390 | { |
| 1391 | .eraseblocks = { {64 * 1024, 8} }, |
| 1392 | .block_erase = erase_block_jedec, |
| 1393 | }, { |
| 1394 | .eraseblocks = { {512 * 1024, 1} }, |
| 1395 | .block_erase = erase_chip_block_jedec, |
| 1396 | } |
| 1397 | }, |
| 1398 | .unlock = unlock_49fl00x, |
| 1399 | .write = write_jedec_1, |
| 1400 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1401 | .voltage = {3000, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1402 | }, |
| 1403 | |
| 1404 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1405 | .vendor = "Atmel", |
| 1406 | .name = "AT25DF021", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1407 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1408 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1409 | .model_id = ATMEL_AT25DF021, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1410 | .total_size = 256, |
| 1411 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1412 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1413 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1414 | .tested = TEST_UNTESTED, |
| 1415 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1416 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1417 | .block_erasers = |
| 1418 | { |
| 1419 | { |
| 1420 | .eraseblocks = { {4 * 1024, 64} }, |
| 1421 | .block_erase = spi_block_erase_20, |
| 1422 | }, { |
| 1423 | .eraseblocks = { {32 * 1024, 8} }, |
| 1424 | .block_erase = spi_block_erase_52, |
| 1425 | }, { |
| 1426 | .eraseblocks = { {64 * 1024, 4} }, |
| 1427 | .block_erase = spi_block_erase_d8, |
| 1428 | }, { |
| 1429 | .eraseblocks = { {256 * 1024, 1} }, |
| 1430 | .block_erase = spi_block_erase_60, |
| 1431 | }, { |
| 1432 | .eraseblocks = { {256 * 1024, 1} }, |
| 1433 | .block_erase = spi_block_erase_c7, |
| 1434 | } |
| 1435 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1436 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1437 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1438 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1439 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1440 | .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] | 1441 | }, |
| 1442 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1443 | { |
| 1444 | .vendor = "Atmel", |
| 1445 | .name = "AT25DF041A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1446 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1447 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1448 | .model_id = ATMEL_AT25DF041A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1449 | .total_size = 512, |
| 1450 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1451 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1452 | .tested = TEST_UNTESTED, |
| 1453 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1454 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1455 | .block_erasers = |
| 1456 | { |
| 1457 | { |
| 1458 | .eraseblocks = { {4 * 1024, 128} }, |
| 1459 | .block_erase = spi_block_erase_20, |
| 1460 | }, { |
| 1461 | .eraseblocks = { {32 * 1024, 16} }, |
| 1462 | .block_erase = spi_block_erase_52, |
| 1463 | }, { |
| 1464 | .eraseblocks = { {64 * 1024, 8} }, |
| 1465 | .block_erase = spi_block_erase_d8, |
| 1466 | }, { |
| 1467 | .eraseblocks = { {512 * 1024, 1} }, |
| 1468 | .block_erase = spi_block_erase_60, |
| 1469 | }, { |
| 1470 | .eraseblocks = { {512 * 1024, 1} }, |
| 1471 | .block_erase = spi_block_erase_c7, |
| 1472 | } |
| 1473 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1474 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1475 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1476 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1477 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1478 | .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] | 1479 | }, |
| 1480 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1481 | { |
| 1482 | .vendor = "Atmel", |
| 1483 | .name = "AT25DF081", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1484 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1485 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1486 | .model_id = ATMEL_AT25DF081, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1487 | .total_size = 1024, |
| 1488 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1489 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1490 | .tested = TEST_UNTESTED, |
| 1491 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1492 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1493 | .block_erasers = |
| 1494 | { |
| 1495 | { |
| 1496 | .eraseblocks = { {4 * 1024, 256} }, |
| 1497 | .block_erase = spi_block_erase_20, |
| 1498 | }, { |
| 1499 | .eraseblocks = { {32 * 1024, 32} }, |
| 1500 | .block_erase = spi_block_erase_52, |
| 1501 | }, { |
| 1502 | .eraseblocks = { {64 * 1024, 16} }, |
| 1503 | .block_erase = spi_block_erase_d8, |
| 1504 | }, { |
| 1505 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1506 | .block_erase = spi_block_erase_60, |
| 1507 | }, { |
| 1508 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1509 | .block_erase = spi_block_erase_c7, |
| 1510 | } |
| 1511 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1512 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1513 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1514 | .write = spi_chip_write_256, |
| 1515 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1516 | .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] | 1517 | }, |
| 1518 | |
| 1519 | { |
| 1520 | .vendor = "Atmel", |
| 1521 | .name = "AT25DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1522 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1523 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1524 | .model_id = ATMEL_AT25DF081A, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1525 | .total_size = 1024, |
| 1526 | .page_size = 256, |
| 1527 | .feature_bits = FEATURE_WRSR_WREN, |
| 1528 | .tested = TEST_UNTESTED, |
| 1529 | .probe = probe_spi_rdid, |
| 1530 | .probe_timing = TIMING_ZERO, |
| 1531 | .block_erasers = |
| 1532 | { |
| 1533 | { |
| 1534 | .eraseblocks = { {4 * 1024, 256} }, |
| 1535 | .block_erase = spi_block_erase_20, |
| 1536 | }, { |
| 1537 | .eraseblocks = { {32 * 1024, 32} }, |
| 1538 | .block_erase = spi_block_erase_52, |
| 1539 | }, { |
| 1540 | .eraseblocks = { {64 * 1024, 16} }, |
| 1541 | .block_erase = spi_block_erase_d8, |
| 1542 | }, { |
| 1543 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1544 | .block_erase = spi_block_erase_60, |
| 1545 | }, { |
| 1546 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1547 | .block_erase = spi_block_erase_c7, |
| 1548 | } |
| 1549 | }, |
| 1550 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1551 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1552 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1553 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1554 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1555 | }, |
| 1556 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1557 | { |
| 1558 | .vendor = "Atmel", |
| 1559 | .name = "AT25DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1560 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1561 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1562 | .model_id = ATMEL_AT25DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1563 | .total_size = 2048, |
| 1564 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1565 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 2abab94 | 2012-04-27 20:41:23 +0000 | [diff] [blame] | 1566 | .tested = TEST_OK_PROBE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1567 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1568 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1569 | .block_erasers = |
| 1570 | { |
| 1571 | { |
| 1572 | .eraseblocks = { {4 * 1024, 512} }, |
| 1573 | .block_erase = spi_block_erase_20, |
| 1574 | }, { |
| 1575 | .eraseblocks = { {32 * 1024, 64} }, |
| 1576 | .block_erase = spi_block_erase_52, |
| 1577 | }, { |
| 1578 | .eraseblocks = { {64 * 1024, 32} }, |
| 1579 | .block_erase = spi_block_erase_d8, |
| 1580 | }, { |
| 1581 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1582 | .block_erase = spi_block_erase_60, |
| 1583 | }, { |
| 1584 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1585 | .block_erase = spi_block_erase_c7, |
| 1586 | } |
| 1587 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1588 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1589 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1590 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1591 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1592 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1593 | }, |
| 1594 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1595 | { |
| 1596 | .vendor = "Atmel", |
| 1597 | .name = "AT25DF321", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1598 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1599 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1600 | .model_id = ATMEL_AT25DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1601 | .total_size = 4096, |
| 1602 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1603 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 1604 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1605 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1606 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1607 | .block_erasers = |
| 1608 | { |
| 1609 | { |
| 1610 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1611 | .block_erase = spi_block_erase_20, |
| 1612 | }, { |
| 1613 | .eraseblocks = { {32 * 1024, 128} }, |
| 1614 | .block_erase = spi_block_erase_52, |
| 1615 | }, { |
| 1616 | .eraseblocks = { {64 * 1024, 64} }, |
| 1617 | .block_erase = spi_block_erase_d8, |
| 1618 | }, { |
| 1619 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1620 | .block_erase = spi_block_erase_60, |
| 1621 | }, { |
| 1622 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1623 | .block_erase = spi_block_erase_c7, |
| 1624 | } |
| 1625 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1626 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1627 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1628 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1629 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1630 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1631 | }, |
| 1632 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1633 | { |
| 1634 | .vendor = "Atmel", |
| 1635 | .name = "AT25DF321A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1636 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1637 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1638 | .model_id = ATMEL_AT25DF321A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1639 | .total_size = 4096, |
| 1640 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1641 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1642 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 1643 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1644 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1645 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1646 | .block_erasers = |
| 1647 | { |
| 1648 | { |
| 1649 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1650 | .block_erase = spi_block_erase_20, |
| 1651 | }, { |
| 1652 | .eraseblocks = { {32 * 1024, 128} }, |
| 1653 | .block_erase = spi_block_erase_52, |
| 1654 | }, { |
| 1655 | .eraseblocks = { {64 * 1024, 64} }, |
| 1656 | .block_erase = spi_block_erase_d8, |
| 1657 | }, { |
| 1658 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1659 | .block_erase = spi_block_erase_60, |
| 1660 | }, { |
| 1661 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1662 | .block_erase = spi_block_erase_c7, |
| 1663 | } |
| 1664 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1665 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1666 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1667 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1668 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1669 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1670 | }, |
| 1671 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1672 | { |
| 1673 | .vendor = "Atmel", |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 1674 | .name = "AT25DF641(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1675 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1676 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1677 | .model_id = ATMEL_AT25DF641, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1678 | .total_size = 8192, |
| 1679 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1680 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1681 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1682 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1683 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1684 | .block_erasers = |
| 1685 | { |
| 1686 | { |
| 1687 | .eraseblocks = { {4 * 1024, 2048} }, |
| 1688 | .block_erase = spi_block_erase_20, |
| 1689 | }, { |
| 1690 | .eraseblocks = { {32 * 1024, 256} }, |
| 1691 | .block_erase = spi_block_erase_52, |
| 1692 | }, { |
| 1693 | .eraseblocks = { {64 * 1024, 128} }, |
| 1694 | .block_erase = spi_block_erase_d8, |
| 1695 | }, { |
| 1696 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1697 | .block_erase = spi_block_erase_60, |
| 1698 | }, { |
| 1699 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1700 | .block_erase = spi_block_erase_c7, |
| 1701 | } |
| 1702 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1703 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1704 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1705 | .write = spi_chip_write_256, |
| 1706 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1707 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1708 | }, |
| 1709 | |
| 1710 | { |
| 1711 | .vendor = "Atmel", |
| 1712 | .name = "AT25DQ161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1713 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1714 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1715 | .model_id = ATMEL_AT25DQ161, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1716 | .total_size = 2048, |
| 1717 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1718 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1719 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1720 | .tested = TEST_UNTESTED, |
| 1721 | .probe = probe_spi_rdid, |
| 1722 | .probe_timing = TIMING_ZERO, |
| 1723 | .block_erasers = |
| 1724 | { |
| 1725 | { |
| 1726 | .eraseblocks = { {4 * 1024, 512} }, |
| 1727 | .block_erase = spi_block_erase_20, |
| 1728 | }, { |
| 1729 | .eraseblocks = { {32 * 1024, 64} }, |
| 1730 | .block_erase = spi_block_erase_52, |
| 1731 | }, { |
| 1732 | .eraseblocks = { {64 * 1024, 32} }, |
| 1733 | .block_erase = spi_block_erase_d8, |
| 1734 | }, { |
| 1735 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1736 | .block_erase = spi_block_erase_60, |
| 1737 | }, { |
| 1738 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1739 | .block_erase = spi_block_erase_c7, |
| 1740 | } |
| 1741 | }, |
| 1742 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1743 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1744 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1745 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1746 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1747 | }, |
| 1748 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1749 | { |
| 1750 | .vendor = "Atmel", |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1751 | .name = "AT25F512", |
| 1752 | .bustype = BUS_SPI, |
| 1753 | .manufacture_id = ATMEL_ID, |
| 1754 | .model_id = ATMEL_AT25F512, |
| 1755 | .total_size = 64, |
| 1756 | .page_size = 256, |
| 1757 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1758 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1759 | .probe = probe_spi_at25f, |
| 1760 | .probe_timing = TIMING_ZERO, |
| 1761 | .block_erasers = |
| 1762 | { |
| 1763 | { |
| 1764 | .eraseblocks = { {32 * 1024, 2} }, |
| 1765 | .block_erase = spi_block_erase_52, |
| 1766 | }, { |
| 1767 | .eraseblocks = { {64 * 1024, 1} }, |
| 1768 | .block_erase = spi_block_erase_62, |
| 1769 | } |
| 1770 | }, |
| 1771 | .printlock = spi_prettyprint_status_register_at25f, |
| 1772 | .unlock = spi_disable_blockprotect_at25f, |
| 1773 | .write = spi_chip_write_256, |
| 1774 | .read = spi_chip_read, |
| 1775 | .voltage = {2700, 3600}, |
| 1776 | }, |
| 1777 | |
| 1778 | { |
| 1779 | .vendor = "Atmel", |
| 1780 | .name = "AT25F512A", |
| 1781 | .bustype = BUS_SPI, |
| 1782 | .manufacture_id = ATMEL_ID, |
| 1783 | .model_id = ATMEL_AT25F512A, |
| 1784 | .total_size = 64, |
| 1785 | .page_size = 128, |
| 1786 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1787 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1788 | .probe = probe_spi_at25f, |
| 1789 | .probe_timing = TIMING_ZERO, |
| 1790 | .block_erasers = |
| 1791 | { |
| 1792 | { |
| 1793 | .eraseblocks = { {32 * 1024, 2} }, |
| 1794 | .block_erase = spi_block_erase_52, |
| 1795 | }, { |
| 1796 | .eraseblocks = { {64 * 1024, 1} }, |
| 1797 | .block_erase = spi_block_erase_62, |
| 1798 | } |
| 1799 | }, |
| 1800 | .printlock = spi_prettyprint_status_register_at25f512a, |
| 1801 | /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */ |
| 1802 | .unlock = spi_disable_blockprotect_at25f512a, |
| 1803 | .write = spi_chip_write_256, |
| 1804 | .read = spi_chip_read, |
| 1805 | .voltage = {2700, 3600}, |
| 1806 | }, |
| 1807 | |
| 1808 | { |
| 1809 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1810 | .name = "AT25F512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1811 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1812 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1813 | .model_id = ATMEL_AT25F512B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1814 | .total_size = 64, |
| 1815 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1816 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1817 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1818 | .tested = TEST_UNTESTED, |
| 1819 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1820 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1821 | .block_erasers = |
| 1822 | { |
| 1823 | { |
| 1824 | .eraseblocks = { {4 * 1024, 16} }, |
| 1825 | .block_erase = spi_block_erase_20, |
| 1826 | }, { |
| 1827 | .eraseblocks = { {32 * 1024, 2} }, |
| 1828 | .block_erase = spi_block_erase_52, |
| 1829 | }, { |
| 1830 | .eraseblocks = { {32 * 1024, 2} }, |
| 1831 | .block_erase = spi_block_erase_d8, |
| 1832 | }, { |
| 1833 | .eraseblocks = { {64 * 1024, 1} }, |
| 1834 | .block_erase = spi_block_erase_60, |
| 1835 | }, { |
| 1836 | .eraseblocks = { {64 * 1024, 1} }, |
| 1837 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | 3c0fcd0 | 2012-09-21 12:46:56 +0000 | [diff] [blame] | 1838 | }, { |
| 1839 | .eraseblocks = { {64 * 1024, 1} }, |
| 1840 | .block_erase = spi_block_erase_62, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1841 | } |
| 1842 | }, |
Stefan Tauner | 7bf4ed9 | 2012-08-26 21:04:27 +0000 | [diff] [blame] | 1843 | .printlock = spi_prettyprint_status_register_at25f512b, |
| 1844 | .unlock = spi_disable_blockprotect_at25f512b, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1845 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1846 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1847 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1848 | }, |
| 1849 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1850 | { |
| 1851 | .vendor = "Atmel", |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1852 | /* The A suffix indicates 33MHz instead of 20MHz clock rate. |
| 1853 | * All other properties seem to be the same.*/ |
| 1854 | .name = "AT25F1024(A)", |
| 1855 | .bustype = BUS_SPI, |
| 1856 | .manufacture_id = ATMEL_ID, |
| 1857 | .model_id = ATMEL_AT25F1024, |
| 1858 | .total_size = 128, |
| 1859 | .page_size = 256, |
| 1860 | .feature_bits = FEATURE_WRSR_WREN, |
| 1861 | .tested = TEST_OK_PREW, |
| 1862 | .probe = probe_spi_at25f, |
| 1863 | .probe_timing = TIMING_ZERO, |
| 1864 | .block_erasers = |
| 1865 | { |
| 1866 | { |
| 1867 | .eraseblocks = { {32 * 1024, 4} }, |
| 1868 | .block_erase = spi_block_erase_52, |
| 1869 | }, { |
| 1870 | .eraseblocks = { {128 * 1024, 1} }, |
| 1871 | .block_erase = spi_block_erase_62, |
| 1872 | } |
| 1873 | }, |
| 1874 | .printlock = spi_prettyprint_status_register_at25f, |
| 1875 | .unlock = spi_disable_blockprotect_at25f, |
| 1876 | .write = spi_chip_write_256, |
| 1877 | .read = spi_chip_read, |
| 1878 | .voltage = {2700, 3600}, |
| 1879 | }, |
| 1880 | |
| 1881 | { |
| 1882 | .vendor = "Atmel", |
| 1883 | .name = "AT25F2048", |
| 1884 | .bustype = BUS_SPI, |
| 1885 | .manufacture_id = ATMEL_ID, |
| 1886 | .model_id = ATMEL_AT25F2048, |
| 1887 | .total_size = 256, |
| 1888 | .page_size = 256, |
| 1889 | .feature_bits = FEATURE_WRSR_WREN, |
| 1890 | .tested = TEST_UNTESTED, |
| 1891 | .probe = probe_spi_at25f, |
| 1892 | .probe_timing = TIMING_ZERO, |
| 1893 | .block_erasers = |
| 1894 | { |
| 1895 | { |
| 1896 | .eraseblocks = { {64 * 1024, 4} }, |
| 1897 | .block_erase = spi_block_erase_52, |
| 1898 | }, { |
| 1899 | .eraseblocks = { {256 * 1024, 1} }, |
| 1900 | .block_erase = spi_block_erase_62, |
| 1901 | } |
| 1902 | }, |
| 1903 | .printlock = spi_prettyprint_status_register_at25f, |
| 1904 | .unlock = spi_disable_blockprotect_at25f, |
| 1905 | .write = spi_chip_write_256, |
| 1906 | .read = spi_chip_read, |
| 1907 | .voltage = {2700, 3600}, |
| 1908 | }, |
| 1909 | |
| 1910 | { |
| 1911 | .vendor = "Atmel", |
| 1912 | .name = "AT25F4096", |
| 1913 | .bustype = BUS_SPI, |
| 1914 | .manufacture_id = ATMEL_ID, |
| 1915 | .model_id = ATMEL_AT25F4096, |
| 1916 | .total_size = 512, |
| 1917 | .page_size = 256, |
| 1918 | .feature_bits = FEATURE_WRSR_WREN, |
| 1919 | .tested = TEST_UNTESTED, |
| 1920 | .probe = probe_spi_at25f, |
| 1921 | .probe_timing = TIMING_ZERO, |
| 1922 | .block_erasers = |
| 1923 | { |
| 1924 | { |
| 1925 | .eraseblocks = { {64 * 1024, 8} }, |
| 1926 | .block_erase = spi_block_erase_52, |
| 1927 | }, { |
| 1928 | .eraseblocks = { {512 * 1024, 1} }, |
| 1929 | .block_erase = spi_block_erase_62, |
| 1930 | } |
| 1931 | }, |
| 1932 | .printlock = spi_prettyprint_status_register_at25f4096, |
Stefan Tauner | 278ba6e | 2013-06-28 21:28:27 +0000 | [diff] [blame] | 1933 | /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */ |
| 1934 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1935 | .write = spi_chip_write_256, |
| 1936 | .read = spi_chip_read, |
| 1937 | .voltage = {2700, 3600}, |
| 1938 | }, |
| 1939 | |
| 1940 | { |
| 1941 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1942 | .name = "AT25FS010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1943 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1944 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1945 | .model_id = ATMEL_AT25FS010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1946 | .total_size = 128, |
| 1947 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1948 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 1949 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1950 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1951 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1952 | .block_erasers = |
| 1953 | { |
| 1954 | { |
| 1955 | .eraseblocks = { {4 * 1024, 32} }, |
| 1956 | .block_erase = spi_block_erase_20, |
| 1957 | }, { |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1958 | .eraseblocks = { {4 * 1024, 32} }, |
| 1959 | .block_erase = spi_block_erase_d7, |
| 1960 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1961 | .eraseblocks = { {32 * 1024, 4} }, |
| 1962 | .block_erase = spi_block_erase_52, |
| 1963 | }, { |
| 1964 | .eraseblocks = { {32 * 1024, 4} }, |
| 1965 | .block_erase = spi_block_erase_d8, |
| 1966 | }, { |
| 1967 | .eraseblocks = { {128 * 1024, 1} }, |
| 1968 | .block_erase = spi_block_erase_60, |
| 1969 | }, { |
| 1970 | .eraseblocks = { {128 * 1024, 1} }, |
| 1971 | .block_erase = spi_block_erase_c7, |
| 1972 | } |
| 1973 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1974 | .printlock = spi_prettyprint_status_register_at25fs010, |
| 1975 | .unlock = spi_disable_blockprotect_at25fs010, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1976 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1977 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1978 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1979 | }, |
| 1980 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1981 | { |
| 1982 | .vendor = "Atmel", |
| 1983 | .name = "AT25FS040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1984 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1985 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1986 | .model_id = ATMEL_AT25FS040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1987 | .total_size = 512, |
| 1988 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1989 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1990 | .tested = TEST_UNTESTED, |
| 1991 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1992 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1993 | .block_erasers = |
| 1994 | { |
| 1995 | { |
| 1996 | .eraseblocks = { {4 * 1024, 128} }, |
| 1997 | .block_erase = spi_block_erase_20, |
| 1998 | }, { |
| 1999 | .eraseblocks = { {64 * 1024, 8} }, |
| 2000 | .block_erase = spi_block_erase_52, |
| 2001 | }, { |
| 2002 | .eraseblocks = { {64 * 1024, 8} }, |
| 2003 | .block_erase = spi_block_erase_d8, |
| 2004 | }, { |
| 2005 | .eraseblocks = { {512 * 1024, 1} }, |
| 2006 | .block_erase = spi_block_erase_60, |
| 2007 | }, { |
| 2008 | .eraseblocks = { {512 * 1024, 1} }, |
| 2009 | .block_erase = spi_block_erase_c7, |
| 2010 | } |
| 2011 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2012 | .printlock = spi_prettyprint_status_register_at25fs040, |
| 2013 | .unlock = spi_disable_blockprotect_at25fs040, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2014 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2015 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2016 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2017 | }, |
| 2018 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2019 | { |
| 2020 | .vendor = "Atmel", |
| 2021 | .name = "AT26DF041", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2022 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2023 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2024 | .model_id = ATMEL_AT26DF041, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2025 | .total_size = 512, |
| 2026 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2027 | /* 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] | 2028 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2029 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2030 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2031 | .block_erasers = |
| 2032 | { |
| 2033 | { |
Stefan Tauner | 94b39b4 | 2012-10-27 00:06:02 +0000 | [diff] [blame] | 2034 | .eraseblocks = { {256, 2048} }, |
| 2035 | .block_erase = spi_block_erase_81, |
| 2036 | }, { |
| 2037 | .eraseblocks = { {2 * 1024, 256} }, |
| 2038 | .block_erase = spi_block_erase_50, |
| 2039 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2040 | .eraseblocks = { {4 * 1024, 128} }, |
| 2041 | .block_erase = spi_block_erase_20, |
| 2042 | } |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2043 | }, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2044 | .printlock = spi_prettyprint_status_register_plain, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2045 | /* 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] | 2046 | .write = spi_chip_write_1, |
| 2047 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2048 | .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] | 2049 | }, |
| 2050 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2051 | { |
| 2052 | .vendor = "Atmel", |
| 2053 | .name = "AT26DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2054 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2055 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2056 | .model_id = ATMEL_AT26DF081A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2057 | .total_size = 1024, |
| 2058 | .page_size = 256, |
Mathias Krause | 2c3afa3 | 2011-01-17 07:45:54 +0000 | [diff] [blame] | 2059 | .feature_bits = FEATURE_WRSR_WREN, |
| 2060 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2061 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2062 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2063 | .block_erasers = |
| 2064 | { |
| 2065 | { |
| 2066 | .eraseblocks = { {4 * 1024, 256} }, |
| 2067 | .block_erase = spi_block_erase_20, |
| 2068 | }, { |
| 2069 | .eraseblocks = { {32 * 1024, 32} }, |
| 2070 | .block_erase = spi_block_erase_52, |
| 2071 | }, { |
| 2072 | .eraseblocks = { {64 * 1024, 16} }, |
| 2073 | .block_erase = spi_block_erase_d8, |
| 2074 | }, { |
| 2075 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2076 | .block_erase = spi_block_erase_60, |
| 2077 | }, { |
| 2078 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2079 | .block_erase = spi_block_erase_c7, |
| 2080 | } |
| 2081 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2082 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2083 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2084 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2085 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2086 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2087 | }, |
| 2088 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2089 | { |
| 2090 | .vendor = "Atmel", |
| 2091 | .name = "AT26DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2092 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2093 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2094 | .model_id = ATMEL_AT26DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2095 | .total_size = 2048, |
| 2096 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2097 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 2098 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2099 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2100 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2101 | .block_erasers = |
| 2102 | { |
| 2103 | { |
| 2104 | .eraseblocks = { {4 * 1024, 512} }, |
| 2105 | .block_erase = spi_block_erase_20, |
| 2106 | }, { |
| 2107 | .eraseblocks = { {32 * 1024, 64} }, |
| 2108 | .block_erase = spi_block_erase_52, |
| 2109 | }, { |
| 2110 | .eraseblocks = { {64 * 1024, 32} }, |
| 2111 | .block_erase = spi_block_erase_d8, |
| 2112 | }, { |
| 2113 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2114 | .block_erase = spi_block_erase_60, |
| 2115 | }, { |
| 2116 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2117 | .block_erase = spi_block_erase_c7, |
| 2118 | } |
| 2119 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 2120 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2121 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2122 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2123 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2124 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2125 | }, |
| 2126 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2127 | { |
| 2128 | .vendor = "Atmel", |
| 2129 | .name = "AT26DF161A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2130 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2131 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2132 | .model_id = ATMEL_AT26DF161A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2133 | .total_size = 2048, |
| 2134 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2135 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2136 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2137 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2138 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2139 | .block_erasers = |
| 2140 | { |
| 2141 | { |
| 2142 | .eraseblocks = { {4 * 1024, 512} }, |
| 2143 | .block_erase = spi_block_erase_20, |
| 2144 | }, { |
| 2145 | .eraseblocks = { {32 * 1024, 64} }, |
| 2146 | .block_erase = spi_block_erase_52, |
| 2147 | }, { |
| 2148 | .eraseblocks = { {64 * 1024, 32} }, |
| 2149 | .block_erase = spi_block_erase_d8, |
| 2150 | }, { |
| 2151 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2152 | .block_erase = spi_block_erase_60, |
| 2153 | }, { |
| 2154 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2155 | .block_erase = spi_block_erase_c7, |
| 2156 | } |
| 2157 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2158 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2159 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2160 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2161 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2162 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2163 | }, |
| 2164 | |
| 2165 | /*The AT26DF321 has the same ID as the AT25DF321. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2166 | /*{ |
| 2167 | .vendor = "Atmel", |
| 2168 | .name = "AT26DF321", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2169 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2170 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2171 | .model_id = ATMEL_AT26DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2172 | .total_size = 4096, |
| 2173 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2174 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2175 | .tested = TEST_UNTESTED, |
| 2176 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2177 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2178 | .printlock = spi_prettyprint_status_register_at26df081a, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2179 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2180 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2181 | .read = spi_chip_read, |
| 2182 | },*/ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2183 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2184 | { |
| 2185 | .vendor = "Atmel", |
| 2186 | .name = "AT26F004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2187 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2188 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2189 | .model_id = ATMEL_AT26F004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2190 | .total_size = 512, |
| 2191 | .page_size = 256, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2192 | .tested = TEST_BAD_WRITE, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2193 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2194 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2195 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2196 | .block_erasers = |
| 2197 | { |
| 2198 | { |
| 2199 | .eraseblocks = { {4 * 1024, 128} }, |
| 2200 | .block_erase = spi_block_erase_20, |
| 2201 | }, { |
| 2202 | .eraseblocks = { {32 * 1024, 16} }, |
| 2203 | .block_erase = spi_block_erase_52, |
| 2204 | }, { |
| 2205 | .eraseblocks = { {64 * 1024, 8} }, |
| 2206 | .block_erase = spi_block_erase_d8, |
| 2207 | }, { |
| 2208 | .eraseblocks = { {512 * 1024, 1} }, |
| 2209 | .block_erase = spi_block_erase_60, |
| 2210 | }, { |
| 2211 | .eraseblocks = { {512 * 1024, 1} }, |
| 2212 | .block_erase = spi_block_erase_c7, |
| 2213 | } |
| 2214 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2215 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2216 | .write = NULL /* Incompatible Page write */, |
| 2217 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2218 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2219 | }, |
| 2220 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2221 | { |
| 2222 | .vendor = "Atmel", |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2223 | .name = "AT29C512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2224 | .bustype = BUS_PARALLEL, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2225 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2226 | .model_id = ATMEL_AT29C512, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2227 | .total_size = 64, |
| 2228 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2229 | .feature_bits = FEATURE_LONG_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 2230 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 2231 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2232 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2233 | .block_erasers = |
| 2234 | { |
| 2235 | { |
| 2236 | .eraseblocks = { {64 * 1024, 1} }, |
| 2237 | .block_erase = erase_chip_block_jedec, |
| 2238 | } |
| 2239 | }, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2240 | .write = write_jedec, |
| 2241 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2242 | .voltage = {4500, 5500}, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2243 | }, |
| 2244 | |
| 2245 | { |
| 2246 | .vendor = "Atmel", |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2247 | .name = "AT29C010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2248 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2249 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2250 | .model_id = ATMEL_AT29C010A, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2251 | .total_size = 128, |
| 2252 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2253 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2254 | .tested = TEST_OK_PRE, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2255 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2256 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2257 | .block_erasers = |
| 2258 | { |
| 2259 | { |
| 2260 | .eraseblocks = { {128 * 1024, 1} }, |
| 2261 | .block_erase = erase_chip_block_jedec, |
| 2262 | } |
| 2263 | }, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2264 | .write = write_jedec, /* FIXME */ |
| 2265 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2266 | .voltage = {4500, 5500}, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2267 | }, |
| 2268 | |
| 2269 | { |
| 2270 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2271 | .name = "AT29C020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2272 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2273 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2274 | .model_id = ATMEL_AT29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2275 | .total_size = 256, |
| 2276 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2277 | .feature_bits = FEATURE_LONG_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 2278 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2279 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 2280 | .probe_timing = 10000, /* 10ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2281 | .block_erasers = |
| 2282 | { |
| 2283 | { |
| 2284 | .eraseblocks = { {256 * 1024, 1} }, |
| 2285 | .block_erase = erase_chip_block_jedec, |
| 2286 | } |
| 2287 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2288 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2289 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2290 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2291 | }, |
| 2292 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2293 | { |
| 2294 | .vendor = "Atmel", |
| 2295 | .name = "AT29C040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2296 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2297 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2298 | .model_id = ATMEL_AT29C040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2299 | .total_size = 512, |
| 2300 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2301 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2302 | .tested = TEST_UNTESTED, |
| 2303 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 2304 | .probe_timing = 10000, /* 10 ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2305 | .block_erasers = |
| 2306 | { |
| 2307 | { |
| 2308 | .eraseblocks = { {512 * 1024, 1} }, |
| 2309 | .block_erase = erase_chip_block_jedec, |
| 2310 | } |
| 2311 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2312 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2313 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2314 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2315 | }, |
| 2316 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2317 | { |
| 2318 | .vendor = "Atmel", |
| 2319 | .name = "AT45CS1282", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2320 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2321 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2322 | .model_id = ATMEL_AT45CS1282, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2323 | .total_size = 16896 /* No power of two sizes */, |
| 2324 | .page_size = 1056 /* No power of two sizes */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2325 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2326 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2327 | .feature_bits = FEATURE_OTP, |
| 2328 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2329 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2330 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2331 | .block_erasers = |
| 2332 | { |
| 2333 | { |
| 2334 | .eraseblocks = { |
| 2335 | {8 * 1056, 1}, /* sector 0a: opcode 50h */ |
| 2336 | {248 * 1056, 1}, /* sector 0b: opcode 7Ch */ |
| 2337 | {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */ |
| 2338 | }, |
| 2339 | .block_erase = spi_erase_at45cs_sector, |
| 2340 | } |
| 2341 | }, |
| 2342 | .printlock = spi_prettyprint_status_register_plain, |
| 2343 | .gran = write_gran_1056bytes, |
| 2344 | .write = spi_write_at45db, |
| 2345 | .read = spi_read_at45db, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2346 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2347 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2348 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2349 | { |
| 2350 | .vendor = "Atmel", |
| 2351 | .name = "AT45DB011D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2352 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2353 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2354 | .model_id = ATMEL_AT45DB011D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2355 | .total_size = 128 /* or 132, determined from status register */, |
| 2356 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2357 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2358 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2359 | .feature_bits = FEATURE_OTP, |
| 2360 | .tested = TEST_UNTESTED, |
| 2361 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2362 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2363 | .block_erasers = |
| 2364 | { |
| 2365 | { |
| 2366 | .eraseblocks = { {256, 512} }, |
| 2367 | .block_erase = spi_erase_at45db_page, |
| 2368 | }, { |
| 2369 | .eraseblocks = { {8 * 256, 512/8} }, |
| 2370 | .block_erase = spi_erase_at45db_block, |
| 2371 | }, { |
| 2372 | .eraseblocks = { |
| 2373 | {8 * 256, 1}, |
| 2374 | {120 * 256, 1}, |
| 2375 | {128 * 256, 3}, |
| 2376 | }, |
| 2377 | .block_erase = spi_erase_at45db_sector |
| 2378 | }, { |
| 2379 | .eraseblocks = { {128 * 1024, 1} }, |
| 2380 | .block_erase = spi_erase_at45db_chip, |
| 2381 | } |
| 2382 | }, |
| 2383 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2384 | .printlock = spi_prettyprint_status_register_at45db, |
| 2385 | /* granularity will be set by the probing function. */ |
| 2386 | .write = spi_write_at45db, |
| 2387 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2388 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2389 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2390 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2391 | { |
| 2392 | .vendor = "Atmel", |
| 2393 | .name = "AT45DB021D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2394 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2395 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2396 | .model_id = ATMEL_AT45DB021D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2397 | .total_size = 256 /* or 264, determined from status register */, |
| 2398 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2399 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2400 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2401 | .feature_bits = FEATURE_OTP, |
| 2402 | .tested = TEST_UNTESTED, |
| 2403 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2404 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2405 | .block_erasers = |
| 2406 | { |
| 2407 | { |
| 2408 | .eraseblocks = { {256, 1024} }, |
| 2409 | .block_erase = spi_erase_at45db_page, |
| 2410 | }, { |
| 2411 | .eraseblocks = { {8 * 256, 1024/8} }, |
| 2412 | .block_erase = spi_erase_at45db_block, |
| 2413 | }, { |
| 2414 | .eraseblocks = { |
| 2415 | {8 * 256, 1}, |
| 2416 | {120 * 256, 1}, |
| 2417 | {128 * 256, 7}, |
| 2418 | }, |
| 2419 | .block_erase = spi_erase_at45db_sector |
| 2420 | }, { |
| 2421 | .eraseblocks = { {256 * 1024, 1} }, |
| 2422 | .block_erase = spi_erase_at45db_chip, |
| 2423 | } |
| 2424 | }, |
| 2425 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2426 | .printlock = spi_prettyprint_status_register_at45db, |
| 2427 | /* granularity will be set by the probing function. */ |
| 2428 | .write = spi_write_at45db, |
| 2429 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2430 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2431 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2432 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2433 | { |
| 2434 | .vendor = "Atmel", |
| 2435 | .name = "AT45DB041D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2436 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2437 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2438 | .model_id = ATMEL_AT45DB041D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2439 | .total_size = 512 /* or 528, determined from status register */, |
| 2440 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2441 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2442 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2443 | .feature_bits = FEATURE_OTP, |
| 2444 | .tested = TEST_OK_PREW, |
| 2445 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2446 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2447 | .block_erasers = |
| 2448 | { |
| 2449 | { |
| 2450 | .eraseblocks = { {256, 2048} }, |
| 2451 | .block_erase = spi_erase_at45db_page, |
| 2452 | }, { |
| 2453 | .eraseblocks = { {8 * 256, 2048/8} }, |
| 2454 | .block_erase = spi_erase_at45db_block, |
| 2455 | }, { |
| 2456 | .eraseblocks = { |
| 2457 | {8 * 256, 1}, |
| 2458 | {248 * 256, 1}, |
| 2459 | {256 * 256, 7}, |
| 2460 | }, |
| 2461 | .block_erase = spi_erase_at45db_sector |
| 2462 | }, { |
| 2463 | .eraseblocks = { {512 * 1024, 1} }, |
| 2464 | .block_erase = spi_erase_at45db_chip, |
| 2465 | } |
| 2466 | }, |
| 2467 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2468 | .printlock = spi_prettyprint_status_register_at45db, |
| 2469 | /* granularity will be set by the probing function. */ |
| 2470 | .write = spi_write_at45db, |
| 2471 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2472 | .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] | 2473 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2474 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2475 | { |
| 2476 | .vendor = "Atmel", |
| 2477 | .name = "AT45DB081D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2478 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2479 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2480 | .model_id = ATMEL_AT45DB081D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2481 | .total_size = 1024 /* or 1056, determined from status register */, |
| 2482 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2483 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2484 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2485 | .feature_bits = FEATURE_OTP, |
| 2486 | .tested = TEST_UNTESTED, |
| 2487 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2488 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2489 | .block_erasers = |
| 2490 | { |
| 2491 | { |
| 2492 | .eraseblocks = { {256, 4096} }, |
| 2493 | .block_erase = spi_erase_at45db_page, |
| 2494 | }, { |
| 2495 | .eraseblocks = { {8 * 256, 4096/8} }, |
| 2496 | .block_erase = spi_erase_at45db_block, |
| 2497 | }, { |
| 2498 | .eraseblocks = { |
| 2499 | {8 * 256, 1}, |
| 2500 | {248 * 256, 1}, |
| 2501 | {256 * 256, 15}, |
| 2502 | }, |
| 2503 | .block_erase = spi_erase_at45db_sector |
| 2504 | }, { |
| 2505 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2506 | .block_erase = spi_erase_at45db_chip, |
| 2507 | } |
| 2508 | }, |
| 2509 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2510 | .printlock = spi_prettyprint_status_register_at45db, |
| 2511 | /* granularity will be set by the probing function. */ |
| 2512 | .write = spi_write_at45db, |
| 2513 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2514 | .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] | 2515 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2516 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2517 | { |
| 2518 | .vendor = "Atmel", |
| 2519 | .name = "AT45DB161D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2520 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2521 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2522 | .model_id = ATMEL_AT45DB161D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2523 | .total_size = 2048 /* or 2112, determined from status register */, |
| 2524 | .page_size = 512 /* or 528, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2525 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2526 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2527 | .feature_bits = FEATURE_OTP, |
| 2528 | .tested = TEST_OK_PREW, |
| 2529 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2530 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2531 | .block_erasers = |
| 2532 | { |
| 2533 | { |
| 2534 | .eraseblocks = { {512, 4096} }, |
| 2535 | .block_erase = spi_erase_at45db_page, |
| 2536 | }, { |
| 2537 | .eraseblocks = { {8 * 512, 4096/8} }, |
| 2538 | .block_erase = spi_erase_at45db_block, |
| 2539 | }, { |
| 2540 | .eraseblocks = { |
| 2541 | {8 * 512, 1}, |
| 2542 | {248 * 512, 1}, |
| 2543 | {256 * 512, 15}, |
| 2544 | }, |
| 2545 | .block_erase = spi_erase_at45db_sector |
| 2546 | }, { |
| 2547 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2548 | .block_erase = spi_erase_at45db_chip, |
| 2549 | } |
| 2550 | }, |
| 2551 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2552 | .printlock = spi_prettyprint_status_register_at45db, |
| 2553 | /* granularity will be set by the probing function. */ |
| 2554 | .write = spi_write_at45db, |
| 2555 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2556 | .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] | 2557 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2558 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2559 | { |
| 2560 | .vendor = "Atmel", |
| 2561 | .name = "AT45DB321C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2562 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2563 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2564 | .model_id = ATMEL_AT45DB321C, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2565 | .total_size = 4224 /* No power of two sizes */, |
| 2566 | .page_size = 528 /* No power of two sizes */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2567 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2568 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2569 | .feature_bits = FEATURE_OTP, |
| 2570 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2571 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2572 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2573 | .block_erasers = |
| 2574 | { |
| 2575 | { |
| 2576 | .eraseblocks = { {528, 8192} }, |
| 2577 | .block_erase = spi_erase_at45db_page, |
| 2578 | }, { |
| 2579 | .eraseblocks = { {8 * 528, 8192/8} }, |
| 2580 | .block_erase = spi_erase_at45db_block, |
| 2581 | }, /* Although the datasheets describes sectors (which can be write protected) |
| 2582 | * there seems to be no erase functions for them. |
| 2583 | { |
| 2584 | .eraseblocks = { |
| 2585 | {8 * 528, 1}, |
| 2586 | {120 * 528, 1}, |
| 2587 | {128 * 528, 63}, |
| 2588 | }, |
| 2589 | .block_erase = spi_erase_at45db_sector |
| 2590 | }, */ { |
| 2591 | .eraseblocks = { {4224 * 1024, 1} }, |
| 2592 | .block_erase = spi_erase_at45db_chip, |
| 2593 | } |
| 2594 | }, |
| 2595 | .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */ |
| 2596 | .gran = write_gran_528bytes, |
| 2597 | .write = spi_write_at45db, |
| 2598 | .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2599 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2600 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2601 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2602 | { |
| 2603 | .vendor = "Atmel", |
| 2604 | .name = "AT45DB321D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2605 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2606 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2607 | .model_id = ATMEL_AT45DB321D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2608 | .total_size = 4096 /* or 4224, determined from status register */, |
| 2609 | .page_size = 512 /* or 528, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2610 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2611 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 2612 | .feature_bits = FEATURE_OTP, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2613 | .tested = TEST_UNTESTED, |
| 2614 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2615 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2616 | .block_erasers = |
| 2617 | { |
| 2618 | { |
| 2619 | .eraseblocks = { {512, 8192} }, |
| 2620 | .block_erase = spi_erase_at45db_page, |
| 2621 | }, { |
| 2622 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 2623 | .block_erase = spi_erase_at45db_block, |
| 2624 | }, { |
| 2625 | .eraseblocks = { |
| 2626 | {8 * 512, 1}, |
| 2627 | {120 * 512, 1}, |
| 2628 | {128 * 512, 63}, |
| 2629 | }, |
| 2630 | .block_erase = spi_erase_at45db_sector |
| 2631 | }, { |
| 2632 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2633 | .block_erase = spi_erase_at45db_chip, |
| 2634 | } |
| 2635 | }, |
| 2636 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2637 | .printlock = spi_prettyprint_status_register_at45db, |
| 2638 | /* granularity will be set by the probing function. */ |
| 2639 | .write = spi_write_at45db, |
| 2640 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2641 | .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
| 2642 | }, |
| 2643 | |
| 2644 | { |
| 2645 | .vendor = "Atmel", |
| 2646 | .name = "AT45DB321E", |
| 2647 | .bustype = BUS_SPI, |
| 2648 | .manufacture_id = ATMEL_ID, |
| 2649 | .model_id = ATMEL_AT45DB321C, |
| 2650 | .total_size = 4096 /* or 4224, determined from status register */, |
| 2651 | .page_size = 512 /* or 528, determined from status register */, |
| 2652 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
| 2653 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2654 | .feature_bits = FEATURE_OTP, |
| 2655 | .tested = TEST_UNTESTED, |
| 2656 | .probe = probe_spi_at45db, |
| 2657 | .probe_timing = TIMING_ZERO, |
| 2658 | .block_erasers = |
| 2659 | { |
| 2660 | { |
| 2661 | .eraseblocks = { {512, 8192} }, |
| 2662 | .block_erase = spi_erase_at45db_page, |
| 2663 | }, { |
| 2664 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 2665 | .block_erase = spi_erase_at45db_block, |
| 2666 | }, { |
| 2667 | .eraseblocks = { |
| 2668 | {8 * 512, 1}, |
| 2669 | {120 * 512, 1}, |
| 2670 | {128 * 512, 63}, |
| 2671 | }, |
| 2672 | .block_erase = spi_erase_at45db_sector |
| 2673 | }, { |
| 2674 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2675 | .block_erase = spi_erase_at45db_chip, |
| 2676 | } |
| 2677 | }, |
| 2678 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2679 | .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */ |
| 2680 | /* granularity will be set by the probing function. */ |
| 2681 | .write = spi_write_at45db, |
| 2682 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2683 | .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */ |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2684 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2685 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2686 | { |
| 2687 | .vendor = "Atmel", |
| 2688 | .name = "AT45DB642D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2689 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2690 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2691 | .model_id = ATMEL_AT45DB642D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2692 | .total_size = 8192 /* or 8448, determined from status register */, |
| 2693 | .page_size = 1024 /* or 1056, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2694 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2695 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2696 | .feature_bits = FEATURE_OTP, |
| 2697 | .tested = TEST_UNTESTED, |
| 2698 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2699 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2700 | .block_erasers = |
| 2701 | { |
| 2702 | { |
| 2703 | .eraseblocks = { {1024, 8192} }, |
| 2704 | .block_erase = spi_erase_at45db_page, |
| 2705 | }, { |
| 2706 | .eraseblocks = { {8 * 1024, 8192/8} }, |
| 2707 | .block_erase = spi_erase_at45db_block, |
| 2708 | }, { |
| 2709 | .eraseblocks = { |
| 2710 | {8 * 1024, 1}, |
| 2711 | {248 * 1024, 1}, |
| 2712 | {256 * 1024, 31}, |
| 2713 | }, |
| 2714 | .block_erase = spi_erase_at45db_sector |
| 2715 | }, { |
| 2716 | .eraseblocks = { {8192 * 1024, 1} }, |
| 2717 | .block_erase = spi_erase_at45db_chip, |
| 2718 | } |
| 2719 | }, |
| 2720 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2721 | .printlock = spi_prettyprint_status_register_at45db, |
| 2722 | /* granularity will be set by the probing function. */ |
| 2723 | .write = spi_write_at45db, |
| 2724 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2725 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2726 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2727 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2728 | { |
| 2729 | .vendor = "Atmel", |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2730 | .name = "AT49BV512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2731 | .bustype = BUS_PARALLEL, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2732 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2733 | .model_id = ATMEL_AT49BV512, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2734 | .total_size = 64, |
| 2735 | .page_size = 64, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2736 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 2737 | .tested = TEST_OK_PREW, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2738 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2739 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2740 | .block_erasers = |
| 2741 | { |
| 2742 | { |
| 2743 | .eraseblocks = { {64 * 1024, 1} }, |
| 2744 | .block_erase = erase_chip_block_jedec, |
| 2745 | } |
| 2746 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2747 | .write = write_jedec_1, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2748 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2749 | .voltage = {2700, 3600}, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2750 | }, |
| 2751 | |
| 2752 | { |
| 2753 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2754 | .name = "AT49F002(N)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2755 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2756 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2757 | .model_id = ATMEL_AT49F002N, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2758 | .total_size = 256, |
| 2759 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2760 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2761 | .tested = TEST_UNTESTED, |
| 2762 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2763 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2764 | .block_erasers = |
| 2765 | { |
| 2766 | { |
| 2767 | .eraseblocks = { |
| 2768 | {16 * 1024, 1}, |
| 2769 | {8 * 1024, 2}, |
| 2770 | {96 * 1024, 1}, |
| 2771 | {128 * 1024, 1}, |
| 2772 | }, |
| 2773 | .block_erase = erase_sector_jedec, |
| 2774 | }, { |
| 2775 | .eraseblocks = { {256 * 1024, 1} }, |
| 2776 | .block_erase = erase_chip_block_jedec, |
| 2777 | } |
| 2778 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2779 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2780 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2781 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2782 | }, |
| 2783 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2784 | { |
| 2785 | .vendor = "Atmel", |
| 2786 | .name = "AT49F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2787 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2788 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2789 | .model_id = ATMEL_AT49F002NT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2790 | .total_size = 256, |
| 2791 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2792 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2793 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2794 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2795 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2796 | .block_erasers = |
| 2797 | { |
| 2798 | { |
| 2799 | .eraseblocks = { |
| 2800 | {128 * 1024, 1}, |
| 2801 | {96 * 1024, 1}, |
| 2802 | {8 * 1024, 2}, |
| 2803 | {16 * 1024, 1}, |
| 2804 | }, |
| 2805 | .block_erase = erase_sector_jedec, |
| 2806 | }, { |
| 2807 | .eraseblocks = { {256 * 1024, 1} }, |
| 2808 | .block_erase = erase_chip_block_jedec, |
| 2809 | } |
| 2810 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2811 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2812 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2813 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2814 | }, |
| 2815 | |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 2816 | { |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 2817 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2818 | .name = "AT49(H)F010", |
| 2819 | .bustype = BUS_PARALLEL, |
| 2820 | .manufacture_id = ATMEL_ID, |
| 2821 | .model_id = ATMEL_AT49F010, |
| 2822 | .total_size = 128, |
| 2823 | .page_size = 0, /* unused */ |
| 2824 | .feature_bits = FEATURE_EITHER_RESET, |
| 2825 | .tested = TEST_OK_PREW, |
| 2826 | .probe = probe_jedec, |
| 2827 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2828 | .block_erasers = |
| 2829 | { |
| 2830 | { |
| 2831 | .eraseblocks = { {128 * 1024, 1} }, |
| 2832 | .block_erase = erase_chip_block_jedec, |
| 2833 | } |
| 2834 | }, |
| 2835 | .printlock = printlock_at49f, |
| 2836 | .write = write_jedec_1, |
| 2837 | .read = read_memmapped, |
| 2838 | .voltage = {4500, 5500}, |
| 2839 | }, |
| 2840 | |
| 2841 | { |
| 2842 | .vendor = "Atmel", |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 2843 | .name = "AT49F020", |
| 2844 | .bustype = BUS_PARALLEL, |
| 2845 | .manufacture_id = ATMEL_ID, |
| 2846 | .model_id = ATMEL_AT49F020, |
| 2847 | .total_size = 256, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2848 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 2849 | .feature_bits = FEATURE_EITHER_RESET, |
| 2850 | .tested = TEST_OK_PRE, |
| 2851 | .probe = probe_jedec, |
| 2852 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2853 | .block_erasers = |
| 2854 | { |
| 2855 | { |
| 2856 | .eraseblocks = { {256 * 1024, 1} }, |
| 2857 | .block_erase = erase_chip_block_jedec, |
| 2858 | } |
| 2859 | /* Chip features an optional permanent write protection |
| 2860 | * of the first 8 kB. The erase function is the same as |
| 2861 | * above, but 00000H to 01FFFH will not be erased. |
| 2862 | * FIXME: add another eraser when partial erasers are |
| 2863 | * supported. |
| 2864 | */ |
| 2865 | }, |
| 2866 | .printlock = printlock_at49f, |
| 2867 | .write = write_jedec_1, |
| 2868 | .read = read_memmapped, |
| 2869 | .voltage = {4500, 5500}, |
| 2870 | }, |
| 2871 | |
| 2872 | { |
| 2873 | .vendor = "Atmel", |
| 2874 | .name = "AT49F040", |
| 2875 | .bustype = BUS_PARALLEL, |
| 2876 | .manufacture_id = ATMEL_ID, |
| 2877 | .model_id = ATMEL_AT49F040, |
| 2878 | .total_size = 512, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2879 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 2880 | .feature_bits = FEATURE_EITHER_RESET, |
| 2881 | .tested = TEST_UNTESTED, |
| 2882 | .probe = probe_jedec, |
| 2883 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2884 | .block_erasers = |
| 2885 | { |
| 2886 | { |
| 2887 | .eraseblocks = { {512 * 1024, 1} }, |
| 2888 | .block_erase = erase_chip_block_jedec, |
| 2889 | } |
| 2890 | /* Chip features an optional permanent write protection |
| 2891 | * of the first 16 kB. The erase function is the same as |
| 2892 | * above, but 00000H to 03FFFH will not be erased. |
| 2893 | * FIXME: add another eraser when partial erasers are |
| 2894 | * supported. |
| 2895 | */ |
| 2896 | }, |
| 2897 | .printlock = printlock_at49f, |
| 2898 | .write = write_jedec_1, |
| 2899 | .read = read_memmapped, |
| 2900 | .voltage = {4500, 5500}, |
| 2901 | }, |
| 2902 | |
| 2903 | { |
| 2904 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2905 | .name = "AT49F080", |
| 2906 | .bustype = BUS_PARALLEL, |
| 2907 | .manufacture_id = ATMEL_ID, |
| 2908 | .model_id = ATMEL_AT49F080, |
| 2909 | .total_size = 1024, |
| 2910 | .page_size = 0, /* unused */ |
| 2911 | .feature_bits = FEATURE_EITHER_RESET, |
| 2912 | .tested = TEST_UNTESTED, |
| 2913 | .probe = probe_jedec, |
| 2914 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2915 | .block_erasers = |
| 2916 | { |
| 2917 | { |
| 2918 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2919 | .block_erase = erase_chip_block_jedec, |
| 2920 | } |
| 2921 | /* Chip features an optional permanent write protection |
| 2922 | * of the first 16 kB. The erase function is the same as |
| 2923 | * above, but 00000H to 03FFFH will not be erased. |
| 2924 | * FIXME: add another eraser when partial erasers are |
| 2925 | * supported. |
| 2926 | */ |
| 2927 | }, |
| 2928 | .printlock = printlock_at49f, |
| 2929 | .write = write_jedec_1, |
| 2930 | .read = read_memmapped, |
| 2931 | .voltage = {4500, 5500}, |
| 2932 | }, |
| 2933 | |
| 2934 | { |
| 2935 | /* 'top' version of AT49F080. equal in all aspects but the boot block address */ |
| 2936 | .vendor = "Atmel", |
| 2937 | .name = "AT49F080T", |
| 2938 | .bustype = BUS_PARALLEL, |
| 2939 | .manufacture_id = ATMEL_ID, |
| 2940 | .model_id = ATMEL_AT49F080T, |
| 2941 | .total_size = 1024, |
| 2942 | .page_size = 0, /* unused */ |
| 2943 | .feature_bits = FEATURE_EITHER_RESET, |
| 2944 | .tested = TEST_UNTESTED, |
| 2945 | .probe = probe_jedec, |
| 2946 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2947 | .block_erasers = |
| 2948 | { |
| 2949 | { |
| 2950 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2951 | .block_erase = erase_chip_block_jedec, |
| 2952 | } |
| 2953 | /* Chip features an optional permanent write protection |
| 2954 | * of the first 16 kB. The erase function is the same as |
| 2955 | * above, but FC000H to FFFFFH will not be erased. |
| 2956 | * FIXME: add another eraser when partial erasers are |
| 2957 | * supported. |
| 2958 | */ |
| 2959 | }, |
| 2960 | .printlock = printlock_at49f, |
| 2961 | .write = write_jedec_1, |
| 2962 | .read = read_memmapped, |
| 2963 | .voltage = {4500, 5500}, |
| 2964 | }, |
| 2965 | |
| 2966 | { |
| 2967 | .vendor = "Atmel", |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 2968 | .name = "AT49LH002", |
| 2969 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 2970 | .manufacture_id = ATMEL_ID, |
| 2971 | .model_id = ATMEL_AT49LH002, |
| 2972 | .total_size = 256, |
| 2973 | .page_size = 0, /* unused */ |
| 2974 | .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */ |
| 2975 | .tested = TEST_UNTESTED, |
| 2976 | .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */ |
| 2977 | .probe_timing = TIMING_FIXME, |
| 2978 | .block_erasers = |
| 2979 | { |
| 2980 | { |
| 2981 | .eraseblocks = { |
| 2982 | {64 * 1024, 3}, |
| 2983 | {32 * 1024, 1}, |
| 2984 | {8 * 1024, 2}, |
| 2985 | {16 * 1024, 1}, |
| 2986 | }, |
| 2987 | .block_erase = erase_block_82802ab, |
| 2988 | }, { |
| 2989 | .eraseblocks = { |
| 2990 | {64 * 1024, 4}, |
| 2991 | }, |
| 2992 | .block_erase = NULL, /* TODO: Implement. */ |
| 2993 | }, |
| 2994 | }, |
| 2995 | .printlock = NULL, /* TODO */ |
| 2996 | .unlock = NULL, /* unlock_82802ab() not correct(?) */ |
| 2997 | .write = write_82802ab, |
| 2998 | .read = read_memmapped, |
| 2999 | .voltage = {3000, 3600}, |
| 3000 | }, |
| 3001 | |
| 3002 | { |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3003 | .vendor = "Catalyst", |
| 3004 | .name = "CAT28F512", |
| 3005 | .bustype = BUS_PARALLEL, |
| 3006 | .manufacture_id = CATALYST_ID, |
| 3007 | .model_id = CATALYST_CAT28F512, |
| 3008 | .total_size = 64, |
| 3009 | .page_size = 0, /* unused */ |
| 3010 | .feature_bits = 0, |
| 3011 | .tested = TEST_OK_PR, |
| 3012 | .probe = probe_jedec, /* FIXME! */ |
| 3013 | .probe_timing = TIMING_ZERO, |
| 3014 | .block_erasers = |
| 3015 | { |
| 3016 | { |
| 3017 | .eraseblocks = { {64 * 1024, 1} }, |
| 3018 | .block_erase = NULL, /* TODO */ |
| 3019 | }, |
| 3020 | }, |
| 3021 | .write = NULL, /* TODO */ |
| 3022 | .read = read_memmapped, |
| 3023 | .voltage = {4500, 5500}, |
| 3024 | }, |
| 3025 | |
| 3026 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3027 | .vendor = "Bright", |
| 3028 | .name = "BM29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3029 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3030 | .manufacture_id = BRIGHT_ID, |
| 3031 | .model_id = BRIGHT_BM29F040, |
| 3032 | .total_size = 512, |
| 3033 | .page_size = 64 * 1024, |
| 3034 | .feature_bits = FEATURE_EITHER_RESET, |
| 3035 | .tested = TEST_OK_PR, |
| 3036 | .probe = probe_jedec, |
| 3037 | .probe_timing = TIMING_ZERO, |
| 3038 | .block_erasers = |
| 3039 | { |
| 3040 | { |
| 3041 | .eraseblocks = { {64 * 1024, 8} }, |
| 3042 | .block_erase = erase_sector_jedec, |
| 3043 | }, { |
| 3044 | .eraseblocks = { {512 * 1024, 1} }, |
| 3045 | .block_erase = erase_chip_block_jedec, |
| 3046 | }, |
| 3047 | }, |
| 3048 | .write = write_jedec_1, |
| 3049 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 3050 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3051 | }, |
| 3052 | |
| 3053 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3054 | .vendor = "ESMT", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3055 | .name = "F49B002UA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3056 | .bustype = BUS_PARALLEL, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3057 | .manufacture_id = ESMT_ID, |
| 3058 | .model_id = ESMT_F49B002UA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3059 | .total_size = 256, |
| 3060 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3061 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3062 | .tested = TEST_UNTESTED, |
| 3063 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3064 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3065 | .block_erasers = |
| 3066 | { |
| 3067 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 3068 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3069 | {128 * 1024, 1}, |
| 3070 | {96 * 1024, 1}, |
| 3071 | {8 * 1024, 2}, |
| 3072 | {16 * 1024, 1}, |
| 3073 | }, |
| 3074 | .block_erase = erase_sector_jedec, |
| 3075 | }, { |
| 3076 | .eraseblocks = { {256 * 1024, 1} }, |
| 3077 | .block_erase = erase_chip_block_jedec, |
| 3078 | } |
| 3079 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3080 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3081 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3082 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3083 | }, |
| 3084 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3085 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3086 | .vendor = "ESMT", |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3087 | .name = "F25L008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3088 | .bustype = BUS_SPI, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3089 | .manufacture_id = ESMT_ID, |
| 3090 | .model_id = ESMT_F25L008A, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3091 | .total_size = 1024, |
| 3092 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3093 | .feature_bits = FEATURE_WRSR_EITHER, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3094 | .tested = TEST_OK_PREW, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3095 | .probe = probe_spi_rdid, |
| 3096 | .probe_timing = TIMING_ZERO, |
| 3097 | .block_erasers = |
| 3098 | { |
| 3099 | { |
| 3100 | .eraseblocks = { {4 * 1024, 256} }, |
| 3101 | .block_erase = spi_block_erase_20, |
| 3102 | }, { |
| 3103 | .eraseblocks = { {64 * 1024, 16} }, |
| 3104 | .block_erase = spi_block_erase_d8, |
| 3105 | }, { |
| 3106 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3107 | .block_erase = spi_block_erase_60, |
| 3108 | }, { |
| 3109 | .eraseblocks = { {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 | 9a795d8 | 2010-07-14 16:19:05 +0000 | [diff] [blame] | 3115 | .write = spi_chip_write_1, |
Michael Karcher | 4497e86 | 2010-07-10 19:34:15 +0000 | [diff] [blame] | 3116 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3117 | .voltage = {2700, 3600}, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3118 | }, |
| 3119 | |
| 3120 | { |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3121 | .vendor = "Eon", |
| 3122 | .name = "EN25B05", |
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_EN25B05, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3126 | .total_size = 64, |
| 3127 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +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 | }, |
| 3141 | .block_erase = spi_block_erase_d8, |
| 3142 | }, { |
| 3143 | .eraseblocks = { {64 * 1024, 1} }, |
| 3144 | .block_erase = spi_block_erase_c7, |
| 3145 | } |
| 3146 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3147 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3148 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3149 | .write = spi_chip_write_256, |
| 3150 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3151 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3152 | }, |
| 3153 | |
| 3154 | { |
| 3155 | .vendor = "Eon", |
| 3156 | .name = "EN25B05T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3157 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3158 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3159 | .model_id = EON_EN25B05, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3160 | .total_size = 64, |
| 3161 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3162 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3163 | .tested = TEST_UNTESTED, |
| 3164 | .probe = probe_spi_rdid, |
| 3165 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3166 | .block_erasers = |
| 3167 | { |
| 3168 | { |
| 3169 | .eraseblocks = { |
| 3170 | {32 * 1024, 1}, |
| 3171 | {16 * 1024, 1}, |
| 3172 | {8 * 1024, 1}, |
| 3173 | {4 * 1024, 2}, |
| 3174 | }, |
| 3175 | .block_erase = spi_block_erase_d8, |
| 3176 | }, { |
| 3177 | .eraseblocks = { {64 * 1024, 1} }, |
| 3178 | .block_erase = spi_block_erase_c7, |
| 3179 | } |
| 3180 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3181 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3182 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3183 | .write = spi_chip_write_256, |
| 3184 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3185 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3186 | }, |
| 3187 | |
| 3188 | { |
| 3189 | .vendor = "Eon", |
| 3190 | .name = "EN25B10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3191 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3192 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3193 | .model_id = EON_EN25B10, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3194 | .total_size = 128, |
| 3195 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3196 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3197 | .tested = TEST_UNTESTED, |
| 3198 | .probe = probe_spi_rdid, |
| 3199 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3200 | .block_erasers = |
| 3201 | { |
| 3202 | { |
| 3203 | .eraseblocks = { |
| 3204 | {4 * 1024, 2}, |
| 3205 | {8 * 1024, 1}, |
| 3206 | {16 * 1024, 1}, |
| 3207 | {32 * 1024, 3}, |
| 3208 | }, |
| 3209 | .block_erase = spi_block_erase_d8, |
| 3210 | }, { |
| 3211 | .eraseblocks = { {128 * 1024, 1} }, |
| 3212 | .block_erase = spi_block_erase_c7, |
| 3213 | } |
| 3214 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3215 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3216 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3217 | .write = spi_chip_write_256, |
| 3218 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3219 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3220 | }, |
| 3221 | |
| 3222 | { |
| 3223 | .vendor = "Eon", |
| 3224 | .name = "EN25B10T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3225 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3226 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3227 | .model_id = EON_EN25B10, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3228 | .total_size = 128, |
| 3229 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3230 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 3231 | .tested = TEST_OK_PREW, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3232 | .probe = probe_spi_rdid, |
| 3233 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3234 | .block_erasers = |
| 3235 | { |
| 3236 | { |
| 3237 | .eraseblocks = { |
| 3238 | {32 * 1024, 3}, |
| 3239 | {16 * 1024, 1}, |
| 3240 | {8 * 1024, 1}, |
| 3241 | {4 * 1024, 2}, |
| 3242 | }, |
| 3243 | .block_erase = spi_block_erase_d8, |
| 3244 | }, { |
| 3245 | .eraseblocks = { {128 * 1024, 1} }, |
| 3246 | .block_erase = spi_block_erase_c7, |
| 3247 | } |
| 3248 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3249 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3250 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3251 | .write = spi_chip_write_256, |
| 3252 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3253 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3254 | }, |
| 3255 | |
| 3256 | { |
| 3257 | .vendor = "Eon", |
| 3258 | .name = "EN25B20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3259 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3260 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3261 | .model_id = EON_EN25B20, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3262 | .total_size = 256, |
| 3263 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3264 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3265 | .tested = TEST_UNTESTED, |
| 3266 | .probe = probe_spi_rdid, |
| 3267 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3268 | .block_erasers = |
| 3269 | { |
| 3270 | { |
| 3271 | .eraseblocks = { |
| 3272 | {4 * 1024, 2}, |
| 3273 | {8 * 1024, 1}, |
| 3274 | {16 * 1024, 1}, |
| 3275 | {32 * 1024, 1}, |
| 3276 | {64 * 1024, 3} |
| 3277 | }, |
| 3278 | .block_erase = spi_block_erase_d8, |
| 3279 | }, { |
| 3280 | .eraseblocks = { {256 * 1024, 1} }, |
| 3281 | .block_erase = spi_block_erase_c7, |
| 3282 | } |
| 3283 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3284 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3285 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3286 | .write = spi_chip_write_256, |
| 3287 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3288 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3289 | }, |
| 3290 | |
| 3291 | { |
| 3292 | .vendor = "Eon", |
| 3293 | .name = "EN25B20T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3294 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3295 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3296 | .model_id = EON_EN25B20, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3297 | .total_size = 256, |
| 3298 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3299 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3300 | .tested = TEST_UNTESTED, |
| 3301 | .probe = probe_spi_rdid, |
| 3302 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3303 | .block_erasers = |
| 3304 | { |
| 3305 | { |
| 3306 | .eraseblocks = { |
| 3307 | {64 * 1024, 3}, |
| 3308 | {32 * 1024, 1}, |
| 3309 | {16 * 1024, 1}, |
| 3310 | {8 * 1024, 1}, |
| 3311 | {4 * 1024, 2}, |
| 3312 | }, |
| 3313 | .block_erase = spi_block_erase_d8, |
| 3314 | }, { |
| 3315 | .eraseblocks = { {256 * 1024, 1} }, |
| 3316 | .block_erase = spi_block_erase_c7, |
| 3317 | } |
| 3318 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3319 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3320 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3321 | .write = spi_chip_write_256, |
| 3322 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3323 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3324 | }, |
| 3325 | |
| 3326 | { |
| 3327 | .vendor = "Eon", |
| 3328 | .name = "EN25B40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3329 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3330 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3331 | .model_id = EON_EN25B40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3332 | .total_size = 512, |
| 3333 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3334 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3335 | .tested = TEST_UNTESTED, |
| 3336 | .probe = probe_spi_rdid, |
| 3337 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3338 | .block_erasers = |
| 3339 | { |
| 3340 | { |
| 3341 | .eraseblocks = { |
| 3342 | {4 * 1024, 2}, |
| 3343 | {8 * 1024, 1}, |
| 3344 | {16 * 1024, 1}, |
| 3345 | {32 * 1024, 1}, |
| 3346 | {64 * 1024, 7} |
| 3347 | }, |
| 3348 | .block_erase = spi_block_erase_d8, |
| 3349 | }, { |
| 3350 | .eraseblocks = { {512 * 1024, 1} }, |
| 3351 | .block_erase = spi_block_erase_c7, |
| 3352 | } |
| 3353 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3354 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3355 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3356 | .write = spi_chip_write_256, |
| 3357 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3358 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3359 | }, |
| 3360 | |
| 3361 | { |
| 3362 | .vendor = "Eon", |
| 3363 | .name = "EN25B40T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3364 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3365 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3366 | .model_id = EON_EN25B40, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3367 | .total_size = 512, |
| 3368 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3369 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3370 | .tested = TEST_UNTESTED, |
| 3371 | .probe = probe_spi_rdid, |
| 3372 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3373 | .block_erasers = |
| 3374 | { |
| 3375 | { |
| 3376 | .eraseblocks = { |
| 3377 | {64 * 1024, 7}, |
| 3378 | {32 * 1024, 1}, |
| 3379 | {16 * 1024, 1}, |
| 3380 | {8 * 1024, 1}, |
| 3381 | {4 * 1024, 2}, |
| 3382 | }, |
| 3383 | .block_erase = spi_block_erase_d8, |
| 3384 | }, { |
| 3385 | .eraseblocks = { {512 * 1024, 1} }, |
| 3386 | .block_erase = spi_block_erase_c7, |
| 3387 | } |
| 3388 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3389 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3390 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3391 | .write = spi_chip_write_256, |
| 3392 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3393 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3394 | }, |
| 3395 | |
| 3396 | { |
| 3397 | .vendor = "Eon", |
| 3398 | .name = "EN25B80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3399 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3400 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3401 | .model_id = EON_EN25B80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3402 | .total_size = 1024, |
| 3403 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3404 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3405 | .tested = TEST_UNTESTED, |
| 3406 | .probe = probe_spi_rdid, |
| 3407 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3408 | .block_erasers = |
| 3409 | { |
| 3410 | { |
| 3411 | .eraseblocks = { |
| 3412 | {4 * 1024, 2}, |
| 3413 | {8 * 1024, 1}, |
| 3414 | {16 * 1024, 1}, |
| 3415 | {32 * 1024, 1}, |
| 3416 | {64 * 1024, 15} |
| 3417 | }, |
| 3418 | .block_erase = spi_block_erase_d8, |
| 3419 | }, { |
| 3420 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3421 | .block_erase = spi_block_erase_c7, |
| 3422 | } |
| 3423 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3424 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3425 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3426 | .write = spi_chip_write_256, |
| 3427 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3428 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3429 | }, |
| 3430 | |
| 3431 | { |
| 3432 | .vendor = "Eon", |
| 3433 | .name = "EN25B80T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3434 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3435 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3436 | .model_id = EON_EN25B80, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3437 | .total_size = 1024, |
| 3438 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3439 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3440 | .tested = TEST_UNTESTED, |
| 3441 | .probe = probe_spi_rdid, |
| 3442 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3443 | .block_erasers = |
| 3444 | { |
| 3445 | { |
| 3446 | .eraseblocks = { |
| 3447 | {64 * 1024, 15}, |
| 3448 | {32 * 1024, 1}, |
| 3449 | {16 * 1024, 1}, |
| 3450 | {8 * 1024, 1}, |
| 3451 | {4 * 1024, 2}, |
| 3452 | }, |
| 3453 | .block_erase = spi_block_erase_d8, |
| 3454 | }, { |
| 3455 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3456 | .block_erase = spi_block_erase_c7, |
| 3457 | } |
| 3458 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3459 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3460 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3461 | .write = spi_chip_write_256, |
| 3462 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3463 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3464 | }, |
| 3465 | |
| 3466 | { |
| 3467 | .vendor = "Eon", |
| 3468 | .name = "EN25B16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3469 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3470 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3471 | .model_id = EON_EN25B16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3472 | .total_size = 2048, |
| 3473 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3474 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3475 | .tested = TEST_UNTESTED, |
| 3476 | .probe = probe_spi_rdid, |
| 3477 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3478 | .block_erasers = |
| 3479 | { |
| 3480 | { |
| 3481 | .eraseblocks = { |
| 3482 | {4 * 1024, 2}, |
| 3483 | {8 * 1024, 1}, |
| 3484 | {16 * 1024, 1}, |
| 3485 | {32 * 1024, 1}, |
| 3486 | {64 * 1024, 31}, |
| 3487 | }, |
| 3488 | .block_erase = spi_block_erase_d8, |
| 3489 | }, { |
| 3490 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3491 | .block_erase = spi_block_erase_c7, |
| 3492 | } |
| 3493 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3494 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3495 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3496 | .write = spi_chip_write_256, |
| 3497 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3498 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3499 | }, |
| 3500 | |
| 3501 | { |
| 3502 | .vendor = "Eon", |
| 3503 | .name = "EN25B16T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3504 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3505 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3506 | .model_id = EON_EN25B16, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3507 | .total_size = 2048, |
| 3508 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3509 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3510 | .tested = TEST_UNTESTED, |
| 3511 | .probe = probe_spi_rdid, |
| 3512 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3513 | .block_erasers = |
| 3514 | { |
| 3515 | { |
| 3516 | .eraseblocks = { |
| 3517 | {64 * 1024, 31}, |
| 3518 | {32 * 1024, 1}, |
| 3519 | {16 * 1024, 1}, |
| 3520 | {8 * 1024, 1}, |
| 3521 | {4 * 1024, 2}, |
| 3522 | }, |
| 3523 | .block_erase = spi_block_erase_d8, |
| 3524 | }, { |
| 3525 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3526 | .block_erase = spi_block_erase_c7, |
| 3527 | } |
| 3528 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3529 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3530 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3531 | .write = spi_chip_write_256, |
| 3532 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3533 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3534 | }, |
| 3535 | |
| 3536 | { |
| 3537 | .vendor = "Eon", |
| 3538 | .name = "EN25B32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3539 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3540 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3541 | .model_id = EON_EN25B32, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3542 | .total_size = 4096, |
| 3543 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3544 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3545 | .tested = TEST_UNTESTED, |
| 3546 | .probe = probe_spi_rdid, |
| 3547 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3548 | .block_erasers = |
| 3549 | { |
| 3550 | { |
| 3551 | .eraseblocks = { |
| 3552 | {4 * 1024, 2}, |
| 3553 | {8 * 1024, 1}, |
| 3554 | {16 * 1024, 1}, |
| 3555 | {32 * 1024, 1}, |
| 3556 | {64 * 1024, 63}, |
| 3557 | }, |
| 3558 | .block_erase = spi_block_erase_d8, |
| 3559 | }, { |
| 3560 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3561 | .block_erase = spi_block_erase_c7, |
| 3562 | } |
| 3563 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3564 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3565 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3566 | .write = spi_chip_write_256, |
| 3567 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3568 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3569 | }, |
| 3570 | |
| 3571 | { |
| 3572 | .vendor = "Eon", |
| 3573 | .name = "EN25B32T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3574 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3575 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3576 | .model_id = EON_EN25B32, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3577 | .total_size = 4096, |
| 3578 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3579 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3580 | .tested = TEST_UNTESTED, |
| 3581 | .probe = probe_spi_rdid, |
| 3582 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3583 | .block_erasers = |
| 3584 | { |
| 3585 | { |
| 3586 | .eraseblocks = { |
| 3587 | {64 * 1024, 63}, |
| 3588 | {32 * 1024, 1}, |
| 3589 | {16 * 1024, 1}, |
| 3590 | {8 * 1024, 1}, |
| 3591 | {4 * 1024, 2}, |
| 3592 | }, |
| 3593 | .block_erase = spi_block_erase_d8, |
| 3594 | }, { |
| 3595 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3596 | .block_erase = spi_block_erase_c7, |
| 3597 | } |
| 3598 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3599 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3600 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3601 | .write = spi_chip_write_256, |
| 3602 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3603 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3604 | }, |
| 3605 | |
| 3606 | { |
| 3607 | .vendor = "Eon", |
| 3608 | .name = "EN25B64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3609 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3610 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3611 | .model_id = EON_EN25B64, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3612 | .total_size = 8192, |
| 3613 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3614 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3615 | .tested = TEST_UNTESTED, |
| 3616 | .probe = probe_spi_rdid, |
| 3617 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3618 | .block_erasers = |
| 3619 | { |
| 3620 | { |
| 3621 | .eraseblocks = { |
| 3622 | {4 * 1024, 2}, |
| 3623 | {8 * 1024, 1}, |
| 3624 | {16 * 1024, 1}, |
| 3625 | {32 * 1024, 1}, |
| 3626 | {64 * 1024, 127}, |
| 3627 | }, |
| 3628 | .block_erase = spi_block_erase_d8, |
| 3629 | }, { |
| 3630 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3631 | .block_erase = spi_block_erase_c7, |
| 3632 | } |
| 3633 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3634 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3635 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3636 | .write = spi_chip_write_256, |
| 3637 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3638 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3639 | }, |
| 3640 | |
| 3641 | { |
| 3642 | .vendor = "Eon", |
| 3643 | .name = "EN25B64T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3644 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3645 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3646 | .model_id = EON_EN25B64, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3647 | .total_size = 8192, |
| 3648 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3649 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3650 | .tested = TEST_UNTESTED, |
| 3651 | .probe = probe_spi_rdid, |
| 3652 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3653 | .block_erasers = |
| 3654 | { |
| 3655 | { |
| 3656 | .eraseblocks = { |
| 3657 | {64 * 1024, 127}, |
| 3658 | {32 * 1024, 1}, |
| 3659 | {16 * 1024, 1}, |
| 3660 | {8 * 1024, 1}, |
| 3661 | {4 * 1024, 2}, |
| 3662 | }, |
| 3663 | .block_erase = spi_block_erase_d8, |
| 3664 | }, { |
| 3665 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3666 | .block_erase = spi_block_erase_c7, |
| 3667 | } |
| 3668 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3669 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3670 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3671 | .write = spi_chip_write_256, |
| 3672 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3673 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3674 | }, |
| 3675 | |
| 3676 | { |
| 3677 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3678 | .name = "EN25F05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3679 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3680 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3681 | .model_id = EON_EN25F05, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3682 | .total_size = 64, |
| 3683 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3684 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 3685 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3686 | .probe = probe_spi_rdid, |
| 3687 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3688 | .block_erasers = |
| 3689 | { |
| 3690 | { |
| 3691 | .eraseblocks = { {4 * 1024, 16} }, |
| 3692 | .block_erase = spi_block_erase_20, |
| 3693 | }, { |
| 3694 | .eraseblocks = { {32 * 1024, 2} }, |
| 3695 | .block_erase = spi_block_erase_d8, |
| 3696 | }, { |
| 3697 | .eraseblocks = { {32 * 1024, 2} }, |
| 3698 | .block_erase = spi_block_erase_52, |
| 3699 | }, { |
| 3700 | .eraseblocks = { {64 * 1024, 1} }, |
| 3701 | .block_erase = spi_block_erase_60, |
| 3702 | }, { |
| 3703 | .eraseblocks = { {64 * 1024, 1} }, |
| 3704 | .block_erase = spi_block_erase_c7, |
| 3705 | } |
| 3706 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3707 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3708 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3709 | .write = spi_chip_write_256, |
| 3710 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3711 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3712 | }, |
| 3713 | |
| 3714 | { |
| 3715 | .vendor = "Eon", |
| 3716 | .name = "EN25F10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3717 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3718 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3719 | .model_id = EON_EN25F10, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3720 | .total_size = 128, |
| 3721 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3722 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3723 | .tested = TEST_UNTESTED, |
| 3724 | .probe = probe_spi_rdid, |
| 3725 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3726 | .block_erasers = |
| 3727 | { |
| 3728 | { |
| 3729 | .eraseblocks = { {4 * 1024, 32} }, |
| 3730 | .block_erase = spi_block_erase_20, |
| 3731 | }, { |
| 3732 | .eraseblocks = { {32 * 1024, 4} }, |
| 3733 | .block_erase = spi_block_erase_d8, |
| 3734 | }, { |
| 3735 | .eraseblocks = { {32 * 1024, 4} }, |
| 3736 | .block_erase = spi_block_erase_52, |
| 3737 | }, { |
| 3738 | .eraseblocks = { {128 * 1024, 1} }, |
| 3739 | .block_erase = spi_block_erase_60, |
| 3740 | }, { |
| 3741 | .eraseblocks = { {128 * 1024, 1} }, |
| 3742 | .block_erase = spi_block_erase_c7, |
| 3743 | } |
| 3744 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3745 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3746 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3747 | .write = spi_chip_write_256, |
| 3748 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3749 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3750 | }, |
| 3751 | |
| 3752 | { |
| 3753 | .vendor = "Eon", |
| 3754 | .name = "EN25F20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3755 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3756 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3757 | .model_id = EON_EN25F20, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3758 | .total_size = 256, |
| 3759 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3760 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3761 | .tested = TEST_UNTESTED, |
| 3762 | .probe = probe_spi_rdid, |
| 3763 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3764 | .block_erasers = |
| 3765 | { |
| 3766 | { |
| 3767 | .eraseblocks = { {4 * 1024, 64} }, |
| 3768 | .block_erase = spi_block_erase_20, |
| 3769 | }, { |
| 3770 | .eraseblocks = { {64 * 1024, 4} }, |
| 3771 | .block_erase = spi_block_erase_d8, |
| 3772 | }, { |
| 3773 | .eraseblocks = { {64 * 1024, 4} }, |
| 3774 | .block_erase = spi_block_erase_52, |
| 3775 | }, { |
| 3776 | .eraseblocks = { {256 * 1024, 1} }, |
| 3777 | .block_erase = spi_block_erase_60, |
| 3778 | }, { |
| 3779 | .eraseblocks = { {256 * 1024, 1} }, |
| 3780 | .block_erase = spi_block_erase_c7, |
| 3781 | } |
| 3782 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3783 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3784 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3785 | .write = spi_chip_write_256, |
| 3786 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3787 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3788 | }, |
| 3789 | |
| 3790 | { |
| 3791 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3792 | .name = "EN25F40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3793 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3794 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3795 | .model_id = EON_EN25F40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3796 | .total_size = 512, |
| 3797 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3798 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | faaa2b2 | 2009-06-22 10:06:28 +0000 | [diff] [blame] | 3799 | .tested = TEST_OK_PROBE, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3800 | .probe = probe_spi_rdid, |
| 3801 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3802 | .block_erasers = |
| 3803 | { |
| 3804 | { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3805 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3806 | .block_erase = spi_block_erase_20, |
| 3807 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3808 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3809 | .block_erase = spi_block_erase_d8, |
| 3810 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3811 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3812 | .block_erase = spi_block_erase_60, |
| 3813 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3814 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3815 | .block_erase = spi_block_erase_c7, |
| 3816 | }, |
| 3817 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3818 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3819 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3820 | .write = spi_chip_write_256, |
| 3821 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3822 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3823 | }, |
| 3824 | |
| 3825 | { |
| 3826 | .vendor = "Eon", |
| 3827 | .name = "EN25F80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3828 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3829 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3830 | .model_id = EON_EN25F80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3831 | .total_size = 1024, |
| 3832 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3833 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 3834 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3835 | .probe = probe_spi_rdid, |
| 3836 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3837 | .block_erasers = |
| 3838 | { |
| 3839 | { |
| 3840 | .eraseblocks = { {4 * 1024, 256} }, |
| 3841 | .block_erase = spi_block_erase_20, |
| 3842 | }, { |
| 3843 | .eraseblocks = { {64 * 1024, 16} }, |
| 3844 | .block_erase = spi_block_erase_d8, |
| 3845 | }, { |
| 3846 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3847 | .block_erase = spi_block_erase_60, |
| 3848 | }, { |
| 3849 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3850 | .block_erase = spi_block_erase_c7, |
| 3851 | } |
| 3852 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3853 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3854 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3855 | .write = spi_chip_write_256, |
| 3856 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3857 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3858 | }, |
| 3859 | |
| 3860 | { |
| 3861 | .vendor = "Eon", |
| 3862 | .name = "EN25F16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3863 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3864 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3865 | .model_id = EON_EN25F16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3866 | .total_size = 2048, |
| 3867 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3868 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 3869 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3870 | .probe = probe_spi_rdid, |
| 3871 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3872 | .block_erasers = |
| 3873 | { |
| 3874 | { |
| 3875 | .eraseblocks = { {4 * 1024, 512} }, |
| 3876 | .block_erase = spi_block_erase_20, |
| 3877 | }, { |
| 3878 | .eraseblocks = { {64 * 1024, 32} }, |
| 3879 | .block_erase = spi_block_erase_d8, |
| 3880 | }, { |
| 3881 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3882 | .block_erase = spi_block_erase_60, |
| 3883 | }, { |
| 3884 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3885 | .block_erase = spi_block_erase_c7, |
| 3886 | } |
| 3887 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3888 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3889 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3890 | .write = spi_chip_write_256, |
| 3891 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3892 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3893 | }, |
| 3894 | |
| 3895 | { |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3896 | .vendor = "Eon", |
| 3897 | .name = "EN25F32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3898 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3899 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3900 | .model_id = EON_EN25F32, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3901 | .total_size = 4096, |
| 3902 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3903 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3904 | .tested = TEST_UNTESTED, |
| 3905 | .probe = probe_spi_rdid, |
| 3906 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3907 | .block_erasers = |
| 3908 | { |
| 3909 | { |
| 3910 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3911 | .block_erase = spi_block_erase_20, |
| 3912 | }, { |
| 3913 | .eraseblocks = { {64 * 1024, 64} }, |
| 3914 | .block_erase = spi_block_erase_d8, |
| 3915 | }, { |
| 3916 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3917 | .block_erase = spi_block_erase_60, |
| 3918 | }, { |
| 3919 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3920 | .block_erase = spi_block_erase_c7, |
| 3921 | } |
| 3922 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3923 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3924 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3925 | .write = spi_chip_write_256, |
| 3926 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3927 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3928 | }, |
| 3929 | |
| 3930 | { |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 3931 | .vendor = "Eon", |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 3932 | .name = "EN25F64", |
| 3933 | .bustype = BUS_SPI, |
| 3934 | .manufacture_id = EON_ID_NOPREFIX, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 3935 | .model_id = EON_EN25F64, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 3936 | .total_size = 8192, |
| 3937 | .page_size = 256, |
| 3938 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 3939 | .tested = TEST_OK_PREW, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 3940 | .probe = probe_spi_rdid, |
| 3941 | .probe_timing = TIMING_ZERO, |
| 3942 | .block_erasers = |
| 3943 | { |
| 3944 | { |
| 3945 | .eraseblocks = { {4 * 1024, 2048} }, |
| 3946 | .block_erase = spi_block_erase_20, |
| 3947 | }, { |
| 3948 | .eraseblocks = { {64 * 1024, 128} }, |
| 3949 | .block_erase = spi_block_erase_d8, |
| 3950 | }, { |
| 3951 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3952 | .block_erase = spi_block_erase_60, |
| 3953 | }, { |
| 3954 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3955 | .block_erase = spi_block_erase_c7, |
| 3956 | } |
| 3957 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3958 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 3959 | .unlock = spi_disable_blockprotect, |
| 3960 | .write = spi_chip_write_256, |
| 3961 | .read = spi_chip_read, |
| 3962 | .voltage = {2700, 3600}, |
| 3963 | }, |
| 3964 | |
| 3965 | { |
| 3966 | .vendor = "Eon", |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3967 | .name = "EN25Q40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3968 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3969 | .manufacture_id = EON_ID_NOPREFIX, |
| 3970 | .model_id = EON_EN25Q40, |
| 3971 | .total_size = 512, |
| 3972 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3973 | /* OTP: 256B total; enter 0x3A */ |
| 3974 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3975 | .tested = TEST_UNTESTED, |
| 3976 | .probe = probe_spi_rdid, |
| 3977 | .probe_timing = TIMING_ZERO, |
| 3978 | .block_erasers = |
| 3979 | { |
| 3980 | { |
| 3981 | .eraseblocks = { {4 * 1024, 128} }, |
| 3982 | .block_erase = spi_block_erase_20, |
| 3983 | }, { |
| 3984 | .eraseblocks = { {64 * 1024, 8} }, |
| 3985 | .block_erase = spi_block_erase_d8, |
| 3986 | }, { |
| 3987 | .eraseblocks = { {512 * 1024, 1} }, |
| 3988 | .block_erase = spi_block_erase_60, |
| 3989 | }, { |
| 3990 | .eraseblocks = { {512 * 1024, 1} }, |
| 3991 | .block_erase = spi_block_erase_c7, |
| 3992 | } |
| 3993 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3994 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3995 | .unlock = spi_disable_blockprotect, |
| 3996 | .write = spi_chip_write_256, |
| 3997 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3998 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3999 | }, |
| 4000 | |
| 4001 | { |
| 4002 | .vendor = "Eon", |
| 4003 | .name = "EN25Q80(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4004 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4005 | .manufacture_id = EON_ID_NOPREFIX, |
| 4006 | .model_id = EON_EN25Q80, |
| 4007 | .total_size = 1024, |
| 4008 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4009 | /* OTP: 256B total; enter 0x3A */ |
| 4010 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4011 | .tested = TEST_UNTESTED, |
| 4012 | .probe = probe_spi_rdid, |
| 4013 | .probe_timing = TIMING_ZERO, |
| 4014 | .block_erasers = |
| 4015 | { |
| 4016 | { |
| 4017 | .eraseblocks = { {4 * 1024, 256} }, |
| 4018 | .block_erase = spi_block_erase_20, |
| 4019 | }, { |
| 4020 | .eraseblocks = { {64 * 1024, 16} }, |
| 4021 | .block_erase = spi_block_erase_d8, |
| 4022 | }, { |
| 4023 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4024 | .block_erase = spi_block_erase_60, |
| 4025 | }, { |
| 4026 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4027 | .block_erase = spi_block_erase_c7, |
| 4028 | } |
| 4029 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4030 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4031 | .unlock = spi_disable_blockprotect, |
| 4032 | .write = spi_chip_write_256, |
| 4033 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4034 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4035 | }, |
| 4036 | |
| 4037 | { |
| 4038 | /* Note: EN25D16 is an evil twin which shares the model ID |
| 4039 | but has different write protection capabilities */ |
| 4040 | .vendor = "Eon", |
| 4041 | .name = "EN25Q16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4042 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4043 | .manufacture_id = EON_ID_NOPREFIX, |
| 4044 | .model_id = EON_EN25Q16, |
| 4045 | .total_size = 2048, |
| 4046 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4047 | /* OTP: D16 512B/Q16 128B total; enter 0x3A */ |
| 4048 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4049 | .tested = TEST_UNTESTED, |
| 4050 | .probe = probe_spi_rdid, |
| 4051 | .probe_timing = TIMING_ZERO, |
| 4052 | .block_erasers = |
| 4053 | { |
| 4054 | { |
| 4055 | .eraseblocks = { {4 * 1024, 512} }, |
| 4056 | .block_erase = spi_block_erase_20, |
| 4057 | }, { |
| 4058 | .eraseblocks = { {64 * 1024, 32} }, |
| 4059 | .block_erase = spi_block_erase_d8, |
| 4060 | }, { |
| 4061 | /* not supported by Q16 version */ |
| 4062 | .eraseblocks = { {64 * 1024, 32} }, |
| 4063 | .block_erase = spi_block_erase_52, |
| 4064 | }, { |
| 4065 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4066 | .block_erase = spi_block_erase_60, |
| 4067 | }, { |
| 4068 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4069 | .block_erase = spi_block_erase_c7, |
| 4070 | } |
| 4071 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4072 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4073 | .unlock = spi_disable_blockprotect, |
| 4074 | .write = spi_chip_write_256, |
| 4075 | .read = spi_chip_read, |
| 4076 | .voltage = {2700, 3600}, |
| 4077 | }, |
| 4078 | |
| 4079 | { |
| 4080 | .vendor = "Eon", |
| 4081 | .name = "EN25Q32(A/B)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4082 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4083 | .manufacture_id = EON_ID_NOPREFIX, |
| 4084 | .model_id = EON_EN25Q32, |
| 4085 | .total_size = 4096, |
| 4086 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4087 | /* OTP: 512B total; enter 0x3A */ |
| 4088 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4089 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4090 | .probe = probe_spi_rdid, |
| 4091 | .probe_timing = TIMING_ZERO, |
| 4092 | .block_erasers = |
| 4093 | { |
| 4094 | { |
| 4095 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4096 | .block_erase = spi_block_erase_20, |
| 4097 | }, { |
| 4098 | .eraseblocks = { {64 * 1024, 64} }, |
| 4099 | .block_erase = spi_block_erase_d8, |
| 4100 | }, { |
| 4101 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4102 | .block_erase = spi_block_erase_60, |
| 4103 | }, { |
| 4104 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4105 | .block_erase = spi_block_erase_c7, |
| 4106 | } |
| 4107 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4108 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4109 | .unlock = spi_disable_blockprotect, |
| 4110 | .write = spi_chip_write_256, |
| 4111 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4112 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4113 | }, |
| 4114 | |
| 4115 | { |
| 4116 | .vendor = "Eon", |
| 4117 | .name = "EN25Q64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4118 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4119 | .manufacture_id = EON_ID_NOPREFIX, |
| 4120 | .model_id = EON_EN25Q64, |
| 4121 | .total_size = 8192, |
| 4122 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4123 | /* OTP: 512B total; enter 0x3A */ |
| 4124 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4125 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4126 | .probe = probe_spi_rdid, |
| 4127 | .probe_timing = TIMING_ZERO, |
| 4128 | .block_erasers = |
| 4129 | { |
| 4130 | { |
| 4131 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4132 | .block_erase = spi_block_erase_20, |
| 4133 | }, { |
| 4134 | .eraseblocks = { {64 * 1024, 128} }, |
| 4135 | .block_erase = spi_block_erase_d8, |
| 4136 | }, { |
| 4137 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4138 | .block_erase = spi_block_erase_60, |
| 4139 | }, { |
| 4140 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4141 | .block_erase = spi_block_erase_c7, |
| 4142 | } |
| 4143 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4144 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4145 | .unlock = spi_disable_blockprotect, |
| 4146 | .write = spi_chip_write_256, |
| 4147 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4148 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4149 | }, |
| 4150 | |
| 4151 | { |
| 4152 | .vendor = "Eon", |
| 4153 | .name = "EN25Q128", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4154 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4155 | .manufacture_id = EON_ID_NOPREFIX, |
| 4156 | .model_id = EON_EN25Q128, |
| 4157 | .total_size = 16384, |
| 4158 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4159 | /* OTP: 512B total; enter 0x3A */ |
| 4160 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4161 | .tested = TEST_UNTESTED, |
| 4162 | .probe = probe_spi_rdid, |
| 4163 | .probe_timing = TIMING_ZERO, |
| 4164 | .block_erasers = |
| 4165 | { |
| 4166 | { |
| 4167 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4168 | .block_erase = spi_block_erase_20, |
| 4169 | }, { |
| 4170 | .eraseblocks = { {64 * 1024, 256} }, |
| 4171 | .block_erase = spi_block_erase_d8, |
| 4172 | }, { |
| 4173 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4174 | .block_erase = spi_block_erase_60, |
| 4175 | }, { |
| 4176 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4177 | .block_erase = spi_block_erase_c7, |
| 4178 | } |
| 4179 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4180 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4181 | .unlock = spi_disable_blockprotect, |
| 4182 | .write = spi_chip_write_256, |
| 4183 | .read = spi_chip_read, |
| 4184 | }, |
| 4185 | |
| 4186 | { |
| 4187 | .vendor = "Eon", |
| 4188 | .name = "EN25QH16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4189 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4190 | .manufacture_id = EON_ID_NOPREFIX, |
| 4191 | .model_id = EON_EN25QH16, |
| 4192 | .total_size = 2048, |
| 4193 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4194 | /* supports SFDP */ |
| 4195 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4196 | /* QPI enable 0x38, disable 0xFF */ |
| 4197 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 4198 | .tested = TEST_OK_PR, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4199 | .probe = probe_spi_rdid, |
| 4200 | .probe_timing = TIMING_ZERO, |
| 4201 | .block_erasers = |
| 4202 | { |
| 4203 | { |
| 4204 | .eraseblocks = { {4 * 1024, 512} }, |
| 4205 | .block_erase = spi_block_erase_20, |
| 4206 | }, { |
| 4207 | .eraseblocks = { {64 * 1024, 32} }, |
| 4208 | .block_erase = spi_block_erase_d8, |
| 4209 | }, { |
| 4210 | .eraseblocks = { {1024 * 2048, 1} }, |
| 4211 | .block_erase = spi_block_erase_60, |
| 4212 | }, { |
| 4213 | .eraseblocks = { {1024 * 2048, 1} }, |
| 4214 | .block_erase = spi_block_erase_c7, |
| 4215 | } |
| 4216 | }, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4217 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 4218 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4219 | .write = spi_chip_write_256, |
| 4220 | .read = spi_chip_read, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 4221 | .voltage = {2700, 3600}, |
| 4222 | }, |
| 4223 | |
| 4224 | { |
| 4225 | .vendor = "Eon", |
| 4226 | .name = "EN25QH32", |
| 4227 | .bustype = BUS_SPI, |
| 4228 | .manufacture_id = EON_ID_NOPREFIX, |
| 4229 | .model_id = EON_EN25QH32, |
| 4230 | .total_size = 4096, |
| 4231 | .page_size = 256, |
| 4232 | /* supports SFDP */ |
| 4233 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4234 | /* QPI enable 0x38, disable 0xFF */ |
| 4235 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 4236 | .tested = TEST_UNTESTED, |
| 4237 | .probe = probe_spi_rdid, |
| 4238 | .probe_timing = TIMING_ZERO, |
| 4239 | .block_erasers = |
| 4240 | { |
| 4241 | { |
| 4242 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4243 | .block_erase = spi_block_erase_20, |
| 4244 | }, { |
| 4245 | .eraseblocks = { {64 * 1024, 64} }, |
| 4246 | .block_erase = spi_block_erase_d8, |
| 4247 | }, { |
| 4248 | .eraseblocks = { {1024 * 4096, 1} }, |
| 4249 | .block_erase = spi_block_erase_60, |
| 4250 | }, { |
| 4251 | .eraseblocks = { {1024 * 4096, 1} }, |
| 4252 | .block_erase = spi_block_erase_c7, |
| 4253 | } |
| 4254 | }, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4255 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 4256 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4257 | .write = spi_chip_write_256, |
| 4258 | .read = spi_chip_read, |
| 4259 | .voltage = {2700, 3600}, |
| 4260 | }, |
| 4261 | |
| 4262 | { |
| 4263 | .vendor = "Eon", |
| 4264 | .name = "EN25QH64", |
| 4265 | .bustype = BUS_SPI, |
| 4266 | .manufacture_id = EON_ID_NOPREFIX, |
| 4267 | .model_id = EON_EN25QH64, |
| 4268 | .total_size = 8192, |
| 4269 | .page_size = 256, |
| 4270 | /* supports SFDP */ |
| 4271 | /* OTP: 512B total; enter 0x3A */ |
| 4272 | /* QPI enable 0x38, disable 0xFF */ |
| 4273 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 4274 | .tested = TEST_OK_PR, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4275 | .probe = probe_spi_rdid, |
| 4276 | .probe_timing = TIMING_ZERO, |
| 4277 | .block_erasers = { |
| 4278 | { |
| 4279 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4280 | .block_erase = spi_block_erase_20, |
| 4281 | }, { |
| 4282 | .eraseblocks = { {64 * 1024, 128} }, |
| 4283 | .block_erase = spi_block_erase_d8, |
| 4284 | }, { |
| 4285 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 4286 | .block_erase = spi_block_erase_60, |
| 4287 | }, { |
| 4288 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 4289 | .block_erase = spi_block_erase_c7, |
| 4290 | } |
| 4291 | }, |
| 4292 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 4293 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4294 | .write = spi_chip_write_256, |
| 4295 | .read = spi_chip_read, |
| 4296 | .voltage = {2700, 3600}, |
| 4297 | }, |
| 4298 | |
| 4299 | { |
| 4300 | .vendor = "Eon", |
| 4301 | .name = "EN25QH128", |
| 4302 | .bustype = BUS_SPI, |
| 4303 | .manufacture_id = EON_ID_NOPREFIX, |
| 4304 | .model_id = EON_EN25QH128, |
| 4305 | .total_size = 16384, |
| 4306 | .page_size = 256, |
| 4307 | /* supports SFDP */ |
| 4308 | /* OTP: 512B total; enter 0x3A */ |
| 4309 | /* QPI enable 0x38, disable 0xFF */ |
| 4310 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4311 | .tested = TEST_UNTESTED, |
| 4312 | .probe = probe_spi_rdid, |
| 4313 | .probe_timing = TIMING_ZERO, |
| 4314 | .block_erasers = { |
| 4315 | { |
| 4316 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4317 | .block_erase = spi_block_erase_20, |
| 4318 | }, { |
| 4319 | .eraseblocks = { {64 * 1024, 256} }, |
| 4320 | .block_erase = spi_block_erase_d8, |
| 4321 | }, { |
| 4322 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 4323 | .block_erase = spi_block_erase_60, |
| 4324 | }, { |
| 4325 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 4326 | .block_erase = spi_block_erase_c7, |
| 4327 | } |
| 4328 | }, |
| 4329 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 4330 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4331 | .write = spi_chip_write_256, |
| 4332 | .read = spi_chip_read, |
| 4333 | .voltage = {2700, 3600}, |
| 4334 | }, |
| 4335 | |
| 4336 | { |
| 4337 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4338 | .name = "EN25S10", |
| 4339 | .bustype = BUS_SPI, |
| 4340 | .manufacture_id = EON_ID_NOPREFIX, |
| 4341 | .model_id = EON_EN25S10, |
| 4342 | .total_size = 128, |
| 4343 | .page_size = 256, |
| 4344 | /* OTP: 256B total; enter 0x3A */ |
| 4345 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4346 | .tested = TEST_UNTESTED, |
| 4347 | .probe = probe_spi_rdid, |
| 4348 | .probe_timing = TIMING_ZERO, |
| 4349 | .block_erasers = { |
| 4350 | { |
| 4351 | .eraseblocks = { {4 * 1024, 32} }, |
| 4352 | .block_erase = spi_block_erase_20, |
| 4353 | }, { |
| 4354 | .eraseblocks = { {32 * 1024, 4} }, |
| 4355 | .block_erase = spi_block_erase_52, |
| 4356 | }, { |
| 4357 | .eraseblocks = { {128 * 1024, 1} }, |
| 4358 | .block_erase = spi_block_erase_60, |
| 4359 | }, { |
| 4360 | .eraseblocks = { {128 * 1024, 1} }, |
| 4361 | .block_erase = spi_block_erase_c7, |
| 4362 | } |
| 4363 | }, |
| 4364 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 4365 | .unlock = spi_disable_blockprotect, |
| 4366 | .write = spi_chip_write_256, |
| 4367 | .read = spi_chip_read, |
| 4368 | .voltage = {1650, 1950}, |
| 4369 | }, |
| 4370 | |
| 4371 | { |
| 4372 | .vendor = "Eon", |
| 4373 | .name = "EN25S20", |
| 4374 | .bustype = BUS_SPI, |
| 4375 | .manufacture_id = EON_ID_NOPREFIX, |
| 4376 | .model_id = EON_EN25S20, |
| 4377 | .total_size = 256, |
| 4378 | .page_size = 256, |
| 4379 | /* OTP: 256B total; enter 0x3A */ |
| 4380 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4381 | .tested = TEST_UNTESTED, |
| 4382 | .probe = probe_spi_rdid, |
| 4383 | .probe_timing = TIMING_ZERO, |
| 4384 | .block_erasers = { |
| 4385 | { |
| 4386 | .eraseblocks = { {4 * 1024, 64} }, |
| 4387 | .block_erase = spi_block_erase_20, |
| 4388 | }, { |
| 4389 | .eraseblocks = { {64 * 1024, 4} }, |
| 4390 | .block_erase = spi_block_erase_d8, |
| 4391 | }, { |
| 4392 | .eraseblocks = { {256 * 1024, 1} }, |
| 4393 | .block_erase = spi_block_erase_60, |
| 4394 | }, { |
| 4395 | .eraseblocks = { {256 * 1024, 1} }, |
| 4396 | .block_erase = spi_block_erase_c7, |
| 4397 | } |
| 4398 | }, |
| 4399 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 4400 | .unlock = spi_disable_blockprotect, |
| 4401 | .write = spi_chip_write_256, |
| 4402 | .read = spi_chip_read, |
| 4403 | .voltage = {1650, 1950}, |
| 4404 | }, |
| 4405 | |
| 4406 | { |
| 4407 | .vendor = "Eon", |
| 4408 | .name = "EN25S40", |
| 4409 | .bustype = BUS_SPI, |
| 4410 | .manufacture_id = EON_ID_NOPREFIX, |
| 4411 | .model_id = EON_EN25S40, |
| 4412 | .total_size = 512, |
| 4413 | .page_size = 256, |
| 4414 | /* OTP: 256B total; enter 0x3A */ |
| 4415 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4416 | .tested = TEST_UNTESTED, |
| 4417 | .probe = probe_spi_rdid, |
| 4418 | .probe_timing = TIMING_ZERO, |
| 4419 | .block_erasers = { |
| 4420 | { |
| 4421 | .eraseblocks = { {4 * 1024, 128} }, |
| 4422 | .block_erase = spi_block_erase_20, |
| 4423 | }, { |
| 4424 | .eraseblocks = { {64 * 1024, 8} }, |
| 4425 | .block_erase = spi_block_erase_d8, |
| 4426 | }, { |
| 4427 | .eraseblocks = { {512 * 1024, 1} }, |
| 4428 | .block_erase = spi_block_erase_60, |
| 4429 | }, { |
| 4430 | .eraseblocks = { {512 * 1024, 1} }, |
| 4431 | .block_erase = spi_block_erase_c7, |
| 4432 | } |
| 4433 | }, |
| 4434 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 4435 | .unlock = spi_disable_blockprotect, |
| 4436 | .write = spi_chip_write_256, |
| 4437 | .read = spi_chip_read, |
| 4438 | .voltage = {1650, 1950}, |
| 4439 | }, |
| 4440 | |
| 4441 | { |
| 4442 | .vendor = "Eon", |
| 4443 | .name = "EN25S80", |
| 4444 | .bustype = BUS_SPI, |
| 4445 | .manufacture_id = EON_ID_NOPREFIX, |
| 4446 | .model_id = EON_EN25S80, |
| 4447 | .total_size = 1024, |
| 4448 | .page_size = 256, |
| 4449 | /* OTP: 256B total; enter 0x3A */ |
| 4450 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4451 | .tested = TEST_UNTESTED, |
| 4452 | .probe = probe_spi_rdid, |
| 4453 | .probe_timing = TIMING_ZERO, |
| 4454 | .block_erasers = { |
| 4455 | { |
| 4456 | .eraseblocks = { {4 * 1024, 256} }, |
| 4457 | .block_erase = spi_block_erase_20, |
| 4458 | }, { |
| 4459 | .eraseblocks = { {64 * 1024, 16} }, |
| 4460 | .block_erase = spi_block_erase_d8, |
| 4461 | }, { |
| 4462 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4463 | .block_erase = spi_block_erase_60, |
| 4464 | }, { |
| 4465 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4466 | .block_erase = spi_block_erase_c7, |
| 4467 | } |
| 4468 | }, |
| 4469 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 4470 | .unlock = spi_disable_blockprotect, |
| 4471 | .write = spi_chip_write_256, |
| 4472 | .read = spi_chip_read, |
| 4473 | .voltage = {1650, 1950}, |
| 4474 | }, |
| 4475 | |
| 4476 | { |
| 4477 | .vendor = "Eon", |
| 4478 | .name = "EN25S16", |
| 4479 | .bustype = BUS_SPI, |
| 4480 | .manufacture_id = EON_ID_NOPREFIX, |
| 4481 | .model_id = EON_EN25S16, |
| 4482 | .total_size = 2048, |
| 4483 | .page_size = 256, |
| 4484 | /* OTP: 512B total; enter 0x3A */ |
| 4485 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4486 | .tested = TEST_UNTESTED, |
| 4487 | .probe = probe_spi_rdid, |
| 4488 | .probe_timing = TIMING_ZERO, |
| 4489 | .block_erasers = { |
| 4490 | { |
| 4491 | .eraseblocks = { {4 * 1024, 512} }, |
| 4492 | .block_erase = spi_block_erase_20, |
| 4493 | }, { |
| 4494 | .eraseblocks = { {64 * 1024, 32} }, |
| 4495 | .block_erase = spi_block_erase_52, |
| 4496 | }, { |
| 4497 | .eraseblocks = { {32 * 1024, 64} }, |
| 4498 | .block_erase = spi_block_erase_d8, |
| 4499 | }, { |
| 4500 | .eraseblocks = { {2048 * 1024, 1} }, |
| 4501 | .block_erase = spi_block_erase_60, |
| 4502 | }, { |
| 4503 | .eraseblocks = { {2048 * 1024, 1} }, |
| 4504 | .block_erase = spi_block_erase_c7, |
| 4505 | } |
| 4506 | }, |
| 4507 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 4508 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4509 | .write = spi_chip_write_256, |
| 4510 | .read = spi_chip_read, |
| 4511 | .voltage = {1650, 1950}, |
| 4512 | }, |
| 4513 | |
| 4514 | { |
| 4515 | .vendor = "Eon", |
| 4516 | .name = "EN25S32", |
| 4517 | .bustype = BUS_SPI, |
| 4518 | .manufacture_id = EON_ID_NOPREFIX, |
| 4519 | .model_id = EON_EN25S32, |
| 4520 | .total_size = 4096, |
| 4521 | .page_size = 256, |
| 4522 | /* OTP: 512B total; enter 0x3A */ |
| 4523 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4524 | .tested = TEST_UNTESTED, |
| 4525 | .probe = probe_spi_rdid, |
| 4526 | .probe_timing = TIMING_ZERO, |
| 4527 | .block_erasers = { |
| 4528 | { |
| 4529 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4530 | .block_erase = spi_block_erase_20, |
| 4531 | }, { |
| 4532 | .eraseblocks = { {32 * 1024, 128} }, |
| 4533 | .block_erase = spi_block_erase_52, |
| 4534 | }, { |
| 4535 | .eraseblocks = { {64 * 1024, 64} }, |
| 4536 | .block_erase = spi_block_erase_d8, |
| 4537 | }, { |
| 4538 | .eraseblocks = { {4096 * 1024, 1} }, |
| 4539 | .block_erase = spi_block_erase_60, |
| 4540 | }, { |
| 4541 | .eraseblocks = { {4096 * 1024, 1} }, |
| 4542 | .block_erase = spi_block_erase_c7, |
| 4543 | } |
| 4544 | }, |
| 4545 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 4546 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4547 | .write = spi_chip_write_256, |
| 4548 | .read = spi_chip_read, |
| 4549 | .voltage = {1650, 1950}, |
| 4550 | }, |
| 4551 | |
| 4552 | { |
| 4553 | .vendor = "Eon", |
| 4554 | .name = "EN25S64", |
| 4555 | .bustype = BUS_SPI, |
| 4556 | .manufacture_id = EON_ID_NOPREFIX, |
| 4557 | .model_id = EON_EN25S64, |
| 4558 | .total_size = 8192, |
| 4559 | .page_size = 256, |
| 4560 | /* OTP: 512B total; enter 0x3A */ |
| 4561 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4562 | .tested = TEST_UNTESTED, |
| 4563 | .probe = probe_spi_rdid, |
| 4564 | .probe_timing = TIMING_ZERO, |
| 4565 | .block_erasers = { |
| 4566 | { |
| 4567 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4568 | .block_erase = spi_block_erase_20, |
| 4569 | }, { |
| 4570 | .eraseblocks = { {64 * 1024, 128} }, |
| 4571 | .block_erase = spi_block_erase_d8, |
| 4572 | }, { |
| 4573 | .eraseblocks = { {8192 * 1024, 1} }, |
| 4574 | .block_erase = spi_block_erase_60, |
| 4575 | }, { |
| 4576 | .eraseblocks = { {8192 * 1024, 1} }, |
| 4577 | .block_erase = spi_block_erase_c7, |
| 4578 | } |
| 4579 | }, |
| 4580 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 4581 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4582 | .write = spi_chip_write_256, |
| 4583 | .read = spi_chip_read, |
| 4584 | .voltage = {1650, 1950}, |
| 4585 | }, |
| 4586 | |
| 4587 | { |
| 4588 | .vendor = "Eon", |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4589 | .name = "EN29F010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4590 | .bustype = BUS_PARALLEL, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4591 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4592 | .model_id = EON_EN29F010, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4593 | .total_size = 128, |
| 4594 | .page_size = 128, |
| 4595 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 4596 | .tested = TEST_OK_PRE, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4597 | .probe = probe_jedec, |
| 4598 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4599 | .block_erasers = |
| 4600 | { |
| 4601 | { |
| 4602 | .eraseblocks = { {16 * 1024, 8} }, |
| 4603 | .block_erase = erase_sector_jedec, |
| 4604 | }, |
| 4605 | { |
| 4606 | .eraseblocks = { {128 * 1024, 1} }, |
| 4607 | .block_erase = erase_chip_block_jedec, |
| 4608 | }, |
| 4609 | }, |
| 4610 | .write = write_jedec_1, |
| 4611 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4612 | .voltage = {4500, 5500}, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4613 | }, |
| 4614 | |
| 4615 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 4616 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4617 | .name = "EN29F002(A)(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4618 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4619 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4620 | .model_id = EON_EN29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4621 | .total_size = 256, |
| 4622 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4623 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 4624 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4625 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4626 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4627 | .block_erasers = |
| 4628 | { |
| 4629 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 4630 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4631 | {16 * 1024, 1}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 4632 | {8 * 1024, 2}, |
| 4633 | {32 * 1024, 1}, |
| 4634 | {64 * 1024, 3}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4635 | }, |
| 4636 | .block_erase = erase_sector_jedec, |
| 4637 | }, { |
| 4638 | .eraseblocks = { {256 * 1024, 1} }, |
| 4639 | .block_erase = erase_chip_block_jedec, |
| 4640 | }, |
| 4641 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 4642 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4643 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4644 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4645 | }, |
| 4646 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4647 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 4648 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4649 | .name = "EN29F002(A)(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4650 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4651 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4652 | .model_id = EON_EN29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4653 | .total_size = 256, |
| 4654 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4655 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 4656 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4657 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4658 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4659 | .block_erasers = |
| 4660 | { |
| 4661 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 4662 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4663 | {64 * 1024, 3}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 4664 | {32 * 1024, 1}, |
| 4665 | {8 * 1024, 2}, |
| 4666 | {16 * 1024, 1}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4667 | }, |
| 4668 | .block_erase = erase_sector_jedec, |
| 4669 | }, { |
| 4670 | .eraseblocks = { {256 * 1024, 1} }, |
| 4671 | .block_erase = erase_chip_block_jedec, |
| 4672 | }, |
| 4673 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 4674 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4675 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4676 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4677 | }, |
| 4678 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4679 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 4680 | .vendor = "Eon", |
| 4681 | .name = "EN29LV640B", |
| 4682 | .bustype = BUS_PARALLEL, |
| 4683 | .manufacture_id = EON_ID, |
| 4684 | .model_id = EON_EN29LV640B, |
| 4685 | .total_size = 8192, |
| 4686 | .page_size = 8192, |
| 4687 | .feature_bits = 0, |
| 4688 | .tested = TEST_OK_PREW, |
| 4689 | .probe = probe_en29lv640b, |
| 4690 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4691 | .block_erasers = |
| 4692 | { |
| 4693 | { |
| 4694 | .eraseblocks = { |
| 4695 | {8 * 1024, 8}, |
| 4696 | {64 * 1024, 127}, |
| 4697 | }, |
| 4698 | .block_erase = block_erase_en29lv640b, |
| 4699 | }, { |
| 4700 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4701 | .block_erase = block_erase_chip_en29lv640b, |
| 4702 | }, |
| 4703 | }, |
| 4704 | .write = write_en29lv640b, |
| 4705 | .read = read_memmapped, |
| 4706 | .voltage = {2700, 3600}, |
| 4707 | }, |
| 4708 | |
| 4709 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4710 | .vendor = "Fujitsu", |
| 4711 | .name = "MBM29F004BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4712 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4713 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4714 | .model_id = FUJITSU_MBM29F004BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4715 | .total_size = 512, |
| 4716 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4717 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4718 | .tested = TEST_UNTESTED, |
| 4719 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4720 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4721 | .block_erasers = |
| 4722 | { |
| 4723 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4724 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4725 | {16 * 1024, 1}, |
| 4726 | {8 * 1024, 2}, |
| 4727 | {32 * 1024, 1}, |
| 4728 | {64 * 1024, 7}, |
| 4729 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4730 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4731 | }, { |
| 4732 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4733 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4734 | }, |
| 4735 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4736 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4737 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4738 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4739 | }, |
| 4740 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4741 | { |
| 4742 | .vendor = "Fujitsu", |
| 4743 | .name = "MBM29F004TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4744 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4745 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4746 | .model_id = FUJITSU_MBM29F004TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4747 | .total_size = 512, |
| 4748 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4749 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4750 | .tested = TEST_UNTESTED, |
| 4751 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4752 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4753 | .block_erasers = |
| 4754 | { |
| 4755 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4756 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4757 | {64 * 1024, 7}, |
| 4758 | {32 * 1024, 1}, |
| 4759 | {8 * 1024, 2}, |
| 4760 | {16 * 1024, 1}, |
| 4761 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4762 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4763 | }, { |
| 4764 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4765 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4766 | }, |
| 4767 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4768 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4769 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4770 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4771 | }, |
| 4772 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4773 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4774 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4775 | .vendor = "Fujitsu", |
| 4776 | .name = "MBM29F400BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4777 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4778 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4779 | .model_id = FUJITSU_MBM29F400BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4780 | .total_size = 512, |
| 4781 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4782 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 4783 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4784 | .probe = probe_m29f400bt, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 4785 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4786 | .block_erasers = |
| 4787 | { |
| 4788 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4789 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4790 | {16 * 1024, 1}, |
| 4791 | {8 * 1024, 2}, |
| 4792 | {32 * 1024, 1}, |
| 4793 | {64 * 1024, 7}, |
| 4794 | }, |
| 4795 | .block_erase = block_erase_m29f400bt, |
| 4796 | }, { |
| 4797 | .eraseblocks = { {512 * 1024, 1} }, |
| 4798 | .block_erase = block_erase_chip_m29f400bt, |
| 4799 | }, |
| 4800 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 4801 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4802 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 4803 | .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] | 4804 | }, |
| 4805 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4806 | { |
| 4807 | .vendor = "Fujitsu", |
| 4808 | .name = "MBM29F400TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4809 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4810 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4811 | .model_id = FUJITSU_MBM29F400TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4812 | .total_size = 512, |
| 4813 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4814 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4815 | .tested = TEST_UNTESTED, |
| 4816 | .probe = probe_m29f400bt, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 4817 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4818 | .block_erasers = |
| 4819 | { |
| 4820 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4821 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4822 | {64 * 1024, 7}, |
| 4823 | {32 * 1024, 1}, |
| 4824 | {8 * 1024, 2}, |
| 4825 | {16 * 1024, 1}, |
| 4826 | }, |
| 4827 | .block_erase = block_erase_m29f400bt, |
| 4828 | }, { |
| 4829 | .eraseblocks = { {512 * 1024, 1} }, |
| 4830 | .block_erase = block_erase_chip_m29f400bt, |
| 4831 | }, |
| 4832 | }, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 4833 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4834 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 4835 | .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] | 4836 | }, |
| 4837 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4838 | { |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 4839 | .vendor = "Fujitsu", |
| 4840 | .name = "MBM29LV160BE", |
| 4841 | .bustype = BUS_PARALLEL, |
| 4842 | .manufacture_id = FUJITSU_ID, |
| 4843 | .model_id = FUJITSU_MBM29LV160BE, |
| 4844 | .total_size = 2 * 1024, |
| 4845 | .page_size = 0, |
| 4846 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 4847 | .tested = TEST_UNTESTED, |
| 4848 | .probe = probe_m29f400bt, |
| 4849 | .probe_timing = TIMING_IGNORED, |
| 4850 | .block_erasers = |
| 4851 | { |
| 4852 | { |
| 4853 | .eraseblocks = { |
| 4854 | {16 * 1024, 1}, |
| 4855 | {8 * 1024, 2}, |
| 4856 | {32 * 1024, 1}, |
| 4857 | {64 * 1024, 31}, |
| 4858 | }, |
| 4859 | .block_erase = block_erase_m29f400bt, |
| 4860 | }, { |
| 4861 | .eraseblocks = { {2048 * 1024, 1} }, |
| 4862 | .block_erase = block_erase_chip_m29f400bt, |
| 4863 | }, |
| 4864 | }, |
| 4865 | .write = write_m29f400bt, /* Supports a fast mode too */ |
| 4866 | .read = read_memmapped, |
| 4867 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 4868 | }, |
| 4869 | |
| 4870 | { |
| 4871 | .vendor = "Fujitsu", |
| 4872 | .name = "MBM29LV160TE", |
| 4873 | .bustype = BUS_PARALLEL, |
| 4874 | .manufacture_id = FUJITSU_ID, |
| 4875 | .model_id = FUJITSU_MBM29LV160TE, |
| 4876 | .total_size = 2 * 1024, |
| 4877 | .page_size = 0, |
| 4878 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 4879 | .tested = TEST_UNTESTED, |
| 4880 | .probe = probe_m29f400bt, |
| 4881 | .probe_timing = TIMING_IGNORED, |
| 4882 | .block_erasers = |
| 4883 | { |
| 4884 | { |
| 4885 | .eraseblocks = { |
| 4886 | {64 * 1024, 31}, |
| 4887 | {32 * 1024, 1}, |
| 4888 | {8 * 1024, 2}, |
| 4889 | {16 * 1024, 1}, |
| 4890 | }, |
| 4891 | .block_erase = block_erase_m29f400bt, |
| 4892 | }, { |
| 4893 | .eraseblocks = { {2048 * 1024, 1} }, |
| 4894 | .block_erase = block_erase_chip_m29f400bt, |
| 4895 | }, |
| 4896 | }, |
| 4897 | .write = write_m29f400bt, /* Supports a fast mode too */ |
| 4898 | .read = read_memmapped, |
| 4899 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 4900 | }, |
| 4901 | |
| 4902 | { |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4903 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4904 | .name = "GD25LQ32", |
| 4905 | .bustype = BUS_SPI, |
| 4906 | .manufacture_id = GIGADEVICE_ID, |
| 4907 | .model_id = GIGADEVICE_GD25LQ32, |
| 4908 | .total_size = 4096, |
| 4909 | .page_size = 256, |
| 4910 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 4911 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4912 | .tested = TEST_OK_PREW, |
| 4913 | .probe = probe_spi_rdid, |
| 4914 | .probe_timing = TIMING_ZERO, |
| 4915 | .block_erasers = |
| 4916 | { |
| 4917 | { |
| 4918 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4919 | .block_erase = spi_block_erase_20, |
| 4920 | }, { |
| 4921 | .eraseblocks = { {32 * 1024, 128} }, |
| 4922 | .block_erase = spi_block_erase_52, |
| 4923 | }, { |
| 4924 | .eraseblocks = { {64 * 1024, 64} }, |
| 4925 | .block_erase = spi_block_erase_d8, |
| 4926 | }, { |
| 4927 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4928 | .block_erase = spi_block_erase_60, |
| 4929 | }, { |
| 4930 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4931 | .block_erase = spi_block_erase_c7, |
| 4932 | } |
| 4933 | }, |
| 4934 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 4935 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 4936 | .write = spi_chip_write_256, |
| 4937 | .read = spi_chip_read, |
| 4938 | .voltage = {1700, 1950}, |
| 4939 | }, |
| 4940 | |
| 4941 | { |
| 4942 | .vendor = "GigaDevice", |
| 4943 | .name = "GD25Q512", |
| 4944 | .bustype = BUS_SPI, |
| 4945 | .manufacture_id = GIGADEVICE_ID, |
| 4946 | .model_id = GIGADEVICE_GD25Q512, |
| 4947 | .total_size = 64, |
| 4948 | .page_size = 256, |
| 4949 | .feature_bits = FEATURE_WRSR_WREN, |
| 4950 | .tested = TEST_UNTESTED, |
| 4951 | .probe = probe_spi_rdid, |
| 4952 | .probe_timing = TIMING_ZERO, |
| 4953 | .block_erasers = { |
| 4954 | { |
| 4955 | .eraseblocks = { {4 * 1024, 16} }, |
| 4956 | .block_erase = spi_block_erase_20, |
| 4957 | }, { |
| 4958 | .eraseblocks = { {32 * 1024, 2} }, |
| 4959 | .block_erase = spi_block_erase_52, |
| 4960 | }, { |
| 4961 | .eraseblocks = { {64 * 1024, 1} }, |
| 4962 | .block_erase = spi_block_erase_60, |
| 4963 | }, { |
| 4964 | .eraseblocks = { {64 * 1024, 1} }, |
| 4965 | .block_erase = spi_block_erase_c7, |
| 4966 | } |
| 4967 | }, |
| 4968 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 4969 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 4970 | .write = spi_chip_write_256, |
| 4971 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 4972 | .voltage = {2700, 3600}, |
| 4973 | }, |
| 4974 | |
| 4975 | { |
| 4976 | .vendor = "GigaDevice", |
| 4977 | .name = "GD25Q10", |
| 4978 | .bustype = BUS_SPI, |
| 4979 | .manufacture_id = GIGADEVICE_ID, |
| 4980 | .model_id = GIGADEVICE_GD25Q10, |
| 4981 | .total_size = 128, |
| 4982 | .page_size = 256, |
| 4983 | .feature_bits = FEATURE_WRSR_WREN, |
| 4984 | .tested = TEST_UNTESTED, |
| 4985 | .probe = probe_spi_rdid, |
| 4986 | .probe_timing = TIMING_ZERO, |
| 4987 | .block_erasers = { |
| 4988 | { |
| 4989 | .eraseblocks = { {4 * 1024, 32} }, |
| 4990 | .block_erase = spi_block_erase_20, |
| 4991 | }, { |
| 4992 | .eraseblocks = { {32 * 1024, 4} }, |
| 4993 | .block_erase = spi_block_erase_52, |
| 4994 | }, { |
| 4995 | .eraseblocks = { {64 * 1024, 2} }, |
| 4996 | .block_erase = spi_block_erase_d8, |
| 4997 | }, { |
| 4998 | .eraseblocks = { {128 * 1024, 1} }, |
| 4999 | .block_erase = spi_block_erase_60, |
| 5000 | }, { |
| 5001 | .eraseblocks = { {128 * 1024, 1} }, |
| 5002 | .block_erase = spi_block_erase_c7, |
| 5003 | } |
| 5004 | }, |
| 5005 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 5006 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5007 | .write = spi_chip_write_256, |
| 5008 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5009 | .voltage = {2700, 3600}, |
| 5010 | }, |
| 5011 | |
| 5012 | { |
| 5013 | .vendor = "GigaDevice", |
| 5014 | .name = "GD25Q20(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5015 | .bustype = BUS_SPI, |
| 5016 | .manufacture_id = GIGADEVICE_ID, |
| 5017 | .model_id = GIGADEVICE_GD25Q20, |
| 5018 | .total_size = 256, |
| 5019 | .page_size = 256, |
| 5020 | .feature_bits = FEATURE_WRSR_WREN, |
| 5021 | .tested = TEST_UNTESTED, |
| 5022 | .probe = probe_spi_rdid, |
| 5023 | .probe_timing = TIMING_ZERO, |
| 5024 | .block_erasers = |
| 5025 | { |
| 5026 | { |
| 5027 | .eraseblocks = { {4 * 1024, 64} }, |
| 5028 | .block_erase = spi_block_erase_20, |
| 5029 | }, { |
| 5030 | .eraseblocks = { {32 * 1024, 8} }, |
| 5031 | .block_erase = spi_block_erase_52, |
| 5032 | }, { |
| 5033 | .eraseblocks = { {64 * 1024, 4} }, |
| 5034 | .block_erase = spi_block_erase_d8, |
| 5035 | }, { |
| 5036 | .eraseblocks = { {256 * 1024, 1} }, |
| 5037 | .block_erase = spi_block_erase_60, |
| 5038 | }, { |
| 5039 | .eraseblocks = { {256 * 1024, 1} }, |
| 5040 | .block_erase = spi_block_erase_c7, |
| 5041 | } |
| 5042 | }, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5043 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 5044 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5045 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5046 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5047 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5048 | }, |
| 5049 | |
| 5050 | { |
| 5051 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5052 | .name = "GD25Q40(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5053 | .bustype = BUS_SPI, |
| 5054 | .manufacture_id = GIGADEVICE_ID, |
| 5055 | .model_id = GIGADEVICE_GD25Q40, |
| 5056 | .total_size = 512, |
| 5057 | .page_size = 256, |
| 5058 | .feature_bits = FEATURE_WRSR_WREN, |
| 5059 | .tested = TEST_UNTESTED, |
| 5060 | .probe = probe_spi_rdid, |
| 5061 | .probe_timing = TIMING_ZERO, |
| 5062 | .block_erasers = |
| 5063 | { |
| 5064 | { |
| 5065 | .eraseblocks = { {4 * 1024, 128} }, |
| 5066 | .block_erase = spi_block_erase_20, |
| 5067 | }, { |
| 5068 | .eraseblocks = { {32 * 1024, 16} }, |
| 5069 | .block_erase = spi_block_erase_52, |
| 5070 | }, { |
| 5071 | .eraseblocks = { {64 * 1024, 8} }, |
| 5072 | .block_erase = spi_block_erase_d8, |
| 5073 | }, { |
| 5074 | .eraseblocks = { {512 * 1024, 1} }, |
| 5075 | .block_erase = spi_block_erase_60, |
| 5076 | }, { |
| 5077 | .eraseblocks = { {512 * 1024, 1} }, |
| 5078 | .block_erase = spi_block_erase_c7, |
| 5079 | } |
| 5080 | }, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5081 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 5082 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5083 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5084 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5085 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5086 | }, |
| 5087 | |
| 5088 | { |
| 5089 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5090 | .name = "GD25Q80(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5091 | .bustype = BUS_SPI, |
| 5092 | .manufacture_id = GIGADEVICE_ID, |
| 5093 | .model_id = GIGADEVICE_GD25Q80, |
| 5094 | .total_size = 1024, |
| 5095 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5096 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5097 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5098 | .tested = TEST_OK_PREW, |
| 5099 | .probe = probe_spi_rdid, |
| 5100 | .probe_timing = TIMING_ZERO, |
| 5101 | .block_erasers = |
| 5102 | { |
| 5103 | { |
| 5104 | .eraseblocks = { {4 * 1024, 256} }, |
| 5105 | .block_erase = spi_block_erase_20, |
| 5106 | }, { |
| 5107 | .eraseblocks = { {32 * 1024, 32} }, |
| 5108 | .block_erase = spi_block_erase_52, |
| 5109 | }, { |
| 5110 | .eraseblocks = { {64 * 1024, 16} }, |
| 5111 | .block_erase = spi_block_erase_d8, |
| 5112 | }, { |
| 5113 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5114 | .block_erase = spi_block_erase_60, |
| 5115 | }, { |
| 5116 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5117 | .block_erase = spi_block_erase_c7, |
| 5118 | } |
| 5119 | }, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5120 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 5121 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5122 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5123 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5124 | .voltage = {2700, 3600}, |
| 5125 | }, |
| 5126 | |
| 5127 | { |
| 5128 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5129 | .name = "GD25Q16(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5130 | .bustype = BUS_SPI, |
| 5131 | .manufacture_id = GIGADEVICE_ID, |
| 5132 | .model_id = GIGADEVICE_GD25Q16, |
| 5133 | .total_size = 2048, |
| 5134 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5135 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5136 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5137 | .tested = TEST_UNTESTED, |
| 5138 | .probe = probe_spi_rdid, |
| 5139 | .probe_timing = TIMING_ZERO, |
| 5140 | .block_erasers = |
| 5141 | { |
| 5142 | { |
| 5143 | .eraseblocks = { {4 * 1024, 512} }, |
| 5144 | .block_erase = spi_block_erase_20, |
| 5145 | }, { |
| 5146 | .eraseblocks = { {32 * 1024, 64} }, |
| 5147 | .block_erase = spi_block_erase_52, |
| 5148 | }, { |
| 5149 | .eraseblocks = { {64 * 1024, 32} }, |
| 5150 | .block_erase = spi_block_erase_d8, |
| 5151 | }, { |
| 5152 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5153 | .block_erase = spi_block_erase_60, |
| 5154 | }, { |
| 5155 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5156 | .block_erase = spi_block_erase_c7, |
| 5157 | } |
| 5158 | }, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5159 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 5160 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5161 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5162 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5163 | .voltage = {2700, 3600}, |
| 5164 | }, |
| 5165 | |
| 5166 | { |
| 5167 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5168 | .name = "GD25Q32(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5169 | .bustype = BUS_SPI, |
| 5170 | .manufacture_id = GIGADEVICE_ID, |
| 5171 | .model_id = GIGADEVICE_GD25Q32, |
| 5172 | .total_size = 4096, |
| 5173 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5174 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5175 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 5176 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5177 | .probe = probe_spi_rdid, |
| 5178 | .probe_timing = TIMING_ZERO, |
| 5179 | .block_erasers = |
| 5180 | { |
| 5181 | { |
| 5182 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5183 | .block_erase = spi_block_erase_20, |
| 5184 | }, { |
| 5185 | .eraseblocks = { {32 * 1024, 128} }, |
| 5186 | .block_erase = spi_block_erase_52, |
| 5187 | }, { |
| 5188 | .eraseblocks = { {64 * 1024, 64} }, |
| 5189 | .block_erase = spi_block_erase_d8, |
| 5190 | }, { |
| 5191 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5192 | .block_erase = spi_block_erase_60, |
| 5193 | }, { |
| 5194 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5195 | .block_erase = spi_block_erase_c7, |
| 5196 | } |
| 5197 | }, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5198 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 5199 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5200 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5201 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5202 | .voltage = {2700, 3600}, |
| 5203 | }, |
| 5204 | |
| 5205 | { |
| 5206 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5207 | .name = "GD25Q64(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5208 | .bustype = BUS_SPI, |
| 5209 | .manufacture_id = GIGADEVICE_ID, |
| 5210 | .model_id = GIGADEVICE_GD25Q64, |
| 5211 | .total_size = 8192, |
| 5212 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5213 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5214 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5215 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5216 | .probe = probe_spi_rdid, |
| 5217 | .probe_timing = TIMING_ZERO, |
| 5218 | .block_erasers = |
| 5219 | { |
| 5220 | { |
| 5221 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5222 | .block_erase = spi_block_erase_20, |
| 5223 | }, { |
| 5224 | .eraseblocks = { {32 * 1024, 256} }, |
| 5225 | .block_erase = spi_block_erase_52, |
| 5226 | }, { |
| 5227 | .eraseblocks = { {64 * 1024, 128} }, |
| 5228 | .block_erase = spi_block_erase_d8, |
| 5229 | }, { |
| 5230 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5231 | .block_erase = spi_block_erase_60, |
| 5232 | }, { |
| 5233 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5234 | .block_erase = spi_block_erase_c7, |
| 5235 | } |
| 5236 | }, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5237 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 5238 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5239 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5240 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5241 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5242 | }, |
| 5243 | |
| 5244 | { |
| 5245 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5246 | .name = "GD25Q128B", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5247 | .bustype = BUS_SPI, |
| 5248 | .manufacture_id = GIGADEVICE_ID, |
| 5249 | .model_id = GIGADEVICE_GD25Q128, |
| 5250 | .total_size = 16384, |
| 5251 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5252 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5253 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5254 | .tested = TEST_UNTESTED, |
| 5255 | .probe = probe_spi_rdid, |
| 5256 | .probe_timing = TIMING_ZERO, |
| 5257 | .block_erasers = |
| 5258 | { |
| 5259 | { |
| 5260 | .eraseblocks = { {4 * 1024, 4096} }, |
| 5261 | .block_erase = spi_block_erase_20, |
| 5262 | }, { |
| 5263 | .eraseblocks = { {32 * 1024, 512} }, |
| 5264 | .block_erase = spi_block_erase_52, |
| 5265 | }, { |
| 5266 | .eraseblocks = { {64 * 1024, 256} }, |
| 5267 | .block_erase = spi_block_erase_d8, |
| 5268 | }, { |
| 5269 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5270 | .block_erase = spi_block_erase_60, |
| 5271 | }, { |
| 5272 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5273 | .block_erase = spi_block_erase_c7, |
| 5274 | } |
| 5275 | }, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5276 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 5277 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5278 | .write = spi_chip_write_256, |
| 5279 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5280 | .voltage = {2700, 3600}, |
| 5281 | }, |
| 5282 | |
| 5283 | { |
| 5284 | .vendor = "GigaDevice", |
| 5285 | .name = "GD25T80", |
| 5286 | .bustype = BUS_SPI, |
| 5287 | .manufacture_id = GIGADEVICE_ID, |
| 5288 | .model_id = GIGADEVICE_GD25T80, |
| 5289 | .total_size = 1024, |
| 5290 | .page_size = 256, |
| 5291 | /* OTP: 256B total; enter 0x3A */ |
| 5292 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5293 | .tested = TEST_UNTESTED, |
| 5294 | .probe = probe_spi_rdid, |
| 5295 | .probe_timing = TIMING_ZERO, |
| 5296 | .block_erasers = { |
| 5297 | { |
| 5298 | .eraseblocks = { {4 * 1024, 256} }, |
| 5299 | .block_erase = spi_block_erase_20, |
| 5300 | }, { |
| 5301 | .eraseblocks = { {64 * 1024, 16} }, |
| 5302 | .block_erase = spi_block_erase_52, |
| 5303 | }, { |
| 5304 | .eraseblocks = { {64 * 1024, 16} }, |
| 5305 | .block_erase = spi_block_erase_d8, |
| 5306 | }, { |
| 5307 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5308 | .block_erase = spi_block_erase_60, |
| 5309 | }, { |
| 5310 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5311 | .block_erase = spi_block_erase_c7, |
| 5312 | } |
| 5313 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5314 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5315 | .unlock = spi_disable_blockprotect, |
| 5316 | .write = spi_chip_write_256, |
| 5317 | .read = spi_chip_read, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5318 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5319 | }, |
| 5320 | |
| 5321 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5322 | .vendor = "Hyundai", |
| 5323 | .name = "HY29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5324 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5325 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5326 | .model_id = HYUNDAI_HY29F002T, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5327 | .total_size = 256, |
| 5328 | .page_size = 256 * 1024, |
| 5329 | .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] | 5330 | .tested = TEST_OK_PRE, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5331 | .probe = probe_jedec, |
| 5332 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5333 | .block_erasers = |
| 5334 | { |
| 5335 | { |
| 5336 | .eraseblocks = { |
| 5337 | {64 * 1024, 3}, |
| 5338 | {32 * 1024, 1}, |
| 5339 | {8 * 1024, 2}, |
| 5340 | {16 * 1024, 1}, |
| 5341 | }, |
| 5342 | .block_erase = erase_sector_jedec, |
| 5343 | }, { |
| 5344 | .eraseblocks = { {256 * 1024, 1} }, |
| 5345 | .block_erase = erase_chip_block_jedec, |
| 5346 | }, |
| 5347 | }, |
| 5348 | .write = write_jedec_1, |
| 5349 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5350 | .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] | 5351 | }, |
| 5352 | |
| 5353 | { |
| 5354 | .vendor = "Hyundai", |
| 5355 | .name = "HY29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5356 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5357 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5358 | .model_id = HYUNDAI_HY29F002B, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5359 | .total_size = 256, |
| 5360 | .page_size = 256 * 1024, |
| 5361 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
| 5362 | .tested = TEST_UNTESTED, |
| 5363 | .probe = probe_jedec, |
| 5364 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5365 | .block_erasers = |
| 5366 | { |
| 5367 | { |
| 5368 | .eraseblocks = { |
| 5369 | {16 * 1024, 1}, |
| 5370 | {8 * 1024, 2}, |
| 5371 | {32 * 1024, 1}, |
| 5372 | {64 * 1024, 3}, |
| 5373 | }, |
| 5374 | .block_erase = erase_sector_jedec, |
| 5375 | }, { |
| 5376 | .eraseblocks = { {256 * 1024, 1} }, |
| 5377 | .block_erase = erase_chip_block_jedec, |
| 5378 | }, |
| 5379 | }, |
| 5380 | .write = write_jedec_1, |
| 5381 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5382 | .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] | 5383 | }, |
| 5384 | |
| 5385 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 5386 | .vendor = "Hyundai", |
| 5387 | .name = "HY29F040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5388 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 5389 | .manufacture_id = HYUNDAI_ID, |
| 5390 | .model_id = HYUNDAI_HY29F040A, |
| 5391 | .total_size = 512, |
| 5392 | .page_size = 64 * 1024, |
| 5393 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 5394 | .tested = TEST_UNTESTED, |
| 5395 | .probe = probe_jedec, |
| 5396 | .probe_timing = TIMING_ZERO, |
| 5397 | .block_erasers = |
| 5398 | { |
| 5399 | { |
| 5400 | .eraseblocks = { {64 * 1024, 8} }, |
| 5401 | .block_erase = erase_sector_jedec, |
| 5402 | }, { |
| 5403 | .eraseblocks = { {512 * 1024, 1} }, |
| 5404 | .block_erase = erase_chip_block_jedec, |
| 5405 | }, |
| 5406 | }, |
| 5407 | .write = write_jedec_1, |
| 5408 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5409 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 5410 | }, |
| 5411 | |
| 5412 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5413 | .vendor = "Intel", |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5414 | .name = "25F160S33B8", |
| 5415 | .bustype = BUS_SPI, |
| 5416 | .manufacture_id = INTEL_ID, |
| 5417 | .model_id = INTEL_25F160S33B8, |
| 5418 | .total_size = 2048, |
| 5419 | .page_size = 256, |
| 5420 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5421 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5422 | .tested = TEST_UNTESTED, |
| 5423 | .probe = probe_spi_rdid, |
| 5424 | .probe_timing = TIMING_ZERO, |
| 5425 | .block_erasers = |
| 5426 | { |
| 5427 | { |
| 5428 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5429 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5430 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5431 | .eraseblocks = { |
| 5432 | {8 * 1024, 8}, |
| 5433 | {64 * 1024, 31} // inaccessible |
| 5434 | }, |
| 5435 | .block_erase = spi_block_erase_40, |
| 5436 | }, { */ |
| 5437 | .eraseblocks = { {64 * 1024, 32} }, |
| 5438 | .block_erase = spi_block_erase_d8, |
| 5439 | }, { |
| 5440 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5441 | .block_erase = spi_block_erase_c7, |
| 5442 | } |
| 5443 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5444 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5445 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5446 | .write = spi_chip_write_256, |
| 5447 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5448 | .voltage = {2700, 3600}, |
| 5449 | }, |
| 5450 | |
| 5451 | { |
| 5452 | .vendor = "Intel", |
| 5453 | .name = "25F160S33T8", |
| 5454 | .bustype = BUS_SPI, |
| 5455 | .manufacture_id = INTEL_ID, |
| 5456 | .model_id = INTEL_25F160S33T8, |
| 5457 | .total_size = 2048, |
| 5458 | .page_size = 256, |
| 5459 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5460 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5461 | .tested = TEST_UNTESTED, |
| 5462 | .probe = probe_spi_rdid, |
| 5463 | .probe_timing = TIMING_ZERO, |
| 5464 | .block_erasers = |
| 5465 | { |
| 5466 | { |
| 5467 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5468 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5469 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5470 | .eraseblocks = { |
| 5471 | {64 * 1024, 31}, // inaccessible |
| 5472 | {8 * 1024, 8} |
| 5473 | }, |
| 5474 | .block_erase = spi_block_erase_40, |
| 5475 | }, { */ |
| 5476 | .eraseblocks = { {64 * 1024, 32} }, |
| 5477 | .block_erase = spi_block_erase_d8, |
| 5478 | }, { |
| 5479 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5480 | .block_erase = spi_block_erase_c7, |
| 5481 | } |
| 5482 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5483 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5484 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5485 | .write = spi_chip_write_256, |
| 5486 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5487 | .voltage = {2700, 3600}, |
| 5488 | }, |
| 5489 | |
| 5490 | { |
| 5491 | .vendor = "Intel", |
| 5492 | .name = "25F320S33B8", |
| 5493 | .bustype = BUS_SPI, |
| 5494 | .manufacture_id = INTEL_ID, |
| 5495 | .model_id = INTEL_25F320S33B8, |
| 5496 | .total_size = 4096, |
| 5497 | .page_size = 256, |
| 5498 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5499 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5500 | .tested = TEST_UNTESTED, |
| 5501 | .probe = probe_spi_rdid, |
| 5502 | .probe_timing = TIMING_ZERO, |
| 5503 | .block_erasers = |
| 5504 | { |
| 5505 | { |
| 5506 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5507 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5508 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5509 | .eraseblocks = { |
| 5510 | {8 * 1024, 8}, |
| 5511 | {64 * 1024, 63} // inaccessible |
| 5512 | }, |
| 5513 | .block_erase = spi_block_erase_40, |
| 5514 | }, { */ |
| 5515 | .eraseblocks = { {64 * 1024, 64} }, |
| 5516 | .block_erase = spi_block_erase_d8, |
| 5517 | }, { |
| 5518 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5519 | .block_erase = spi_block_erase_c7, |
| 5520 | } |
| 5521 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5522 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5523 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5524 | .write = spi_chip_write_256, |
| 5525 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5526 | .voltage = {2700, 3600}, |
| 5527 | }, |
| 5528 | |
| 5529 | { |
| 5530 | .vendor = "Intel", |
| 5531 | .name = "25F320S33T8", |
| 5532 | .bustype = BUS_SPI, |
| 5533 | .manufacture_id = INTEL_ID, |
| 5534 | .model_id = INTEL_25F320S33T8, |
| 5535 | .total_size = 4096, |
| 5536 | .page_size = 256, |
| 5537 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5538 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5539 | .tested = TEST_UNTESTED, |
| 5540 | .probe = probe_spi_rdid, |
| 5541 | .probe_timing = TIMING_ZERO, |
| 5542 | .block_erasers = |
| 5543 | { |
| 5544 | { |
| 5545 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5546 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5547 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5548 | .eraseblocks = { |
| 5549 | {64 * 1024, 63}, // inaccessible |
| 5550 | {8 * 1024, 8} |
| 5551 | }, |
| 5552 | .block_erase = spi_block_erase_40, |
| 5553 | }, { */ |
| 5554 | .eraseblocks = { {64 * 1024, 64} }, |
| 5555 | .block_erase = spi_block_erase_d8, |
| 5556 | }, { |
| 5557 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5558 | .block_erase = spi_block_erase_c7, |
| 5559 | } |
| 5560 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5561 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5562 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5563 | .write = spi_chip_write_256, |
| 5564 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5565 | .voltage = {2700, 3600}, |
| 5566 | }, |
| 5567 | |
| 5568 | { |
| 5569 | .vendor = "Intel", |
| 5570 | .name = "25F640S33B8", |
| 5571 | .bustype = BUS_SPI, |
| 5572 | .manufacture_id = INTEL_ID, |
| 5573 | .model_id = INTEL_25F640S33B8, |
| 5574 | .total_size = 8192, |
| 5575 | .page_size = 256, |
| 5576 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5577 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5578 | .tested = TEST_UNTESTED, |
| 5579 | .probe = probe_spi_rdid, |
| 5580 | .probe_timing = TIMING_ZERO, |
| 5581 | .block_erasers = |
| 5582 | { |
| 5583 | { |
| 5584 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5585 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5586 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5587 | .eraseblocks = { |
| 5588 | {8 * 1024, 8}, |
| 5589 | {64 * 1024, 127} // inaccessible |
| 5590 | }, |
| 5591 | .block_erase = spi_block_erase_40, |
| 5592 | }, { */ |
| 5593 | .eraseblocks = { {64 * 1024, 128} }, |
| 5594 | .block_erase = spi_block_erase_d8, |
| 5595 | }, { |
| 5596 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5597 | .block_erase = spi_block_erase_c7, |
| 5598 | } |
| 5599 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5600 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5601 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5602 | .write = spi_chip_write_256, |
| 5603 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5604 | .voltage = {2700, 3600}, |
| 5605 | }, |
| 5606 | |
| 5607 | { |
| 5608 | .vendor = "Intel", |
| 5609 | .name = "25F640S33T8", |
| 5610 | .bustype = BUS_SPI, |
| 5611 | .manufacture_id = INTEL_ID, |
| 5612 | .model_id = INTEL_25F640S33T8, |
| 5613 | .total_size = 8192, |
| 5614 | .page_size = 256, |
| 5615 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5616 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5617 | .tested = TEST_UNTESTED, |
| 5618 | .probe = probe_spi_rdid, |
| 5619 | .probe_timing = TIMING_ZERO, |
| 5620 | .block_erasers = |
| 5621 | { |
| 5622 | { |
| 5623 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5624 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5625 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5626 | .eraseblocks = { |
| 5627 | {64 * 1024, 127}, // inaccessible |
| 5628 | {8 * 1024, 8} |
| 5629 | }, |
| 5630 | .block_erase = spi_block_erase_40, |
| 5631 | }, { */ |
| 5632 | .eraseblocks = { {64 * 1024, 128} }, |
| 5633 | .block_erase = spi_block_erase_d8, |
| 5634 | }, { |
| 5635 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5636 | .block_erase = spi_block_erase_c7, |
| 5637 | } |
| 5638 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5639 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5640 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5641 | .write = spi_chip_write_256, |
| 5642 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5643 | .voltage = {2700, 3600}, |
| 5644 | }, |
| 5645 | |
| 5646 | { |
| 5647 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5648 | .name = "28F001BN/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5649 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5650 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5651 | .model_id = INTEL_28F001B, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5652 | .total_size = 128, |
| 5653 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 5654 | .tested = TEST_UNTESTED, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5655 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5656 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5657 | .block_erasers = |
| 5658 | { |
| 5659 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5660 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5661 | {8 * 1024, 1}, |
| 5662 | {4 * 1024, 2}, |
| 5663 | {112 * 1024, 1}, |
| 5664 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5665 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5666 | }, |
| 5667 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 5668 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5669 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5670 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5671 | }, |
| 5672 | |
| 5673 | { |
| 5674 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5675 | .name = "28F001BN/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5676 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5677 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5678 | .model_id = INTEL_28F001T, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5679 | .total_size = 128, |
| 5680 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 5681 | .tested = TEST_OK_PR, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5682 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5683 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5684 | .block_erasers = |
| 5685 | { |
| 5686 | { |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 5687 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5688 | {112 * 1024, 1}, |
| 5689 | {4 * 1024, 2}, |
| 5690 | {8 * 1024, 1}, |
| 5691 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5692 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5693 | }, |
| 5694 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 5695 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5696 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5697 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5698 | }, |
| 5699 | |
| 5700 | { |
| 5701 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5702 | .name = "28F002BC/BL/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5703 | .bustype = BUS_PARALLEL, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 5704 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5705 | .model_id = INTEL_28F002T, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 5706 | .total_size = 256, |
| 5707 | .page_size = 256 * 1024, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5708 | .tested = TEST_OK_PRE, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 5709 | .probe = probe_82802ab, |
| 5710 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5711 | .block_erasers = |
| 5712 | { |
| 5713 | { |
| 5714 | .eraseblocks = { |
| 5715 | {128 * 1024, 1}, |
| 5716 | {96 * 1024, 1}, |
| 5717 | {8 * 1024, 2}, |
| 5718 | {16 * 1024, 1}, |
| 5719 | }, |
| 5720 | .block_erase = erase_block_82802ab, |
| 5721 | }, |
| 5722 | }, |
| 5723 | .write = write_82802ab, |
| 5724 | .read = read_memmapped, |
| 5725 | }, |
| 5726 | |
| 5727 | { |
| 5728 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5729 | .name = "28F008S3/S5/SC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5730 | .bustype = BUS_PARALLEL, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5731 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5732 | .model_id = INTEL_28F004S3, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5733 | .total_size = 512, |
| 5734 | .page_size = 256, |
| 5735 | .tested = TEST_UNTESTED, |
| 5736 | .probe = probe_82802ab, |
| 5737 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5738 | .block_erasers = |
| 5739 | { |
| 5740 | { |
| 5741 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5742 | .block_erase = erase_block_82802ab, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5743 | }, |
| 5744 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 5745 | .unlock = unlock_28f004s5, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5746 | .write = write_82802ab, |
| 5747 | .read = read_memmapped, |
| 5748 | }, |
| 5749 | |
| 5750 | { |
| 5751 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5752 | .name = "28F004B5/BE/BV/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5753 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5754 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5755 | .model_id = INTEL_28F004B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5756 | .total_size = 512, |
| 5757 | .page_size = 128 * 1024, /* maximal block size */ |
| 5758 | .tested = TEST_UNTESTED, |
| 5759 | .probe = probe_82802ab, |
| 5760 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5761 | .block_erasers = |
| 5762 | { |
| 5763 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5764 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5765 | {16 * 1024, 1}, |
| 5766 | {8 * 1024, 2}, |
| 5767 | {96 * 1024, 1}, |
| 5768 | {128 * 1024, 3}, |
| 5769 | }, |
| 5770 | .block_erase = erase_block_82802ab, |
| 5771 | }, |
| 5772 | }, |
| 5773 | .write = write_82802ab, |
| 5774 | .read = read_memmapped, |
| 5775 | }, |
| 5776 | |
| 5777 | { |
| 5778 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5779 | .name = "28F004B5/BE/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5780 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5781 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5782 | .model_id = INTEL_28F004T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5783 | .total_size = 512, |
| 5784 | .page_size = 128 * 1024, /* maximal block size */ |
| 5785 | .tested = TEST_UNTESTED, |
| 5786 | .probe = probe_82802ab, |
| 5787 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5788 | .block_erasers = |
| 5789 | { |
| 5790 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5791 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5792 | {128 * 1024, 3}, |
| 5793 | {96 * 1024, 1}, |
| 5794 | {8 * 1024, 2}, |
| 5795 | {16 * 1024, 1}, |
| 5796 | }, |
| 5797 | .block_erase = erase_block_82802ab, |
| 5798 | }, |
| 5799 | }, |
| 5800 | .write = write_82802ab, |
| 5801 | .read = read_memmapped, |
| 5802 | }, |
| 5803 | |
| 5804 | { |
| 5805 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5806 | .name = "28F400BV/BX/CE/CV-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5807 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5808 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5809 | .model_id = INTEL_28F400B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5810 | .total_size = 512, |
| 5811 | .page_size = 128 * 1024, /* maximal block size */ |
| 5812 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 5813 | .tested = TEST_UNTESTED, |
| 5814 | .probe = probe_82802ab, |
| 5815 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5816 | .block_erasers = |
| 5817 | { |
| 5818 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5819 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5820 | {16 * 1024, 1}, |
| 5821 | {8 * 1024, 2}, |
| 5822 | {96 * 1024, 1}, |
| 5823 | {128 * 1024, 3}, |
| 5824 | }, |
| 5825 | .block_erase = erase_block_82802ab, |
| 5826 | }, |
| 5827 | }, |
| 5828 | .write = write_82802ab, |
| 5829 | .read = read_memmapped, |
| 5830 | }, |
| 5831 | |
| 5832 | { |
| 5833 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5834 | .name = "28F400BV/BX/CE/CV-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5835 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5836 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5837 | .model_id = INTEL_28F400T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5838 | .total_size = 512, |
| 5839 | .page_size = 128 * 1024, /* maximal block size */ |
| 5840 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 5841 | .tested = TEST_UNTESTED, |
| 5842 | .probe = probe_82802ab, |
| 5843 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5844 | .block_erasers = |
| 5845 | { |
| 5846 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5847 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5848 | {128 * 1024, 3}, |
| 5849 | {96 * 1024, 1}, |
| 5850 | {8 * 1024, 2}, |
| 5851 | {16 * 1024, 1}, |
| 5852 | }, |
| 5853 | .block_erase = erase_block_82802ab, |
| 5854 | }, |
| 5855 | }, |
| 5856 | .write = write_82802ab, |
| 5857 | .read = read_memmapped, |
| 5858 | }, |
| 5859 | |
| 5860 | { |
| 5861 | .vendor = "Intel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5862 | .name = "82802AB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5863 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5864 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5865 | .model_id = INTEL_82802AB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5866 | .total_size = 512, |
| 5867 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5868 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 5869 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5870 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5871 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5872 | .block_erasers = |
| 5873 | { |
| 5874 | { |
| 5875 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5876 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5877 | }, |
| 5878 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5879 | .unlock = unlock_82802ab, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5880 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5881 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5882 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5883 | }, |
| 5884 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5885 | { |
| 5886 | .vendor = "Intel", |
| 5887 | .name = "82802AC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5888 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5889 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5890 | .model_id = INTEL_82802AC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5891 | .total_size = 1024, |
| 5892 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5893 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5894 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5895 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5896 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5897 | .block_erasers = |
| 5898 | { |
| 5899 | { |
| 5900 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5901 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5902 | }, |
| 5903 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5904 | .unlock = unlock_82802ab, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5905 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5906 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5907 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5908 | }, |
| 5909 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5910 | { |
| 5911 | .vendor = "Macronix", |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 5912 | .name = "MX23L3254", |
| 5913 | .bustype = BUS_SPI, |
| 5914 | .manufacture_id = MACRONIX_ID, |
| 5915 | .model_id = MACRONIX_MX23L3254, |
| 5916 | .total_size = 4096, |
| 5917 | .page_size = 256, |
| 5918 | .tested = TEST_OK_PR | TEST_BAD_EW, |
| 5919 | .probe = probe_spi_rdid, |
| 5920 | .probe_timing = TIMING_ZERO, |
| 5921 | .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */ |
| 5922 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 5923 | .voltage = {3000, 3600}, |
| 5924 | }, |
| 5925 | |
| 5926 | { |
| 5927 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5928 | .name = "MX25L512(E)/MX25V512(C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5929 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5930 | .manufacture_id = MACRONIX_ID, |
| 5931 | .model_id = MACRONIX_MX25L512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5932 | .total_size = 64, |
| 5933 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5934 | /* MX25L512E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5935 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 5936 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5937 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5938 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5939 | .block_erasers = |
| 5940 | { |
| 5941 | { |
| 5942 | .eraseblocks = { {4 * 1024, 16} }, |
| 5943 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5944 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5945 | .eraseblocks = { {64 * 1024, 1} }, |
| 5946 | .block_erase = spi_block_erase_52, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5947 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5948 | .eraseblocks = { {64 * 1024, 1} }, |
| 5949 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5950 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5951 | .eraseblocks = { {64 * 1024, 1} }, |
| 5952 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5953 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5954 | .eraseblocks = { {64 * 1024, 1} }, |
| 5955 | .block_erase = spi_block_erase_c7, |
| 5956 | }, |
| 5957 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5958 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5959 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5960 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5961 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */ |
| 5962 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5963 | }, |
| 5964 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5965 | { |
| 5966 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5967 | .name = "MX25L1005(C)/MX25L1006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5968 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5969 | .manufacture_id = MACRONIX_ID, |
| 5970 | .model_id = MACRONIX_MX25L1005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5971 | .total_size = 128, |
| 5972 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5973 | /* MX25L1006E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5974 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 5975 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5976 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5977 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5978 | .block_erasers = |
| 5979 | { |
| 5980 | { |
| 5981 | .eraseblocks = { {4 * 1024, 32} }, |
| 5982 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5983 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5984 | .eraseblocks = { {64 * 1024, 2} }, |
| 5985 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5986 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5987 | .eraseblocks = { {128 * 1024, 1} }, |
| 5988 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5989 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5990 | .eraseblocks = { {128 * 1024, 1} }, |
| 5991 | .block_erase = spi_block_erase_c7, |
| 5992 | }, |
| 5993 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5994 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5995 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5996 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5997 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5998 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5999 | }, |
| 6000 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6001 | { |
| 6002 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6003 | .name = "MX25L2005(C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6004 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6005 | .manufacture_id = MACRONIX_ID, |
| 6006 | .model_id = MACRONIX_MX25L2005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6007 | .total_size = 256, |
| 6008 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6009 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 6010 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6011 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6012 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6013 | .block_erasers = |
| 6014 | { |
| 6015 | { |
| 6016 | .eraseblocks = { {4 * 1024, 64} }, |
| 6017 | .block_erase = spi_block_erase_20, |
| 6018 | }, { |
| 6019 | .eraseblocks = { {64 * 1024, 4} }, |
| 6020 | .block_erase = spi_block_erase_52, |
| 6021 | }, { |
| 6022 | .eraseblocks = { {64 * 1024, 4} }, |
| 6023 | .block_erase = spi_block_erase_d8, |
| 6024 | }, { |
| 6025 | .eraseblocks = { {256 * 1024, 1} }, |
| 6026 | .block_erase = spi_block_erase_60, |
| 6027 | }, { |
| 6028 | .eraseblocks = { {256 * 1024, 1} }, |
| 6029 | .block_erase = spi_block_erase_c7, |
| 6030 | }, |
| 6031 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6032 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6033 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6034 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6035 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6036 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6037 | }, |
| 6038 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6039 | { |
| 6040 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6041 | .name = "MX25L4005(A/C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6042 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6043 | .manufacture_id = MACRONIX_ID, |
| 6044 | .model_id = MACRONIX_MX25L4005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6045 | .total_size = 512, |
| 6046 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6047 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 6048 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6049 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6050 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6051 | .block_erasers = |
| 6052 | { |
| 6053 | { |
| 6054 | .eraseblocks = { {4 * 1024, 128} }, |
| 6055 | .block_erase = spi_block_erase_20, |
| 6056 | }, { |
| 6057 | .eraseblocks = { {64 * 1024, 8} }, |
| 6058 | .block_erase = spi_block_erase_52, |
| 6059 | }, { |
| 6060 | .eraseblocks = { {64 * 1024, 8} }, |
| 6061 | .block_erase = spi_block_erase_d8, |
| 6062 | }, { |
| 6063 | .eraseblocks = { {512 * 1024, 1} }, |
| 6064 | .block_erase = spi_block_erase_60, |
| 6065 | }, { |
| 6066 | .eraseblocks = { {512 * 1024, 1} }, |
| 6067 | .block_erase = spi_block_erase_c7, |
| 6068 | }, |
| 6069 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6070 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6071 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6072 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6073 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6074 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6075 | }, |
| 6076 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6077 | { |
| 6078 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6079 | .name = "MX25L8005/MX25V8005", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6080 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6081 | .manufacture_id = MACRONIX_ID, |
| 6082 | .model_id = MACRONIX_MX25L8005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6083 | .total_size = 1024, |
| 6084 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6085 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 6086 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6087 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6088 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6089 | .block_erasers = |
| 6090 | { |
| 6091 | { |
| 6092 | .eraseblocks = { {4 * 1024, 256} }, |
| 6093 | .block_erase = spi_block_erase_20, |
| 6094 | }, { |
| 6095 | .eraseblocks = { {64 * 1024, 16} }, |
| 6096 | .block_erase = spi_block_erase_52, |
| 6097 | }, { |
| 6098 | .eraseblocks = { {64 * 1024, 16} }, |
| 6099 | .block_erase = spi_block_erase_d8, |
| 6100 | }, { |
| 6101 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6102 | .block_erase = spi_block_erase_60, |
| 6103 | }, { |
| 6104 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6105 | .block_erase = spi_block_erase_c7, |
| 6106 | }, |
| 6107 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6108 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6109 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6110 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6111 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6112 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6113 | }, |
| 6114 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6115 | { |
| 6116 | .vendor = "Macronix", |
| 6117 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6118 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6119 | .manufacture_id = MACRONIX_ID, |
| 6120 | .model_id = MACRONIX_MX25L1605, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6121 | .total_size = 2048, |
| 6122 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6123 | .feature_bits = FEATURE_WRSR_WREN, |
Sven Schnelle | 4bd8a40 | 2011-03-07 10:59:06 +0000 | [diff] [blame] | 6124 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6125 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6126 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6127 | .block_erasers = |
| 6128 | { |
| 6129 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6130 | .eraseblocks = { {64 * 1024, 32} }, |
| 6131 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6132 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6133 | .eraseblocks = { {64 * 1024, 32} }, |
| 6134 | .block_erase = spi_block_erase_d8, |
| 6135 | }, { |
| 6136 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6137 | .block_erase = spi_block_erase_60, |
| 6138 | }, { |
| 6139 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6140 | .block_erase = spi_block_erase_c7, |
| 6141 | }, |
| 6142 | }, |
| 6143 | .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */ |
| 6144 | .unlock = spi_disable_blockprotect, |
| 6145 | .write = spi_chip_write_256, |
| 6146 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6147 | .voltage = {2700, 3600}, |
| 6148 | }, |
| 6149 | |
| 6150 | { |
| 6151 | .vendor = "Macronix", |
| 6152 | .name = "MX25L1605A/MX25L1606E", |
| 6153 | .bustype = BUS_SPI, |
| 6154 | .manufacture_id = MACRONIX_ID, |
| 6155 | .model_id = MACRONIX_MX25L1605, |
| 6156 | .total_size = 2048, |
| 6157 | .page_size = 256, |
| 6158 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */ |
| 6159 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6160 | .tested = TEST_OK_PREW, |
| 6161 | .probe = probe_spi_rdid, |
| 6162 | .probe_timing = TIMING_ZERO, |
| 6163 | .block_erasers = |
| 6164 | { |
| 6165 | { |
| 6166 | .eraseblocks = { {4 * 1024, 512} }, |
| 6167 | .block_erase = spi_block_erase_20, |
| 6168 | }, { |
| 6169 | .eraseblocks = { {64 * 1024, 32} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6170 | .block_erase = spi_block_erase_52, |
| 6171 | }, { |
| 6172 | .eraseblocks = { {64 * 1024, 32} }, |
| 6173 | .block_erase = spi_block_erase_d8, |
| 6174 | }, { |
| 6175 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6176 | .block_erase = spi_block_erase_60, |
| 6177 | }, { |
| 6178 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6179 | .block_erase = spi_block_erase_c7, |
| 6180 | }, |
| 6181 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6182 | .printlock = spi_prettyprint_status_register_default_bp3, /* MX25L1605A bp2 only */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6183 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6184 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6185 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6186 | .voltage = {2700, 3600}, |
| 6187 | }, |
| 6188 | |
| 6189 | { |
| 6190 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 6191 | .name = "MX25L1605D/MX25L1608D/MX25L1673E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6192 | .bustype = BUS_SPI, |
| 6193 | .manufacture_id = MACRONIX_ID, |
| 6194 | .model_id = MACRONIX_MX25L1605, |
| 6195 | .total_size = 2048, |
| 6196 | .page_size = 256, |
| 6197 | .feature_bits = FEATURE_WRSR_WREN, |
| 6198 | .tested = TEST_OK_PREW, |
| 6199 | .probe = probe_spi_rdid, |
| 6200 | .probe_timing = TIMING_ZERO, |
| 6201 | .block_erasers = |
| 6202 | { |
| 6203 | { |
| 6204 | .eraseblocks = { {4 * 1024, 512} }, |
| 6205 | .block_erase = spi_block_erase_20, |
| 6206 | }, { |
| 6207 | .eraseblocks = { {64 * 1024, 32} }, |
| 6208 | .block_erase = spi_block_erase_d8, |
| 6209 | }, { |
| 6210 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6211 | .block_erase = spi_block_erase_60, |
| 6212 | }, { |
| 6213 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6214 | .block_erase = spi_block_erase_c7, |
| 6215 | }, |
| 6216 | }, |
| 6217 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: Continously Program (CP) mode */ |
| 6218 | .unlock = spi_disable_blockprotect, |
| 6219 | .write = spi_chip_write_256, |
| 6220 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6221 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6222 | }, |
| 6223 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6224 | { |
| 6225 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6226 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6227 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6228 | .manufacture_id = MACRONIX_ID, |
| 6229 | .model_id = MACRONIX_MX25L1635D, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6230 | .total_size = 2048, |
| 6231 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6232 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 6233 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6234 | .tested = TEST_UNTESTED, |
| 6235 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6236 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6237 | .block_erasers = |
| 6238 | { |
| 6239 | { |
| 6240 | .eraseblocks = { {4 * 1024, 512} }, |
| 6241 | .block_erase = spi_block_erase_20, |
| 6242 | }, { |
| 6243 | .eraseblocks = { {64 * 1024, 32} }, |
| 6244 | .block_erase = spi_block_erase_d8, |
| 6245 | }, { |
| 6246 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6247 | .block_erase = spi_block_erase_60, |
| 6248 | }, { |
| 6249 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6250 | .block_erase = spi_block_erase_c7, |
| 6251 | } |
| 6252 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6253 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6254 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6255 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6256 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6257 | .voltage = {2700, 3600}, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6258 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 6259 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6260 | { |
| 6261 | .vendor = "Macronix", |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 6262 | .name = "MX25L1635E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6263 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6264 | .manufacture_id = MACRONIX_ID, |
| 6265 | .model_id = MACRONIX_MX25L1635E, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 6266 | .total_size = 2048, |
| 6267 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6268 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 6269 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 6270 | .tested = TEST_UNTESTED, |
| 6271 | .probe = probe_spi_rdid, |
| 6272 | .probe_timing = TIMING_ZERO, |
| 6273 | .block_erasers = |
| 6274 | { |
| 6275 | { |
| 6276 | .eraseblocks = { {4 * 1024, 512} }, |
| 6277 | .block_erase = spi_block_erase_20, |
| 6278 | }, { |
| 6279 | .eraseblocks = { {64 * 1024, 32} }, |
| 6280 | .block_erase = spi_block_erase_d8, |
| 6281 | }, { |
| 6282 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6283 | .block_erase = spi_block_erase_60, |
| 6284 | }, { |
| 6285 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6286 | .block_erase = spi_block_erase_c7, |
| 6287 | } |
| 6288 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6289 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 6290 | .unlock = spi_disable_blockprotect, |
| 6291 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6292 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6293 | .voltage = {2700, 3600}, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 6294 | }, |
| 6295 | |
| 6296 | { |
| 6297 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6298 | .name = "MX25L3205(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6299 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6300 | .manufacture_id = MACRONIX_ID, |
| 6301 | .model_id = MACRONIX_MX25L3205, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6302 | .total_size = 4096, |
| 6303 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6304 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 6305 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6306 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6307 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6308 | .block_erasers = |
| 6309 | { |
| 6310 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6311 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6312 | .block_erase = spi_block_erase_20, |
| 6313 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6314 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6315 | .block_erase = spi_block_erase_d8, |
| 6316 | }, { |
| 6317 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6318 | .block_erase = spi_block_erase_60, |
| 6319 | }, { |
| 6320 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6321 | .block_erase = spi_block_erase_c7, |
| 6322 | }, |
| 6323 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6324 | .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6325 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6326 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6327 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6328 | .voltage = {2700, 3600}, |
| 6329 | }, |
| 6330 | |
| 6331 | { |
| 6332 | .vendor = "Macronix", |
| 6333 | .name = "MX25L3205D/MX25L3208D", |
| 6334 | .bustype = BUS_SPI, |
| 6335 | .manufacture_id = MACRONIX_ID, |
| 6336 | .model_id = MACRONIX_MX25L3205, |
| 6337 | .total_size = 4096, |
| 6338 | .page_size = 256, |
| 6339 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 6340 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6341 | .tested = TEST_OK_PREW, |
| 6342 | .probe = probe_spi_rdid, |
| 6343 | .probe_timing = TIMING_ZERO, |
| 6344 | .block_erasers = |
| 6345 | { |
| 6346 | { |
| 6347 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6348 | .block_erase = spi_block_erase_20, |
| 6349 | }, { |
| 6350 | .eraseblocks = { {64 * 1024, 64} }, |
| 6351 | .block_erase = spi_block_erase_d8, |
| 6352 | }, { |
| 6353 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6354 | .block_erase = spi_block_erase_60, |
| 6355 | }, { |
| 6356 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6357 | .block_erase = spi_block_erase_c7, |
| 6358 | }, |
| 6359 | }, |
| 6360 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: CP mode */ |
| 6361 | .unlock = spi_disable_blockprotect, |
| 6362 | .write = spi_chip_write_256, |
| 6363 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 6364 | .voltage = {2700, 3600}, |
| 6365 | }, |
| 6366 | |
| 6367 | { |
| 6368 | .vendor = "Macronix", |
| 6369 | .name = "MX25L3206E", |
| 6370 | .bustype = BUS_SPI, |
| 6371 | .manufacture_id = MACRONIX_ID, |
| 6372 | .model_id = MACRONIX_MX25L3205, |
| 6373 | .total_size = 4096, |
| 6374 | .page_size = 256, |
| 6375 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 6376 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6377 | .tested = TEST_OK_PREW, |
| 6378 | .probe = probe_spi_rdid, |
| 6379 | .probe_timing = TIMING_ZERO, |
| 6380 | .block_erasers = |
| 6381 | { |
| 6382 | { |
| 6383 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6384 | .block_erase = spi_block_erase_20, |
| 6385 | }, { |
| 6386 | .eraseblocks = { {64 * 1024, 64} }, |
| 6387 | .block_erase = spi_block_erase_d8, |
| 6388 | }, { |
| 6389 | .eraseblocks = { {64 * 1024, 64} }, |
| 6390 | .block_erase = spi_block_erase_52, |
| 6391 | }, { |
| 6392 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6393 | .block_erase = spi_block_erase_60, |
| 6394 | }, { |
| 6395 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6396 | .block_erase = spi_block_erase_c7, |
| 6397 | }, |
| 6398 | }, |
| 6399 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 6400 | .unlock = spi_disable_blockprotect, |
| 6401 | .write = spi_chip_write_256, |
| 6402 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6403 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6404 | }, |
| 6405 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6406 | { |
| 6407 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 6408 | .name = "MX25L3273E", |
| 6409 | .bustype = BUS_SPI, |
| 6410 | .manufacture_id = MACRONIX_ID, |
| 6411 | .model_id = MACRONIX_MX25L3205, |
| 6412 | .total_size = 4096, |
| 6413 | .page_size = 256, |
| 6414 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 6415 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6416 | .tested = TEST_UNTESTED, |
| 6417 | .probe = probe_spi_rdid, |
| 6418 | .probe_timing = TIMING_ZERO, |
| 6419 | .block_erasers = |
| 6420 | { |
| 6421 | { |
| 6422 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6423 | .block_erase = spi_block_erase_20, |
| 6424 | }, { |
| 6425 | .eraseblocks = { {32 * 1024, 128} }, |
| 6426 | .block_erase = spi_block_erase_52, |
| 6427 | }, { |
| 6428 | .eraseblocks = { {64 * 1024, 64} }, |
| 6429 | .block_erase = spi_block_erase_d8, |
| 6430 | }, { |
| 6431 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6432 | .block_erase = spi_block_erase_60, |
| 6433 | }, { |
| 6434 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6435 | .block_erase = spi_block_erase_c7, |
| 6436 | }, |
| 6437 | }, |
| 6438 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 6439 | .unlock = spi_disable_blockprotect, |
| 6440 | .write = spi_chip_write_256, |
| 6441 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 6442 | .voltage = {2700, 3600}, |
| 6443 | }, |
| 6444 | |
| 6445 | { |
| 6446 | .vendor = "Macronix", |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6447 | .name = "MX25L3235D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6448 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6449 | .manufacture_id = MACRONIX_ID, |
| 6450 | .model_id = MACRONIX_MX25L3235D, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6451 | .total_size = 4096, |
| 6452 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6453 | /* OTP: 256B total; enter 0xB1, exit 0xC1 */ |
| 6454 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6455 | .tested = TEST_UNTESTED, |
| 6456 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6457 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6458 | .block_erasers = |
| 6459 | { |
| 6460 | { |
| 6461 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6462 | .block_erase = spi_block_erase_20, |
| 6463 | }, { |
| 6464 | .eraseblocks = { {64 * 1024, 64} }, |
| 6465 | .block_erase = spi_block_erase_d8, |
| 6466 | }, { |
| 6467 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6468 | .block_erase = spi_block_erase_60, |
| 6469 | }, { |
| 6470 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6471 | .block_erase = spi_block_erase_c7, |
| 6472 | } |
| 6473 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6474 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6475 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6476 | .write = spi_chip_write_256, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6477 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6478 | .voltage = {2700, 3600}, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6479 | }, |
| 6480 | |
| 6481 | { |
| 6482 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6483 | .name = "MX25L6405(D)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6484 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6485 | .manufacture_id = MACRONIX_ID, |
| 6486 | .model_id = MACRONIX_MX25L6405, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6487 | .total_size = 8192, |
| 6488 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6489 | /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */ |
| 6490 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 6491 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6492 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6493 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6494 | .block_erasers = |
| 6495 | { |
| 6496 | { |
| 6497 | .eraseblocks = { {64 * 1024, 128} }, |
| 6498 | .block_erase = spi_block_erase_20, |
| 6499 | }, { |
| 6500 | .eraseblocks = { {64 * 1024, 128} }, |
| 6501 | .block_erase = spi_block_erase_d8, |
| 6502 | }, { |
| 6503 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6504 | .block_erase = spi_block_erase_60, |
| 6505 | }, { |
| 6506 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6507 | .block_erase = spi_block_erase_c7, |
| 6508 | } |
| 6509 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6510 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 has different meanings */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6511 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6512 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6513 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6514 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6515 | }, |
| 6516 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6517 | { |
| 6518 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6519 | .name = "MX25L6406E/MX25L6436E", |
| 6520 | .bustype = BUS_SPI, |
| 6521 | .manufacture_id = MACRONIX_ID, |
| 6522 | .model_id = MACRONIX_MX25L6405, |
| 6523 | .total_size = 8192, |
| 6524 | .page_size = 256, |
| 6525 | /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */ |
| 6526 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6527 | .tested = TEST_OK_PREW, |
| 6528 | .probe = probe_spi_rdid, |
| 6529 | .probe_timing = TIMING_ZERO, |
| 6530 | .block_erasers = |
| 6531 | { |
| 6532 | { |
| 6533 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6534 | .block_erase = spi_block_erase_20, |
| 6535 | }, { |
| 6536 | .eraseblocks = { {64 * 1024, 128} }, |
| 6537 | .block_erase = spi_block_erase_d8, |
| 6538 | }, { |
| 6539 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6540 | .block_erase = spi_block_erase_60, |
| 6541 | }, { |
| 6542 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6543 | .block_erase = spi_block_erase_c7, |
| 6544 | } |
| 6545 | }, |
| 6546 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 for 36E is quad enable */ |
| 6547 | .unlock = spi_disable_blockprotect, |
| 6548 | .write = spi_chip_write_256, |
| 6549 | .read = spi_chip_read, |
| 6550 | .voltage = {2700, 3600}, |
| 6551 | }, |
| 6552 | |
| 6553 | { |
| 6554 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 6555 | .name = "MX25L6445E/MX25L6473E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6556 | .bustype = BUS_SPI, |
| 6557 | .manufacture_id = MACRONIX_ID, |
| 6558 | .model_id = MACRONIX_MX25L6405, |
| 6559 | .total_size = 8192, |
| 6560 | .page_size = 256, |
| 6561 | /* supports SFDP */ |
| 6562 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6563 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6564 | .tested = TEST_OK_PREW, |
| 6565 | .probe = probe_spi_rdid, |
| 6566 | .probe_timing = TIMING_ZERO, |
| 6567 | .block_erasers = |
| 6568 | { |
| 6569 | { |
| 6570 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6571 | .block_erase = spi_block_erase_20, |
| 6572 | }, { |
| 6573 | .eraseblocks = { {32 * 1024, 256} }, |
| 6574 | .block_erase = spi_block_erase_52, |
| 6575 | }, { |
| 6576 | .eraseblocks = { {64 * 1024, 128} }, |
| 6577 | .block_erase = spi_block_erase_d8, |
| 6578 | }, { |
| 6579 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6580 | .block_erase = spi_block_erase_60, |
| 6581 | }, { |
| 6582 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6583 | .block_erase = spi_block_erase_c7, |
| 6584 | } |
| 6585 | }, |
| 6586 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 6587 | .unlock = spi_disable_blockprotect, |
| 6588 | .write = spi_chip_write_256, |
| 6589 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6590 | .voltage = {2700, 3600}, |
| 6591 | }, |
| 6592 | |
| 6593 | { |
| 6594 | .vendor = "Macronix", |
| 6595 | .name = "MX25L12805(D)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6596 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6597 | .manufacture_id = MACRONIX_ID, |
| 6598 | .model_id = MACRONIX_MX25L12805, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 6599 | .total_size = 16384, |
| 6600 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6601 | /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */ |
| 6602 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6603 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 6604 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6605 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6606 | .block_erasers = |
| 6607 | { |
| 6608 | { |
| 6609 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6610 | .block_erase = spi_block_erase_20, |
| 6611 | }, { |
| 6612 | .eraseblocks = { {64 * 1024, 256} }, |
| 6613 | .block_erase = spi_block_erase_d8, |
| 6614 | }, { |
| 6615 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6616 | .block_erase = spi_block_erase_60, |
| 6617 | }, { |
| 6618 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6619 | .block_erase = spi_block_erase_c7, |
| 6620 | } |
| 6621 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6622 | .printlock = spi_prettyprint_status_register_default_bp3, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6623 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6624 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6625 | .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6626 | .voltage = {2700, 3600}, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 6627 | }, |
| 6628 | |
| 6629 | { |
| 6630 | .vendor = "Macronix", |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 6631 | .name = "MX25U1635E", |
| 6632 | .bustype = BUS_SPI, |
| 6633 | .manufacture_id = MACRONIX_ID, |
| 6634 | .model_id = MACRONIX_MX25U1635E, |
| 6635 | .total_size = 2048, |
| 6636 | .page_size = 256, |
| 6637 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6638 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 6639 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6640 | .tested = TEST_UNTESTED, |
| 6641 | .probe = probe_spi_rdid, |
| 6642 | .probe_timing = TIMING_ZERO, |
| 6643 | .block_erasers = |
| 6644 | { |
| 6645 | { |
| 6646 | .eraseblocks = { {4 * 1024, 512} }, |
| 6647 | .block_erase = spi_block_erase_20, |
| 6648 | }, { |
| 6649 | .eraseblocks = { {32 * 1024, 64} }, |
| 6650 | .block_erase = spi_block_erase_52, |
| 6651 | }, { |
| 6652 | .eraseblocks = { {64 * 1024, 32} }, |
| 6653 | .block_erase = spi_block_erase_d8, |
| 6654 | }, { |
| 6655 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6656 | .block_erase = spi_block_erase_60, |
| 6657 | }, { |
| 6658 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6659 | .block_erase = spi_block_erase_c7, |
| 6660 | } |
| 6661 | }, |
| 6662 | /* TODO: security register */ |
| 6663 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 6664 | .unlock = spi_disable_blockprotect, |
| 6665 | .write = spi_chip_write_256, |
| 6666 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6667 | .voltage = {1650, 2000}, |
| 6668 | }, |
| 6669 | |
| 6670 | { |
| 6671 | .vendor = "Macronix", |
| 6672 | .name = "MX25U3235E/F", |
| 6673 | .bustype = BUS_SPI, |
| 6674 | .manufacture_id = MACRONIX_ID, |
| 6675 | .model_id = MACRONIX_MX25U3235E, |
| 6676 | .total_size = 4096, |
| 6677 | .page_size = 256, |
| 6678 | /* F model supports SFDP */ |
| 6679 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6680 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 6681 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6682 | .tested = TEST_OK_PREW, |
| 6683 | .probe = probe_spi_rdid, |
| 6684 | .probe_timing = TIMING_ZERO, |
| 6685 | .block_erasers = |
| 6686 | { |
| 6687 | { |
| 6688 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6689 | .block_erase = spi_block_erase_20, |
| 6690 | }, { |
| 6691 | .eraseblocks = { {32 * 1024, 128} }, |
| 6692 | .block_erase = spi_block_erase_52, |
| 6693 | }, { |
| 6694 | .eraseblocks = { {64 * 1024, 64} }, |
| 6695 | .block_erase = spi_block_erase_d8, |
| 6696 | }, { |
| 6697 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6698 | .block_erase = spi_block_erase_60, |
| 6699 | }, { |
| 6700 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6701 | .block_erase = spi_block_erase_c7, |
| 6702 | } |
| 6703 | }, |
| 6704 | /* TODO: security register */ |
| 6705 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 6706 | .unlock = spi_disable_blockprotect, |
| 6707 | .write = spi_chip_write_256, |
| 6708 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6709 | .voltage = {1650, 2000}, |
| 6710 | }, |
| 6711 | |
| 6712 | { |
| 6713 | .vendor = "Macronix", |
| 6714 | .name = "MX25U6435E/F", |
| 6715 | .bustype = BUS_SPI, |
| 6716 | .manufacture_id = MACRONIX_ID, |
| 6717 | .model_id = MACRONIX_MX25U6435E, |
| 6718 | .total_size = 8192, |
| 6719 | .page_size = 256, |
| 6720 | /* F model supports SFDP */ |
| 6721 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6722 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 6723 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6724 | .tested = TEST_UNTESTED, |
| 6725 | .probe = probe_spi_rdid, |
| 6726 | .probe_timing = TIMING_ZERO, |
| 6727 | .block_erasers = |
| 6728 | { |
| 6729 | { |
| 6730 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6731 | .block_erase = spi_block_erase_20, |
| 6732 | }, { |
| 6733 | .eraseblocks = { {32 * 1024, 256} }, |
| 6734 | .block_erase = spi_block_erase_52, |
| 6735 | }, { |
| 6736 | .eraseblocks = { {64 * 1024, 128} }, |
| 6737 | .block_erase = spi_block_erase_d8, |
| 6738 | }, { |
| 6739 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6740 | .block_erase = spi_block_erase_60, |
| 6741 | }, { |
| 6742 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6743 | .block_erase = spi_block_erase_c7, |
| 6744 | } |
| 6745 | }, |
| 6746 | /* TODO: security register */ |
| 6747 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 6748 | .unlock = spi_disable_blockprotect, |
| 6749 | .write = spi_chip_write_256, |
| 6750 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6751 | .voltage = {1650, 2000}, |
| 6752 | }, |
| 6753 | |
| 6754 | { |
| 6755 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6756 | .name = "MX29F001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6757 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6758 | .manufacture_id = MACRONIX_ID, |
| 6759 | .model_id = MACRONIX_MX29F001B, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6760 | .total_size = 128, |
| 6761 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6762 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6763 | .tested = TEST_UNTESTED, |
| 6764 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6765 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6766 | .block_erasers = |
| 6767 | { |
| 6768 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6769 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6770 | {8 * 1024, 1}, |
| 6771 | {4 * 1024, 2}, |
| 6772 | {8 * 1024, 2}, |
| 6773 | {32 * 1024, 1}, |
| 6774 | {64 * 1024, 1}, |
| 6775 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6776 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6777 | }, { |
| 6778 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6779 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6780 | } |
| 6781 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6782 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6783 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6784 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6785 | }, |
| 6786 | |
| 6787 | { |
| 6788 | .vendor = "Macronix", |
| 6789 | .name = "MX29F001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6790 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6791 | .manufacture_id = MACRONIX_ID, |
| 6792 | .model_id = MACRONIX_MX29F001T, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6793 | .total_size = 128, |
| 6794 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6795 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stefan Tauner | 74c6ec6 | 2011-05-18 01:31:46 +0000 | [diff] [blame] | 6796 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6797 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6798 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6799 | .block_erasers = |
| 6800 | { |
| 6801 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6802 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6803 | {64 * 1024, 1}, |
| 6804 | {32 * 1024, 1}, |
| 6805 | {8 * 1024, 2}, |
| 6806 | {4 * 1024, 2}, |
| 6807 | {8 * 1024, 1}, |
| 6808 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6809 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6810 | }, { |
| 6811 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6812 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6813 | } |
| 6814 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6815 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6816 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6817 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6818 | }, |
| 6819 | |
| 6820 | { |
| 6821 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 6822 | .name = "MX29F002(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6823 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6824 | .manufacture_id = MACRONIX_ID, |
| 6825 | .model_id = MACRONIX_MX29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6826 | .total_size = 256, |
| 6827 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6828 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6829 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6830 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6831 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6832 | .block_erasers = |
| 6833 | { |
| 6834 | { |
| 6835 | .eraseblocks = { |
| 6836 | {16 * 1024, 1}, |
| 6837 | {8 * 1024, 2}, |
| 6838 | {32 * 1024, 1}, |
| 6839 | {64 * 1024, 3}, |
| 6840 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6841 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6842 | }, { |
| 6843 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6844 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6845 | }, |
| 6846 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6847 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6848 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6849 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6850 | }, |
| 6851 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6852 | { |
| 6853 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 6854 | .name = "MX29F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6855 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6856 | .manufacture_id = MACRONIX_ID, |
| 6857 | .model_id = MACRONIX_MX29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6858 | .total_size = 256, |
| 6859 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6860 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 6861 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6862 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6863 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6864 | .block_erasers = |
| 6865 | { |
| 6866 | { |
| 6867 | .eraseblocks = { |
| 6868 | {64 * 1024, 3}, |
| 6869 | {32 * 1024, 1}, |
| 6870 | {8 * 1024, 2}, |
| 6871 | {16 * 1024, 1}, |
| 6872 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6873 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6874 | }, { |
| 6875 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6876 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6877 | }, |
| 6878 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6879 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6880 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6881 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6882 | }, |
| 6883 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6884 | { |
| 6885 | .vendor = "Macronix", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6886 | .name = "MX29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6887 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6888 | .manufacture_id = MACRONIX_ID, |
| 6889 | .model_id = MACRONIX_MX29F040, |
| 6890 | .total_size = 512, |
| 6891 | .page_size = 64 * 1024, |
| 6892 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6893 | .tested = TEST_UNTESTED, |
| 6894 | .probe = probe_jedec, |
| 6895 | .probe_timing = TIMING_ZERO, |
| 6896 | .block_erasers = |
| 6897 | { |
| 6898 | { |
| 6899 | .eraseblocks = { {64 * 1024, 8} }, |
| 6900 | .block_erase = erase_sector_jedec, |
| 6901 | }, { |
| 6902 | .eraseblocks = { {512 * 1024, 1} }, |
| 6903 | .block_erase = erase_chip_block_jedec, |
| 6904 | }, |
| 6905 | }, |
| 6906 | .write = write_jedec_1, |
| 6907 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6908 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6909 | }, |
| 6910 | |
| 6911 | { |
| 6912 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 6913 | .name = "MX29LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6914 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6915 | .manufacture_id = MACRONIX_ID, |
| 6916 | .model_id = MACRONIX_MX29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6917 | .total_size = 512, |
| 6918 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6919 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6920 | .tested = TEST_UNTESTED, |
| 6921 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6922 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6923 | .block_erasers = |
| 6924 | { |
| 6925 | { |
| 6926 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6927 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6928 | }, { |
| 6929 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6930 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6931 | }, |
| 6932 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6933 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6934 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6935 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 6936 | }, |
| 6937 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6938 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 6939 | .vendor = "Micron/Numonyx/ST", |
| 6940 | .name = "M25P05-A", |
| 6941 | .bustype = BUS_SPI, |
| 6942 | .manufacture_id = ST_ID, |
| 6943 | .model_id = ST_M25P05A, |
| 6944 | .total_size = 64, |
| 6945 | .page_size = 256, |
| 6946 | .feature_bits = FEATURE_WRSR_WREN, |
| 6947 | .tested = TEST_OK_PREW, |
| 6948 | .probe = probe_spi_rdid, |
| 6949 | .probe_timing = TIMING_ZERO, |
| 6950 | .block_erasers = |
| 6951 | { |
| 6952 | { |
| 6953 | .eraseblocks = { {32 * 1024, 2} }, |
| 6954 | .block_erase = spi_block_erase_d8, |
| 6955 | }, { |
| 6956 | .eraseblocks = { {64 * 1024, 1} }, |
| 6957 | .block_erase = spi_block_erase_c7, |
| 6958 | } |
| 6959 | }, |
| 6960 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
| 6961 | .unlock = spi_disable_blockprotect, |
| 6962 | .write = spi_chip_write_256, |
| 6963 | .read = spi_chip_read, |
| 6964 | .voltage = {2700, 3600}, |
| 6965 | }, |
| 6966 | |
| 6967 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 6968 | * ST M25P05-A in RES mode, but supports only 128 byte writes instead |
| 6969 | * of 256 byte writes. We rely heavily on the fact that probe_spi_res1 |
| 6970 | * only is successful if RDID does not work. |
| 6971 | */ |
| 6972 | { |
| 6973 | .vendor = "Micron/Numonyx/ST", |
| 6974 | .name = "M25P05", |
| 6975 | .bustype = BUS_SPI, |
| 6976 | .manufacture_id = 0, /* Not used. */ |
| 6977 | .model_id = ST_M25P05_RES, |
| 6978 | .total_size = 64, |
| 6979 | .page_size = 256, |
| 6980 | .feature_bits = FEATURE_WRSR_WREN, |
| 6981 | .tested = TEST_UNTESTED, |
| 6982 | .probe = probe_spi_res1, |
| 6983 | .probe_timing = TIMING_ZERO, |
| 6984 | .block_erasers = |
| 6985 | { |
| 6986 | { |
| 6987 | .eraseblocks = { {32 * 1024, 2} }, |
| 6988 | .block_erase = spi_block_erase_d8, |
| 6989 | }, { |
| 6990 | .eraseblocks = { {64 * 1024, 1} }, |
| 6991 | .block_erase = spi_block_erase_c7, |
| 6992 | } |
| 6993 | }, |
| 6994 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
| 6995 | .unlock = spi_disable_blockprotect, |
| 6996 | .write = spi_chip_write_1, /* 128 */ |
| 6997 | .read = spi_chip_read, |
| 6998 | .voltage = {2700, 3600}, |
| 6999 | }, |
| 7000 | |
| 7001 | { |
| 7002 | .vendor = "Micron/Numonyx/ST", |
| 7003 | .name = "M25P10-A", |
| 7004 | .bustype = BUS_SPI, |
| 7005 | .manufacture_id = ST_ID, |
| 7006 | .model_id = ST_M25P10A, |
| 7007 | .total_size = 128, |
| 7008 | .page_size = 256, |
| 7009 | .feature_bits = FEATURE_WRSR_WREN, |
| 7010 | .tested = TEST_OK_PRE, |
| 7011 | .probe = probe_spi_rdid, |
| 7012 | .probe_timing = TIMING_ZERO, |
| 7013 | .block_erasers = |
| 7014 | { |
| 7015 | { |
| 7016 | .eraseblocks = { {32 * 1024, 4} }, |
| 7017 | .block_erase = spi_block_erase_d8, |
| 7018 | }, { |
| 7019 | .eraseblocks = { {128 * 1024, 1} }, |
| 7020 | .block_erase = spi_block_erase_c7, |
| 7021 | } |
| 7022 | }, |
| 7023 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
| 7024 | .unlock = spi_disable_blockprotect, |
| 7025 | .write = spi_chip_write_256, |
| 7026 | .read = spi_chip_read, |
| 7027 | .voltage = {2700, 3600}, |
| 7028 | }, |
| 7029 | |
| 7030 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 7031 | { |
| 7032 | .vendor = "Micron/Numonyx/ST", |
| 7033 | .name = "M25P10", |
| 7034 | .bustype = BUS_SPI, |
| 7035 | .manufacture_id = 0, /* Not used. */ |
| 7036 | .model_id = ST_M25P10_RES, |
| 7037 | .total_size = 128, |
| 7038 | .page_size = 256, |
| 7039 | .feature_bits = FEATURE_WRSR_WREN, |
| 7040 | .tested = TEST_UNTESTED, |
| 7041 | .probe = probe_spi_res1, |
| 7042 | .probe_timing = TIMING_ZERO, |
| 7043 | .block_erasers = |
| 7044 | { |
| 7045 | { |
| 7046 | .eraseblocks = { {32 * 1024, 4} }, |
| 7047 | .block_erase = spi_block_erase_d8, |
| 7048 | }, { |
| 7049 | .eraseblocks = { {128 * 1024, 1} }, |
| 7050 | .block_erase = spi_block_erase_c7, |
| 7051 | } |
| 7052 | }, |
| 7053 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
| 7054 | .unlock = spi_disable_blockprotect, |
| 7055 | .write = spi_chip_write_1, /* 128 */ |
| 7056 | .read = spi_chip_read, |
| 7057 | .voltage = {2700, 3600}, |
| 7058 | }, |
| 7059 | |
| 7060 | { |
| 7061 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 7062 | .name = "M25P20", |
| 7063 | .bustype = BUS_SPI, |
| 7064 | .manufacture_id = ST_ID, |
| 7065 | .model_id = ST_M25P20, |
| 7066 | .total_size = 256, |
| 7067 | .page_size = 256, |
| 7068 | .feature_bits = FEATURE_WRSR_WREN, |
| 7069 | .tested = TEST_UNTESTED, |
| 7070 | .probe = probe_spi_rdid, |
| 7071 | .probe_timing = TIMING_ZERO, |
| 7072 | .block_erasers = |
| 7073 | { |
| 7074 | { |
| 7075 | .eraseblocks = { {64 * 1024, 4} }, |
| 7076 | .block_erase = spi_block_erase_d8, |
| 7077 | }, { |
| 7078 | .eraseblocks = { {256 * 1024, 1} }, |
| 7079 | .block_erase = spi_block_erase_c7, |
| 7080 | } |
| 7081 | }, |
| 7082 | .printlock = spi_prettyprint_status_register_default_bp1, |
| 7083 | .unlock = spi_disable_blockprotect, |
| 7084 | .write = spi_chip_write_256, |
| 7085 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7086 | .voltage = {2700, 3600}, |
| 7087 | }, |
| 7088 | |
| 7089 | { |
| 7090 | .vendor = "Micron/Numonyx/ST", |
| 7091 | .name = "M25P20-old", |
| 7092 | .bustype = BUS_SPI, |
| 7093 | .manufacture_id = 0, /* Not used. */ |
| 7094 | .model_id = ST_M25P20_RES, |
| 7095 | .total_size = 256, |
| 7096 | .page_size = 256, |
| 7097 | .feature_bits = FEATURE_WRSR_WREN, |
| 7098 | .tested = TEST_OK_PREW, |
| 7099 | .probe = probe_spi_res1, |
| 7100 | .probe_timing = TIMING_ZERO, |
| 7101 | .block_erasers = |
| 7102 | { |
| 7103 | { |
| 7104 | .eraseblocks = { {64 * 1024, 4} }, |
| 7105 | .block_erase = spi_block_erase_d8, |
| 7106 | }, { |
| 7107 | .eraseblocks = { {256 * 1024, 1} }, |
| 7108 | .block_erase = spi_block_erase_c7, |
| 7109 | } |
| 7110 | }, |
| 7111 | .printlock = spi_prettyprint_status_register_default_bp1, |
| 7112 | .unlock = spi_disable_blockprotect, |
| 7113 | .write = spi_chip_write_256, |
| 7114 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7115 | .voltage = {2700, 3600}, |
| 7116 | }, |
| 7117 | |
| 7118 | { |
| 7119 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 7120 | .name = "M25P40", |
| 7121 | .bustype = BUS_SPI, |
| 7122 | .manufacture_id = ST_ID, |
| 7123 | .model_id = ST_M25P40, |
| 7124 | .total_size = 512, |
| 7125 | .page_size = 256, |
| 7126 | .feature_bits = FEATURE_WRSR_WREN, |
| 7127 | .tested = TEST_OK_PREW, |
| 7128 | .probe = probe_spi_rdid, |
| 7129 | .probe_timing = TIMING_ZERO, |
| 7130 | .block_erasers = |
| 7131 | { |
| 7132 | { |
| 7133 | .eraseblocks = { {64 * 1024, 8} }, |
| 7134 | .block_erase = spi_block_erase_d8, |
| 7135 | }, { |
| 7136 | .eraseblocks = { {512 * 1024, 1} }, |
| 7137 | .block_erase = spi_block_erase_c7, |
| 7138 | } |
| 7139 | }, |
| 7140 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
| 7141 | .unlock = spi_disable_blockprotect, |
| 7142 | .write = spi_chip_write_256, |
| 7143 | .read = spi_chip_read, |
| 7144 | .voltage = {2700, 3600}, |
| 7145 | }, |
| 7146 | |
| 7147 | { |
| 7148 | .vendor = "Micron/Numonyx/ST", |
| 7149 | .name = "M25P40-old", |
| 7150 | .bustype = BUS_SPI, |
| 7151 | .manufacture_id = 0, /* Not used. */ |
| 7152 | .model_id = ST_M25P40_RES, |
| 7153 | .total_size = 512, |
| 7154 | .page_size = 256, |
| 7155 | .feature_bits = FEATURE_WRSR_WREN, |
| 7156 | .tested = TEST_UNTESTED, |
| 7157 | .probe = probe_spi_res1, |
| 7158 | .probe_timing = TIMING_ZERO, |
| 7159 | .block_erasers = |
| 7160 | { |
| 7161 | { |
| 7162 | .eraseblocks = { {64 * 1024, 8} }, |
| 7163 | .block_erase = spi_block_erase_d8, |
| 7164 | }, { |
| 7165 | .eraseblocks = { {512 * 1024, 1} }, |
| 7166 | .block_erase = spi_block_erase_c7, |
| 7167 | } |
| 7168 | }, |
| 7169 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
| 7170 | .unlock = spi_disable_blockprotect, |
| 7171 | .write = spi_chip_write_256, |
| 7172 | .read = spi_chip_read, |
| 7173 | }, |
| 7174 | |
| 7175 | { |
| 7176 | .vendor = "Micron/Numonyx/ST", |
| 7177 | .name = "M25P80", |
| 7178 | .bustype = BUS_SPI, |
| 7179 | .manufacture_id = ST_ID, |
| 7180 | .model_id = ST_M25P80, |
| 7181 | .total_size = 1024, |
| 7182 | .page_size = 256, |
| 7183 | .feature_bits = FEATURE_WRSR_WREN, |
| 7184 | .tested = TEST_OK_PREW, |
| 7185 | .probe = probe_spi_rdid, |
| 7186 | .probe_timing = TIMING_ZERO, |
| 7187 | .block_erasers = |
| 7188 | { |
| 7189 | { |
| 7190 | .eraseblocks = { {64 * 1024, 16} }, |
| 7191 | .block_erase = spi_block_erase_d8, |
| 7192 | }, { |
| 7193 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7194 | .block_erase = spi_block_erase_c7, |
| 7195 | } |
| 7196 | }, |
| 7197 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
| 7198 | .unlock = spi_disable_blockprotect, |
| 7199 | .write = spi_chip_write_256, |
| 7200 | .read = spi_chip_read, |
| 7201 | .voltage = {2700, 3600}, |
| 7202 | }, |
| 7203 | |
| 7204 | { |
| 7205 | .vendor = "Micron/Numonyx/ST", |
| 7206 | .name = "M25P16", |
| 7207 | .bustype = BUS_SPI, |
| 7208 | .manufacture_id = ST_ID, |
| 7209 | .model_id = ST_M25P16, |
| 7210 | .total_size = 2048, |
| 7211 | .page_size = 256, |
| 7212 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7213 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7214 | .probe = probe_spi_rdid, |
| 7215 | .probe_timing = TIMING_ZERO, |
| 7216 | .block_erasers = |
| 7217 | { |
| 7218 | { |
| 7219 | .eraseblocks = { {64 * 1024, 32} }, |
| 7220 | .block_erase = spi_block_erase_d8, |
| 7221 | }, { |
| 7222 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7223 | .block_erase = spi_block_erase_c7, |
| 7224 | } |
| 7225 | }, |
| 7226 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
| 7227 | .unlock = spi_disable_blockprotect, |
| 7228 | .write = spi_chip_write_256, |
| 7229 | .read = spi_chip_read, |
| 7230 | .voltage = {2700, 3600}, |
| 7231 | }, |
| 7232 | |
| 7233 | { |
| 7234 | .vendor = "Micron/Numonyx/ST", |
| 7235 | .name = "M25P32", |
| 7236 | .bustype = BUS_SPI, |
| 7237 | .manufacture_id = ST_ID, |
| 7238 | .model_id = ST_M25P32, |
| 7239 | .total_size = 4096, |
| 7240 | .page_size = 256, |
| 7241 | .feature_bits = FEATURE_WRSR_WREN, |
| 7242 | .tested = TEST_OK_PREW, |
| 7243 | .probe = probe_spi_rdid, |
| 7244 | .probe_timing = TIMING_ZERO, |
| 7245 | .block_erasers = |
| 7246 | { |
| 7247 | { |
| 7248 | .eraseblocks = { {64 * 1024, 64} }, |
| 7249 | .block_erase = spi_block_erase_d8, |
| 7250 | }, { |
| 7251 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7252 | .block_erase = spi_block_erase_c7, |
| 7253 | } |
| 7254 | }, |
| 7255 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
| 7256 | .unlock = spi_disable_blockprotect, |
| 7257 | .write = spi_chip_write_256, |
| 7258 | .read = spi_chip_read, |
| 7259 | .voltage = {2700, 3600}, |
| 7260 | }, |
| 7261 | |
| 7262 | { |
| 7263 | .vendor = "Micron/Numonyx/ST", |
| 7264 | .name = "M25P64", |
| 7265 | .bustype = BUS_SPI, |
| 7266 | .manufacture_id = ST_ID, |
| 7267 | .model_id = ST_M25P64, |
| 7268 | .total_size = 8192, |
| 7269 | .page_size = 256, |
| 7270 | .feature_bits = FEATURE_WRSR_WREN, |
| 7271 | .tested = TEST_OK_PREW, |
| 7272 | .probe = probe_spi_rdid, |
| 7273 | .probe_timing = TIMING_ZERO, |
| 7274 | .block_erasers = |
| 7275 | { |
| 7276 | { |
| 7277 | .eraseblocks = { {64 * 1024, 128} }, |
| 7278 | .block_erase = spi_block_erase_d8, |
| 7279 | }, { |
| 7280 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7281 | .block_erase = spi_block_erase_c7, |
| 7282 | } |
| 7283 | }, |
| 7284 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
| 7285 | .unlock = spi_disable_blockprotect, |
| 7286 | .write = spi_chip_write_256, |
| 7287 | .read = spi_chip_read, |
| 7288 | .voltage = {2700, 3600}, |
| 7289 | }, |
| 7290 | |
| 7291 | { |
| 7292 | .vendor = "Micron/Numonyx/ST", |
| 7293 | .name = "M25P128", |
| 7294 | .bustype = BUS_SPI, |
| 7295 | .manufacture_id = ST_ID, |
| 7296 | .model_id = ST_M25P128, |
| 7297 | .total_size = 16384, |
| 7298 | .page_size = 256, |
| 7299 | .feature_bits = FEATURE_WRSR_WREN, |
| 7300 | .tested = TEST_OK_PREW, |
| 7301 | .probe = probe_spi_rdid, |
| 7302 | .probe_timing = TIMING_ZERO, |
| 7303 | .block_erasers = |
| 7304 | { |
| 7305 | { |
| 7306 | .eraseblocks = { {256 * 1024, 64} }, |
| 7307 | .block_erase = spi_block_erase_d8, |
| 7308 | }, { |
| 7309 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7310 | .block_erase = spi_block_erase_c7, |
| 7311 | } |
| 7312 | }, |
| 7313 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
| 7314 | .unlock = spi_disable_blockprotect, |
| 7315 | .write = spi_chip_write_256, |
| 7316 | .read = spi_chip_read, |
| 7317 | .voltage = {2700, 3600}, |
| 7318 | }, |
| 7319 | |
| 7320 | { |
| 7321 | .vendor = "Micron/Numonyx/ST", |
| 7322 | .name = "M25PE10", |
| 7323 | .bustype = BUS_SPI, |
| 7324 | .manufacture_id = ST_ID, |
| 7325 | .model_id = ST_M25PE10, |
| 7326 | .total_size = 128, |
| 7327 | .page_size = 256, |
| 7328 | .feature_bits = FEATURE_WRSR_WREN, |
| 7329 | .tested = TEST_UNTESTED, |
| 7330 | .probe = probe_spi_rdid, |
| 7331 | .probe_timing = TIMING_ZERO, |
| 7332 | .block_erasers = |
| 7333 | { |
| 7334 | { |
| 7335 | .eraseblocks = { {4 * 1024, 32} }, |
| 7336 | .block_erase = spi_block_erase_20, |
| 7337 | }, { |
| 7338 | .eraseblocks = { {64 * 1024, 2} }, |
| 7339 | .block_erase = spi_block_erase_d8, |
| 7340 | }, { |
| 7341 | .eraseblocks = { {128 * 1024, 1} }, |
| 7342 | .block_erase = spi_block_erase_c7, |
| 7343 | } |
| 7344 | }, |
| 7345 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 7346 | .unlock = spi_disable_blockprotect, |
| 7347 | .write = spi_chip_write_256, |
| 7348 | .read = spi_chip_read, |
| 7349 | .voltage = {2700, 3600}, |
| 7350 | }, |
| 7351 | |
| 7352 | { |
| 7353 | .vendor = "Micron/Numonyx/ST", |
| 7354 | .name = "M25PE20", |
| 7355 | .bustype = BUS_SPI, |
| 7356 | .manufacture_id = ST_ID, |
| 7357 | .model_id = ST_M25PE20, |
| 7358 | .total_size = 256, |
| 7359 | .page_size = 256, |
| 7360 | .feature_bits = FEATURE_WRSR_WREN, |
| 7361 | .tested = TEST_UNTESTED, |
| 7362 | .probe = probe_spi_rdid, |
| 7363 | .probe_timing = TIMING_ZERO, |
| 7364 | .block_erasers = |
| 7365 | { |
| 7366 | { |
| 7367 | .eraseblocks = { {4 * 1024, 64} }, |
| 7368 | .block_erase = spi_block_erase_20, |
| 7369 | }, { |
| 7370 | .eraseblocks = { {64 * 1024, 4} }, |
| 7371 | .block_erase = spi_block_erase_d8, |
| 7372 | }, { |
| 7373 | .eraseblocks = { {256 * 1024, 1} }, |
| 7374 | .block_erase = spi_block_erase_c7, |
| 7375 | } |
| 7376 | }, |
| 7377 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 7378 | .unlock = spi_disable_blockprotect, |
| 7379 | .write = spi_chip_write_256, |
| 7380 | .read = spi_chip_read, |
| 7381 | .voltage = {2700, 3600}, |
| 7382 | }, |
| 7383 | |
| 7384 | { |
| 7385 | .vendor = "Micron/Numonyx/ST", |
| 7386 | .name = "M25PE40", |
| 7387 | .bustype = BUS_SPI, |
| 7388 | .manufacture_id = ST_ID, |
| 7389 | .model_id = ST_M25PE40, |
| 7390 | .total_size = 512, |
| 7391 | .page_size = 256, |
| 7392 | .feature_bits = FEATURE_WRSR_WREN, |
| 7393 | .tested = TEST_UNTESTED, |
| 7394 | .probe = probe_spi_rdid, |
| 7395 | .probe_timing = TIMING_ZERO, |
| 7396 | .block_erasers = |
| 7397 | { |
| 7398 | { |
| 7399 | .eraseblocks = { {4 * 1024, 128} }, |
| 7400 | .block_erase = spi_block_erase_20, |
| 7401 | }, { |
| 7402 | .eraseblocks = { {64 * 1024, 8} }, |
| 7403 | .block_erase = spi_block_erase_d8, |
| 7404 | }, { |
| 7405 | .eraseblocks = { {512 * 1024, 1} }, |
| 7406 | .block_erase = spi_block_erase_c7, |
| 7407 | } |
| 7408 | }, |
| 7409 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 7410 | .unlock = spi_disable_blockprotect, |
| 7411 | .write = spi_chip_write_256, |
| 7412 | .read = spi_chip_read, |
| 7413 | .voltage = {2700, 3600}, |
| 7414 | }, |
| 7415 | |
| 7416 | { |
| 7417 | .vendor = "Micron/Numonyx/ST", |
| 7418 | .name = "M25PE80", |
| 7419 | .bustype = BUS_SPI, |
| 7420 | .manufacture_id = ST_ID, |
| 7421 | .model_id = ST_M25PE80, |
| 7422 | .total_size = 1024, |
| 7423 | .page_size = 256, |
| 7424 | .feature_bits = FEATURE_WRSR_WREN, |
| 7425 | .tested = TEST_OK_PREW, |
| 7426 | .probe = probe_spi_rdid, |
| 7427 | .probe_timing = TIMING_ZERO, |
| 7428 | .block_erasers = |
| 7429 | { |
| 7430 | { |
| 7431 | .eraseblocks = { {4 * 1024, 256} }, |
| 7432 | .block_erase = spi_block_erase_20, |
| 7433 | }, { |
| 7434 | .eraseblocks = { {64 * 1024, 16} }, |
| 7435 | .block_erase = spi_block_erase_d8, |
| 7436 | }, { |
| 7437 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7438 | .block_erase = spi_block_erase_c7, |
| 7439 | } |
| 7440 | }, |
| 7441 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 7442 | .unlock = spi_disable_blockprotect, |
| 7443 | .write = spi_chip_write_256, |
| 7444 | .read = spi_chip_read, |
| 7445 | .voltage = {2700, 3600}, |
| 7446 | }, |
| 7447 | |
| 7448 | { |
| 7449 | .vendor = "Micron/Numonyx/ST", |
| 7450 | .name = "M25PE16", |
| 7451 | .bustype = BUS_SPI, |
| 7452 | .manufacture_id = ST_ID, |
| 7453 | .model_id = ST_M25PE16, |
| 7454 | .total_size = 2048, |
| 7455 | .page_size = 256, |
| 7456 | .feature_bits = FEATURE_WRSR_WREN, |
| 7457 | .tested = TEST_UNTESTED, |
| 7458 | .probe = probe_spi_rdid, |
| 7459 | .probe_timing = TIMING_ZERO, |
| 7460 | .block_erasers = |
| 7461 | { |
| 7462 | { |
| 7463 | .eraseblocks = { {4 * 1024, 512} }, |
| 7464 | .block_erase = spi_block_erase_20, |
| 7465 | }, { |
| 7466 | .eraseblocks = { {64 * 1024, 32} }, |
| 7467 | .block_erase = spi_block_erase_d8, |
| 7468 | }, { |
| 7469 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7470 | .block_erase = spi_block_erase_c7, |
| 7471 | } |
| 7472 | }, |
| 7473 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 7474 | .unlock = spi_disable_blockprotect, |
| 7475 | .write = spi_chip_write_256, |
| 7476 | .read = spi_chip_read, |
| 7477 | .voltage = {2700, 3600}, |
| 7478 | }, |
| 7479 | |
| 7480 | { |
| 7481 | .vendor = "Micron/Numonyx/ST", |
| 7482 | .name = "M25PX80", |
| 7483 | .bustype = BUS_SPI, |
| 7484 | .manufacture_id = ST_ID, |
| 7485 | .model_id = ST_M25PX80, |
| 7486 | .total_size = 1024, |
| 7487 | .page_size = 256, |
| 7488 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7489 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7490 | .tested = TEST_OK_PREW, |
| 7491 | .probe = probe_spi_rdid, |
| 7492 | .probe_timing = TIMING_ZERO, |
| 7493 | .block_erasers = { |
| 7494 | { |
| 7495 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 7496 | .block_erase = spi_block_erase_20, |
| 7497 | }, { |
| 7498 | .eraseblocks = { {64 * 1024, 16} }, |
| 7499 | .block_erase = spi_block_erase_d8, |
| 7500 | }, { |
| 7501 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7502 | .block_erase = spi_block_erase_c7, |
| 7503 | } |
| 7504 | }, |
| 7505 | .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */ |
| 7506 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 7507 | .write = spi_chip_write_256, |
| 7508 | .read = spi_chip_read, |
| 7509 | .voltage = {2700, 3600}, |
| 7510 | }, |
| 7511 | |
| 7512 | { |
| 7513 | .vendor = "Micron/Numonyx/ST", |
| 7514 | .name = "M25PX16", |
| 7515 | .bustype = BUS_SPI, |
| 7516 | .manufacture_id = ST_ID, |
| 7517 | .model_id = ST_M25PX16, |
| 7518 | .total_size = 2048, |
| 7519 | .page_size = 256, |
| 7520 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 7521 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7522 | .tested = TEST_OK_PREW, |
| 7523 | .probe = probe_spi_rdid, |
| 7524 | .probe_timing = TIMING_ZERO, |
| 7525 | .block_erasers = |
| 7526 | { |
| 7527 | { |
| 7528 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 7529 | .block_erase = spi_block_erase_20, |
| 7530 | }, { |
| 7531 | .eraseblocks = { {64 * 1024, 32} }, |
| 7532 | .block_erase = spi_block_erase_d8, |
| 7533 | }, { |
| 7534 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7535 | .block_erase = spi_block_erase_c7, |
| 7536 | } |
| 7537 | }, |
| 7538 | .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */ |
| 7539 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 7540 | .write = spi_chip_write_256, |
| 7541 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7542 | .voltage = {2300, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7543 | }, |
| 7544 | |
| 7545 | { |
| 7546 | .vendor = "Micron/Numonyx/ST", |
| 7547 | .name = "M25PX32", |
| 7548 | .bustype = BUS_SPI, |
| 7549 | .manufacture_id = ST_ID, |
| 7550 | .model_id = ST_M25PX32, |
| 7551 | .total_size = 4096, |
| 7552 | .page_size = 256, |
| 7553 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 7554 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7555 | .tested = TEST_OK_PRE, |
| 7556 | .probe = probe_spi_rdid, |
| 7557 | .probe_timing = TIMING_ZERO, |
| 7558 | .block_erasers = |
| 7559 | { |
| 7560 | { |
| 7561 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 7562 | .block_erase = spi_block_erase_20, |
| 7563 | }, { |
| 7564 | .eraseblocks = { {64 * 1024, 64} }, |
| 7565 | .block_erase = spi_block_erase_d8, |
| 7566 | }, { |
| 7567 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7568 | .block_erase = spi_block_erase_c7, |
| 7569 | } |
| 7570 | }, |
| 7571 | .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */ |
| 7572 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 7573 | .write = spi_chip_write_256, |
| 7574 | .read = spi_chip_read, |
| 7575 | .voltage = {2700, 3600}, |
| 7576 | }, |
| 7577 | |
| 7578 | { |
| 7579 | .vendor = "Micron/Numonyx/ST", |
| 7580 | .name = "M25PX64", |
| 7581 | .bustype = BUS_SPI, |
| 7582 | .manufacture_id = ST_ID, |
| 7583 | .model_id = ST_M25PX64, |
| 7584 | .total_size = 8192, |
| 7585 | .page_size = 256, |
| 7586 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 7587 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7588 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7589 | .probe = probe_spi_rdid, |
| 7590 | .probe_timing = TIMING_ZERO, |
| 7591 | .block_erasers = |
| 7592 | { |
| 7593 | { |
| 7594 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 7595 | .block_erase = spi_block_erase_20, |
| 7596 | }, { |
| 7597 | .eraseblocks = { {64 * 1024, 128} }, |
| 7598 | .block_erase = spi_block_erase_d8, |
| 7599 | }, { |
| 7600 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7601 | .block_erase = spi_block_erase_c7, |
| 7602 | } |
| 7603 | }, |
| 7604 | .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */ |
| 7605 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 7606 | .write = spi_chip_write_256, |
| 7607 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7608 | .voltage = {2700, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7609 | }, |
| 7610 | |
| 7611 | { |
| 7612 | .vendor = "Micron/Numonyx/ST", |
| 7613 | .name = "M45PE10", |
| 7614 | .bustype = BUS_SPI, |
| 7615 | .manufacture_id = ST_ID, |
| 7616 | .model_id = ST_M45PE10, |
| 7617 | .total_size = 128, |
| 7618 | .page_size = 256, |
| 7619 | .tested = TEST_UNTESTED, |
| 7620 | .probe = probe_spi_rdid, |
| 7621 | .probe_timing = TIMING_ZERO, |
| 7622 | .block_erasers = { |
| 7623 | { |
| 7624 | .eraseblocks = { {256, 512} }, |
| 7625 | .block_erase = spi_block_erase_db, |
| 7626 | }, { |
| 7627 | .eraseblocks = { {64 * 1024, 2} }, |
| 7628 | .block_erase = spi_block_erase_d8, |
| 7629 | } |
| 7630 | }, |
| 7631 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7632 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7633 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7634 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7635 | .voltage = {2700, 3600}, |
| 7636 | }, |
| 7637 | |
| 7638 | { |
| 7639 | .vendor = "Micron/Numonyx/ST", |
| 7640 | .name = "M45PE20", |
| 7641 | .bustype = BUS_SPI, |
| 7642 | .manufacture_id = ST_ID, |
| 7643 | .model_id = ST_M45PE20, |
| 7644 | .total_size = 256, |
| 7645 | .page_size = 256, |
| 7646 | .tested = TEST_UNTESTED, |
| 7647 | .probe = probe_spi_rdid, |
| 7648 | .probe_timing = TIMING_ZERO, |
| 7649 | .block_erasers = { |
| 7650 | { |
| 7651 | .eraseblocks = { {256, 1024} }, |
| 7652 | .block_erase = spi_block_erase_db, |
| 7653 | }, { |
| 7654 | .eraseblocks = { {64 * 1024, 4} }, |
| 7655 | .block_erase = spi_block_erase_d8, |
| 7656 | } |
| 7657 | }, |
| 7658 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7659 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7660 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7661 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7662 | .voltage = {2700, 3600}, |
| 7663 | }, |
| 7664 | |
| 7665 | { |
| 7666 | .vendor = "Micron/Numonyx/ST", |
| 7667 | .name = "M45PE40", |
| 7668 | .bustype = BUS_SPI, |
| 7669 | .manufacture_id = ST_ID, |
| 7670 | .model_id = ST_M45PE40, |
| 7671 | .total_size = 512, |
| 7672 | .page_size = 256, |
| 7673 | .tested = TEST_UNTESTED, |
| 7674 | .probe = probe_spi_rdid, |
| 7675 | .probe_timing = TIMING_ZERO, |
| 7676 | .block_erasers = { |
| 7677 | { |
| 7678 | .eraseblocks = { {256, 2048} }, |
| 7679 | .block_erase = spi_block_erase_db, |
| 7680 | }, { |
| 7681 | .eraseblocks = { {64 * 1024, 8} }, |
| 7682 | .block_erase = spi_block_erase_d8, |
| 7683 | } |
| 7684 | }, |
| 7685 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7686 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7687 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7688 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7689 | .voltage = {2700, 3600}, |
| 7690 | }, |
| 7691 | |
| 7692 | { |
| 7693 | .vendor = "Micron/Numonyx/ST", |
| 7694 | .name = "M45PE80", |
| 7695 | .bustype = BUS_SPI, |
| 7696 | .manufacture_id = ST_ID, |
| 7697 | .model_id = ST_M45PE80, |
| 7698 | .total_size = 1024, |
| 7699 | .page_size = 256, |
| 7700 | .tested = TEST_UNTESTED, |
| 7701 | .probe = probe_spi_rdid, |
| 7702 | .probe_timing = TIMING_ZERO, |
| 7703 | .block_erasers = { |
| 7704 | { |
| 7705 | .eraseblocks = { {256, 4096} }, |
| 7706 | .block_erase = spi_block_erase_db, |
| 7707 | }, { |
| 7708 | .eraseblocks = { {64 * 1024, 16} }, |
| 7709 | .block_erase = spi_block_erase_d8, |
| 7710 | } |
| 7711 | }, |
| 7712 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7713 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7714 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7715 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7716 | .voltage = {2700, 3600}, |
| 7717 | }, |
| 7718 | |
| 7719 | { |
| 7720 | .vendor = "Micron/Numonyx/ST", |
| 7721 | .name = "M45PE16", |
| 7722 | .bustype = BUS_SPI, |
| 7723 | .manufacture_id = ST_ID, |
| 7724 | .model_id = ST_M45PE16, |
| 7725 | .total_size = 2048, |
| 7726 | .page_size = 256, |
| 7727 | .tested = TEST_UNTESTED, |
| 7728 | .probe = probe_spi_rdid, |
| 7729 | .probe_timing = TIMING_ZERO, |
| 7730 | .block_erasers = { |
| 7731 | { |
| 7732 | .eraseblocks = { {256, 8192} }, |
| 7733 | .block_erase = spi_block_erase_db, |
| 7734 | }, { |
| 7735 | .eraseblocks = { {64 * 1024, 32} }, |
| 7736 | .block_erase = spi_block_erase_d8, |
| 7737 | } |
| 7738 | }, |
| 7739 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7740 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7741 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7742 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7743 | .voltage = {2700, 3600}, |
| 7744 | }, |
| 7745 | |
| 7746 | { |
| 7747 | .vendor = "Micron/Numonyx/ST", |
| 7748 | .name = "N25Q016", |
| 7749 | .bustype = BUS_SPI, |
| 7750 | .manufacture_id = ST_ID, |
| 7751 | .model_id = ST_N25Q016__1E, |
| 7752 | .total_size = 2048, |
| 7753 | .page_size = 256, |
| 7754 | /* supports SFDP */ |
| 7755 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7756 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7757 | .tested = TEST_UNTESTED, |
| 7758 | .probe = probe_spi_rdid, |
| 7759 | .probe_timing = TIMING_ZERO, |
| 7760 | .block_erasers = |
| 7761 | { |
| 7762 | { |
| 7763 | .eraseblocks = { {4 * 1024, 512} }, |
| 7764 | .block_erase = spi_block_erase_20, |
| 7765 | }, { |
| 7766 | .eraseblocks = { {32 * 1024, 64} }, |
| 7767 | .block_erase = spi_block_erase_52, |
| 7768 | }, { |
| 7769 | .eraseblocks = { {64 * 1024, 32} }, |
| 7770 | .block_erase = spi_block_erase_d8, |
| 7771 | }, { |
| 7772 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7773 | .block_erase = spi_block_erase_c7, |
| 7774 | } |
| 7775 | }, |
| 7776 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7777 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7778 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7779 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7780 | .voltage = {1700, 2000}, |
| 7781 | }, |
| 7782 | |
| 7783 | { |
| 7784 | .vendor = "Micron/Numonyx/ST", |
| 7785 | .name = "N25Q032..1E", |
| 7786 | .bustype = BUS_SPI, |
| 7787 | .manufacture_id = ST_ID, |
| 7788 | .model_id = ST_N25Q032__1E, |
| 7789 | .total_size = 4096, |
| 7790 | .page_size = 256, |
| 7791 | /* supports SFDP */ |
| 7792 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7793 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7794 | .tested = TEST_UNTESTED, |
| 7795 | .probe = probe_spi_rdid, |
| 7796 | .probe_timing = TIMING_ZERO, |
| 7797 | .block_erasers = |
| 7798 | { |
| 7799 | { |
| 7800 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7801 | .block_erase = spi_block_erase_20, |
| 7802 | }, { |
| 7803 | .eraseblocks = { {64 * 1024, 64} }, |
| 7804 | .block_erase = spi_block_erase_d8, |
| 7805 | }, { |
| 7806 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7807 | .block_erase = spi_block_erase_c7, |
| 7808 | } |
| 7809 | }, |
| 7810 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7811 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7812 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7813 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7814 | .voltage = {1700, 2000}, |
| 7815 | }, |
| 7816 | |
| 7817 | { |
| 7818 | .vendor = "Micron/Numonyx/ST", |
| 7819 | .name = "N25Q032..3E", |
| 7820 | .bustype = BUS_SPI, |
| 7821 | .manufacture_id = ST_ID, |
| 7822 | .model_id = ST_N25Q032__3E, |
| 7823 | .total_size = 4096, |
| 7824 | .page_size = 256, |
| 7825 | /* supports SFDP */ |
| 7826 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7827 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7828 | .tested = TEST_OK_PREW, |
| 7829 | .probe = probe_spi_rdid, |
| 7830 | .probe_timing = TIMING_ZERO, |
| 7831 | .block_erasers = |
| 7832 | { |
| 7833 | { |
| 7834 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7835 | .block_erase = spi_block_erase_20, |
| 7836 | }, { |
| 7837 | .eraseblocks = { {64 * 1024, 64} }, |
| 7838 | .block_erase = spi_block_erase_d8, |
| 7839 | }, { |
| 7840 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7841 | .block_erase = spi_block_erase_c7, |
| 7842 | } |
| 7843 | }, |
| 7844 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7845 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7846 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7847 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7848 | .voltage = {2700, 3600}, |
| 7849 | }, |
| 7850 | |
| 7851 | { |
| 7852 | .vendor = "Micron/Numonyx/ST", |
| 7853 | .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 7854 | .bustype = BUS_SPI, |
| 7855 | .manufacture_id = ST_ID, |
| 7856 | .model_id = ST_N25Q064__1E, |
| 7857 | .total_size = 8192, |
| 7858 | .page_size = 256, |
| 7859 | /* supports SFDP */ |
| 7860 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7861 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7862 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7863 | .probe = probe_spi_rdid, |
| 7864 | .probe_timing = TIMING_ZERO, |
| 7865 | .block_erasers = |
| 7866 | { |
| 7867 | { |
| 7868 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 7869 | .block_erase = spi_block_erase_20, |
| 7870 | }, { |
| 7871 | .eraseblocks = { {64 * 1024, 128} }, |
| 7872 | .block_erase = spi_block_erase_d8, |
| 7873 | }, { |
| 7874 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7875 | .block_erase = spi_block_erase_c7, |
| 7876 | } |
| 7877 | }, |
| 7878 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7879 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7880 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7881 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7882 | .voltage = {1700, 2000}, |
| 7883 | }, |
| 7884 | |
| 7885 | { |
| 7886 | .vendor = "Micron/Numonyx/ST", |
| 7887 | .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 7888 | .bustype = BUS_SPI, |
| 7889 | .manufacture_id = ST_ID, |
| 7890 | .model_id = ST_N25Q064__3E, |
| 7891 | .total_size = 8192, |
| 7892 | .page_size = 256, |
| 7893 | /* supports SFDP */ |
| 7894 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7895 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7896 | .tested = TEST_OK_PREW, |
| 7897 | .probe = probe_spi_rdid, |
| 7898 | .probe_timing = TIMING_ZERO, |
| 7899 | .block_erasers = |
| 7900 | { |
| 7901 | { |
| 7902 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 7903 | .block_erase = spi_block_erase_20, |
| 7904 | }, { |
| 7905 | .eraseblocks = { {64 * 1024, 128} }, |
| 7906 | .block_erase = spi_block_erase_d8, |
| 7907 | }, { |
| 7908 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7909 | .block_erase = spi_block_erase_c7, |
| 7910 | } |
| 7911 | }, |
| 7912 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7913 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7914 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7915 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7916 | .voltage = {2700, 3600}, |
| 7917 | }, |
| 7918 | |
| 7919 | { |
| 7920 | .vendor = "Micron/Numonyx/ST", |
| 7921 | .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 7922 | .bustype = BUS_SPI, |
| 7923 | .manufacture_id = ST_ID, |
| 7924 | .model_id = ST_N25Q128__1E, |
| 7925 | .total_size = 16384, |
| 7926 | .page_size = 256, |
| 7927 | /* supports SFDP */ |
| 7928 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7929 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7930 | .tested = TEST_UNTESTED, |
| 7931 | .probe = probe_spi_rdid, |
| 7932 | .probe_timing = TIMING_ZERO, |
| 7933 | .block_erasers = { |
| 7934 | { |
| 7935 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 7936 | .block_erase = spi_block_erase_20, |
| 7937 | }, { |
| 7938 | .eraseblocks = { {64 * 1024, 256} }, |
| 7939 | .block_erase = spi_block_erase_d8, |
| 7940 | }, { |
| 7941 | .eraseblocks = { {16384 * 1024, 1} }, |
| 7942 | .block_erase = spi_block_erase_c7, |
| 7943 | } |
| 7944 | }, |
| 7945 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7946 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7947 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7948 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7949 | .voltage = {1700, 2000}, |
| 7950 | }, |
| 7951 | |
| 7952 | { |
| 7953 | .vendor = "Micron/Numonyx/ST", |
| 7954 | .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 7955 | .bustype = BUS_SPI, |
| 7956 | .manufacture_id = ST_ID, |
| 7957 | .model_id = ST_N25Q128__3E, |
| 7958 | .total_size = 16384, |
| 7959 | .page_size = 256, |
| 7960 | /* supports SFDP */ |
| 7961 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7962 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7963 | .tested = TEST_OK_PREW, |
| 7964 | .probe = probe_spi_rdid, |
| 7965 | .probe_timing = TIMING_ZERO, |
| 7966 | .block_erasers = { |
| 7967 | { |
| 7968 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 7969 | .block_erase = spi_block_erase_20, |
| 7970 | }, { |
| 7971 | .eraseblocks = { {64 * 1024, 256} }, |
| 7972 | .block_erase = spi_block_erase_d8, |
| 7973 | }, { |
| 7974 | .eraseblocks = { {16384 * 1024, 1} }, |
| 7975 | .block_erase = spi_block_erase_c7, |
| 7976 | } |
| 7977 | }, |
| 7978 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7979 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7980 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7981 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7982 | .voltage = {2700, 3600}, |
| 7983 | }, |
| 7984 | |
| 7985 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 7986 | .vendor = "MoselVitelic", |
| 7987 | .name = "V29C51000B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7988 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 7989 | .manufacture_id = SYNCMOS_MVC_ID, |
| 7990 | .model_id = MVC_V29C51000B, |
| 7991 | .total_size = 64, |
| 7992 | .page_size = 512, |
| 7993 | .feature_bits = FEATURE_EITHER_RESET, |
| 7994 | .tested = TEST_UNTESTED, |
| 7995 | .probe = probe_jedec, |
| 7996 | .probe_timing = TIMING_ZERO, |
| 7997 | .block_erasers = |
| 7998 | { |
| 7999 | { |
| 8000 | .eraseblocks = { {512, 128} }, |
| 8001 | .block_erase = erase_sector_jedec, |
| 8002 | }, { |
| 8003 | .eraseblocks = { {64 * 1024, 1} }, |
| 8004 | .block_erase = erase_chip_block_jedec, |
| 8005 | }, |
| 8006 | }, |
| 8007 | .write = write_jedec_1, |
| 8008 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8009 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8010 | }, |
| 8011 | |
| 8012 | { |
| 8013 | .vendor = "MoselVitelic", |
| 8014 | .name = "V29C51000T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8015 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8016 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8017 | .model_id = MVC_V29C51000T, |
| 8018 | .total_size = 64, |
| 8019 | .page_size = 512, |
| 8020 | .feature_bits = FEATURE_EITHER_RESET, |
| 8021 | .tested = TEST_UNTESTED, |
| 8022 | .probe = probe_jedec, |
| 8023 | .probe_timing = TIMING_ZERO, |
| 8024 | .block_erasers = |
| 8025 | { |
| 8026 | { |
| 8027 | .eraseblocks = { {512, 128} }, |
| 8028 | .block_erase = erase_sector_jedec, |
| 8029 | }, { |
| 8030 | .eraseblocks = { {64 * 1024, 1} }, |
| 8031 | .block_erase = erase_chip_block_jedec, |
| 8032 | }, |
| 8033 | }, |
| 8034 | .write = write_jedec_1, |
| 8035 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8036 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8037 | }, |
| 8038 | |
| 8039 | { |
| 8040 | .vendor = "MoselVitelic", |
| 8041 | .name = "V29C51400B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8042 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8043 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8044 | .model_id = MVC_V29C51400B, |
| 8045 | .total_size = 512, |
| 8046 | .page_size = 1024, |
| 8047 | .feature_bits = FEATURE_EITHER_RESET, |
| 8048 | .tested = TEST_UNTESTED, |
| 8049 | .probe = probe_jedec, |
| 8050 | .probe_timing = TIMING_ZERO, |
| 8051 | .block_erasers = |
| 8052 | { |
| 8053 | { |
| 8054 | .eraseblocks = { {1024, 512} }, |
| 8055 | .block_erase = erase_sector_jedec, |
| 8056 | }, { |
| 8057 | .eraseblocks = { {512 * 1024, 1} }, |
| 8058 | .block_erase = erase_chip_block_jedec, |
| 8059 | }, |
| 8060 | }, |
| 8061 | .write = write_jedec_1, |
| 8062 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8063 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8064 | }, |
| 8065 | |
| 8066 | { |
| 8067 | .vendor = "MoselVitelic", |
| 8068 | .name = "V29C51400T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8069 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8070 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8071 | .model_id = MVC_V29C51400T, |
| 8072 | .total_size = 512, |
| 8073 | .page_size = 1024, |
| 8074 | .feature_bits = FEATURE_EITHER_RESET, |
| 8075 | .tested = TEST_UNTESTED, |
| 8076 | .probe = probe_jedec, |
| 8077 | .probe_timing = TIMING_ZERO, |
| 8078 | .block_erasers = |
| 8079 | { |
| 8080 | { |
| 8081 | .eraseblocks = { {1024, 512} }, |
| 8082 | .block_erase = erase_sector_jedec, |
| 8083 | }, { |
| 8084 | .eraseblocks = { {512 * 1024, 1} }, |
| 8085 | .block_erase = erase_chip_block_jedec, |
| 8086 | }, |
| 8087 | }, |
| 8088 | .write = write_jedec_1, |
| 8089 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8090 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8091 | }, |
| 8092 | |
| 8093 | { |
| 8094 | .vendor = "MoselVitelic", |
| 8095 | .name = "V29LC51000", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8096 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8097 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8098 | .model_id = MVC_V29LC51000, |
| 8099 | .total_size = 64, |
| 8100 | .page_size = 512, |
| 8101 | .feature_bits = FEATURE_EITHER_RESET, |
| 8102 | .tested = TEST_UNTESTED, |
| 8103 | .probe = probe_jedec, |
| 8104 | .probe_timing = TIMING_ZERO, |
| 8105 | .block_erasers = |
| 8106 | { |
| 8107 | { |
| 8108 | .eraseblocks = { {512, 128} }, |
| 8109 | .block_erase = erase_sector_jedec, |
| 8110 | }, { |
| 8111 | .eraseblocks = { {64 * 1024, 1} }, |
| 8112 | .block_erase = erase_chip_block_jedec, |
| 8113 | }, |
| 8114 | }, |
| 8115 | .write = write_jedec_1, |
| 8116 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8117 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8118 | }, |
| 8119 | |
| 8120 | { |
| 8121 | .vendor = "MoselVitelic", |
| 8122 | .name = "V29LC51001", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8123 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8124 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8125 | .model_id = MVC_V29LC51001, |
| 8126 | .total_size = 128, |
| 8127 | .page_size = 512, |
| 8128 | .feature_bits = FEATURE_EITHER_RESET, |
| 8129 | .tested = TEST_UNTESTED, |
| 8130 | .probe = probe_jedec, |
| 8131 | .probe_timing = TIMING_ZERO, |
| 8132 | .block_erasers = |
| 8133 | { |
| 8134 | { |
| 8135 | .eraseblocks = { {512, 256} }, |
| 8136 | .block_erase = erase_sector_jedec, |
| 8137 | }, { |
| 8138 | .eraseblocks = { {128 * 1024, 1} }, |
| 8139 | .block_erase = erase_chip_block_jedec, |
| 8140 | }, |
| 8141 | }, |
| 8142 | .write = write_jedec_1, |
| 8143 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8144 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8145 | }, |
| 8146 | |
| 8147 | { |
| 8148 | .vendor = "MoselVitelic", |
| 8149 | .name = "V29LC51002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8150 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8151 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8152 | .model_id = MVC_V29LC51002, |
| 8153 | .total_size = 256, |
| 8154 | .page_size = 512, |
| 8155 | .feature_bits = FEATURE_EITHER_RESET, |
| 8156 | .tested = TEST_UNTESTED, |
| 8157 | .probe = probe_jedec, |
| 8158 | .probe_timing = TIMING_ZERO, |
| 8159 | .block_erasers = |
| 8160 | { |
| 8161 | { |
| 8162 | .eraseblocks = { {512, 512} }, |
| 8163 | .block_erase = erase_sector_jedec, |
| 8164 | }, { |
| 8165 | .eraseblocks = { {256 * 1024, 1} }, |
| 8166 | .block_erase = erase_chip_block_jedec, |
| 8167 | }, |
| 8168 | }, |
| 8169 | .write = write_jedec_1, |
| 8170 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8171 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8172 | }, |
| 8173 | |
| 8174 | { |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 8175 | .vendor = "Nantronics", |
| 8176 | .name = "N25S10", |
| 8177 | .bustype = BUS_SPI, |
| 8178 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 8179 | .model_id = NANTRONICS_N25S10, |
| 8180 | .total_size = 128, |
| 8181 | .page_size = 256, |
| 8182 | .feature_bits = FEATURE_WRSR_WREN, |
| 8183 | .tested = TEST_UNTESTED, |
| 8184 | .probe = probe_spi_rdid, |
| 8185 | .probe_timing = TIMING_ZERO, |
| 8186 | .block_erasers = |
| 8187 | { |
| 8188 | { |
| 8189 | .eraseblocks = { {4 * 1024, 32} }, |
| 8190 | .block_erase = spi_block_erase_20, |
| 8191 | }, { |
| 8192 | .eraseblocks = { {4 * 1024, 32} }, |
| 8193 | .block_erase = spi_block_erase_d7, |
| 8194 | }, { |
| 8195 | .eraseblocks = { {32 * 1024, 4} }, |
| 8196 | .block_erase = spi_block_erase_52, |
| 8197 | }, { |
| 8198 | .eraseblocks = { {64 * 1024, 2} }, |
| 8199 | .block_erase = spi_block_erase_d8, |
| 8200 | }, { |
| 8201 | .eraseblocks = { {128 * 1024, 1} }, |
| 8202 | .block_erase = spi_block_erase_60, |
| 8203 | }, { |
| 8204 | .eraseblocks = { {128 * 1024, 1} }, |
| 8205 | .block_erase = spi_block_erase_c7, |
| 8206 | } |
| 8207 | }, |
| 8208 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 8209 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8210 | .write = spi_chip_write_256, |
| 8211 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 8212 | .voltage = {2700, 3600}, |
| 8213 | }, |
| 8214 | |
| 8215 | { |
| 8216 | .vendor = "Nantronics", |
| 8217 | .name = "N25S20", |
| 8218 | .bustype = BUS_SPI, |
| 8219 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 8220 | .model_id = NANTRONICS_N25S20, |
| 8221 | .total_size = 256, |
| 8222 | .page_size = 256, |
| 8223 | .feature_bits = FEATURE_WRSR_WREN, |
| 8224 | .tested = TEST_UNTESTED, |
| 8225 | .probe = probe_spi_rdid, |
| 8226 | .probe_timing = TIMING_ZERO, |
| 8227 | .block_erasers = |
| 8228 | { |
| 8229 | { |
| 8230 | .eraseblocks = { {4 * 1024, 64} }, |
| 8231 | .block_erase = spi_block_erase_20, |
| 8232 | }, { |
| 8233 | .eraseblocks = { {4 * 1024, 64} }, |
| 8234 | .block_erase = spi_block_erase_d7, |
| 8235 | }, { |
| 8236 | .eraseblocks = { {32 * 1024, 8} }, |
| 8237 | .block_erase = spi_block_erase_52, |
| 8238 | }, { |
| 8239 | .eraseblocks = { {64 * 1024, 4} }, |
| 8240 | .block_erase = spi_block_erase_d8, |
| 8241 | }, { |
| 8242 | .eraseblocks = { {256 * 1024, 1} }, |
| 8243 | .block_erase = spi_block_erase_60, |
| 8244 | }, { |
| 8245 | .eraseblocks = { {256 * 1024, 1} }, |
| 8246 | .block_erase = spi_block_erase_c7, |
| 8247 | } |
| 8248 | }, |
| 8249 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 8250 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8251 | .write = spi_chip_write_256, |
| 8252 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 8253 | .voltage = {2700, 3600}, |
| 8254 | }, |
| 8255 | |
| 8256 | { |
| 8257 | .vendor = "Nantronics", |
| 8258 | .name = "N25S40", |
| 8259 | .bustype = BUS_SPI, |
| 8260 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 8261 | .model_id = NANTRONICS_N25S40, |
| 8262 | .total_size = 512, |
| 8263 | .page_size = 256, |
| 8264 | .feature_bits = FEATURE_WRSR_WREN, |
| 8265 | .tested = TEST_UNTESTED, |
| 8266 | .probe = probe_spi_rdid, |
| 8267 | .probe_timing = TIMING_ZERO, |
| 8268 | .block_erasers = |
| 8269 | { |
| 8270 | { |
| 8271 | .eraseblocks = { {4 * 1024, 128} }, |
| 8272 | .block_erase = spi_block_erase_20, |
| 8273 | }, { |
| 8274 | .eraseblocks = { {4 * 1024, 128} }, |
| 8275 | .block_erase = spi_block_erase_d7, |
| 8276 | }, { |
| 8277 | .eraseblocks = { {32 * 1024, 16} }, |
| 8278 | .block_erase = spi_block_erase_52, |
| 8279 | }, { |
| 8280 | .eraseblocks = { {64 * 1024, 8} }, |
| 8281 | .block_erase = spi_block_erase_d8, |
| 8282 | }, { |
| 8283 | .eraseblocks = { {512 * 1024, 1} }, |
| 8284 | .block_erase = spi_block_erase_60, |
| 8285 | }, { |
| 8286 | .eraseblocks = { {512 * 1024, 1} }, |
| 8287 | .block_erase = spi_block_erase_c7, |
| 8288 | } |
| 8289 | }, |
| 8290 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 8291 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8292 | .write = spi_chip_write_256, |
| 8293 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 8294 | .voltage = {2700, 3600}, |
| 8295 | }, |
| 8296 | |
| 8297 | { |
| 8298 | .vendor = "Nantronics", |
| 8299 | .name = "N25S80", |
| 8300 | .bustype = BUS_SPI, |
| 8301 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 8302 | .model_id = NANTRONICS_N25S80, |
| 8303 | .total_size = 1024, |
| 8304 | .page_size = 256, |
| 8305 | .feature_bits = FEATURE_WRSR_WREN, |
| 8306 | .tested = TEST_UNTESTED, |
| 8307 | .probe = probe_spi_rdid, |
| 8308 | .probe_timing = TIMING_ZERO, |
| 8309 | .block_erasers = |
| 8310 | { |
| 8311 | { |
| 8312 | .eraseblocks = { {4 * 1024, 256} }, |
| 8313 | .block_erase = spi_block_erase_20, |
| 8314 | }, { |
| 8315 | .eraseblocks = { {32 * 1024, 32} }, |
| 8316 | .block_erase = spi_block_erase_52, |
| 8317 | }, { |
| 8318 | .eraseblocks = { {64 * 1024, 16} }, |
| 8319 | .block_erase = spi_block_erase_d8, |
| 8320 | }, { |
| 8321 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8322 | .block_erase = spi_block_erase_60, |
| 8323 | }, { |
| 8324 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8325 | .block_erase = spi_block_erase_c7, |
| 8326 | } |
| 8327 | }, |
| 8328 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 8329 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8330 | .write = spi_chip_write_256, |
| 8331 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 8332 | .voltage = {2700, 3600}, |
| 8333 | }, |
| 8334 | |
| 8335 | { |
| 8336 | .vendor = "Nantronics", |
| 8337 | .name = "N25S16", |
| 8338 | .bustype = BUS_SPI, |
| 8339 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 8340 | .model_id = NANTRONICS_N25S16, |
| 8341 | .total_size = 2048, |
| 8342 | .page_size = 256, |
| 8343 | .feature_bits = FEATURE_WRSR_WREN, |
| 8344 | .tested = TEST_UNTESTED, |
| 8345 | .probe = probe_spi_rdid, |
| 8346 | .probe_timing = TIMING_ZERO, |
| 8347 | .block_erasers = |
| 8348 | { |
| 8349 | { |
| 8350 | .eraseblocks = { {4 * 1024, 512} }, |
| 8351 | .block_erase = spi_block_erase_20, |
| 8352 | }, { |
| 8353 | .eraseblocks = { {64 * 1024, 32} }, |
| 8354 | .block_erase = spi_block_erase_d8, |
| 8355 | }, { |
| 8356 | .eraseblocks = { {2048 * 1024, 1} }, |
| 8357 | .block_erase = spi_block_erase_60, |
| 8358 | }, { |
| 8359 | .eraseblocks = { {2048 * 1024, 1} }, |
| 8360 | .block_erase = spi_block_erase_c7, |
| 8361 | } |
| 8362 | }, |
| 8363 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 8364 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8365 | .write = spi_chip_write_256, |
| 8366 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 8367 | .voltage = {2700, 3600}, |
| 8368 | }, |
| 8369 | |
| 8370 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8371 | .vendor = "PMC", |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 8372 | .name = "Pm25LD256C", |
| 8373 | .bustype = BUS_SPI, |
| 8374 | .manufacture_id = PMC_ID, |
| 8375 | .model_id = PMC_PM25LD256C, |
| 8376 | .total_size = 32, |
| 8377 | .page_size = 256, |
| 8378 | .feature_bits = FEATURE_WRSR_WREN, |
| 8379 | .tested = TEST_UNTESTED, |
| 8380 | .probe = probe_spi_rdid, |
| 8381 | .probe_timing = TIMING_ZERO, |
| 8382 | .block_erasers = |
| 8383 | { |
| 8384 | { |
| 8385 | .eraseblocks = { {4 * 1024, 8} }, |
| 8386 | .block_erase = spi_block_erase_20, |
| 8387 | }, { |
| 8388 | .eraseblocks = { {4 * 1024, 8} }, |
| 8389 | .block_erase = spi_block_erase_d7, |
| 8390 | }, { |
| 8391 | .eraseblocks = { {32 * 1024, 1} }, |
| 8392 | .block_erase = spi_block_erase_d8, |
| 8393 | }, { |
| 8394 | .eraseblocks = { {32 * 1024, 1} }, |
| 8395 | .block_erase = spi_block_erase_60, |
| 8396 | }, { |
| 8397 | .eraseblocks = { {32 * 1024, 1} }, |
| 8398 | .block_erase = spi_block_erase_c7, |
| 8399 | } |
| 8400 | }, |
| 8401 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 8402 | .unlock = spi_disable_blockprotect, |
| 8403 | .write = spi_chip_write_256, |
| 8404 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 8405 | .voltage = {2700, 3600}, |
| 8406 | }, |
| 8407 | { |
| 8408 | .vendor = "PMC", |
| 8409 | .name = "Pm25LD512(C)", |
| 8410 | .bustype = BUS_SPI, |
| 8411 | .manufacture_id = PMC_ID, |
| 8412 | .model_id = PMC_PM25LD512, |
| 8413 | .total_size = 64, |
| 8414 | .page_size = 256, |
| 8415 | .feature_bits = FEATURE_WRSR_WREN, |
| 8416 | .tested = TEST_OK_PREW, |
| 8417 | .probe = probe_spi_rdid, |
| 8418 | .probe_timing = TIMING_ZERO, |
| 8419 | .block_erasers = |
| 8420 | { |
| 8421 | { |
| 8422 | .eraseblocks = { {4 * 1024, 16} }, |
| 8423 | .block_erase = spi_block_erase_20, |
| 8424 | }, { |
| 8425 | .eraseblocks = { {4 * 1024, 16} }, |
| 8426 | .block_erase = spi_block_erase_d7, |
| 8427 | }, { |
| 8428 | .eraseblocks = { {32 * 1024, 2} }, |
| 8429 | .block_erase = spi_block_erase_d8, |
| 8430 | }, { |
| 8431 | .eraseblocks = { {64 * 1024, 1} }, |
| 8432 | .block_erase = spi_block_erase_60, |
| 8433 | }, { |
| 8434 | .eraseblocks = { {64 * 1024, 1} }, |
| 8435 | .block_erase = spi_block_erase_c7, |
| 8436 | } |
| 8437 | }, |
| 8438 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 8439 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 8440 | .write = spi_chip_write_256, |
| 8441 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 8442 | .voltage = {2300, 3600}, |
| 8443 | }, |
| 8444 | |
| 8445 | { |
| 8446 | .vendor = "PMC", |
| 8447 | .name = "Pm25LD010(C)", |
| 8448 | .bustype = BUS_SPI, |
| 8449 | .manufacture_id = PMC_ID, |
| 8450 | .model_id = PMC_PM25LD010, |
| 8451 | .total_size = 128, |
| 8452 | .page_size = 256, |
| 8453 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8454 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 8455 | .probe = probe_spi_rdid, |
| 8456 | .probe_timing = TIMING_ZERO, |
| 8457 | .block_erasers = |
| 8458 | { |
| 8459 | { |
| 8460 | .eraseblocks = { {4 * 1024, 32} }, |
| 8461 | .block_erase = spi_block_erase_20, |
| 8462 | }, { |
| 8463 | .eraseblocks = { {4 * 1024, 32} }, |
| 8464 | .block_erase = spi_block_erase_d7, |
| 8465 | }, { |
| 8466 | .eraseblocks = { {32 * 1024, 4} }, |
| 8467 | .block_erase = spi_block_erase_d8, |
| 8468 | }, { |
| 8469 | .eraseblocks = { {128 * 1024, 1} }, |
| 8470 | .block_erase = spi_block_erase_60, |
| 8471 | }, { |
| 8472 | .eraseblocks = { {128 * 1024, 1} }, |
| 8473 | .block_erase = spi_block_erase_c7, |
| 8474 | } |
| 8475 | }, |
| 8476 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 8477 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 8478 | .write = spi_chip_write_256, |
| 8479 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 8480 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */ |
| 8481 | }, |
| 8482 | |
| 8483 | { |
| 8484 | .vendor = "PMC", |
| 8485 | .name = "Pm25LD020(C)", |
| 8486 | .bustype = BUS_SPI, |
| 8487 | .manufacture_id = PMC_ID, |
| 8488 | .model_id = PMC_PM25LD020, |
| 8489 | .total_size = 256, |
| 8490 | .page_size = 256, |
| 8491 | .feature_bits = FEATURE_WRSR_WREN, |
| 8492 | .tested = TEST_UNTESTED, |
| 8493 | .probe = probe_spi_rdid, |
| 8494 | .probe_timing = TIMING_ZERO, |
| 8495 | .block_erasers = |
| 8496 | { |
| 8497 | { |
| 8498 | .eraseblocks = { {4 * 1024, 64} }, |
| 8499 | .block_erase = spi_block_erase_20, |
| 8500 | }, { |
| 8501 | .eraseblocks = { {4 * 1024, 64} }, |
| 8502 | .block_erase = spi_block_erase_d7, |
| 8503 | }, { |
| 8504 | .eraseblocks = { {64 * 1024, 4} }, |
| 8505 | .block_erase = spi_block_erase_d8, |
| 8506 | }, { |
| 8507 | .eraseblocks = { {256 * 1024, 1} }, |
| 8508 | .block_erase = spi_block_erase_60, |
| 8509 | }, { |
| 8510 | .eraseblocks = { {256 * 1024, 1} }, |
| 8511 | .block_erase = spi_block_erase_c7, |
| 8512 | } |
| 8513 | }, |
| 8514 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 8515 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 8516 | .write = spi_chip_write_256, |
| 8517 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 8518 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */ |
| 8519 | }, |
| 8520 | |
| 8521 | { |
| 8522 | .vendor = "PMC", |
| 8523 | .name = "Pm25LD040(C)", |
| 8524 | .bustype = BUS_SPI, |
| 8525 | .manufacture_id = PMC_ID, |
| 8526 | .model_id = PMC_PM25LV040, |
| 8527 | .total_size = 512, |
| 8528 | .page_size = 256, |
| 8529 | .feature_bits = FEATURE_WRSR_WREN, |
| 8530 | .tested = TEST_UNTESTED, |
| 8531 | .probe = probe_spi_rdid, |
| 8532 | .probe_timing = TIMING_ZERO, |
| 8533 | .block_erasers = |
| 8534 | { |
| 8535 | { |
| 8536 | .eraseblocks = { {4 * 1024, 128} }, |
| 8537 | .block_erase = spi_block_erase_20, |
| 8538 | }, { |
| 8539 | .eraseblocks = { {4 * 1024, 128} }, |
| 8540 | .block_erase = spi_block_erase_d7, |
| 8541 | }, { |
| 8542 | .eraseblocks = { {64 * 1024, 8} }, |
| 8543 | .block_erase = spi_block_erase_d8, |
| 8544 | }, { |
| 8545 | .eraseblocks = { {512 * 1024, 1} }, |
| 8546 | .block_erase = spi_block_erase_60, |
| 8547 | }, { |
| 8548 | .eraseblocks = { {512 * 1024, 1} }, |
| 8549 | .block_erase = spi_block_erase_c7, |
| 8550 | } |
| 8551 | }, |
| 8552 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 8553 | .unlock = spi_disable_blockprotect, |
| 8554 | .write = spi_chip_write_256, |
| 8555 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 8556 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */ |
| 8557 | }, |
| 8558 | |
| 8559 | { |
| 8560 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8561 | .name = "Pm25LV512(A)", |
| 8562 | .bustype = BUS_SPI, |
| 8563 | .manufacture_id = PMC_ID, |
| 8564 | .model_id = PMC_PM25LV512, |
| 8565 | .total_size = 64, |
| 8566 | .page_size = 256, |
| 8567 | .feature_bits = FEATURE_WRSR_WREN, |
| 8568 | .tested = TEST_UNTESTED, |
| 8569 | .probe = probe_spi_res3, |
| 8570 | .probe_timing = TIMING_ZERO, |
| 8571 | .block_erasers = |
| 8572 | { |
| 8573 | { |
| 8574 | .eraseblocks = { {4 * 1024, 16} }, |
| 8575 | .block_erase = spi_block_erase_d7, |
| 8576 | }, { |
| 8577 | .eraseblocks = { {32 * 1024, 2} }, |
| 8578 | .block_erase = spi_block_erase_d8, |
| 8579 | }, { |
| 8580 | .eraseblocks = { {64 * 1024, 1} }, |
| 8581 | .block_erase = spi_block_erase_c7, |
| 8582 | } |
| 8583 | }, |
| 8584 | .printlock = spi_prettyprint_status_register_default_bp1, |
| 8585 | .unlock = spi_disable_blockprotect, |
| 8586 | .write = spi_chip_write_256, |
| 8587 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8588 | .voltage = {2700, 3600}, |
| 8589 | }, |
| 8590 | |
| 8591 | { |
| 8592 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8593 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8594 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8595 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8596 | .model_id = PMC_PM25LV010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8597 | .total_size = 128, |
| 8598 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8599 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8600 | .tested = TEST_UNTESTED, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8601 | .probe = probe_spi_res3, |
| 8602 | .probe_timing = TIMING_ZERO, |
| 8603 | .block_erasers = |
| 8604 | { |
| 8605 | { |
| 8606 | .eraseblocks = { {4 * 1024, 32} }, |
| 8607 | .block_erase = spi_block_erase_d7, |
| 8608 | }, { |
| 8609 | .eraseblocks = { {32 * 1024, 4} }, |
| 8610 | .block_erase = spi_block_erase_d8, |
| 8611 | }, { |
| 8612 | .eraseblocks = { {128 * 1024, 1} }, |
| 8613 | .block_erase = spi_block_erase_c7, |
| 8614 | } |
| 8615 | }, |
| 8616 | .printlock = spi_prettyprint_status_register_default_bp1, |
| 8617 | .unlock = spi_disable_blockprotect, |
| 8618 | .write = spi_chip_write_256, |
| 8619 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8620 | .voltage = {2700, 3600}, |
| 8621 | }, |
| 8622 | |
| 8623 | { |
| 8624 | .vendor = "PMC", |
| 8625 | .name = "Pm25LV010A", |
| 8626 | .bustype = BUS_SPI, |
| 8627 | .manufacture_id = PMC_ID, |
| 8628 | .model_id = PMC_PM25LV010, |
| 8629 | .total_size = 128, |
| 8630 | .page_size = 256, |
| 8631 | .feature_bits = FEATURE_WRSR_WREN, |
| 8632 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8633 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8634 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8635 | .block_erasers = |
| 8636 | { |
| 8637 | { |
| 8638 | .eraseblocks = { {4 * 1024, 32} }, |
| 8639 | .block_erase = spi_block_erase_d7, |
| 8640 | }, { |
| 8641 | .eraseblocks = { {32 * 1024, 4} }, |
| 8642 | .block_erase = spi_block_erase_d8, |
| 8643 | }, { |
| 8644 | .eraseblocks = { {128 * 1024, 1} }, |
| 8645 | .block_erase = spi_block_erase_c7, |
| 8646 | } |
| 8647 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8648 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8649 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8650 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8651 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8652 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8653 | }, |
| 8654 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8655 | { |
| 8656 | .vendor = "PMC", |
| 8657 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8658 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8659 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8660 | .model_id = PMC_PM25LV020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8661 | .total_size = 256, |
| 8662 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8663 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8664 | .tested = TEST_UNTESTED, |
| 8665 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8666 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8667 | .block_erasers = |
| 8668 | { |
| 8669 | { |
| 8670 | .eraseblocks = { {4 * 1024, 64} }, |
| 8671 | .block_erase = spi_block_erase_d7, |
| 8672 | }, { |
| 8673 | .eraseblocks = { {64 * 1024, 4} }, |
| 8674 | .block_erase = spi_block_erase_d8, |
| 8675 | }, { |
| 8676 | .eraseblocks = { {256 * 1024, 1} }, |
| 8677 | .block_erase = spi_block_erase_c7, |
| 8678 | } |
| 8679 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8680 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8681 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8682 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8683 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8684 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8685 | }, |
| 8686 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8687 | { |
| 8688 | .vendor = "PMC", |
| 8689 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8690 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8691 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8692 | .model_id = PMC_PM25LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8693 | .total_size = 512, |
| 8694 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8695 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 8696 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8697 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8698 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8699 | .block_erasers = |
| 8700 | { |
| 8701 | { |
| 8702 | .eraseblocks = { {4 * 1024, 128} }, |
| 8703 | .block_erase = spi_block_erase_d7, |
| 8704 | }, { |
| 8705 | .eraseblocks = { {64 * 1024, 8} }, |
| 8706 | .block_erase = spi_block_erase_d8, |
| 8707 | }, { |
| 8708 | .eraseblocks = { {512 * 1024, 1} }, |
| 8709 | .block_erase = spi_block_erase_c7, |
| 8710 | } |
| 8711 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8712 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8713 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8714 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8715 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8716 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8717 | }, |
| 8718 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8719 | { |
| 8720 | .vendor = "PMC", |
| 8721 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8722 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8723 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8724 | .model_id = PMC_PM25LV080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8725 | .total_size = 1024, |
| 8726 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8727 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8728 | .tested = TEST_UNTESTED, |
| 8729 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8730 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8731 | .block_erasers = |
| 8732 | { |
| 8733 | { |
| 8734 | .eraseblocks = { {4 * 1024, 256} }, |
| 8735 | .block_erase = spi_block_erase_d7, |
| 8736 | }, { |
| 8737 | .eraseblocks = { {4 * 1024, 256} }, |
| 8738 | .block_erase = spi_block_erase_20, |
| 8739 | }, { |
| 8740 | .eraseblocks = { {64 * 1024, 16} }, |
| 8741 | .block_erase = spi_block_erase_d8, |
| 8742 | }, { |
| 8743 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8744 | .block_erase = spi_block_erase_60, |
| 8745 | }, { |
| 8746 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8747 | .block_erase = spi_block_erase_c7, |
| 8748 | } |
| 8749 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8750 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8751 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8752 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8753 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8754 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8755 | }, |
| 8756 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8757 | { |
| 8758 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8759 | .name = "Pm25LV016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8760 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8761 | .manufacture_id = PMC_ID, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8762 | .model_id = PMC_PM25LV016B, |
| 8763 | .total_size = 2048, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8764 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8765 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8766 | .tested = TEST_UNTESTED, |
| 8767 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8768 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8769 | .block_erasers = |
| 8770 | { |
| 8771 | { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8772 | .eraseblocks = { {4 * 1024, 512} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8773 | .block_erase = spi_block_erase_d7, |
| 8774 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8775 | .eraseblocks = { {4 * 1024, 512} }, |
| 8776 | .block_erase = spi_block_erase_20, |
| 8777 | }, { |
| 8778 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8779 | .block_erase = spi_block_erase_d8, |
| 8780 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8781 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8782 | .block_erase = spi_block_erase_60, |
| 8783 | }, { |
| 8784 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8785 | .block_erase = spi_block_erase_c7, |
| 8786 | } |
| 8787 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8788 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8789 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8790 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8791 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8792 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8793 | }, |
| 8794 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8795 | { |
| 8796 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8797 | .name = "Pm29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8798 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8799 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8800 | .model_id = PMC_PM29F002T, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8801 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8802 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8803 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 8804 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8805 | .probe = probe_jedec, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 8806 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8807 | .block_erasers = |
| 8808 | { |
| 8809 | { |
| 8810 | .eraseblocks = { |
| 8811 | {128 * 1024, 1}, |
| 8812 | {96 * 1024, 1}, |
| 8813 | {8 * 1024, 2}, |
| 8814 | {16 * 1024, 1}, |
| 8815 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8816 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8817 | }, { |
| 8818 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8819 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8820 | }, |
| 8821 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8822 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8823 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8824 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8825 | }, |
| 8826 | |
| 8827 | { |
| 8828 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8829 | .name = "Pm29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8830 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8831 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8832 | .model_id = PMC_PM29F002B, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8833 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8834 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8835 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8836 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8837 | .probe = probe_jedec, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8838 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8839 | .block_erasers = |
| 8840 | { |
| 8841 | { |
| 8842 | .eraseblocks = { |
| 8843 | {16 * 1024, 1}, |
| 8844 | {8 * 1024, 2}, |
| 8845 | {96 * 1024, 1}, |
| 8846 | {128 * 1024, 1}, |
| 8847 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8848 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8849 | }, { |
| 8850 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8851 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8852 | }, |
| 8853 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8854 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8855 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8856 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8857 | }, |
| 8858 | |
| 8859 | { |
| 8860 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8861 | .name = "Pm39LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8862 | .bustype = BUS_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8863 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8864 | .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] | 8865 | .total_size = 128, |
| 8866 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8867 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 8868 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8869 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8870 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8871 | .block_erasers = |
| 8872 | { |
| 8873 | { |
| 8874 | .eraseblocks = { {4 * 1024, 32} }, |
| 8875 | .block_erase = erase_sector_jedec, |
| 8876 | }, { |
| 8877 | .eraseblocks = { {64 * 1024, 2} }, |
| 8878 | .block_erase = erase_block_jedec, |
| 8879 | }, { |
| 8880 | .eraseblocks = { {128 * 1024, 1} }, |
| 8881 | .block_erase = erase_chip_block_jedec, |
| 8882 | } |
| 8883 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8884 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8885 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8886 | .voltage = {2700, 3600}, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8887 | }, |
| 8888 | |
| 8889 | { |
| 8890 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8891 | .name = "Pm39LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8892 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8893 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8894 | .model_id = PMC_PM39LV020, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8895 | .total_size = 256, |
| 8896 | .page_size = 4096, |
| 8897 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 8898 | .tested = TEST_UNTESTED, |
| 8899 | .probe = probe_jedec, |
| 8900 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8901 | .block_erasers = |
| 8902 | { |
| 8903 | { |
| 8904 | .eraseblocks = { {4 * 1024, 64} }, |
| 8905 | .block_erase = erase_sector_jedec, |
| 8906 | }, { |
| 8907 | .eraseblocks = { {64 * 1024, 4} }, |
| 8908 | .block_erase = erase_block_jedec, |
| 8909 | }, { |
| 8910 | .eraseblocks = { {256 * 1024, 1} }, |
| 8911 | .block_erase = erase_chip_block_jedec, |
| 8912 | } |
| 8913 | }, |
| 8914 | .write = write_jedec_1, |
| 8915 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8916 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8917 | }, |
| 8918 | |
| 8919 | { |
| 8920 | .vendor = "PMC", |
| 8921 | .name = "Pm39LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8922 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8923 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8924 | .model_id = PMC_PM39LV040, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8925 | .total_size = 512, |
| 8926 | .page_size = 4096, |
| 8927 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 8928 | .tested = TEST_OK_PR, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8929 | .probe = probe_jedec, |
| 8930 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8931 | .block_erasers = |
| 8932 | { |
| 8933 | { |
| 8934 | .eraseblocks = { {4 * 1024, 128} }, |
| 8935 | .block_erase = erase_sector_jedec, |
| 8936 | }, { |
| 8937 | .eraseblocks = { {64 * 1024, 8} }, |
| 8938 | .block_erase = erase_block_jedec, |
| 8939 | }, { |
| 8940 | .eraseblocks = { {512 * 1024, 1} }, |
| 8941 | .block_erase = erase_chip_block_jedec, |
| 8942 | } |
| 8943 | }, |
| 8944 | .write = write_jedec_1, |
| 8945 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8946 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8947 | }, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 8948 | |
| 8949 | { |
| 8950 | .vendor = "PMC", |
| 8951 | .name = "Pm39LV512", |
| 8952 | .bustype = BUS_PARALLEL, |
| 8953 | .manufacture_id = PMC_ID_NOPREFIX, |
| 8954 | .model_id = PMC_PM39LV512, |
| 8955 | .total_size = 64, |
| 8956 | .page_size = 4096, |
| 8957 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 8958 | .tested = TEST_OK_PREW, |
| 8959 | .probe = probe_jedec, |
| 8960 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8961 | .block_erasers = |
| 8962 | { |
| 8963 | { |
| 8964 | .eraseblocks = { {4 * 1024, 16} }, |
| 8965 | .block_erase = erase_sector_jedec, |
| 8966 | }, { |
| 8967 | .eraseblocks = { {64 * 1024, 1} }, |
| 8968 | .block_erase = erase_block_jedec, |
| 8969 | }, { |
| 8970 | .eraseblocks = { {64 * 1024, 1} }, |
| 8971 | .block_erase = erase_chip_block_jedec, |
| 8972 | } |
| 8973 | }, |
| 8974 | .write = write_jedec_1, |
| 8975 | .read = read_memmapped, |
| 8976 | .voltage = {2700, 3600}, |
| 8977 | }, |
| 8978 | |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8979 | { |
| 8980 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8981 | .name = "Pm49FL002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8982 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8983 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8984 | .model_id = PMC_PM49FL002, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8985 | .total_size = 256, |
| 8986 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8987 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 8988 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 8989 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8990 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8991 | .block_erasers = |
| 8992 | { |
| 8993 | { |
| 8994 | .eraseblocks = { {4 * 1024, 64} }, |
| 8995 | .block_erase = erase_sector_jedec, |
| 8996 | }, { |
| 8997 | .eraseblocks = { {16 * 1024, 16} }, |
| 8998 | .block_erase = erase_block_jedec, |
| 8999 | }, { |
| 9000 | .eraseblocks = { {256 * 1024, 1} }, |
| 9001 | .block_erase = erase_chip_block_jedec, |
| 9002 | } |
| 9003 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 9004 | .unlock = unlock_49fl00x, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 9005 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9006 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9007 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9008 | }, |
| 9009 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9010 | { |
| 9011 | .vendor = "PMC", |
| 9012 | .name = "Pm49FL004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9013 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9014 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9015 | .model_id = PMC_PM49FL004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9016 | .total_size = 512, |
| 9017 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9018 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 9019 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 9020 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 9021 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9022 | .block_erasers = |
| 9023 | { |
| 9024 | { |
| 9025 | .eraseblocks = { {4 * 1024, 128} }, |
| 9026 | .block_erase = erase_sector_jedec, |
| 9027 | }, { |
| 9028 | .eraseblocks = { {64 * 1024, 8} }, |
| 9029 | .block_erase = erase_block_jedec, |
| 9030 | }, { |
| 9031 | .eraseblocks = { {512 * 1024, 1} }, |
| 9032 | .block_erase = erase_chip_block_jedec, |
| 9033 | } |
| 9034 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 9035 | .unlock = unlock_49fl00x, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 9036 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9037 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9038 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9039 | }, |
| 9040 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9041 | { |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 9042 | .vendor = "Sanyo", |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9043 | .name = "LE25FW203A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9044 | .bustype = BUS_SPI, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 9045 | .manufacture_id = SANYO_ID, |
| 9046 | .model_id = SANYO_LE25FW203A, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9047 | .total_size = 256, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 9048 | .page_size = 256, |
| 9049 | .tested = TEST_UNTESTED, |
| 9050 | .probe = probe_spi_rdid, |
| 9051 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9052 | .block_erasers = |
| 9053 | { |
| 9054 | { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9055 | .eraseblocks = { {256, 1024} }, |
| 9056 | .block_erase = spi_block_erase_db, |
| 9057 | }, { |
| 9058 | .eraseblocks = { {64 * 1024, 4} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9059 | .block_erase = spi_block_erase_d8, |
| 9060 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9061 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9062 | .block_erase = spi_block_erase_c7, |
| 9063 | } |
| 9064 | }, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9065 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9066 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 9067 | .write = spi_chip_write_256, |
| 9068 | .read = spi_chip_read, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9069 | .voltage = {2700, 3600}, |
| 9070 | }, |
| 9071 | |
| 9072 | { |
| 9073 | .vendor = "Sanyo", |
| 9074 | .name = "LE25FW403A", |
| 9075 | .bustype = BUS_SPI, |
| 9076 | .manufacture_id = SANYO_ID, |
| 9077 | .model_id = SANYO_LE25FW403A, |
| 9078 | .total_size = 512, |
| 9079 | .page_size = 256, |
| 9080 | .tested = TEST_UNTESTED, |
| 9081 | .probe = probe_spi_rdid, |
| 9082 | .probe_timing = TIMING_ZERO, |
| 9083 | .block_erasers = { |
| 9084 | { |
| 9085 | .eraseblocks = { {256, 2 * 1024} }, |
| 9086 | .block_erase = spi_block_erase_db, |
| 9087 | }, { |
| 9088 | .eraseblocks = { {64 * 1024, 8} }, |
| 9089 | .block_erase = spi_block_erase_d8, |
| 9090 | }, { |
| 9091 | .eraseblocks = { {512 * 1024, 1} }, |
| 9092 | .block_erase = spi_block_erase_c7, |
| 9093 | } |
| 9094 | }, |
| 9095 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9096 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 9097 | .write = spi_chip_write_256, |
| 9098 | .read = spi_chip_read, |
| 9099 | .voltage = {2700, 3600}, |
| 9100 | }, |
| 9101 | |
| 9102 | { |
| 9103 | .vendor = "Sanyo", |
| 9104 | .name = "LE25FW418A", |
| 9105 | .bustype = BUS_SPI, |
| 9106 | .manufacture_id = SANYO_ID, |
| 9107 | .model_id = SANYO_LE25FW418A, |
| 9108 | .total_size = 512, |
| 9109 | .page_size = 256, |
| 9110 | .feature_bits = FEATURE_WRSR_WREN, |
| 9111 | .tested = TEST_UNTESTED, |
| 9112 | .probe = probe_spi_res2, |
| 9113 | .probe_timing = TIMING_ZERO, |
| 9114 | .block_erasers = { |
| 9115 | { |
| 9116 | .eraseblocks = { {4 * 1024, 128} }, |
| 9117 | .block_erase = spi_block_erase_d7, |
| 9118 | }, { |
| 9119 | .eraseblocks = { {64 * 1024, 8} }, |
| 9120 | .block_erase = spi_block_erase_d8, |
| 9121 | }, { |
| 9122 | .eraseblocks = { {512 * 1024, 1} }, |
| 9123 | .block_erase = spi_block_erase_c7, |
| 9124 | } |
| 9125 | }, |
| 9126 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 9127 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 9128 | .write = spi_chip_write_256, |
| 9129 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 9130 | .voltage = {2700, 3600}, |
| 9131 | }, |
| 9132 | |
| 9133 | { |
| 9134 | .vendor = "Sanyo", |
| 9135 | .name = "LE25FW806", |
| 9136 | .bustype = BUS_SPI, |
| 9137 | .manufacture_id = SANYO_ID, |
| 9138 | .model_id = SANYO_LE25FW806, |
| 9139 | .total_size = 1024, |
| 9140 | .page_size = 256, |
| 9141 | .feature_bits = FEATURE_WRSR_WREN, |
| 9142 | .tested = TEST_UNTESTED, |
| 9143 | .probe = probe_spi_res2, |
| 9144 | .probe_timing = TIMING_ZERO, |
| 9145 | .block_erasers = { |
| 9146 | { |
| 9147 | .eraseblocks = { {4 * 1024, 256} }, |
| 9148 | .block_erase = spi_block_erase_20, |
| 9149 | }, { |
| 9150 | .eraseblocks = { {4 * 1024, 256} }, |
| 9151 | .block_erase = spi_block_erase_d7, |
| 9152 | }, { |
| 9153 | .eraseblocks = { {64 * 1024, 16} }, |
| 9154 | .block_erase = spi_block_erase_d8, |
| 9155 | }, { |
| 9156 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9157 | .block_erase = spi_block_erase_c7, |
| 9158 | } |
| 9159 | }, |
| 9160 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 9161 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 9162 | .write = spi_chip_write_256, |
| 9163 | .read = spi_chip_read, |
| 9164 | .voltage = {2700, 3600}, |
| 9165 | }, |
| 9166 | |
| 9167 | { |
| 9168 | .vendor = "Sanyo", |
| 9169 | .name = "LE25FW808", |
| 9170 | .bustype = BUS_SPI, |
| 9171 | .manufacture_id = SANYO_ID, |
| 9172 | .model_id = SANYO_LE25FW808, |
| 9173 | .total_size = 1024, |
| 9174 | .page_size = 256, |
| 9175 | .feature_bits = FEATURE_WRSR_WREN, |
| 9176 | .tested = TEST_UNTESTED, |
| 9177 | .probe = probe_spi_res2, |
| 9178 | .probe_timing = TIMING_ZERO, |
| 9179 | .block_erasers = { |
| 9180 | { |
| 9181 | .eraseblocks = { {8 * 1024, 128} }, |
| 9182 | .block_erase = spi_block_erase_d7, |
| 9183 | }, { |
| 9184 | .eraseblocks = { {64 * 1024, 16} }, |
| 9185 | .block_erase = spi_block_erase_d8, |
| 9186 | }, { |
| 9187 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9188 | .block_erase = spi_block_erase_c7, |
| 9189 | } |
| 9190 | }, |
| 9191 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 9192 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 9193 | .write = spi_chip_write_256, |
| 9194 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 9195 | .voltage = {2700, 3600}, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 9196 | }, |
| 9197 | |
| 9198 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9199 | .vendor = "Sharp", |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 9200 | .name = "LH28F008BJT-BTLZ1", |
| 9201 | .bustype = BUS_PARALLEL, |
| 9202 | .manufacture_id = SHARP_ID, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 9203 | .model_id = SHARP_LH28F008BJ__PB, |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 9204 | .total_size = 1024, |
| 9205 | .page_size = 64 * 1024, |
| 9206 | .tested = TEST_OK_PREW, |
| 9207 | .probe = probe_82802ab, |
| 9208 | .probe_timing = TIMING_ZERO, |
| 9209 | .block_erasers = |
| 9210 | { |
| 9211 | { |
| 9212 | .eraseblocks = { |
| 9213 | {8 * 1024, 8}, |
| 9214 | {64 * 1024, 15} |
| 9215 | }, |
| 9216 | .block_erase = erase_block_82802ab, |
| 9217 | }, { |
| 9218 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9219 | .block_erase = erase_sector_49lfxxxc, |
| 9220 | } |
| 9221 | }, |
| 9222 | .unlock = unlock_lh28f008bjt, |
| 9223 | .write = write_82802ab, |
| 9224 | .read = read_memmapped, |
| 9225 | .voltage = {2700, 3600}, |
| 9226 | }, |
| 9227 | |
| 9228 | { |
| 9229 | .vendor = "Sharp", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9230 | .name = "LHF00L04", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9231 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9232 | .manufacture_id = SHARP_ID, |
| 9233 | .model_id = SHARP_LHF00L04, |
| 9234 | .total_size = 1024, |
| 9235 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9236 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9237 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9238 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 9239 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 9240 | .block_erasers = |
| 9241 | { |
| 9242 | { |
| 9243 | .eraseblocks = { |
| 9244 | {64 * 1024, 15}, |
| 9245 | {8 * 1024, 8} |
| 9246 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9247 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 9248 | }, { |
| 9249 | .eraseblocks = { |
| 9250 | {1024 * 1024, 1} |
| 9251 | }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9252 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 9253 | }, |
| 9254 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9255 | .unlock = unlock_82802ab, |
| 9256 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9257 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9258 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9259 | }, |
| 9260 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9261 | { |
| 9262 | .vendor = "Spansion", |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9263 | .name = "S25FL004A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9264 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9265 | .manufacture_id = SPANSION_ID, |
| 9266 | .model_id = SPANSION_S25FL004A, |
| 9267 | .total_size = 512, |
| 9268 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9269 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9270 | .tested = TEST_UNTESTED, |
| 9271 | .probe = probe_spi_rdid, |
| 9272 | .probe_timing = TIMING_ZERO, |
| 9273 | .block_erasers = |
| 9274 | { |
| 9275 | { |
| 9276 | .eraseblocks = { {64 * 1024, 8} }, |
| 9277 | .block_erase = spi_block_erase_d8, |
| 9278 | }, { |
| 9279 | .eraseblocks = { {512 * 1024, 1} }, |
| 9280 | .block_erase = spi_block_erase_c7, |
| 9281 | } |
| 9282 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9283 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9284 | .unlock = spi_disable_blockprotect, |
| 9285 | .write = spi_chip_write_256, |
| 9286 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9287 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9288 | }, |
| 9289 | |
| 9290 | { |
| 9291 | .vendor = "Spansion", |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9292 | .name = "S25FL008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9293 | .bustype = BUS_SPI, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9294 | .manufacture_id = SPANSION_ID, |
| 9295 | .model_id = SPANSION_S25FL008A, |
| 9296 | .total_size = 1024, |
| 9297 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9298 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 9299 | .tested = TEST_OK_PRE, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9300 | .probe = probe_spi_rdid, |
| 9301 | .probe_timing = TIMING_ZERO, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9302 | .block_erasers = |
| 9303 | { |
| 9304 | { |
| 9305 | .eraseblocks = { {64 * 1024, 16} }, |
| 9306 | .block_erase = spi_block_erase_d8, |
| 9307 | }, { |
| 9308 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9309 | .block_erase = spi_block_erase_c7, |
| 9310 | } |
| 9311 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9312 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9313 | .unlock = spi_disable_blockprotect, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9314 | .write = spi_chip_write_256, |
| 9315 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9316 | .voltage = {2700, 3600}, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9317 | }, |
| 9318 | |
| 9319 | { |
| 9320 | .vendor = "Spansion", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9321 | .name = "S25FL016A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9322 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9323 | .manufacture_id = SPANSION_ID, |
| 9324 | .model_id = SPANSION_S25FL016A, |
| 9325 | .total_size = 2048, |
| 9326 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9327 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 9328 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9329 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9330 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9331 | .block_erasers = |
| 9332 | { |
| 9333 | { |
| 9334 | .eraseblocks = { {64 * 1024, 32} }, |
| 9335 | .block_erase = spi_block_erase_d8, |
| 9336 | }, { |
| 9337 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9338 | .block_erase = spi_block_erase_c7, |
| 9339 | } |
| 9340 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9341 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9342 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9343 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9344 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9345 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9346 | }, |
| 9347 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9348 | { |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9349 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 9350 | .name = "S25FL032A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9351 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9352 | .manufacture_id = SPANSION_ID, |
| 9353 | .model_id = SPANSION_S25FL032A, |
| 9354 | .total_size = 4096, |
| 9355 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9356 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 9357 | .tested = TEST_OK_PREW, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9358 | .probe = probe_spi_rdid, |
| 9359 | .probe_timing = TIMING_ZERO, |
| 9360 | .block_erasers = |
| 9361 | { |
| 9362 | { |
| 9363 | .eraseblocks = { {64 * 1024, 64} }, |
| 9364 | .block_erase = spi_block_erase_d8, |
| 9365 | }, { |
| 9366 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9367 | .block_erase = spi_block_erase_c7, |
| 9368 | } |
| 9369 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9370 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9371 | .unlock = spi_disable_blockprotect, |
| 9372 | .write = spi_chip_write_256, |
| 9373 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9374 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9375 | }, |
| 9376 | |
| 9377 | { |
| 9378 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 9379 | .name = "S25FL064A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9380 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9381 | .manufacture_id = SPANSION_ID, |
| 9382 | .model_id = SPANSION_S25FL064A, |
| 9383 | .total_size = 8192, |
| 9384 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9385 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9386 | .tested = TEST_OK_PREW, |
| 9387 | .probe = probe_spi_rdid, |
| 9388 | .probe_timing = TIMING_ZERO, |
| 9389 | .block_erasers = |
| 9390 | { |
| 9391 | { |
| 9392 | .eraseblocks = { {64 * 1024, 128} }, |
| 9393 | .block_erase = spi_block_erase_d8, |
| 9394 | }, { |
| 9395 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9396 | .block_erase = spi_block_erase_c7, |
| 9397 | } |
| 9398 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9399 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9400 | .unlock = spi_disable_blockprotect, |
| 9401 | .write = spi_chip_write_256, |
| 9402 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9403 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9404 | }, |
| 9405 | |
| 9406 | { |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 9407 | .vendor = "Spansion", |
| 9408 | .name = "S25FL204K", |
| 9409 | .bustype = BUS_SPI, |
| 9410 | .manufacture_id = SPANSION_ID, |
| 9411 | .model_id = SPANSION_S25FL204, |
| 9412 | .total_size = 512, |
| 9413 | .page_size = 256, |
| 9414 | .feature_bits = FEATURE_WRSR_WREN, |
| 9415 | .tested = TEST_UNTESTED, |
| 9416 | .probe = probe_spi_rdid, |
| 9417 | .probe_timing = TIMING_ZERO, |
| 9418 | .block_erasers = { |
| 9419 | { |
| 9420 | .eraseblocks = { {4 * 1024, 128} }, |
| 9421 | .block_erase = spi_block_erase_20, |
| 9422 | }, { |
| 9423 | .eraseblocks = { {64 * 1024, 8} }, |
| 9424 | .block_erase = spi_block_erase_d8, |
| 9425 | }, { |
| 9426 | .eraseblocks = { { 512 * 1024, 1} }, |
| 9427 | .block_erase = spi_block_erase_60, |
| 9428 | }, { |
| 9429 | .eraseblocks = { { 512 * 1024, 1} }, |
| 9430 | .block_erase = spi_block_erase_c7, |
| 9431 | } |
| 9432 | }, |
| 9433 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 9434 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 9435 | .write = spi_chip_write_256, |
| 9436 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 9437 | .voltage = {2700, 3600}, |
| 9438 | }, |
| 9439 | |
| 9440 | { |
| 9441 | .vendor = "Spansion", |
| 9442 | .name = "S25FL208K", |
| 9443 | .bustype = BUS_SPI, |
| 9444 | .manufacture_id = SPANSION_ID, |
| 9445 | .model_id = SPANSION_S25FL208, |
| 9446 | .total_size = 1024, |
| 9447 | .page_size = 256, |
| 9448 | .feature_bits = FEATURE_WRSR_WREN, |
| 9449 | .tested = TEST_UNTESTED, |
| 9450 | .probe = probe_spi_rdid, |
| 9451 | .probe_timing = TIMING_ZERO, |
| 9452 | .block_erasers = { |
| 9453 | { |
| 9454 | .eraseblocks = { {4 * 1024, 256} }, |
| 9455 | .block_erase = spi_block_erase_20, |
| 9456 | }, { |
| 9457 | .eraseblocks = { {64 * 1024, 16} }, |
| 9458 | .block_erase = spi_block_erase_d8, |
| 9459 | }, { |
| 9460 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 9461 | .block_erase = spi_block_erase_60, |
| 9462 | }, { |
| 9463 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 9464 | .block_erase = spi_block_erase_c7, |
| 9465 | } |
| 9466 | }, |
| 9467 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 9468 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 9469 | .write = spi_chip_write_256, |
| 9470 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 9471 | .voltage = {2700, 3600}, |
| 9472 | }, |
| 9473 | |
| 9474 | { |
| 9475 | .vendor = "Spansion", |
| 9476 | .name = "S25FL116K/S25FL216K", |
| 9477 | .bustype = BUS_SPI, |
| 9478 | .manufacture_id = SPANSION_ID, |
| 9479 | .model_id = SPANSION_S25FL216, |
| 9480 | .total_size = 2048, |
| 9481 | .page_size = 256, |
| 9482 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */ |
| 9483 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9484 | .tested = TEST_UNTESTED, |
| 9485 | .probe = probe_spi_rdid, |
| 9486 | .probe_timing = TIMING_ZERO, |
| 9487 | .block_erasers = { |
| 9488 | { |
| 9489 | .eraseblocks = { {4 * 1024, 512} }, |
| 9490 | .block_erase = spi_block_erase_20, |
| 9491 | }, { |
| 9492 | .eraseblocks = { {64 * 1024, 32} }, |
| 9493 | .block_erase = spi_block_erase_d8, |
| 9494 | }, { |
| 9495 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 9496 | .block_erase = spi_block_erase_60, |
| 9497 | }, { |
| 9498 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 9499 | .block_erase = spi_block_erase_c7, |
| 9500 | } |
| 9501 | }, |
| 9502 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 9503 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 9504 | .write = spi_chip_write_256, |
| 9505 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 9506 | .voltage = {2700, 3600}, |
| 9507 | }, |
| 9508 | |
| 9509 | { |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 9510 | .vendor = "Spansion", |
Nikolay Martynov | 598968a | 2014-05-04 21:44:13 +0000 | [diff] [blame] | 9511 | .name = "S25FL132K", |
| 9512 | .bustype = BUS_SPI, |
| 9513 | .manufacture_id = SPANSION_ID, |
| 9514 | .model_id = SPANSION_S25FL132K, |
| 9515 | .total_size = 4096, |
| 9516 | .page_size = 256, |
| 9517 | /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 9518 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9519 | .tested = TEST_UNTESTED, |
| 9520 | .probe = probe_spi_rdid, |
| 9521 | .probe_timing = TIMING_ZERO, |
| 9522 | .block_erasers = { |
| 9523 | { |
| 9524 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9525 | .block_erase = spi_block_erase_20, |
| 9526 | }, { |
| 9527 | .eraseblocks = { {64 * 1024, 64} }, |
| 9528 | .block_erase = spi_block_erase_d8, |
| 9529 | }, { |
| 9530 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 9531 | .block_erase = spi_block_erase_60, |
| 9532 | }, { |
| 9533 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 9534 | .block_erase = spi_block_erase_c7, |
| 9535 | } |
| 9536 | }, |
| 9537 | .printlock = spi_prettyprint_status_register_default_bp2, /* TODO: improve */ |
| 9538 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 9539 | .write = spi_chip_write_256, |
| 9540 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9541 | .voltage = {2700, 3600}, |
| 9542 | }, |
| 9543 | |
| 9544 | { |
| 9545 | .vendor = "Spansion", |
| 9546 | .name = "S25FL164K", |
| 9547 | .bustype = BUS_SPI, |
| 9548 | .manufacture_id = SPANSION_ID, |
| 9549 | .model_id = SPANSION_S25FL164K, |
| 9550 | .total_size = 8192, |
| 9551 | .page_size = 256, |
| 9552 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 9553 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9554 | .tested = TEST_OK_PREW, |
| 9555 | .probe = probe_spi_rdid, |
| 9556 | .probe_timing = TIMING_ZERO, |
| 9557 | .block_erasers = { |
| 9558 | { |
| 9559 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9560 | .block_erase = spi_block_erase_20, |
| 9561 | }, { |
| 9562 | .eraseblocks = { {64 * 1024, 128} }, |
| 9563 | .block_erase = spi_block_erase_d8, |
| 9564 | }, { |
| 9565 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 9566 | .block_erase = spi_block_erase_60, |
| 9567 | }, { |
| 9568 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 9569 | .block_erase = spi_block_erase_c7, |
| 9570 | } |
| 9571 | }, |
| 9572 | .printlock = spi_prettyprint_status_register_default_bp2, /* TODO: improve */ |
| 9573 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 9574 | .write = spi_chip_write_256, |
| 9575 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9576 | .voltage = {2700, 3600}, |
| 9577 | }, |
| 9578 | |
| 9579 | { |
| 9580 | .vendor = "Spansion", |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 9581 | .name = "S25FL128S......0", /* uniform 256kB sectors */ |
| 9582 | .bustype = BUS_SPI, |
| 9583 | .manufacture_id = SPANSION_ID, |
| 9584 | .model_id = SPANSION_S25FL128, |
| 9585 | .total_size = 16384, |
| 9586 | .page_size = 256, |
| 9587 | /* supports 4B addressing */ |
| 9588 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 9589 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9590 | .tested = TEST_UNTESTED, |
| 9591 | .probe = probe_spi_rdid, |
| 9592 | .probe_timing = TIMING_ZERO, |
| 9593 | .block_erasers = { |
| 9594 | { |
| 9595 | .eraseblocks = { {4 * 1024, 4096} }, |
| 9596 | .block_erase = spi_block_erase_20, |
| 9597 | }, { |
| 9598 | .eraseblocks = { {256 * 1024, 64} }, |
| 9599 | .block_erase = spi_block_erase_d8, |
| 9600 | }, { |
| 9601 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 9602 | .block_erase = spi_block_erase_60, |
| 9603 | }, { |
| 9604 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 9605 | .block_erase = spi_block_erase_c7, |
| 9606 | } |
| 9607 | }, |
| 9608 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 9609 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 9610 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9611 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9612 | .voltage = {2700, 3600}, |
| 9613 | }, |
| 9614 | |
| 9615 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9616 | .vendor = "SST", |
Idwer Vollering | f3607d1 | 2014-05-07 15:25:04 +0000 | [diff] [blame^] | 9617 | .name = "SST25LF020A", |
| 9618 | .bustype = BUS_SPI, |
| 9619 | .manufacture_id = SST_ID, |
| 9620 | .model_id = SST_SST25VF020_REMS, |
| 9621 | .total_size = 256, |
| 9622 | .page_size = 256, |
| 9623 | .feature_bits = FEATURE_WRSR_EWSR, |
| 9624 | .tested = TEST_OK_PREW, |
| 9625 | .probe = probe_spi_rems, |
| 9626 | .probe_timing = TIMING_ZERO, |
| 9627 | .block_erasers = |
| 9628 | { |
| 9629 | { |
| 9630 | .eraseblocks = { {4 * 1024, 64} }, |
| 9631 | .block_erase = spi_block_erase_20, |
| 9632 | }, { |
| 9633 | .eraseblocks = { {32 * 1024, 8} }, |
| 9634 | .block_erase = spi_block_erase_52, |
| 9635 | }, { |
| 9636 | .eraseblocks = { {256 * 1024, 1} }, |
| 9637 | .block_erase = spi_block_erase_60, |
| 9638 | }, |
| 9639 | }, |
| 9640 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 9641 | .unlock = spi_disable_blockprotect, |
| 9642 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 9643 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9644 | .voltage = {2700, 3600}, |
| 9645 | }, |
| 9646 | |
| 9647 | { |
| 9648 | .vendor = "SST", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9649 | .name = "SST25LF040A", |
| 9650 | .bustype = BUS_SPI, |
| 9651 | .manufacture_id = SST_ID, |
| 9652 | .model_id = SST_SST25VF040_REMS, |
| 9653 | .total_size = 512, |
| 9654 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9655 | .feature_bits = FEATURE_WRSR_EWSR, |
Uwe Hermann | 4335ec8 | 2011-09-07 20:20:25 +0000 | [diff] [blame] | 9656 | .tested = TEST_OK_PREW, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9657 | .probe = probe_spi_res2, |
| 9658 | .probe_timing = TIMING_ZERO, |
| 9659 | .block_erasers = |
| 9660 | { |
| 9661 | { |
| 9662 | .eraseblocks = { {4 * 1024, 128} }, |
| 9663 | .block_erase = spi_block_erase_20, |
| 9664 | }, { |
| 9665 | .eraseblocks = { {32 * 1024, 16} }, |
| 9666 | .block_erase = spi_block_erase_52, |
| 9667 | }, { |
| 9668 | .eraseblocks = { {512 * 1024, 1} }, |
| 9669 | .block_erase = spi_block_erase_60, |
| 9670 | }, |
| 9671 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9672 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9673 | .unlock = spi_disable_blockprotect, |
| 9674 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 9675 | .read = spi_chip_read, |
| 9676 | .voltage = {3000, 3600}, |
| 9677 | }, |
| 9678 | |
| 9679 | { |
| 9680 | .vendor = "SST", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 9681 | .name = "SST25LF080(A)", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9682 | .bustype = BUS_SPI, |
| 9683 | .manufacture_id = SST_ID, |
| 9684 | .model_id = SST_SST25VF080_REMS, |
| 9685 | .total_size = 1024, |
| 9686 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 9687 | .feature_bits = FEATURE_WRSR_EITHER, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9688 | .tested = TEST_UNTESTED, |
| 9689 | .probe = probe_spi_res2, |
| 9690 | .probe_timing = TIMING_ZERO, |
| 9691 | .block_erasers = |
| 9692 | { |
| 9693 | { |
| 9694 | .eraseblocks = { {4 * 1024, 256} }, |
| 9695 | .block_erase = spi_block_erase_20, |
| 9696 | }, { |
| 9697 | .eraseblocks = { {32 * 1024, 32} }, |
| 9698 | .block_erase = spi_block_erase_52, |
| 9699 | }, { |
| 9700 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9701 | .block_erase = spi_block_erase_60, |
| 9702 | }, |
| 9703 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9704 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9705 | .unlock = spi_disable_blockprotect, |
| 9706 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 9707 | .read = spi_chip_read, |
| 9708 | .voltage = {3000, 3600}, |
| 9709 | }, |
| 9710 | |
| 9711 | { |
| 9712 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 9713 | .name = "SST25VF512A", |
| 9714 | .bustype = BUS_SPI, |
| 9715 | .manufacture_id = SST_ID, |
| 9716 | .model_id = SST_SST25VF512A_REMS, |
| 9717 | .total_size = 64, |
| 9718 | .page_size = 256, |
| 9719 | .feature_bits = FEATURE_WRSR_EWSR, |
| 9720 | .tested = TEST_OK_PREW, |
| 9721 | .probe = probe_spi_rems, |
| 9722 | .probe_timing = TIMING_ZERO, |
| 9723 | .block_erasers = |
| 9724 | { |
| 9725 | { |
| 9726 | .eraseblocks = { {4 * 1024, 16} }, |
| 9727 | .block_erase = spi_block_erase_20, |
| 9728 | }, { |
| 9729 | .eraseblocks = { {32 * 1024, 2} }, |
| 9730 | .block_erase = spi_block_erase_52, |
| 9731 | }, { |
| 9732 | .eraseblocks = { {32 * 1024, 2} }, |
| 9733 | .block_erase = spi_block_erase_d8, |
| 9734 | }, { |
| 9735 | .eraseblocks = { {64 * 1024, 1} }, |
| 9736 | .block_erase = spi_block_erase_60, |
| 9737 | }, { |
| 9738 | .eraseblocks = { {64 * 1024, 1} }, |
| 9739 | .block_erase = spi_block_erase_c7, |
| 9740 | }, |
| 9741 | }, |
| 9742 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 9743 | .unlock = spi_disable_blockprotect, |
| 9744 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 9745 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9746 | .voltage = {2700, 3600}, |
| 9747 | }, |
| 9748 | |
| 9749 | { |
| 9750 | .vendor = "SST", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9751 | .name = "SST25VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9752 | .bustype = BUS_SPI, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9753 | .manufacture_id = SST_ID, |
| 9754 | .model_id = SST_SST25VF010_REMS, |
| 9755 | .total_size = 128, |
| 9756 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9757 | .feature_bits = FEATURE_WRSR_EWSR, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9758 | .tested = TEST_OK_PREW, |
| 9759 | .probe = probe_spi_rems, |
| 9760 | .probe_timing = TIMING_ZERO, |
| 9761 | .block_erasers = |
| 9762 | { |
| 9763 | { |
| 9764 | .eraseblocks = { {4 * 1024, 32} }, |
| 9765 | .block_erase = spi_block_erase_20, |
| 9766 | }, { |
| 9767 | .eraseblocks = { {32 * 1024, 4} }, |
| 9768 | .block_erase = spi_block_erase_52, |
| 9769 | }, { |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 9770 | .eraseblocks = { {32 * 1024, 4} }, |
| 9771 | .block_erase = spi_block_erase_d8, |
| 9772 | }, { |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9773 | .eraseblocks = { {128 * 1024, 1} }, |
| 9774 | .block_erase = spi_block_erase_60, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 9775 | }, { |
| 9776 | .eraseblocks = { {128 * 1024, 1} }, |
| 9777 | .block_erase = spi_block_erase_c7, |
| 9778 | }, |
| 9779 | }, |
| 9780 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 9781 | .unlock = spi_disable_blockprotect, |
| 9782 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 9783 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9784 | .voltage = {2700, 3600}, |
| 9785 | }, |
| 9786 | |
| 9787 | { |
| 9788 | .vendor = "SST", |
| 9789 | .name = "SST25VF020", |
| 9790 | .bustype = BUS_SPI, |
| 9791 | .manufacture_id = SST_ID, |
| 9792 | .model_id = SST_SST25VF020_REMS, |
| 9793 | .total_size = 256, |
| 9794 | .page_size = 256, |
| 9795 | .feature_bits = FEATURE_WRSR_EWSR, |
| 9796 | .tested = TEST_UNTESTED, |
| 9797 | .probe = probe_spi_rems, |
| 9798 | .probe_timing = TIMING_ZERO, |
| 9799 | .block_erasers = |
| 9800 | { |
| 9801 | { |
| 9802 | .eraseblocks = { {4 * 1024, 64} }, |
| 9803 | .block_erase = spi_block_erase_20, |
| 9804 | }, { |
| 9805 | .eraseblocks = { {32 * 1024, 8} }, |
| 9806 | .block_erase = spi_block_erase_52, |
| 9807 | }, { |
| 9808 | .eraseblocks = { {256 * 1024, 1} }, |
| 9809 | .block_erase = spi_block_erase_60, |
| 9810 | }, |
| 9811 | }, |
| 9812 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 9813 | .unlock = spi_disable_blockprotect, |
| 9814 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 9815 | .read = spi_chip_read, /* only */ |
| 9816 | .voltage = {2700, 3600}, |
| 9817 | }, |
| 9818 | |
| 9819 | { |
| 9820 | .vendor = "SST", |
| 9821 | .name = "SST25VF020B", |
| 9822 | .bustype = BUS_SPI, |
| 9823 | .manufacture_id = SST_ID, |
| 9824 | .model_id = SST_SST25VF020B, |
| 9825 | .total_size = 256, |
| 9826 | .page_size = 256, |
| 9827 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9828 | .tested = TEST_OK_PREW, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 9829 | .probe = probe_spi_rdid, |
| 9830 | .probe_timing = TIMING_ZERO, |
| 9831 | .block_erasers = |
| 9832 | { |
| 9833 | { |
| 9834 | .eraseblocks = { {4 * 1024, 64} }, |
| 9835 | .block_erase = spi_block_erase_20, |
| 9836 | }, { |
| 9837 | .eraseblocks = { {32 * 1024, 8} }, |
| 9838 | .block_erase = spi_block_erase_52, |
| 9839 | }, { |
| 9840 | .eraseblocks = { {64 * 1024, 4} }, |
| 9841 | .block_erase = spi_block_erase_d8, |
| 9842 | }, { |
| 9843 | .eraseblocks = { {256 * 1024, 1} }, |
| 9844 | .block_erase = spi_block_erase_60, |
| 9845 | }, { |
| 9846 | .eraseblocks = { {256 * 1024, 1} }, |
| 9847 | .block_erase = spi_block_erase_c7, |
| 9848 | }, |
| 9849 | }, |
| 9850 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */ |
| 9851 | .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */ |
| 9852 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 9853 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9854 | .voltage = {2700, 3600}, |
| 9855 | }, |
| 9856 | |
| 9857 | { |
| 9858 | .vendor = "SST", |
| 9859 | .name = "SST25VF040", |
| 9860 | .bustype = BUS_SPI, |
| 9861 | .manufacture_id = SST_ID, |
| 9862 | .model_id = SST_SST25VF040_REMS, |
| 9863 | .total_size = 512, |
| 9864 | .page_size = 256, |
| 9865 | .feature_bits = FEATURE_WRSR_EWSR, |
| 9866 | .tested = TEST_OK_PR, |
| 9867 | .probe = probe_spi_rems, |
| 9868 | .probe_timing = TIMING_ZERO, |
| 9869 | .block_erasers = |
| 9870 | { |
| 9871 | { |
| 9872 | .eraseblocks = { {4 * 1024, 128} }, |
| 9873 | .block_erase = spi_block_erase_20, |
| 9874 | }, { |
| 9875 | .eraseblocks = { {32 * 1024, 16} }, |
| 9876 | .block_erase = spi_block_erase_52, |
| 9877 | }, { |
| 9878 | .eraseblocks = { {512 * 1024, 1} }, |
| 9879 | .block_erase = spi_block_erase_60, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9880 | }, |
| 9881 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9882 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9883 | .unlock = spi_disable_blockprotect, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 9884 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 9885 | .read = spi_chip_read, |
| 9886 | .voltage = {2700, 3600}, |
| 9887 | }, |
| 9888 | |
| 9889 | { |
| 9890 | .vendor = "SST", |
| 9891 | .name = "SST25VF040B", |
| 9892 | .bustype = BUS_SPI, |
| 9893 | .manufacture_id = SST_ID, |
| 9894 | .model_id = SST_SST25VF040B, |
| 9895 | .total_size = 512, |
| 9896 | .page_size = 256, |
| 9897 | .feature_bits = FEATURE_WRSR_EWSR, |
| 9898 | .tested = TEST_OK_PREW, |
| 9899 | .probe = probe_spi_rdid, |
| 9900 | .probe_timing = TIMING_ZERO, |
| 9901 | .block_erasers = |
| 9902 | { |
| 9903 | { |
| 9904 | .eraseblocks = { {4 * 1024, 128} }, |
| 9905 | .block_erase = spi_block_erase_20, |
| 9906 | }, { |
| 9907 | .eraseblocks = { {32 * 1024, 16} }, |
| 9908 | .block_erase = spi_block_erase_52, |
| 9909 | }, { |
| 9910 | .eraseblocks = { {64 * 1024, 8} }, |
| 9911 | .block_erase = spi_block_erase_d8, |
| 9912 | }, { |
| 9913 | .eraseblocks = { {512 * 1024, 1} }, |
| 9914 | .block_erase = spi_block_erase_60, |
| 9915 | }, { |
| 9916 | .eraseblocks = { {512 * 1024, 1} }, |
| 9917 | .block_erase = spi_block_erase_c7, |
| 9918 | }, |
| 9919 | }, |
| 9920 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 9921 | .unlock = spi_disable_blockprotect, |
| 9922 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 9923 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9924 | .voltage = {2700, 3600}, |
| 9925 | }, |
| 9926 | |
| 9927 | { |
| 9928 | .vendor = "SST", |
| 9929 | .name = "SST25VF040B.REMS", |
| 9930 | .bustype = BUS_SPI, |
| 9931 | .manufacture_id = SST_ID, |
| 9932 | .model_id = SST_SST25VF040B_REMS, |
| 9933 | .total_size = 512, |
| 9934 | .page_size = 256, |
| 9935 | .feature_bits = FEATURE_WRSR_EWSR, |
| 9936 | .tested = TEST_OK_PREW, |
| 9937 | .probe = probe_spi_rems, |
| 9938 | .probe_timing = TIMING_ZERO, |
| 9939 | .block_erasers = |
| 9940 | { |
| 9941 | { |
| 9942 | .eraseblocks = { {4 * 1024, 128} }, |
| 9943 | .block_erase = spi_block_erase_20, |
| 9944 | }, { |
| 9945 | .eraseblocks = { {32 * 1024, 16} }, |
| 9946 | .block_erase = spi_block_erase_52, |
| 9947 | }, { |
| 9948 | .eraseblocks = { {64 * 1024, 8} }, |
| 9949 | .block_erase = spi_block_erase_d8, |
| 9950 | }, { |
| 9951 | .eraseblocks = { {512 * 1024, 1} }, |
| 9952 | .block_erase = spi_block_erase_60, |
| 9953 | }, { |
| 9954 | .eraseblocks = { {512 * 1024, 1} }, |
| 9955 | .block_erase = spi_block_erase_c7, |
| 9956 | }, |
| 9957 | }, |
| 9958 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 9959 | .unlock = spi_disable_blockprotect, |
| 9960 | .write = spi_aai_write, |
| 9961 | .read = spi_chip_read, |
| 9962 | .voltage = {2700, 3600}, |
| 9963 | }, |
| 9964 | |
| 9965 | { |
| 9966 | .vendor = "SST", |
| 9967 | .name = "SST25VF080B", |
| 9968 | .bustype = BUS_SPI, |
| 9969 | .manufacture_id = SST_ID, |
| 9970 | .model_id = SST_SST25VF080B, |
| 9971 | .total_size = 1024, |
| 9972 | .page_size = 256, |
| 9973 | .feature_bits = FEATURE_WRSR_EWSR, |
| 9974 | .tested = TEST_OK_PREW, |
| 9975 | .probe = probe_spi_rdid, |
| 9976 | .probe_timing = TIMING_ZERO, |
| 9977 | .block_erasers = |
| 9978 | { |
| 9979 | { |
| 9980 | .eraseblocks = { {4 * 1024, 256} }, |
| 9981 | .block_erase = spi_block_erase_20, |
| 9982 | }, { |
| 9983 | .eraseblocks = { {32 * 1024, 32} }, |
| 9984 | .block_erase = spi_block_erase_52, |
| 9985 | }, { |
| 9986 | .eraseblocks = { {64 * 1024, 16} }, |
| 9987 | .block_erase = spi_block_erase_d8, |
| 9988 | }, { |
| 9989 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9990 | .block_erase = spi_block_erase_60, |
| 9991 | }, { |
| 9992 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9993 | .block_erase = spi_block_erase_c7, |
| 9994 | }, |
| 9995 | }, |
| 9996 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 9997 | .unlock = spi_disable_blockprotect, |
| 9998 | .write = spi_aai_write, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9999 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10000 | .voltage = {2700, 3600}, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 10001 | }, |
| 10002 | |
| 10003 | { |
| 10004 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10005 | .name = "SST25VF016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10006 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10007 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10008 | .model_id = SST_SST25VF016B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10009 | .total_size = 2048, |
| 10010 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 10011 | .feature_bits = FEATURE_WRSR_EITHER, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 10012 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10013 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10014 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 10015 | .block_erasers = |
| 10016 | { |
| 10017 | { |
| 10018 | .eraseblocks = { {4 * 1024, 512} }, |
| 10019 | .block_erase = spi_block_erase_20, |
| 10020 | }, { |
| 10021 | .eraseblocks = { {32 * 1024, 64} }, |
| 10022 | .block_erase = spi_block_erase_52, |
| 10023 | }, { |
| 10024 | .eraseblocks = { {64 * 1024, 32} }, |
| 10025 | .block_erase = spi_block_erase_d8, |
| 10026 | }, { |
| 10027 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10028 | .block_erase = spi_block_erase_60, |
| 10029 | }, { |
| 10030 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10031 | .block_erase = spi_block_erase_c7, |
| 10032 | }, |
| 10033 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10034 | .printlock = spi_prettyprint_status_register_sst25vf016, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10035 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 10036 | .write = spi_aai_write, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10037 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10038 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10039 | }, |
| 10040 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10041 | { |
| 10042 | .vendor = "SST", |
| 10043 | .name = "SST25VF032B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10044 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10045 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10046 | .model_id = SST_SST25VF032B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10047 | .total_size = 4096, |
| 10048 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10049 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | fcf6a8c | 2011-05-18 01:32:00 +0000 | [diff] [blame] | 10050 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10051 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10052 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 10053 | .block_erasers = |
| 10054 | { |
| 10055 | { |
| 10056 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10057 | .block_erase = spi_block_erase_20, |
| 10058 | }, { |
| 10059 | .eraseblocks = { {32 * 1024, 128} }, |
| 10060 | .block_erase = spi_block_erase_52, |
| 10061 | }, { |
| 10062 | .eraseblocks = { {64 * 1024, 64} }, |
| 10063 | .block_erase = spi_block_erase_d8, |
| 10064 | }, { |
| 10065 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10066 | .block_erase = spi_block_erase_60, |
| 10067 | }, { |
| 10068 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10069 | .block_erase = spi_block_erase_c7, |
| 10070 | }, |
| 10071 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10072 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10073 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 10074 | .write = spi_aai_write, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 10075 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10076 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 10077 | }, |
| 10078 | |
| 10079 | { |
| 10080 | .vendor = "SST", |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 10081 | .name = "SST25VF064C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10082 | .bustype = BUS_SPI, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 10083 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10084 | .model_id = SST_SST25VF064C, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 10085 | .total_size = 8192, |
| 10086 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10087 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 10088 | .tested = TEST_OK_PREW, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 10089 | .probe = probe_spi_rdid, |
| 10090 | .probe_timing = TIMING_ZERO, |
| 10091 | .block_erasers = |
| 10092 | { |
| 10093 | { |
| 10094 | .eraseblocks = { {4 * 1024, 2048} }, |
| 10095 | .block_erase = spi_block_erase_20, |
| 10096 | }, { |
| 10097 | .eraseblocks = { {32 * 1024, 256} }, |
| 10098 | .block_erase = spi_block_erase_52, |
| 10099 | }, { |
| 10100 | .eraseblocks = { {64 * 1024, 128} }, |
| 10101 | .block_erase = spi_block_erase_d8, |
| 10102 | }, { |
| 10103 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10104 | .block_erase = spi_block_erase_60, |
| 10105 | }, { |
| 10106 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10107 | .block_erase = spi_block_erase_c7, |
| 10108 | }, |
| 10109 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10110 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 10111 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 10112 | .write = spi_chip_write_256, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 10113 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10114 | .voltage = {2700, 3600}, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 10115 | }, |
| 10116 | |
| 10117 | { |
| 10118 | .vendor = "SST", |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 10119 | .name = "SST25WF512", |
| 10120 | .bustype = BUS_SPI, |
| 10121 | .manufacture_id = SST_ID, |
| 10122 | .model_id = SST_SST25WF512, |
| 10123 | .total_size = 64, |
| 10124 | .page_size = 256, |
| 10125 | .feature_bits = FEATURE_WRSR_EITHER, |
| 10126 | .tested = TEST_UNTESTED, |
| 10127 | .probe = probe_spi_rdid, |
| 10128 | .probe_timing = TIMING_ZERO, |
| 10129 | .block_erasers = |
| 10130 | { |
| 10131 | { |
| 10132 | .eraseblocks = { {4 * 1024, 16} }, |
| 10133 | .block_erase = spi_block_erase_20, |
| 10134 | }, { |
| 10135 | .eraseblocks = { {32 * 1024, 2} }, |
| 10136 | .block_erase = spi_block_erase_52, |
| 10137 | }, { |
| 10138 | .eraseblocks = { {1024 * 64, 1} }, |
| 10139 | .block_erase = spi_block_erase_60, |
| 10140 | }, { |
| 10141 | .eraseblocks = { {1024 * 64, 1} }, |
| 10142 | .block_erase = spi_block_erase_c7, |
| 10143 | }, |
| 10144 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 10145 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 10146 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 10147 | .write = spi_aai_write, |
| 10148 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10149 | .voltage = {1650, 1950}, |
| 10150 | }, |
| 10151 | |
| 10152 | { |
| 10153 | .vendor = "SST", |
| 10154 | .name = "SST25WF010", |
| 10155 | .bustype = BUS_SPI, |
| 10156 | .manufacture_id = SST_ID, |
| 10157 | .model_id = SST_SST25WF010, |
| 10158 | .total_size = 128, |
| 10159 | .page_size = 256, |
| 10160 | .feature_bits = FEATURE_WRSR_EITHER, |
| 10161 | .tested = TEST_UNTESTED, |
| 10162 | .probe = probe_spi_rdid, |
| 10163 | .probe_timing = TIMING_ZERO, |
| 10164 | .block_erasers = |
| 10165 | { |
| 10166 | { |
| 10167 | .eraseblocks = { {4 * 1024, 32} }, |
| 10168 | .block_erase = spi_block_erase_20, |
| 10169 | }, { |
| 10170 | .eraseblocks = { {32 * 1024, 4} }, |
| 10171 | .block_erase = spi_block_erase_52, |
| 10172 | }, { |
| 10173 | .eraseblocks = { {1024 * 128, 1} }, |
| 10174 | .block_erase = spi_block_erase_60, |
| 10175 | }, { |
| 10176 | .eraseblocks = { {1024 * 128, 1} }, |
| 10177 | .block_erase = spi_block_erase_c7, |
| 10178 | }, |
| 10179 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 10180 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 10181 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 10182 | .write = spi_aai_write, |
| 10183 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10184 | .voltage = {1650, 1950}, |
| 10185 | }, |
| 10186 | |
| 10187 | { |
| 10188 | .vendor = "SST", |
| 10189 | .name = "SST25WF020", |
| 10190 | .bustype = BUS_SPI, |
| 10191 | .manufacture_id = SST_ID, |
| 10192 | .model_id = SST_SST25WF020, |
| 10193 | .total_size = 256, |
| 10194 | .page_size = 256, |
| 10195 | .feature_bits = FEATURE_WRSR_EITHER, |
| 10196 | .tested = TEST_UNTESTED, |
| 10197 | .probe = probe_spi_rdid, |
| 10198 | .probe_timing = TIMING_ZERO, |
| 10199 | .block_erasers = |
| 10200 | { |
| 10201 | { |
| 10202 | .eraseblocks = { {4 * 1024, 64} }, |
| 10203 | .block_erase = spi_block_erase_20, |
| 10204 | }, { |
| 10205 | .eraseblocks = { {32 * 1024, 8} }, |
| 10206 | .block_erase = spi_block_erase_52, |
| 10207 | }, { |
| 10208 | .eraseblocks = { {64 * 1024, 4} }, |
| 10209 | .block_erase = spi_block_erase_d8, |
| 10210 | }, { |
| 10211 | .eraseblocks = { {1024 * 256, 1} }, |
| 10212 | .block_erase = spi_block_erase_60, |
| 10213 | }, { |
| 10214 | .eraseblocks = { {1024 * 256, 1} }, |
| 10215 | .block_erase = spi_block_erase_c7, |
| 10216 | }, |
| 10217 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 10218 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 10219 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 10220 | .write = spi_aai_write, |
| 10221 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10222 | .voltage = {1650, 1950}, |
| 10223 | }, |
| 10224 | |
| 10225 | { |
| 10226 | .vendor = "SST", |
| 10227 | .name = "SST25WF040", |
| 10228 | .bustype = BUS_SPI, |
| 10229 | .manufacture_id = SST_ID, |
| 10230 | .model_id = SST_SST25WF040, |
| 10231 | .total_size = 512, |
| 10232 | .page_size = 256, |
| 10233 | .feature_bits = FEATURE_WRSR_EITHER, |
| 10234 | .tested = TEST_UNTESTED, |
| 10235 | .probe = probe_spi_rdid, |
| 10236 | .probe_timing = TIMING_ZERO, |
| 10237 | .block_erasers = |
| 10238 | { |
| 10239 | { |
| 10240 | .eraseblocks = { {4 * 1024, 128} }, |
| 10241 | .block_erase = spi_block_erase_20, |
| 10242 | }, { |
| 10243 | .eraseblocks = { {32 * 1024, 16} }, |
| 10244 | .block_erase = spi_block_erase_52, |
| 10245 | }, { |
| 10246 | .eraseblocks = { {64 * 1024, 8} }, |
| 10247 | .block_erase = spi_block_erase_d8, |
| 10248 | }, { |
| 10249 | .eraseblocks = { {1024 * 512, 1} }, |
| 10250 | .block_erase = spi_block_erase_60, |
| 10251 | }, { |
| 10252 | .eraseblocks = { {1024 * 512, 1} }, |
| 10253 | .block_erase = spi_block_erase_c7, |
| 10254 | }, |
| 10255 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 10256 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 10257 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 10258 | .write = spi_aai_write, |
| 10259 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10260 | .voltage = {1650, 1950}, |
| 10261 | }, |
| 10262 | |
| 10263 | { |
| 10264 | .vendor = "SST", |
| 10265 | .name = "SST25WF080", |
| 10266 | .bustype = BUS_SPI, |
| 10267 | .manufacture_id = SST_ID, |
| 10268 | .model_id = SST_SST25WF080, |
| 10269 | .total_size = 1024, |
| 10270 | .page_size = 256, |
| 10271 | .feature_bits = FEATURE_WRSR_EITHER, |
| 10272 | .tested = TEST_OK_PREW, |
| 10273 | .probe = probe_spi_rdid, |
| 10274 | .probe_timing = TIMING_ZERO, |
| 10275 | .block_erasers = |
| 10276 | { |
| 10277 | { |
| 10278 | .eraseblocks = { {4 * 1024, 256} }, |
| 10279 | .block_erase = spi_block_erase_20, |
| 10280 | }, { |
| 10281 | .eraseblocks = { {32 * 1024, 32} }, |
| 10282 | .block_erase = spi_block_erase_52, |
| 10283 | }, { |
| 10284 | .eraseblocks = { {64 * 1024, 16} }, |
| 10285 | .block_erase = spi_block_erase_d8, |
| 10286 | }, { |
| 10287 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10288 | .block_erase = spi_block_erase_60, |
| 10289 | }, { |
| 10290 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10291 | .block_erase = spi_block_erase_c7, |
| 10292 | }, |
| 10293 | }, |
| 10294 | .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */ |
| 10295 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 10296 | .write = spi_aai_write, |
| 10297 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10298 | .voltage = {1650, 1950}, |
| 10299 | }, |
| 10300 | |
| 10301 | { |
| 10302 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10303 | .name = "SST28SF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10304 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10305 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10306 | .model_id = SST_SST28SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10307 | .total_size = 512, |
| 10308 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10309 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10310 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10311 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 10312 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10313 | .block_erasers = |
| 10314 | { |
| 10315 | { |
| 10316 | .eraseblocks = { {128, 4096} }, |
| 10317 | .block_erase = erase_sector_28sf040, |
| 10318 | }, { |
| 10319 | .eraseblocks = { {512 * 1024, 1} }, |
| 10320 | .block_erase = erase_chip_28sf040, |
| 10321 | } |
| 10322 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 10323 | .unlock = unprotect_28sf040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10324 | .write = write_28sf040, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10325 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10326 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10327 | }, |
| 10328 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10329 | { |
| 10330 | .vendor = "SST", |
| 10331 | .name = "SST29EE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10332 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10333 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10334 | .model_id = SST_SST29EE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10335 | .total_size = 128, |
| 10336 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10337 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10338 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10339 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10340 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10341 | .block_erasers = |
| 10342 | { |
| 10343 | { |
| 10344 | .eraseblocks = { {128 * 1024, 1} }, |
| 10345 | .block_erase = erase_chip_block_jedec, |
| 10346 | } |
| 10347 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10348 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10349 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10350 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10351 | }, |
| 10352 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10353 | { |
| 10354 | .vendor = "SST", |
| 10355 | .name = "SST29LE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10356 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10357 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10358 | .model_id = SST_SST29LE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10359 | .total_size = 128, |
| 10360 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10361 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10362 | .tested = TEST_UNTESTED, |
| 10363 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10364 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10365 | .block_erasers = |
| 10366 | { |
| 10367 | { |
| 10368 | .eraseblocks = { {128 * 1024, 1} }, |
| 10369 | .block_erase = erase_chip_block_jedec, |
| 10370 | } |
| 10371 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10372 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10373 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10374 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10375 | }, |
| 10376 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10377 | { |
| 10378 | .vendor = "SST", |
| 10379 | .name = "SST29EE020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10380 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10381 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10382 | .model_id = SST_SST29EE020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10383 | .total_size = 256, |
| 10384 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10385 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10386 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10387 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10388 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10389 | .block_erasers = |
| 10390 | { |
| 10391 | { |
| 10392 | .eraseblocks = { {256 * 1024, 1} }, |
| 10393 | .block_erase = erase_chip_block_jedec, |
| 10394 | } |
| 10395 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10396 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10397 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10398 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10399 | }, |
| 10400 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10401 | { |
| 10402 | .vendor = "SST", |
| 10403 | .name = "SST29LE020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10404 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10405 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10406 | .model_id = SST_SST29LE020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10407 | .total_size = 256, |
| 10408 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10409 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10410 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10411 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10412 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10413 | .block_erasers = |
| 10414 | { |
| 10415 | { |
| 10416 | .eraseblocks = { {256 * 1024, 1} }, |
| 10417 | .block_erase = erase_chip_block_jedec, |
| 10418 | } |
| 10419 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10420 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10421 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10422 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10423 | }, |
| 10424 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10425 | { |
| 10426 | .vendor = "SST", |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10427 | .name = "SST39SF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10428 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10429 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10430 | .model_id = SST_SST39SF512, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10431 | .total_size = 64, |
| 10432 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10433 | .feature_bits = FEATURE_EITHER_RESET, |
Idwer Vollering | 7913fb4 | 2011-03-07 15:32:58 +0000 | [diff] [blame] | 10434 | .tested = TEST_OK_PREW, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10435 | .probe = probe_jedec, |
| 10436 | .probe_timing = 1, /* 150 ns */ |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10437 | .block_erasers = |
| 10438 | { |
| 10439 | { |
| 10440 | .eraseblocks = { {4 * 1024, 16} }, |
| 10441 | .block_erase = erase_sector_jedec, |
| 10442 | }, { |
| 10443 | .eraseblocks = { {64 * 1024, 1} }, |
| 10444 | .block_erase = erase_chip_block_jedec, |
| 10445 | } |
| 10446 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10447 | .write = write_jedec_1, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10448 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10449 | .voltage = {4500, 5500}, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10450 | }, |
| 10451 | |
| 10452 | { |
| 10453 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10454 | .name = "SST39SF010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10455 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10456 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10457 | .model_id = SST_SST39SF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10458 | .total_size = 128, |
| 10459 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10460 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 10461 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10462 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 10463 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10464 | .block_erasers = |
| 10465 | { |
| 10466 | { |
| 10467 | .eraseblocks = { {4 * 1024, 32} }, |
| 10468 | .block_erase = erase_sector_jedec, |
| 10469 | }, { |
| 10470 | .eraseblocks = { {128 * 1024, 1} }, |
| 10471 | .block_erase = erase_chip_block_jedec, |
| 10472 | } |
| 10473 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10474 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10475 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10476 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10477 | }, |
| 10478 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10479 | { |
| 10480 | .vendor = "SST", |
| 10481 | .name = "SST39SF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10482 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10483 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10484 | .model_id = SST_SST39SF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10485 | .total_size = 256, |
| 10486 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10487 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 10488 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10489 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10490 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10491 | .block_erasers = |
| 10492 | { |
| 10493 | { |
| 10494 | .eraseblocks = { {4 * 1024, 64} }, |
| 10495 | .block_erase = erase_sector_jedec, |
| 10496 | }, { |
| 10497 | .eraseblocks = { {256 * 1024, 1} }, |
| 10498 | .block_erase = erase_chip_block_jedec, |
| 10499 | } |
| 10500 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10501 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10502 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10503 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10504 | }, |
| 10505 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10506 | { |
| 10507 | .vendor = "SST", |
| 10508 | .name = "SST39SF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10509 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10510 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10511 | .model_id = SST_SST39SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10512 | .total_size = 512, |
| 10513 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10514 | .feature_bits = FEATURE_EITHER_RESET, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 10515 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10516 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10517 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10518 | .block_erasers = |
| 10519 | { |
| 10520 | { |
| 10521 | .eraseblocks = { {4 * 1024, 128} }, |
| 10522 | .block_erase = erase_sector_jedec, |
| 10523 | }, { |
| 10524 | .eraseblocks = { {512 * 1024, 1} }, |
| 10525 | .block_erase = erase_chip_block_jedec, |
| 10526 | } |
| 10527 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10528 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10529 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10530 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10531 | }, |
| 10532 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10533 | { |
| 10534 | .vendor = "SST", |
| 10535 | .name = "SST39VF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10536 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10537 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10538 | .model_id = SST_SST39VF512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10539 | .total_size = 64, |
| 10540 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10541 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 10542 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10543 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10544 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10545 | .block_erasers = |
| 10546 | { |
| 10547 | { |
| 10548 | .eraseblocks = { {4 * 1024, 16} }, |
| 10549 | .block_erase = erase_sector_jedec, |
| 10550 | }, { |
| 10551 | .eraseblocks = { {64 * 1024, 1} }, |
| 10552 | .block_erase = erase_chip_block_jedec, |
| 10553 | } |
| 10554 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10555 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10556 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10557 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10558 | }, |
| 10559 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10560 | { |
| 10561 | .vendor = "SST", |
| 10562 | .name = "SST39VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10563 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10564 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10565 | .model_id = SST_SST39VF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10566 | .total_size = 128, |
| 10567 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10568 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 10569 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10570 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10571 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10572 | .block_erasers = |
| 10573 | { |
| 10574 | { |
| 10575 | .eraseblocks = { {4 * 1024, 32} }, |
| 10576 | .block_erase = erase_sector_jedec, |
| 10577 | }, { |
| 10578 | .eraseblocks = { {128 * 1024, 1} }, |
| 10579 | .block_erase = erase_chip_block_jedec, |
| 10580 | } |
| 10581 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10582 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10583 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10584 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10585 | }, |
| 10586 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10587 | { |
| 10588 | .vendor = "SST", |
| 10589 | .name = "SST39VF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10590 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10591 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10592 | .model_id = SST_SST39VF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10593 | .total_size = 256, |
| 10594 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10595 | .feature_bits = FEATURE_EITHER_RESET, |
| 10596 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10597 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10598 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10599 | .block_erasers = |
| 10600 | { |
| 10601 | { |
| 10602 | .eraseblocks = { {4 * 1024, 64} }, |
| 10603 | .block_erase = erase_sector_jedec, |
| 10604 | }, { |
| 10605 | .eraseblocks = { {256 * 1024, 1} }, |
| 10606 | .block_erase = erase_chip_block_jedec, |
| 10607 | } |
| 10608 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10609 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10610 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10611 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10612 | }, |
| 10613 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10614 | { |
| 10615 | .vendor = "SST", |
| 10616 | .name = "SST39VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10617 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10618 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10619 | .model_id = SST_SST39VF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10620 | .total_size = 512, |
| 10621 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10622 | .feature_bits = FEATURE_EITHER_RESET, |
| 10623 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10624 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10625 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10626 | .block_erasers = |
| 10627 | { |
| 10628 | { |
| 10629 | .eraseblocks = { {4 * 1024, 128} }, |
| 10630 | .block_erase = erase_sector_jedec, |
| 10631 | }, { |
| 10632 | .eraseblocks = { {512 * 1024, 1} }, |
| 10633 | .block_erase = erase_chip_block_jedec, |
| 10634 | } |
| 10635 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10636 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10637 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10638 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 10639 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10640 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10641 | { |
| 10642 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 10643 | .name = "SST39VF080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10644 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 10645 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10646 | .model_id = SST_SST39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 10647 | .total_size = 1024, |
| 10648 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10649 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 10650 | .tested = TEST_UNTESTED, |
| 10651 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10652 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10653 | .block_erasers = |
| 10654 | { |
| 10655 | { |
| 10656 | .eraseblocks = { {4 * 1024, 256} }, |
| 10657 | .block_erase = erase_sector_jedec, |
| 10658 | }, { |
| 10659 | .eraseblocks = { {64 * 1024, 16} }, |
| 10660 | .block_erase = erase_block_jedec, |
| 10661 | }, { |
| 10662 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10663 | .block_erase = erase_chip_block_jedec, |
| 10664 | } |
| 10665 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10666 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10667 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10668 | .voltage = {2700, 3600}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 10669 | }, |
| 10670 | |
| 10671 | { |
| 10672 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10673 | .name = "SST49LF002A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10674 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10675 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10676 | .model_id = SST_SST49LF002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10677 | .total_size = 256, |
| 10678 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10679 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 10680 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10681 | .probe = probe_jedec, |
| 10682 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10683 | .block_erasers = |
| 10684 | { |
| 10685 | { |
| 10686 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10687 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10688 | }, { |
| 10689 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10690 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10691 | }, { |
| 10692 | .eraseblocks = { {256 * 1024, 1} }, |
| 10693 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 10694 | } |
| 10695 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10696 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10697 | .unlock = unlock_sst_fwhub, |
| 10698 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10699 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10700 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10701 | }, |
| 10702 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10703 | { |
| 10704 | .vendor = "SST", |
| 10705 | .name = "SST49LF003A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10706 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10707 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10708 | .model_id = SST_SST49LF003A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10709 | .total_size = 384, |
| 10710 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10711 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 10712 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10713 | .probe = probe_jedec, |
| 10714 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10715 | .block_erasers = |
| 10716 | { |
| 10717 | { |
| 10718 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10719 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10720 | }, { |
| 10721 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10722 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10723 | }, { |
| 10724 | .eraseblocks = { {384 * 1024, 1} }, |
| 10725 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 10726 | } |
| 10727 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10728 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10729 | .unlock = unlock_sst_fwhub, |
| 10730 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10731 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10732 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10733 | }, |
| 10734 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10735 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 10736 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 10737 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 10738 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10739 | .vendor = "SST", |
| 10740 | .name = "SST49LF004A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10741 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10742 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10743 | .model_id = SST_SST49LF004A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10744 | .total_size = 512, |
| 10745 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10746 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 10747 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10748 | .probe = probe_jedec, |
| 10749 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 10750 | .block_erasers = |
| 10751 | { |
| 10752 | { |
| 10753 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10754 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 10755 | }, { |
| 10756 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10757 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 10758 | }, { |
| 10759 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10760 | .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] | 10761 | }, |
| 10762 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10763 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10764 | .unlock = unlock_sst_fwhub, |
| 10765 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10766 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10767 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10768 | }, |
| 10769 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10770 | { |
| 10771 | .vendor = "SST", |
| 10772 | .name = "SST49LF004C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10773 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10774 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10775 | .model_id = SST_SST49LF004C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10776 | .total_size = 512, |
| 10777 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10778 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10779 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10780 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 10781 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10782 | .block_erasers = |
| 10783 | { |
| 10784 | { |
| 10785 | .eraseblocks = { {4 * 1024, 128} }, |
| 10786 | .block_erase = erase_sector_49lfxxxc, |
| 10787 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10788 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10789 | {64 * 1024, 7}, |
| 10790 | {32 * 1024, 1}, |
| 10791 | {8 * 1024, 2}, |
| 10792 | {16 * 1024, 1}, |
| 10793 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10794 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10795 | } |
| 10796 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10797 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 10798 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10799 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10800 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10801 | }, |
| 10802 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10803 | { |
| 10804 | .vendor = "SST", |
| 10805 | .name = "SST49LF008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10806 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10807 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10808 | .model_id = SST_SST49LF008A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10809 | .total_size = 1024, |
| 10810 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10811 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 10812 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10813 | .probe = probe_jedec, |
| 10814 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10815 | .block_erasers = |
| 10816 | { |
| 10817 | { |
| 10818 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10819 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10820 | }, { |
| 10821 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10822 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10823 | }, { |
| 10824 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10825 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 10826 | } |
| 10827 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10828 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10829 | .unlock = unlock_sst_fwhub, |
| 10830 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10831 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10832 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10833 | }, |
| 10834 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10835 | { |
| 10836 | .vendor = "SST", |
| 10837 | .name = "SST49LF008C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10838 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10839 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10840 | .model_id = SST_SST49LF008C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10841 | .total_size = 1024, |
| 10842 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10843 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10844 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10845 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 10846 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10847 | .block_erasers = |
| 10848 | { |
| 10849 | { |
| 10850 | .eraseblocks = { {4 * 1024, 256} }, |
| 10851 | .block_erase = erase_sector_49lfxxxc, |
| 10852 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10853 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10854 | {64 * 1024, 15}, |
| 10855 | {32 * 1024, 1}, |
| 10856 | {8 * 1024, 2}, |
| 10857 | {16 * 1024, 1}, |
| 10858 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10859 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10860 | } |
| 10861 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10862 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 10863 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10864 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10865 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10866 | }, |
| 10867 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10868 | { |
| 10869 | .vendor = "SST", |
| 10870 | .name = "SST49LF016C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10871 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10872 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10873 | .model_id = SST_SST49LF016C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10874 | .total_size = 2048, |
| 10875 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10876 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | 2abab94 | 2012-04-27 20:41:23 +0000 | [diff] [blame] | 10877 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10878 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 10879 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10880 | .block_erasers = |
| 10881 | { |
| 10882 | { |
| 10883 | .eraseblocks = { {4 * 1024, 512} }, |
| 10884 | .block_erase = erase_sector_49lfxxxc, |
| 10885 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10886 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10887 | {64 * 1024, 31}, |
| 10888 | {32 * 1024, 1}, |
| 10889 | {8 * 1024, 2}, |
| 10890 | {16 * 1024, 1}, |
| 10891 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10892 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10893 | } |
| 10894 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10895 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 10896 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10897 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10898 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10899 | }, |
| 10900 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10901 | { |
| 10902 | .vendor = "SST", |
| 10903 | .name = "SST49LF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10904 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10905 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10906 | .model_id = SST_SST49LF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10907 | .total_size = 256, |
| 10908 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10909 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 10910 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10911 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10912 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10913 | .block_erasers = |
| 10914 | { |
| 10915 | { |
| 10916 | .eraseblocks = { {4 * 1024, 64} }, |
| 10917 | .block_erase = erase_sector_jedec, |
| 10918 | }, { |
| 10919 | .eraseblocks = { {16 * 1024, 16} }, |
| 10920 | .block_erase = erase_block_jedec, |
| 10921 | }, { |
| 10922 | .eraseblocks = { {256 * 1024, 1} }, |
| 10923 | .block_erase = NULL, |
| 10924 | } |
| 10925 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10926 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10927 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10928 | .voltage = {3000, 3600}, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 10929 | }, |
| 10930 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10931 | { |
| 10932 | .vendor = "SST", |
| 10933 | .name = "SST49LF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10934 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10935 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10936 | .model_id = SST_SST49LF020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10937 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 10938 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10939 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10940 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10941 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10942 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10943 | .block_erasers = |
| 10944 | { |
| 10945 | { |
| 10946 | .eraseblocks = { {4 * 1024, 64} }, |
| 10947 | .block_erase = erase_sector_jedec, |
| 10948 | }, { |
| 10949 | .eraseblocks = { {16 * 1024, 16} }, |
| 10950 | .block_erase = erase_block_jedec, |
| 10951 | }, { |
| 10952 | .eraseblocks = { {256 * 1024, 1} }, |
| 10953 | .block_erase = NULL, |
| 10954 | } |
| 10955 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10956 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10957 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10958 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10959 | }, |
| 10960 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10961 | { |
| 10962 | .vendor = "SST", |
| 10963 | .name = "SST49LF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10964 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10965 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10966 | .model_id = SST_SST49LF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10967 | .total_size = 512, |
| 10968 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10969 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10970 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10971 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10972 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10973 | .block_erasers = |
| 10974 | { |
| 10975 | { |
| 10976 | .eraseblocks = { {4 * 1024, 128} }, |
| 10977 | .block_erase = erase_sector_jedec, |
| 10978 | }, { |
| 10979 | .eraseblocks = { {64 * 1024, 8} }, |
| 10980 | .block_erase = erase_block_jedec, |
| 10981 | }, { |
| 10982 | .eraseblocks = { {512 * 1024, 1} }, |
| 10983 | .block_erase = NULL, |
| 10984 | } |
| 10985 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10986 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10987 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10988 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10989 | }, |
| 10990 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10991 | { |
| 10992 | .vendor = "SST", |
| 10993 | .name = "SST49LF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10994 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10995 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10996 | .model_id = SST_SST49LF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10997 | .total_size = 512, |
| 10998 | .page_size = 64 * 1024, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 10999 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 11000 | .tested = TEST_OK_PREW, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11001 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11002 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11003 | .block_erasers = |
| 11004 | { |
| 11005 | { |
| 11006 | .eraseblocks = { {4 * 1024, 128} }, |
| 11007 | .block_erase = erase_sector_jedec, |
| 11008 | }, { |
| 11009 | .eraseblocks = { {64 * 1024, 8} }, |
| 11010 | .block_erase = erase_block_jedec, |
| 11011 | }, { |
| 11012 | .eraseblocks = { {512 * 1024, 1} }, |
| 11013 | .block_erase = NULL, |
| 11014 | } |
| 11015 | }, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 11016 | .unlock = unlock_82802ab, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11017 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11018 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11019 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11020 | }, |
| 11021 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11022 | { |
| 11023 | .vendor = "SST", |
| 11024 | .name = "SST49LF080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11025 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11026 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11027 | .model_id = SST_SST49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11028 | .total_size = 1024, |
| 11029 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11030 | .feature_bits = FEATURE_EITHER_RESET, |
Brandon Dowdy | f07bf32 | 2011-03-06 18:31:11 +0000 | [diff] [blame] | 11031 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11032 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 11033 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11034 | .block_erasers = |
| 11035 | { |
| 11036 | { |
| 11037 | .eraseblocks = { {4 * 1024, 256} }, |
| 11038 | .block_erase = erase_sector_jedec, |
| 11039 | }, { |
| 11040 | .eraseblocks = { {64 * 1024, 16} }, |
| 11041 | .block_erase = erase_block_jedec, |
| 11042 | }, { |
| 11043 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11044 | .block_erase = NULL, |
| 11045 | } |
| 11046 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11047 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11048 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11049 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11050 | }, |
| 11051 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11052 | { |
| 11053 | .vendor = "SST", |
| 11054 | .name = "SST49LF160C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11055 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11056 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11057 | .model_id = SST_SST49LF160C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11058 | .total_size = 2048, |
| 11059 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11060 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 11061 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11062 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11063 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11064 | .block_erasers = |
| 11065 | { |
| 11066 | { |
| 11067 | .eraseblocks = { {4 * 1024, 512} }, |
| 11068 | .block_erase = erase_sector_49lfxxxc, |
| 11069 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 11070 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11071 | {64 * 1024, 31}, |
| 11072 | {32 * 1024, 1}, |
| 11073 | {8 * 1024, 2}, |
| 11074 | {16 * 1024, 1}, |
| 11075 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 11076 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11077 | } |
| 11078 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 11079 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 11080 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11081 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11082 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11083 | }, |
| 11084 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11085 | { |
| 11086 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11087 | .name = "M29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11088 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11089 | .manufacture_id = ST_ID, |
| 11090 | .model_id = ST_M29F002B, |
| 11091 | .total_size = 256, |
| 11092 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11093 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11094 | .tested = TEST_UNTESTED, |
| 11095 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11096 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11097 | .block_erasers = |
| 11098 | { |
| 11099 | { |
| 11100 | .eraseblocks = { |
| 11101 | {16 * 1024, 1}, |
| 11102 | {8 * 1024, 2}, |
| 11103 | {32 * 1024, 1}, |
| 11104 | {64 * 1024, 3}, |
| 11105 | }, |
| 11106 | .block_erase = erase_sector_jedec, |
| 11107 | }, { |
| 11108 | .eraseblocks = { {256 * 1024, 1} }, |
| 11109 | .block_erase = erase_chip_block_jedec, |
| 11110 | } |
| 11111 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11112 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11113 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11114 | .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] | 11115 | }, |
| 11116 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11117 | { |
| 11118 | .vendor = "ST", |
| 11119 | .name = "M29F002T/NT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11120 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11121 | .manufacture_id = ST_ID, |
| 11122 | .model_id = ST_M29F002T, |
| 11123 | .total_size = 256, |
| 11124 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11125 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 11126 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11127 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11128 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11129 | .block_erasers = |
| 11130 | { |
| 11131 | { |
| 11132 | .eraseblocks = { |
| 11133 | {64 * 1024, 3}, |
| 11134 | {32 * 1024, 1}, |
| 11135 | {8 * 1024, 2}, |
| 11136 | {16 * 1024, 1}, |
| 11137 | }, |
| 11138 | .block_erase = erase_sector_jedec, |
| 11139 | }, { |
| 11140 | .eraseblocks = { {256 * 1024, 1} }, |
| 11141 | .block_erase = erase_chip_block_jedec, |
| 11142 | } |
| 11143 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11144 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11145 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11146 | .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] | 11147 | }, |
| 11148 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11149 | { |
| 11150 | .vendor = "ST", |
| 11151 | .name = "M29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11152 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11153 | .manufacture_id = ST_ID, |
| 11154 | .model_id = ST_M29F040B, |
| 11155 | .total_size = 512, |
| 11156 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11157 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 11158 | .tested = TEST_UNTESTED, |
| 11159 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 11160 | .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11161 | .block_erasers = |
| 11162 | { |
| 11163 | { |
| 11164 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11165 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11166 | }, { |
| 11167 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11168 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11169 | } |
| 11170 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11171 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11172 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11173 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11174 | }, |
| 11175 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11176 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11177 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11178 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 11179 | .name = "M29F400BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11180 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 11181 | .manufacture_id = ST_ID, |
| 11182 | .model_id = ST_M29F400BB, |
| 11183 | .total_size = 512, |
| 11184 | .page_size = 64 * 1024, |
| 11185 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 11186 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 11187 | .probe = probe_m29f400bt, |
| 11188 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
| 11189 | .block_erasers = |
| 11190 | { |
| 11191 | { |
| 11192 | .eraseblocks = { |
| 11193 | {16 * 1024, 1}, |
| 11194 | {8 * 1024, 2}, |
| 11195 | {32 * 1024, 1}, |
| 11196 | {64 * 1024, 7}, |
| 11197 | }, |
| 11198 | .block_erase = block_erase_m29f400bt, |
| 11199 | }, { |
| 11200 | .eraseblocks = { {512 * 1024, 1} }, |
| 11201 | .block_erase = block_erase_chip_m29f400bt, |
| 11202 | } |
| 11203 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 11204 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 11205 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11206 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 11207 | }, |
| 11208 | { |
| 11209 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 11210 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11211 | .name = "M29F400BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11212 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11213 | .manufacture_id = ST_ID, |
| 11214 | .model_id = ST_M29F400BT, |
| 11215 | .total_size = 512, |
| 11216 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11217 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11218 | .tested = TEST_UNTESTED, |
| 11219 | .probe = probe_m29f400bt, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11220 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11221 | .block_erasers = |
| 11222 | { |
| 11223 | { |
| 11224 | .eraseblocks = { |
| 11225 | {64 * 1024, 7}, |
| 11226 | {32 * 1024, 1}, |
| 11227 | {8 * 1024, 2}, |
| 11228 | {16 * 1024, 1}, |
| 11229 | }, |
| 11230 | .block_erase = block_erase_m29f400bt, |
| 11231 | }, { |
| 11232 | .eraseblocks = { {512 * 1024, 1} }, |
| 11233 | .block_erase = block_erase_chip_m29f400bt, |
| 11234 | } |
| 11235 | }, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 11236 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11237 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11238 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11239 | }, |
| 11240 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11241 | { |
| 11242 | .vendor = "ST", |
| 11243 | .name = "M29W010B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11244 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11245 | .manufacture_id = ST_ID, |
| 11246 | .model_id = ST_M29W010B, |
| 11247 | .total_size = 128, |
| 11248 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11249 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11250 | .tested = TEST_UNTESTED, |
| 11251 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11252 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11253 | .block_erasers = |
| 11254 | { |
| 11255 | { |
| 11256 | .eraseblocks = { {16 * 1024, 8}, }, |
| 11257 | .block_erase = erase_sector_jedec, |
| 11258 | }, { |
| 11259 | .eraseblocks = { {128 * 1024, 1} }, |
| 11260 | .block_erase = erase_chip_block_jedec, |
| 11261 | } |
| 11262 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11263 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11264 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11265 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11266 | }, |
| 11267 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11268 | { |
| 11269 | .vendor = "ST", |
| 11270 | .name = "M29W040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11271 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11272 | .manufacture_id = ST_ID, |
| 11273 | .model_id = ST_M29W040B, |
| 11274 | .total_size = 512, |
| 11275 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11276 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11277 | .tested = TEST_UNTESTED, |
| 11278 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11279 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11280 | .block_erasers = |
| 11281 | { |
| 11282 | { |
| 11283 | .eraseblocks = { {64 * 1024, 8}, }, |
| 11284 | .block_erase = erase_sector_jedec, |
| 11285 | }, { |
| 11286 | .eraseblocks = { {512 * 1024, 1} }, |
| 11287 | .block_erase = erase_chip_block_jedec, |
| 11288 | } |
| 11289 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11290 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11291 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11292 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11293 | }, |
| 11294 | |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 11295 | { |
| 11296 | .vendor = "ST", |
| 11297 | .name = "M29W512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11298 | .bustype = BUS_PARALLEL, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 11299 | .manufacture_id = ST_ID, |
| 11300 | .model_id = ST_M29W512B, |
| 11301 | .total_size = 64, |
| 11302 | .page_size = 64 * 1024, |
| 11303 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 11304 | .tested = TEST_OK_PREW, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 11305 | .probe = probe_jedec, |
| 11306 | .probe_timing = TIMING_ZERO, |
| 11307 | .block_erasers = |
| 11308 | { |
| 11309 | { |
| 11310 | .eraseblocks = { {64 * 1024, 1} }, |
| 11311 | .block_erase = erase_chip_block_jedec, |
| 11312 | } |
| 11313 | }, |
| 11314 | .write = write_jedec_1, |
| 11315 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11316 | .voltage = {2700, 3600}, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 11317 | }, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 11318 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11319 | { |
| 11320 | .vendor = "ST", |
| 11321 | .name = "M50FLW040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11322 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11323 | .manufacture_id = ST_ID, |
| 11324 | .model_id = ST_M50FLW040A, |
| 11325 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11326 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11327 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11328 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11329 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 11330 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11331 | .block_erasers = |
| 11332 | { |
| 11333 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11334 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11335 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11336 | {64 * 1024, 5}, /* block */ |
| 11337 | {4 * 1024, 16}, /* sector */ |
| 11338 | {4 * 1024, 16}, /* sector */ |
| 11339 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 11340 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11341 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11342 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11343 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11344 | } |
| 11345 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11346 | .write = write_82802ab, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11347 | .unlock = unlock_stm50_uniform, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11348 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11349 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11350 | }, |
| 11351 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11352 | { |
| 11353 | .vendor = "ST", |
| 11354 | .name = "M50FLW040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11355 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11356 | .manufacture_id = ST_ID, |
| 11357 | .model_id = ST_M50FLW040B, |
| 11358 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11359 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11360 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11361 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11362 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 11363 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11364 | .block_erasers = |
| 11365 | { |
| 11366 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11367 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11368 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11369 | {4 * 1024, 16}, /* sector */ |
| 11370 | {64 * 1024, 5}, /* block */ |
| 11371 | {4 * 1024, 16}, /* sector */ |
| 11372 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 11373 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11374 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11375 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11376 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11377 | } |
| 11378 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11379 | .write = write_82802ab, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11380 | .unlock = unlock_stm50_uniform, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11381 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11382 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11383 | }, |
| 11384 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11385 | { |
| 11386 | .vendor = "ST", |
| 11387 | .name = "M50FLW080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11388 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11389 | .manufacture_id = ST_ID, |
| 11390 | .model_id = ST_M50FLW080A, |
| 11391 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11392 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11393 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 11394 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11395 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 11396 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11397 | .block_erasers = |
| 11398 | { |
| 11399 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11400 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11401 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11402 | {64 * 1024, 13}, /* block */ |
| 11403 | {4 * 1024, 16}, /* sector */ |
| 11404 | {4 * 1024, 16}, /* sector */ |
| 11405 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 11406 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11407 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11408 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11409 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11410 | } |
| 11411 | }, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11412 | .unlock = unlock_stm50_nonuniform, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11413 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11414 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11415 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11416 | }, |
| 11417 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11418 | { |
| 11419 | .vendor = "ST", |
| 11420 | .name = "M50FLW080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11421 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11422 | .manufacture_id = ST_ID, |
| 11423 | .model_id = ST_M50FLW080B, |
| 11424 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11425 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11426 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11427 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11428 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 11429 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11430 | .block_erasers = |
| 11431 | { |
| 11432 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11433 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11434 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11435 | {4 * 1024, 16}, /* sector */ |
| 11436 | {64 * 1024, 13}, /* block */ |
| 11437 | {4 * 1024, 16}, /* sector */ |
| 11438 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 11439 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11440 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11441 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11442 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11443 | } |
| 11444 | }, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11445 | .unlock = unlock_stm50_nonuniform, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11446 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11447 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11448 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11449 | }, |
| 11450 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11451 | { |
| 11452 | .vendor = "ST", |
| 11453 | .name = "M50FW002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11454 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11455 | .manufacture_id = ST_ID, |
| 11456 | .model_id = ST_M50FW002, |
| 11457 | .total_size = 256, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11458 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11459 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11460 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11461 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11462 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11463 | .block_erasers = |
| 11464 | { |
| 11465 | { |
| 11466 | .eraseblocks = { |
| 11467 | {64 * 1024, 3}, |
| 11468 | {32 * 1024, 1}, |
| 11469 | {8 * 1024, 2}, |
| 11470 | {16 * 1024, 1}, |
| 11471 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11472 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11473 | } |
| 11474 | }, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11475 | .unlock = unlock_stm50_nonuniform, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11476 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11477 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11478 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11479 | }, |
| 11480 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11481 | { |
| 11482 | .vendor = "ST", |
| 11483 | .name = "M50FW016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11484 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11485 | .manufacture_id = ST_ID, |
| 11486 | .model_id = ST_M50FW016, |
| 11487 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11488 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11489 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11490 | .tested = TEST_UNTESTED, |
| 11491 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11492 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11493 | .block_erasers = |
| 11494 | { |
| 11495 | { |
| 11496 | .eraseblocks = { {64 * 1024, 32}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11497 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11498 | } |
| 11499 | }, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11500 | .unlock = unlock_stm50_uniform, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11501 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11502 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11503 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11504 | }, |
| 11505 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11506 | { |
| 11507 | .vendor = "ST", |
| 11508 | .name = "M50FW040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11509 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11510 | .manufacture_id = ST_ID, |
| 11511 | .model_id = ST_M50FW040, |
| 11512 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11513 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11514 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11515 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11516 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11517 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11518 | .block_erasers = |
| 11519 | { |
| 11520 | { |
| 11521 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11522 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11523 | } |
| 11524 | }, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11525 | .unlock = unlock_stm50_uniform, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11526 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11527 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11528 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11529 | }, |
| 11530 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11531 | { |
| 11532 | .vendor = "ST", |
| 11533 | .name = "M50FW080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11534 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11535 | .manufacture_id = ST_ID, |
| 11536 | .model_id = ST_M50FW080, |
| 11537 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11538 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11539 | .feature_bits = FEATURE_REGISTERMAP, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 11540 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11541 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11542 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11543 | .block_erasers = |
| 11544 | { |
| 11545 | { |
| 11546 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11547 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11548 | } |
| 11549 | }, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11550 | .unlock = unlock_stm50_uniform, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11551 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11552 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11553 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11554 | }, |
| 11555 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11556 | { |
| 11557 | .vendor = "ST", |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 11558 | .name = "M50LPW080", |
| 11559 | .bustype = BUS_LPC, /* A/A Mux */ |
| 11560 | .manufacture_id = ST_ID, |
| 11561 | .model_id = ST_M50LPW080, |
| 11562 | .total_size = 1024, |
| 11563 | .page_size = 0, |
| 11564 | .feature_bits = FEATURE_REGISTERMAP, |
| 11565 | .tested = TEST_UNTESTED, |
| 11566 | .probe = probe_82802ab, |
| 11567 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11568 | .block_erasers = |
| 11569 | { |
| 11570 | { |
| 11571 | .eraseblocks = { {64 * 1024, 16}, }, |
| 11572 | .block_erase = erase_block_82802ab, |
| 11573 | } |
| 11574 | }, |
| 11575 | .unlock = unlock_stm50_uniform, |
| 11576 | .write = write_82802ab, |
| 11577 | .read = read_memmapped, |
| 11578 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
| 11579 | }, |
| 11580 | |
| 11581 | { |
| 11582 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11583 | .name = "M50LPW116", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11584 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11585 | .manufacture_id = ST_ID, |
| 11586 | .model_id = ST_M50LPW116, |
| 11587 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11588 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11589 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11590 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11591 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11592 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11593 | .block_erasers = |
| 11594 | { |
| 11595 | { |
| 11596 | .eraseblocks = { |
| 11597 | {4 * 1024, 16}, |
| 11598 | {64 * 1024, 30}, |
| 11599 | {32 * 1024, 1}, |
| 11600 | {8 * 1024, 2}, |
| 11601 | {16 * 1024, 1}, |
| 11602 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11603 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11604 | } |
| 11605 | }, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11606 | .unlock = unlock_stm50_nonuniform, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11607 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11608 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11609 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11610 | }, |
| 11611 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11612 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11613 | .vendor = "SyncMOS/MoselVitelic", |
| 11614 | .name = "{F,S,V}29C51001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11615 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11616 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11617 | .model_id = SM_MVC_29C51001B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11618 | .total_size = 128, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11619 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11620 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11621 | .tested = TEST_UNTESTED, |
| 11622 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11623 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11624 | .block_erasers = |
| 11625 | { |
| 11626 | { |
| 11627 | .eraseblocks = { {512, 256} }, |
| 11628 | .block_erase = erase_sector_jedec, |
| 11629 | }, { |
| 11630 | .eraseblocks = { {128 * 1024, 1} }, |
| 11631 | .block_erase = erase_chip_block_jedec, |
| 11632 | }, |
| 11633 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11634 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11635 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11636 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11637 | }, |
| 11638 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11639 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11640 | .vendor = "SyncMOS/MoselVitelic", |
| 11641 | .name = "{F,S,V}29C51001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11642 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11643 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11644 | .model_id = SM_MVC_29C51001T, |
| 11645 | .total_size = 128, |
| 11646 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11647 | .feature_bits = FEATURE_EITHER_RESET, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11648 | .tested = TEST_UNTESTED, |
| 11649 | .probe = probe_jedec, |
| 11650 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11651 | .block_erasers = |
| 11652 | { |
| 11653 | { |
| 11654 | .eraseblocks = { {512, 256} }, |
| 11655 | .block_erase = erase_sector_jedec, |
| 11656 | }, { |
| 11657 | .eraseblocks = { {128 * 1024, 1} }, |
| 11658 | .block_erase = erase_chip_block_jedec, |
| 11659 | }, |
| 11660 | }, |
| 11661 | .write = write_jedec_1, |
| 11662 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11663 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11664 | }, |
| 11665 | |
| 11666 | { |
| 11667 | .vendor = "SyncMOS/MoselVitelic", |
| 11668 | .name = "{F,S,V}29C51002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11669 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11670 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11671 | .model_id = SM_MVC_29C51002B, |
| 11672 | .total_size = 256, |
| 11673 | .page_size = 512, |
| 11674 | .feature_bits = FEATURE_EITHER_RESET, |
| 11675 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11676 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11677 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11678 | .block_erasers = |
| 11679 | { |
| 11680 | { |
| 11681 | .eraseblocks = { {512, 512} }, |
| 11682 | .block_erase = erase_sector_jedec, |
| 11683 | }, { |
| 11684 | .eraseblocks = { {256 * 1024, 1} }, |
| 11685 | .block_erase = erase_chip_block_jedec, |
| 11686 | }, |
| 11687 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11688 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11689 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11690 | }, |
| 11691 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11692 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11693 | .vendor = "SyncMOS/MoselVitelic", |
| 11694 | .name = "{F,S,V}29C51002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11695 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11696 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11697 | .model_id = SM_MVC_29C51002T, |
| 11698 | .total_size = 256, |
| 11699 | .page_size = 512, |
| 11700 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 11701 | .tested = TEST_OK_PREW, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11702 | .probe = probe_jedec, |
| 11703 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11704 | .block_erasers = |
| 11705 | { |
| 11706 | { |
| 11707 | .eraseblocks = { {512, 512} }, |
| 11708 | .block_erase = erase_sector_jedec, |
| 11709 | }, { |
| 11710 | .eraseblocks = { {256 * 1024, 1} }, |
| 11711 | .block_erase = erase_chip_block_jedec, |
| 11712 | }, |
| 11713 | }, |
| 11714 | .write = write_jedec_1, |
| 11715 | .read = read_memmapped, |
| 11716 | }, |
| 11717 | |
| 11718 | { |
| 11719 | .vendor = "SyncMOS/MoselVitelic", |
| 11720 | .name = "{F,S,V}29C51004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11721 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11722 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11723 | .model_id = SM_MVC_29C51004B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11724 | .total_size = 512, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11725 | .page_size = 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11726 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11727 | .tested = TEST_UNTESTED, |
| 11728 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11729 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11730 | .block_erasers = |
| 11731 | { |
| 11732 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11733 | .eraseblocks = { {1024, 512} }, |
| 11734 | .block_erase = erase_sector_jedec, |
| 11735 | }, { |
| 11736 | .eraseblocks = { {512 * 1024, 1} }, |
| 11737 | .block_erase = erase_chip_block_jedec, |
| 11738 | }, |
| 11739 | }, |
| 11740 | .write = write_jedec_1, |
| 11741 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11742 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11743 | }, |
| 11744 | |
| 11745 | { |
| 11746 | .vendor = "SyncMOS/MoselVitelic", |
| 11747 | .name = "{F,S,V}29C51004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11748 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11749 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11750 | .model_id = SM_MVC_29C51004T, |
| 11751 | .total_size = 512, |
| 11752 | .page_size = 1024, |
| 11753 | .feature_bits = FEATURE_EITHER_RESET, |
| 11754 | .tested = TEST_UNTESTED, |
| 11755 | .probe = probe_jedec, |
| 11756 | .probe_timing = TIMING_ZERO, |
| 11757 | .block_erasers = |
| 11758 | { |
| 11759 | { |
| 11760 | .eraseblocks = { {1024, 512} }, |
| 11761 | .block_erase = erase_sector_jedec, |
| 11762 | }, { |
| 11763 | .eraseblocks = { {512 * 1024, 1} }, |
| 11764 | .block_erase = erase_chip_block_jedec, |
| 11765 | }, |
| 11766 | }, |
| 11767 | .write = write_jedec_1, |
| 11768 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11769 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11770 | }, |
| 11771 | |
| 11772 | { |
| 11773 | .vendor = "SyncMOS/MoselVitelic", |
| 11774 | .name = "{S,V}29C31004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11775 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11776 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11777 | .model_id = SM_MVC_29C31004B, |
| 11778 | .total_size = 512, |
| 11779 | .page_size = 1024, |
| 11780 | .feature_bits = FEATURE_EITHER_RESET, |
| 11781 | .tested = TEST_UNTESTED, |
| 11782 | .probe = probe_jedec, |
| 11783 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11784 | .block_erasers = |
| 11785 | { |
| 11786 | { |
| 11787 | .eraseblocks = { {1024, 512} }, |
| 11788 | .block_erase = erase_sector_jedec, |
| 11789 | }, { |
| 11790 | .eraseblocks = { {512 * 1024, 1} }, |
| 11791 | .block_erase = erase_chip_block_jedec, |
| 11792 | }, |
| 11793 | }, |
| 11794 | .write = write_jedec_1, |
| 11795 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11796 | .voltage = {3000, 3600}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11797 | }, |
| 11798 | |
| 11799 | { |
| 11800 | .vendor = "SyncMOS/MoselVitelic", |
| 11801 | .name = "{S,V}29C31004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11802 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11803 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11804 | .model_id = SM_MVC_29C31004T, |
| 11805 | .total_size = 512, |
| 11806 | .page_size = 1024, |
| 11807 | .feature_bits = FEATURE_EITHER_RESET, |
| 11808 | .tested = TEST_UNTESTED, |
| 11809 | .probe = probe_jedec, |
| 11810 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11811 | .block_erasers = |
| 11812 | { |
| 11813 | { |
| 11814 | .eraseblocks = { {1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11815 | .block_erase = erase_sector_jedec, |
| 11816 | }, { |
| 11817 | .eraseblocks = { {512 * 1024, 1} }, |
| 11818 | .block_erase = erase_chip_block_jedec, |
| 11819 | }, |
| 11820 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11821 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11822 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11823 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11824 | }, |
| 11825 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11826 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 11827 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11828 | .name = "TMS29F002RB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11829 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11830 | .manufacture_id = TI_OLD_ID, |
| 11831 | .model_id = TI_TMS29F002RB, |
| 11832 | .total_size = 256, |
| 11833 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11834 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11835 | .tested = TEST_UNTESTED, |
| 11836 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11837 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11838 | .block_erasers = |
| 11839 | { |
| 11840 | { |
| 11841 | .eraseblocks = { |
| 11842 | {16 * 1024, 1}, |
| 11843 | {8 * 1024, 2}, |
| 11844 | {32 * 1024, 1}, |
| 11845 | {64 * 1024, 3}, |
| 11846 | }, |
| 11847 | .block_erase = erase_sector_jedec, |
| 11848 | }, { |
| 11849 | .eraseblocks = { {256 * 1024, 1} }, |
| 11850 | .block_erase = erase_chip_block_jedec, |
| 11851 | }, |
| 11852 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11853 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11854 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11855 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11856 | }, |
| 11857 | |
| 11858 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 11859 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11860 | .name = "TMS29F002RT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11861 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11862 | .manufacture_id = TI_OLD_ID, |
| 11863 | .model_id = TI_TMS29F002RT, |
| 11864 | .total_size = 256, |
| 11865 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11866 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11867 | .tested = TEST_UNTESTED, |
| 11868 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11869 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11870 | .block_erasers = |
| 11871 | { |
| 11872 | { |
| 11873 | .eraseblocks = { |
| 11874 | {64 * 1024, 3}, |
| 11875 | {32 * 1024, 1}, |
| 11876 | {8 * 1024, 2}, |
| 11877 | {16 * 1024, 1}, |
| 11878 | }, |
| 11879 | .block_erase = erase_sector_jedec, |
| 11880 | }, { |
| 11881 | .eraseblocks = { {256 * 1024, 1} }, |
| 11882 | .block_erase = erase_chip_block_jedec, |
| 11883 | }, |
| 11884 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11885 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11886 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11887 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11888 | }, |
| 11889 | |
| 11890 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11891 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11892 | .name = "W25Q80.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11893 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11894 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11895 | .model_id = WINBOND_NEX_W25Q80_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11896 | .total_size = 1024, |
| 11897 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11898 | /* supports SFDP */ |
| 11899 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 11900 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 11901 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11902 | .probe = probe_spi_rdid, |
| 11903 | .probe_timing = TIMING_ZERO, |
| 11904 | .block_erasers = |
| 11905 | { |
| 11906 | { |
| 11907 | .eraseblocks = { {4 * 1024, 256} }, |
| 11908 | .block_erase = spi_block_erase_20, |
| 11909 | }, { |
| 11910 | .eraseblocks = { {32 * 1024, 32} }, |
| 11911 | .block_erase = spi_block_erase_52, |
| 11912 | }, { |
| 11913 | .eraseblocks = { {64 * 1024, 16} }, |
| 11914 | .block_erase = spi_block_erase_d8, |
| 11915 | }, { |
| 11916 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11917 | .block_erase = spi_block_erase_60, |
| 11918 | }, { |
| 11919 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11920 | .block_erase = spi_block_erase_c7, |
| 11921 | } |
| 11922 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11923 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11924 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11925 | .write = spi_chip_write_256, |
| 11926 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11927 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11928 | }, |
| 11929 | |
| 11930 | { |
| 11931 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11932 | .name = "W25Q16.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11933 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11934 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11935 | .model_id = WINBOND_NEX_W25Q16_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11936 | .total_size = 2048, |
| 11937 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11938 | /* supports SFDP */ |
| 11939 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 11940 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 11941 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11942 | .probe = probe_spi_rdid, |
| 11943 | .probe_timing = TIMING_ZERO, |
| 11944 | .block_erasers = |
| 11945 | { |
| 11946 | { |
| 11947 | .eraseblocks = { {4 * 1024, 512} }, |
| 11948 | .block_erase = spi_block_erase_20, |
| 11949 | }, { |
| 11950 | .eraseblocks = { {32 * 1024, 64} }, |
| 11951 | .block_erase = spi_block_erase_52, |
| 11952 | }, { |
| 11953 | .eraseblocks = { {64 * 1024, 32} }, |
| 11954 | .block_erase = spi_block_erase_d8, |
| 11955 | }, { |
| 11956 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11957 | .block_erase = spi_block_erase_60, |
| 11958 | }, { |
| 11959 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11960 | .block_erase = spi_block_erase_c7, |
| 11961 | } |
| 11962 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11963 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11964 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11965 | .write = spi_chip_write_256, |
| 11966 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11967 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11968 | }, |
| 11969 | |
| 11970 | { |
| 11971 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11972 | .name = "W25Q32.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11973 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11974 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11975 | .model_id = WINBOND_NEX_W25Q32_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11976 | .total_size = 4096, |
| 11977 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11978 | /* supports SFDP */ |
| 11979 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 11980 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 11981 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11982 | .probe = probe_spi_rdid, |
| 11983 | .probe_timing = TIMING_ZERO, |
| 11984 | .block_erasers = |
| 11985 | { |
| 11986 | { |
| 11987 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11988 | .block_erase = spi_block_erase_20, |
| 11989 | }, { |
| 11990 | .eraseblocks = { {32 * 1024, 128} }, |
| 11991 | .block_erase = spi_block_erase_52, |
| 11992 | }, { |
| 11993 | .eraseblocks = { {64 * 1024, 64} }, |
| 11994 | .block_erase = spi_block_erase_d8, |
| 11995 | }, { |
| 11996 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11997 | .block_erase = spi_block_erase_60, |
| 11998 | }, { |
| 11999 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12000 | .block_erase = spi_block_erase_c7, |
| 12001 | } |
| 12002 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12003 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12004 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12005 | .write = spi_chip_write_256, |
| 12006 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12007 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12008 | }, |
| 12009 | |
| 12010 | { |
| 12011 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12012 | .name = "W25Q64.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12013 | .bustype = BUS_SPI, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 12014 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12015 | .model_id = WINBOND_NEX_W25Q64_V, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 12016 | .total_size = 8192, |
| 12017 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12018 | /* supports SFDP */ |
| 12019 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 12020 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 12021 | .tested = TEST_OK_PREW, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 12022 | .probe = probe_spi_rdid, |
| 12023 | .probe_timing = TIMING_ZERO, |
| 12024 | .block_erasers = |
| 12025 | { |
| 12026 | { |
| 12027 | .eraseblocks = { {4 * 1024, 2048} }, |
| 12028 | .block_erase = spi_block_erase_20, |
| 12029 | }, { |
| 12030 | .eraseblocks = { {32 * 1024, 256} }, |
| 12031 | .block_erase = spi_block_erase_52, |
| 12032 | }, { |
| 12033 | .eraseblocks = { {64 * 1024, 128} }, |
| 12034 | .block_erase = spi_block_erase_d8, |
| 12035 | }, { |
| 12036 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12037 | .block_erase = spi_block_erase_60, |
| 12038 | }, { |
| 12039 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12040 | .block_erase = spi_block_erase_c7, |
| 12041 | } |
| 12042 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12043 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12044 | .unlock = spi_disable_blockprotect, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 12045 | .write = spi_chip_write_256, |
| 12046 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12047 | .voltage = {2700, 3600}, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 12048 | }, |
| 12049 | |
| 12050 | { |
| 12051 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12052 | .name = "W25Q128.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12053 | .bustype = BUS_SPI, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12054 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12055 | .model_id = WINBOND_NEX_W25Q128_V, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12056 | .total_size = 16384, |
| 12057 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12058 | /* supports SFDP */ |
| 12059 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 12060 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12061 | .tested = TEST_OK_PREW, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12062 | .probe = probe_spi_rdid, |
| 12063 | .probe_timing = TIMING_ZERO, |
| 12064 | .block_erasers = |
| 12065 | { |
| 12066 | { |
| 12067 | .eraseblocks = { {4 * 1024, 4096} }, |
| 12068 | .block_erase = spi_block_erase_20, |
| 12069 | }, { |
| 12070 | .eraseblocks = { {32 * 1024, 512} }, |
| 12071 | .block_erase = spi_block_erase_52, |
| 12072 | }, { |
| 12073 | .eraseblocks = { {64 * 1024, 256} }, |
| 12074 | .block_erase = spi_block_erase_d8, |
| 12075 | }, { |
| 12076 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 12077 | .block_erase = spi_block_erase_60, |
| 12078 | }, { |
| 12079 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 12080 | .block_erase = spi_block_erase_c7, |
| 12081 | } |
| 12082 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12083 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12084 | .unlock = spi_disable_blockprotect, |
| 12085 | .write = spi_chip_write_256, |
| 12086 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12087 | .voltage = {2700, 3600}, |
| 12088 | }, |
| 12089 | |
| 12090 | { |
| 12091 | .vendor = "Winbond", |
| 12092 | .name = "W25Q20.W", |
| 12093 | .bustype = BUS_SPI, |
| 12094 | .manufacture_id = WINBOND_NEX_ID, |
| 12095 | .model_id = WINBOND_NEX_W25Q20_W, |
| 12096 | .total_size = 256, |
| 12097 | .page_size = 256, |
| 12098 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 12099 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12100 | .tested = TEST_UNTESTED, |
| 12101 | .probe = probe_spi_rdid, |
| 12102 | .probe_timing = TIMING_ZERO, |
| 12103 | .block_erasers = |
| 12104 | { |
| 12105 | { |
| 12106 | .eraseblocks = { {4 * 1024, 64} }, |
| 12107 | .block_erase = spi_block_erase_20, |
| 12108 | }, { |
| 12109 | .eraseblocks = { {32 * 1024, 8} }, |
| 12110 | .block_erase = spi_block_erase_52, |
| 12111 | }, { |
| 12112 | .eraseblocks = { {64 * 1024, 4} }, |
| 12113 | .block_erase = spi_block_erase_d8, |
| 12114 | }, { |
| 12115 | .eraseblocks = { {256 * 1024, 1} }, |
| 12116 | .block_erase = spi_block_erase_60, |
| 12117 | }, { |
| 12118 | .eraseblocks = { {256 * 1024, 1} }, |
| 12119 | .block_erase = spi_block_erase_c7, |
| 12120 | } |
| 12121 | }, |
| 12122 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 12123 | .unlock = spi_disable_blockprotect, |
| 12124 | .write = spi_chip_write_256, |
| 12125 | .read = spi_chip_read, |
| 12126 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 12127 | }, |
| 12128 | |
| 12129 | { |
| 12130 | .vendor = "Winbond", |
| 12131 | .name = "W25Q40.W", |
| 12132 | .bustype = BUS_SPI, |
| 12133 | .manufacture_id = WINBOND_NEX_ID, |
| 12134 | .model_id = WINBOND_NEX_W25Q40_W, |
| 12135 | .total_size = 512, |
| 12136 | .page_size = 256, |
| 12137 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 12138 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12139 | .tested = TEST_UNTESTED, |
| 12140 | .probe = probe_spi_rdid, |
| 12141 | .probe_timing = TIMING_ZERO, |
| 12142 | .block_erasers = |
| 12143 | { |
| 12144 | { |
| 12145 | .eraseblocks = { {4 * 1024, 128} }, |
| 12146 | .block_erase = spi_block_erase_20, |
| 12147 | }, { |
| 12148 | .eraseblocks = { {32 * 1024, 16} }, |
| 12149 | .block_erase = spi_block_erase_52, |
| 12150 | }, { |
| 12151 | .eraseblocks = { {64 * 1024, 8} }, |
| 12152 | .block_erase = spi_block_erase_d8, |
| 12153 | }, { |
| 12154 | .eraseblocks = { {512 * 1024, 1} }, |
| 12155 | .block_erase = spi_block_erase_60, |
| 12156 | }, { |
| 12157 | .eraseblocks = { {512 * 1024, 1} }, |
| 12158 | .block_erase = spi_block_erase_c7, |
| 12159 | } |
| 12160 | }, |
| 12161 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 12162 | .unlock = spi_disable_blockprotect, |
| 12163 | .write = spi_chip_write_256, |
| 12164 | .read = spi_chip_read, |
| 12165 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 12166 | }, |
| 12167 | |
| 12168 | { |
| 12169 | .vendor = "Winbond", |
| 12170 | .name = "W25Q80.W", |
| 12171 | .bustype = BUS_SPI, |
| 12172 | .manufacture_id = WINBOND_NEX_ID, |
| 12173 | .model_id = WINBOND_NEX_W25Q80_W, |
| 12174 | .total_size = 1024, |
| 12175 | .page_size = 256, |
| 12176 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 12177 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12178 | .tested = TEST_UNTESTED, |
| 12179 | .probe = probe_spi_rdid, |
| 12180 | .probe_timing = TIMING_ZERO, |
| 12181 | .block_erasers = |
| 12182 | { |
| 12183 | { |
| 12184 | .eraseblocks = { {4 * 1024, 256} }, |
| 12185 | .block_erase = spi_block_erase_20, |
| 12186 | }, { |
| 12187 | .eraseblocks = { {32 * 1024, 32} }, |
| 12188 | .block_erase = spi_block_erase_52, |
| 12189 | }, { |
| 12190 | .eraseblocks = { {64 * 1024, 16} }, |
| 12191 | .block_erase = spi_block_erase_d8, |
| 12192 | }, { |
| 12193 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 12194 | .block_erase = spi_block_erase_60, |
| 12195 | }, { |
| 12196 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 12197 | .block_erase = spi_block_erase_c7, |
| 12198 | } |
| 12199 | }, |
| 12200 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 12201 | .unlock = spi_disable_blockprotect, |
| 12202 | .write = spi_chip_write_256, |
| 12203 | .read = spi_chip_read, |
| 12204 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 12205 | }, |
| 12206 | |
| 12207 | { |
| 12208 | .vendor = "Winbond", |
| 12209 | .name = "W25Q16.W", |
| 12210 | .bustype = BUS_SPI, |
| 12211 | .manufacture_id = WINBOND_NEX_ID, |
| 12212 | .model_id = WINBOND_NEX_W25Q16_W, |
| 12213 | .total_size = 2048, |
| 12214 | .page_size = 256, |
| 12215 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 12216 | /* QPI enable 0x38, disable 0xFF */ |
| 12217 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 12218 | .tested = TEST_UNTESTED, |
| 12219 | .probe = probe_spi_rdid, |
| 12220 | .probe_timing = TIMING_ZERO, |
| 12221 | .block_erasers = |
| 12222 | { |
| 12223 | { |
| 12224 | .eraseblocks = { {4 * 1024, 512} }, |
| 12225 | .block_erase = spi_block_erase_20, |
| 12226 | }, { |
| 12227 | .eraseblocks = { {32 * 1024, 64} }, |
| 12228 | .block_erase = spi_block_erase_52, |
| 12229 | }, { |
| 12230 | .eraseblocks = { {64 * 1024, 32} }, |
| 12231 | .block_erase = spi_block_erase_d8, |
| 12232 | }, { |
| 12233 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12234 | .block_erase = spi_block_erase_60, |
| 12235 | }, { |
| 12236 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12237 | .block_erase = spi_block_erase_c7, |
| 12238 | } |
| 12239 | }, |
| 12240 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 12241 | .unlock = spi_disable_blockprotect, |
| 12242 | .write = spi_chip_write_256, |
| 12243 | .read = spi_chip_read, |
| 12244 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 12245 | }, |
| 12246 | |
| 12247 | { |
| 12248 | .vendor = "Winbond", |
| 12249 | .name = "W25Q32.W", |
| 12250 | .bustype = BUS_SPI, |
| 12251 | .manufacture_id = WINBOND_NEX_ID, |
| 12252 | .model_id = WINBOND_NEX_W25Q32_W, |
| 12253 | .total_size = 4096, |
| 12254 | .page_size = 256, |
| 12255 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 12256 | /* QPI enable 0x38, disable 0xFF */ |
| 12257 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 12258 | .tested = TEST_OK_PREW, |
| 12259 | .probe = probe_spi_rdid, |
| 12260 | .probe_timing = TIMING_ZERO, |
| 12261 | .block_erasers = |
| 12262 | { |
| 12263 | { |
| 12264 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12265 | .block_erase = spi_block_erase_20, |
| 12266 | }, { |
| 12267 | .eraseblocks = { {32 * 1024, 128} }, |
| 12268 | .block_erase = spi_block_erase_52, |
| 12269 | }, { |
| 12270 | .eraseblocks = { {64 * 1024, 64} }, |
| 12271 | .block_erase = spi_block_erase_d8, |
| 12272 | }, { |
| 12273 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12274 | .block_erase = spi_block_erase_60, |
| 12275 | }, { |
| 12276 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12277 | .block_erase = spi_block_erase_c7, |
| 12278 | } |
| 12279 | }, |
| 12280 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 12281 | .unlock = spi_disable_blockprotect, |
| 12282 | .write = spi_chip_write_256, |
| 12283 | .read = spi_chip_read, |
| 12284 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 12285 | }, |
| 12286 | |
| 12287 | { |
| 12288 | .vendor = "Winbond", |
| 12289 | .name = "W25Q64.W", |
| 12290 | .bustype = BUS_SPI, |
| 12291 | .manufacture_id = WINBOND_NEX_ID, |
| 12292 | .model_id = WINBOND_NEX_W25Q64_W, |
| 12293 | .total_size = 8192, |
| 12294 | .page_size = 256, |
| 12295 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 12296 | /* QPI enable 0x38, disable 0xFF */ |
| 12297 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12298 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12299 | .probe = probe_spi_rdid, |
| 12300 | .probe_timing = TIMING_ZERO, |
| 12301 | .block_erasers = |
| 12302 | { |
| 12303 | { |
| 12304 | .eraseblocks = { {4 * 1024, 2048} }, |
| 12305 | .block_erase = spi_block_erase_20, |
| 12306 | }, { |
| 12307 | .eraseblocks = { {32 * 1024, 256} }, |
| 12308 | .block_erase = spi_block_erase_52, |
| 12309 | }, { |
| 12310 | .eraseblocks = { {64 * 1024, 128} }, |
| 12311 | .block_erase = spi_block_erase_d8, |
| 12312 | }, { |
| 12313 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12314 | .block_erase = spi_block_erase_60, |
| 12315 | }, { |
| 12316 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12317 | .block_erase = spi_block_erase_c7, |
| 12318 | } |
| 12319 | }, |
| 12320 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 12321 | .unlock = spi_disable_blockprotect, |
| 12322 | .write = spi_chip_write_256, |
| 12323 | .read = spi_chip_read, |
| 12324 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12325 | }, |
| 12326 | |
| 12327 | { |
| 12328 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12329 | .name = "W25X10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12330 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12331 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12332 | .model_id = WINBOND_NEX_W25X10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12333 | .total_size = 128, |
| 12334 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12335 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12336 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12337 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12338 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12339 | .block_erasers = |
| 12340 | { |
| 12341 | { |
| 12342 | .eraseblocks = { {4 * 1024, 32} }, |
| 12343 | .block_erase = spi_block_erase_20, |
| 12344 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12345 | .eraseblocks = { {64 * 1024, 2} }, |
| 12346 | .block_erase = spi_block_erase_d8, |
| 12347 | }, { |
| 12348 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12349 | .block_erase = spi_block_erase_c7, |
| 12350 | } |
| 12351 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12352 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12353 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12354 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12355 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12356 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12357 | }, |
| 12358 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12359 | { |
| 12360 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12361 | .name = "W25X20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12362 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12363 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12364 | .model_id = WINBOND_NEX_W25X20, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12365 | .total_size = 256, |
| 12366 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12367 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12368 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12369 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12370 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12371 | .block_erasers = |
| 12372 | { |
| 12373 | { |
| 12374 | .eraseblocks = { {4 * 1024, 64} }, |
| 12375 | .block_erase = spi_block_erase_20, |
| 12376 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12377 | .eraseblocks = { {64 * 1024, 4} }, |
| 12378 | .block_erase = spi_block_erase_d8, |
| 12379 | }, { |
| 12380 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12381 | .block_erase = spi_block_erase_c7, |
| 12382 | } |
| 12383 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12384 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12385 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12386 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12387 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12388 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12389 | }, |
| 12390 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12391 | { |
| 12392 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12393 | .name = "W25X40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12394 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12395 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12396 | .model_id = WINBOND_NEX_W25X40, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12397 | .total_size = 512, |
| 12398 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12399 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 12400 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12401 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12402 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12403 | .block_erasers = |
| 12404 | { |
| 12405 | { |
| 12406 | .eraseblocks = { {4 * 1024, 128} }, |
| 12407 | .block_erase = spi_block_erase_20, |
| 12408 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12409 | .eraseblocks = { {64 * 1024, 8} }, |
| 12410 | .block_erase = spi_block_erase_d8, |
| 12411 | }, { |
| 12412 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12413 | .block_erase = spi_block_erase_c7, |
| 12414 | } |
| 12415 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12416 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12417 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12418 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12419 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12420 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12421 | }, |
| 12422 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12423 | { |
| 12424 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12425 | .name = "W25X80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12426 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12427 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12428 | .model_id = WINBOND_NEX_W25X80, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12429 | .total_size = 1024, |
| 12430 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12431 | .feature_bits = FEATURE_WRSR_WREN, |
Yul Rottmann | 6d6ab74 | 2011-03-05 16:31:57 +0000 | [diff] [blame] | 12432 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12433 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12434 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12435 | .block_erasers = |
| 12436 | { |
| 12437 | { |
| 12438 | .eraseblocks = { {4 * 1024, 256} }, |
| 12439 | .block_erase = spi_block_erase_20, |
| 12440 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12441 | .eraseblocks = { {64 * 1024, 16} }, |
| 12442 | .block_erase = spi_block_erase_d8, |
| 12443 | }, { |
| 12444 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12445 | .block_erase = spi_block_erase_c7, |
| 12446 | } |
| 12447 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12448 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12449 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12450 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12451 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12452 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12453 | }, |
| 12454 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12455 | { |
| 12456 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12457 | .name = "W25X16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12458 | .bustype = BUS_SPI, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12459 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12460 | .model_id = WINBOND_NEX_W25X16, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12461 | .total_size = 2048, |
| 12462 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12463 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 12464 | .tested = TEST_OK_PREW, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12465 | .probe = probe_spi_rdid, |
| 12466 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12467 | .block_erasers = |
| 12468 | { |
| 12469 | { |
| 12470 | .eraseblocks = { {4 * 1024, 512} }, |
| 12471 | .block_erase = spi_block_erase_20, |
| 12472 | }, { |
| 12473 | .eraseblocks = { {32 * 1024, 64} }, |
| 12474 | .block_erase = spi_block_erase_52, |
| 12475 | }, { |
| 12476 | .eraseblocks = { {64 * 1024, 32} }, |
| 12477 | .block_erase = spi_block_erase_d8, |
| 12478 | }, { |
| 12479 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12480 | .block_erase = spi_block_erase_60, |
| 12481 | }, { |
| 12482 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12483 | .block_erase = spi_block_erase_c7, |
| 12484 | } |
| 12485 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12486 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12487 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12488 | .write = spi_chip_write_256, |
| 12489 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12490 | .voltage = {2700, 3600}, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12491 | }, |
| 12492 | |
| 12493 | { |
| 12494 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12495 | .name = "W25X32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12496 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12497 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12498 | .model_id = WINBOND_NEX_W25X32, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12499 | .total_size = 4096, |
| 12500 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12501 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 12502 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12503 | .probe = probe_spi_rdid, |
| 12504 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12505 | .block_erasers = |
| 12506 | { |
| 12507 | { |
| 12508 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12509 | .block_erase = spi_block_erase_20, |
| 12510 | }, { |
| 12511 | .eraseblocks = { {32 * 1024, 128} }, |
| 12512 | .block_erase = spi_block_erase_52, |
| 12513 | }, { |
| 12514 | .eraseblocks = { {64 * 1024, 64} }, |
| 12515 | .block_erase = spi_block_erase_d8, |
| 12516 | }, { |
| 12517 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12518 | .block_erase = spi_block_erase_60, |
| 12519 | }, { |
| 12520 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12521 | .block_erase = spi_block_erase_c7, |
| 12522 | } |
| 12523 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12524 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12525 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12526 | .write = spi_chip_write_256, |
| 12527 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12528 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12529 | }, |
| 12530 | |
| 12531 | { |
| 12532 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12533 | .name = "W25X64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12534 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12535 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12536 | .model_id = WINBOND_NEX_W25X64, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12537 | .total_size = 8192, |
| 12538 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12539 | .feature_bits = FEATURE_WRSR_WREN, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12540 | .tested = TEST_OK_PROBE, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12541 | .probe = probe_spi_rdid, |
| 12542 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12543 | .block_erasers = |
| 12544 | { |
| 12545 | { |
| 12546 | .eraseblocks = { {4 * 1024, 2048} }, |
| 12547 | .block_erase = spi_block_erase_20, |
| 12548 | }, { |
| 12549 | .eraseblocks = { {32 * 1024, 256} }, |
| 12550 | .block_erase = spi_block_erase_52, |
| 12551 | }, { |
| 12552 | .eraseblocks = { {64 * 1024, 128} }, |
| 12553 | .block_erase = spi_block_erase_d8, |
| 12554 | }, { |
| 12555 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12556 | .block_erase = spi_block_erase_60, |
| 12557 | }, { |
| 12558 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12559 | .block_erase = spi_block_erase_c7, |
| 12560 | } |
| 12561 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12562 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12563 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12564 | .write = spi_chip_write_256, |
| 12565 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12566 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12567 | }, |
| 12568 | |
| 12569 | { |
| 12570 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 12571 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12572 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 12573 | .manufacture_id = WINBOND_ID, |
| 12574 | .model_id = WINBOND_W29C010, |
| 12575 | .total_size = 128, |
| 12576 | .page_size = 128, |
| 12577 | .feature_bits = FEATURE_LONG_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 12578 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 12579 | .probe = probe_w29ee011, |
| 12580 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */ |
| 12581 | .block_erasers = |
| 12582 | { |
| 12583 | { |
| 12584 | .eraseblocks = { {128 * 1024, 1} }, |
| 12585 | .block_erase = erase_chip_block_jedec, |
| 12586 | } |
| 12587 | }, |
| 12588 | .write = write_jedec, |
| 12589 | .read = read_memmapped, |
| 12590 | }, |
| 12591 | |
| 12592 | {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */ |
| 12593 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12594 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12595 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12596 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12597 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12598 | .total_size = 128, |
| 12599 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12600 | .feature_bits = FEATURE_LONG_RESET, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 12601 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12602 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12603 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12604 | .block_erasers = |
| 12605 | { |
| 12606 | { |
| 12607 | .eraseblocks = { {128 * 1024, 1} }, |
| 12608 | .block_erase = erase_chip_block_jedec, |
| 12609 | } |
| 12610 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12611 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12612 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12613 | }, |
| 12614 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12615 | { |
| 12616 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12617 | .name = "W29C020(C)/W29C022", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12618 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12619 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12620 | .model_id = WINBOND_W29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12621 | .total_size = 256, |
| 12622 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12623 | .feature_bits = FEATURE_LONG_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12624 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12625 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12626 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12627 | .block_erasers = |
| 12628 | { |
| 12629 | { |
| 12630 | .eraseblocks = { {256 * 1024, 1} }, |
| 12631 | .block_erase = erase_chip_block_jedec, |
| 12632 | } |
| 12633 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12634 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12635 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12636 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12637 | }, |
| 12638 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12639 | { |
| 12640 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12641 | .name = "W29C040/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12642 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12643 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12644 | .model_id = WINBOND_W29C040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12645 | .total_size = 512, |
| 12646 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12647 | .feature_bits = FEATURE_LONG_RESET, |
| 12648 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12649 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12650 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12651 | .block_erasers = |
| 12652 | { |
| 12653 | { |
| 12654 | .eraseblocks = { {512 * 1024, 1} }, |
| 12655 | .block_erase = erase_chip_block_jedec, |
| 12656 | } |
| 12657 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12658 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12659 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12660 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12661 | }, |
| 12662 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12663 | { |
| 12664 | .vendor = "Winbond", |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 12665 | .name = "W39F010", |
| 12666 | .bustype = BUS_PARALLEL, |
| 12667 | .manufacture_id = WINBOND_ID, |
| 12668 | .model_id = WINBOND_W39F010, |
| 12669 | .total_size = 128, |
| 12670 | .page_size = 4 * 1024, |
| 12671 | .feature_bits = FEATURE_EITHER_RESET, |
| 12672 | .tested = TEST_OK_PREW, |
| 12673 | .probe = probe_jedec, |
| 12674 | .probe_timing = 10, |
| 12675 | .block_erasers = |
| 12676 | { |
| 12677 | { |
| 12678 | .eraseblocks = { {4 * 1024, 32} }, |
| 12679 | .block_erase = erase_block_jedec, |
| 12680 | }, { |
| 12681 | .eraseblocks = { {128 * 1024, 1} }, |
| 12682 | .block_erase = erase_chip_block_jedec, |
| 12683 | } |
| 12684 | }, |
| 12685 | .printlock = printlock_w39f010, |
| 12686 | .write = write_jedec_1, |
| 12687 | .read = read_memmapped, |
| 12688 | .voltage = {4500, 5500}, |
| 12689 | }, |
| 12690 | |
| 12691 | { |
| 12692 | .vendor = "Winbond", |
| 12693 | .name = "W39L010", |
| 12694 | .bustype = BUS_PARALLEL, |
| 12695 | .manufacture_id = WINBOND_ID, |
| 12696 | .model_id = WINBOND_W39L010, |
| 12697 | .total_size = 128, |
| 12698 | .page_size = 4 * 1024, |
| 12699 | .feature_bits = FEATURE_EITHER_RESET, |
| 12700 | .tested = TEST_UNTESTED, |
| 12701 | .probe = probe_jedec, |
| 12702 | .probe_timing = 10, |
| 12703 | .block_erasers = |
| 12704 | { |
| 12705 | { |
| 12706 | .eraseblocks = { {4 * 1024, 32} }, |
| 12707 | .block_erase = erase_block_jedec, |
| 12708 | }, { |
| 12709 | .eraseblocks = { {128 * 1024, 1} }, |
| 12710 | .block_erase = erase_chip_block_jedec, |
| 12711 | } |
| 12712 | }, |
| 12713 | .printlock = printlock_w39l010, |
| 12714 | .write = write_jedec_1, |
| 12715 | .read = read_memmapped, |
| 12716 | .voltage = {3000, 3600}, |
| 12717 | }, |
| 12718 | |
| 12719 | { |
| 12720 | .vendor = "Winbond", |
| 12721 | .name = "W39L020", |
| 12722 | .bustype = BUS_PARALLEL, |
| 12723 | .manufacture_id = WINBOND_ID, |
| 12724 | .model_id = WINBOND_W39L020, |
| 12725 | .total_size = 256, |
| 12726 | .page_size = 4 * 1024, |
| 12727 | .feature_bits = FEATURE_EITHER_RESET, |
| 12728 | .tested = TEST_UNTESTED, |
| 12729 | .probe = probe_jedec, |
| 12730 | .probe_timing = 10, |
| 12731 | .block_erasers = |
| 12732 | { |
| 12733 | { |
| 12734 | .eraseblocks = { {4 * 1024, 64} }, |
| 12735 | .block_erase = erase_block_jedec, |
| 12736 | }, { |
| 12737 | .eraseblocks = { {64 * 1024, 4} }, |
| 12738 | .block_erase = erase_sector_jedec, |
| 12739 | }, { |
| 12740 | .eraseblocks = { {256 * 1024, 1} }, |
| 12741 | .block_erase = erase_chip_block_jedec, |
| 12742 | } |
| 12743 | }, |
| 12744 | .printlock = printlock_w39l020, |
| 12745 | .write = write_jedec_1, |
| 12746 | .read = read_memmapped, |
| 12747 | .voltage = {3000, 3600}, |
| 12748 | }, |
| 12749 | |
| 12750 | { |
| 12751 | .vendor = "Winbond", |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 12752 | .name = "W39L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12753 | .bustype = BUS_PARALLEL, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 12754 | .manufacture_id = WINBOND_ID, |
| 12755 | .model_id = WINBOND_W39L040, |
| 12756 | .total_size = 512, |
| 12757 | .page_size = 64 * 1024, |
| 12758 | .feature_bits = FEATURE_EITHER_RESET, |
| 12759 | .tested = TEST_OK_PR, |
| 12760 | .probe = probe_jedec, |
| 12761 | .probe_timing = 10, |
| 12762 | .block_erasers = |
| 12763 | { |
| 12764 | { |
| 12765 | .eraseblocks = { {4 * 1024, 128} }, |
| 12766 | .block_erase = erase_block_jedec, |
| 12767 | }, { |
| 12768 | .eraseblocks = { {64 * 1024, 8} }, |
| 12769 | .block_erase = erase_sector_jedec, |
| 12770 | }, { |
| 12771 | .eraseblocks = { {512 * 1024, 1} }, |
| 12772 | .block_erase = erase_chip_block_jedec, |
| 12773 | } |
| 12774 | }, |
| 12775 | .printlock = printlock_w39l040, |
| 12776 | .write = write_jedec_1, |
| 12777 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12778 | .voltage = {3000, 3600}, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 12779 | }, |
| 12780 | |
| 12781 | { |
| 12782 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12783 | .name = "W39V040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12784 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12785 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12786 | .model_id = WINBOND_W39V040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12787 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12788 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12789 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12790 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12791 | .probe = probe_jedec, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12792 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12793 | .block_erasers = |
| 12794 | { |
| 12795 | { |
| 12796 | .eraseblocks = { {64 * 1024, 8} }, |
| 12797 | .block_erase = erase_sector_jedec, |
| 12798 | }, { |
| 12799 | .eraseblocks = { {512 * 1024, 1} }, |
| 12800 | .block_erase = erase_chip_block_jedec, |
| 12801 | } |
| 12802 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12803 | .printlock = printlock_w39v040a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12804 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12805 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12806 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12807 | }, |
| 12808 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12809 | { |
| 12810 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12811 | .name = "W39V040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12812 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12813 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12814 | .model_id = WINBOND_W39V040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12815 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12816 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12817 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12818 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12819 | .probe = probe_jedec, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12820 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12821 | .block_erasers = |
| 12822 | { |
| 12823 | { |
| 12824 | .eraseblocks = { {64 * 1024, 8} }, |
| 12825 | .block_erase = erase_sector_jedec, |
| 12826 | }, { |
| 12827 | .eraseblocks = { {512 * 1024, 1} }, |
| 12828 | .block_erase = erase_chip_block_jedec, |
| 12829 | } |
| 12830 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12831 | .printlock = printlock_w39v040b, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12832 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12833 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12834 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12835 | }, |
| 12836 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12837 | { |
| 12838 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12839 | .name = "W39V040C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12840 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12841 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12842 | .model_id = WINBOND_W39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12843 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12844 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12845 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12846 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12847 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12848 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12849 | .block_erasers = |
| 12850 | { |
| 12851 | { |
| 12852 | .eraseblocks = { {64 * 1024, 8} }, |
| 12853 | .block_erase = erase_sector_jedec, |
| 12854 | }, { |
| 12855 | .eraseblocks = { {512 * 1024, 1} }, |
| 12856 | .block_erase = erase_chip_block_jedec, |
| 12857 | } |
| 12858 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 12859 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12860 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12861 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12862 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12863 | }, |
| 12864 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12865 | { |
| 12866 | .vendor = "Winbond", |
| 12867 | .name = "W39V040FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12868 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12869 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12870 | .model_id = WINBOND_W39V040FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12871 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12872 | .page_size = 64 * 1024, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 12873 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12874 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12875 | .probe = probe_jedec, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12876 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12877 | .block_erasers = |
| 12878 | { |
| 12879 | { |
| 12880 | .eraseblocks = { {4 * 1024, 128} }, |
| 12881 | .block_erase = erase_block_jedec, |
| 12882 | }, { |
| 12883 | .eraseblocks = { {64 * 1024, 8} }, |
| 12884 | .block_erase = erase_sector_jedec, |
| 12885 | }, { |
| 12886 | .eraseblocks = { {512 * 1024, 1} }, |
| 12887 | .block_erase = erase_chip_block_jedec, |
| 12888 | } |
| 12889 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12890 | .printlock = printlock_w39v040fa, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 12891 | .unlock = unlock_sst_fwhub, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12892 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12893 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12894 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12895 | }, |
| 12896 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12897 | { |
| 12898 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12899 | .name = "W39V040FB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12900 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12901 | .manufacture_id = WINBOND_ID, |
| 12902 | .model_id = WINBOND_W39V040B, |
| 12903 | .total_size = 512, |
| 12904 | .page_size = 64 * 1024, |
| 12905 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 12906 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12907 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12908 | .probe_timing = 10, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12909 | .block_erasers = |
| 12910 | { |
| 12911 | { |
| 12912 | .eraseblocks = { {64 * 1024, 8} }, |
| 12913 | .block_erase = erase_sector_jedec, |
| 12914 | }, { |
| 12915 | .eraseblocks = { {512 * 1024, 1} }, |
| 12916 | .block_erase = erase_chip_block_jedec, |
| 12917 | } |
| 12918 | }, |
| 12919 | .printlock = printlock_w39v040fb, |
Idwer Vollering | ecc6707 | 2010-12-26 23:55:12 +0000 | [diff] [blame] | 12920 | .unlock = unlock_w39v040fb, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12921 | .write = write_jedec_1, |
| 12922 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12923 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12924 | }, |
| 12925 | |
| 12926 | { |
| 12927 | .vendor = "Winbond", |
| 12928 | .name = "W39V040FC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12929 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12930 | .manufacture_id = WINBOND_ID, |
| 12931 | .model_id = WINBOND_W39V040C, |
| 12932 | .total_size = 512, |
| 12933 | .page_size = 64 * 1024, |
| 12934 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 12935 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12936 | .probe = probe_jedec, |
| 12937 | .probe_timing = 10, |
| 12938 | .block_erasers = |
| 12939 | { |
| 12940 | { |
| 12941 | .eraseblocks = { {64 * 1024, 8} }, |
| 12942 | .block_erase = erase_sector_jedec, |
| 12943 | }, { |
| 12944 | .eraseblocks = { {512 * 1024, 1} }, |
| 12945 | .block_erase = erase_chip_block_jedec, |
| 12946 | } |
| 12947 | }, |
| 12948 | .printlock = printlock_w39v040fc, |
| 12949 | .write = write_jedec_1, |
| 12950 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12951 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12952 | }, |
| 12953 | |
| 12954 | { |
| 12955 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12956 | .name = "W39V080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12957 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12958 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12959 | .model_id = WINBOND_W39V080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12960 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12961 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12962 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 12963 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12964 | .probe = probe_jedec, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 12965 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12966 | .block_erasers = |
| 12967 | { |
| 12968 | { |
| 12969 | .eraseblocks = { {64 * 1024, 16} }, |
| 12970 | .block_erase = erase_sector_jedec, |
| 12971 | }, { |
| 12972 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12973 | .block_erase = erase_chip_block_jedec, |
| 12974 | } |
| 12975 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12976 | .printlock = printlock_w39v080a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12977 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12978 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12979 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12980 | }, |
| 12981 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12982 | { |
| 12983 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12984 | .name = "W49F002U/N", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12985 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12986 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12987 | .model_id = WINBOND_W49F002U, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12988 | .total_size = 256, |
| 12989 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12990 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12991 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12992 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12993 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12994 | .block_erasers = |
| 12995 | { |
| 12996 | { |
| 12997 | .eraseblocks = { |
| 12998 | {128 * 1024, 1}, |
| 12999 | {96 * 1024, 1}, |
| 13000 | {8 * 1024, 2}, |
| 13001 | {16 * 1024, 1}, |
| 13002 | }, |
| 13003 | .block_erase = erase_sector_jedec, |
| 13004 | }, { |
| 13005 | .eraseblocks = { {256 * 1024, 1} }, |
| 13006 | .block_erase = erase_chip_block_jedec, |
| 13007 | } |
| 13008 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13009 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13010 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13011 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13012 | }, |
| 13013 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13014 | { |
| 13015 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 13016 | .name = "W49F020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13017 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 13018 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13019 | .model_id = WINBOND_W49F020, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 13020 | .total_size = 256, |
| 13021 | .page_size = 128, |
| 13022 | .feature_bits = FEATURE_EITHER_RESET, |
| 13023 | .tested = TEST_OK_PROBE, |
| 13024 | .probe = probe_jedec, |
| 13025 | .probe_timing = 10, |
| 13026 | .block_erasers = |
| 13027 | { |
| 13028 | { |
| 13029 | .eraseblocks = { {256 * 1024, 1} }, |
| 13030 | .block_erase = erase_chip_block_jedec, |
| 13031 | } |
| 13032 | }, |
| 13033 | .write = write_jedec_1, |
| 13034 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13035 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 13036 | }, |
| 13037 | |
| 13038 | { |
| 13039 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13040 | .name = "W49V002A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13041 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13042 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13043 | .model_id = WINBOND_W49V002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13044 | .total_size = 256, |
| 13045 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13046 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 13047 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13048 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 13049 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13050 | .block_erasers = |
| 13051 | { |
| 13052 | { |
| 13053 | .eraseblocks = { |
| 13054 | {64 * 1024, 3}, |
| 13055 | {32 * 1024, 1}, |
| 13056 | {8 * 1024, 2}, |
| 13057 | {16 * 1024, 1}, |
| 13058 | }, |
| 13059 | .block_erase = erase_sector_jedec, |
| 13060 | }, { |
| 13061 | .eraseblocks = { {256 * 1024, 1} }, |
| 13062 | .block_erase = erase_chip_block_jedec, |
| 13063 | } |
| 13064 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13065 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13066 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13067 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13068 | }, |
| 13069 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13070 | { |
| 13071 | .vendor = "Winbond", |
| 13072 | .name = "W49V002FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13073 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13074 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13075 | .model_id = WINBOND_W49V002FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13076 | .total_size = 256, |
| 13077 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13078 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 13079 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13080 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13081 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13082 | .block_erasers = |
| 13083 | { |
| 13084 | { |
| 13085 | .eraseblocks = { |
| 13086 | {64 * 1024, 3}, |
| 13087 | {32 * 1024, 1}, |
| 13088 | {8 * 1024, 2}, |
| 13089 | {16 * 1024, 1}, |
| 13090 | }, |
| 13091 | .block_erase = erase_sector_jedec, |
| 13092 | }, { |
| 13093 | .eraseblocks = { {256 * 1024, 1} }, |
| 13094 | .block_erase = erase_chip_block_jedec, |
| 13095 | } |
| 13096 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13097 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13098 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13099 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13100 | }, |
| 13101 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13102 | { |
| 13103 | .vendor = "Winbond", |
| 13104 | .name = "W39V080FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13105 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13106 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13107 | .model_id = WINBOND_W39V080FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13108 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13109 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13110 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 13111 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 13112 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13113 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13114 | .block_erasers = |
| 13115 | { |
| 13116 | { |
| 13117 | .eraseblocks = { {64 * 1024, 16}, }, |
| 13118 | .block_erase = erase_sector_jedec, |
| 13119 | }, { |
| 13120 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13121 | .block_erase = erase_chip_block_jedec, |
| 13122 | } |
| 13123 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13124 | .printlock = printlock_w39v080fa, |
| 13125 | .unlock = unlock_w39v080fa, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13126 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13127 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13128 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13129 | }, |
| 13130 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13131 | { |
| 13132 | .vendor = "Winbond", |
| 13133 | .name = "W39V080FA (dual mode)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13134 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13135 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13136 | .model_id = WINBOND_W39V080FA_DM, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13137 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13138 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13139 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13140 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 13141 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13142 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13143 | .block_erasers = |
| 13144 | { |
| 13145 | { |
| 13146 | .eraseblocks = { {64 * 1024, 8}, }, |
| 13147 | .block_erase = erase_sector_jedec, |
| 13148 | }, { |
| 13149 | .eraseblocks = { {512 * 1024, 1} }, |
| 13150 | .block_erase = erase_chip_block_jedec, |
| 13151 | } |
| 13152 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13153 | .printlock = printlock_w39v080fa_dual, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13154 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13155 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13156 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13157 | }, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 13158 | |
| 13159 | { |
| 13160 | .vendor = "Unknown", |
| 13161 | .name = "SFDP-capable chip", |
| 13162 | .bustype = BUS_SPI, |
| 13163 | .manufacture_id = GENERIC_MANUF_ID, |
| 13164 | .model_id = SFDP_DEVICE_ID, |
| 13165 | /* We present our own "report this" text hence we do not |
| 13166 | * want the default "This flash part has status UNTESTED..." |
| 13167 | * text to be printed. */ |
| 13168 | .tested = TEST_OK_PREW, |
| 13169 | .probe = probe_spi_sfdp, |
| 13170 | .unlock = spi_disable_blockprotect, /* is this safe? */ |
| 13171 | .read = spi_chip_read, |
| 13172 | /* FIXME: some vendor extensions define this */ |
Carl-Daniel Hailfinger | 1c6d2ff | 2012-08-27 00:44:42 +0000 | [diff] [blame] | 13173 | .voltage = {0}, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 13174 | /* Everything below will be set by the probing function. */ |
| 13175 | .write = NULL, |
| 13176 | .total_size = 0, |
| 13177 | .page_size = 0, |
| 13178 | .feature_bits = 0, |
| 13179 | .block_erasers = {}, |
| 13180 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13181 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13182 | { |
Carl-Daniel Hailfinger | 532c717 | 2011-11-04 21:35:26 +0000 | [diff] [blame] | 13183 | .vendor = "Programmer", |
| 13184 | .name = "Opaque flash chip", |
| 13185 | .bustype = BUS_PROG, |
| 13186 | .manufacture_id = PROGMANUF_ID, |
| 13187 | .model_id = PROGDEV_ID, |
| 13188 | .total_size = 0, |
| 13189 | .page_size = 256, |
| 13190 | /* probe is assumed to work, rest will be filled in by probe */ |
| 13191 | .tested = TEST_OK_PROBE, |
| 13192 | .probe = probe_opaque, |
| 13193 | /* eraseblock sizes will be set by the probing function */ |
| 13194 | .block_erasers = |
| 13195 | { |
| 13196 | { |
| 13197 | .block_erase = erase_opaque, |
| 13198 | } |
| 13199 | }, |
| 13200 | .write = write_opaque, |
| 13201 | .read = read_opaque, |
| 13202 | }, |
| 13203 | |
| 13204 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 13205 | .vendor = "AMIC", |
| 13206 | .name = "unknown AMIC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13207 | .bustype = BUS_SPI, |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 13208 | .manufacture_id = AMIC_ID, |
| 13209 | .model_id = GENERIC_DEVICE_ID, |
| 13210 | .total_size = 0, |
| 13211 | .page_size = 256, |
| 13212 | .tested = TEST_BAD_PREW, |
| 13213 | .probe = probe_spi_rdid4, |
| 13214 | .probe_timing = TIMING_ZERO, |
| 13215 | .write = NULL, |
| 13216 | .read = NULL, |
| 13217 | }, |
| 13218 | |
| 13219 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13220 | .vendor = "Atmel", |
| 13221 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13222 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13223 | .manufacture_id = ATMEL_ID, |
| 13224 | .model_id = GENERIC_DEVICE_ID, |
| 13225 | .total_size = 0, |
| 13226 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 13227 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13228 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13229 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13230 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13231 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13232 | }, |
| 13233 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13234 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 13235 | .vendor = "Eon", |
| 13236 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13237 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13238 | .manufacture_id = EON_ID_NOPREFIX, |
| 13239 | .model_id = GENERIC_DEVICE_ID, |
| 13240 | .total_size = 0, |
| 13241 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 13242 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13243 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13244 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13245 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13246 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13247 | }, |
| 13248 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13249 | { |
| 13250 | .vendor = "Macronix", |
| 13251 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13252 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13253 | .manufacture_id = MACRONIX_ID, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13254 | .model_id = GENERIC_DEVICE_ID, |
| 13255 | .total_size = 0, |
| 13256 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 13257 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13258 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13259 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13260 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13261 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13262 | }, |
| 13263 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13264 | { |
| 13265 | .vendor = "PMC", |
| 13266 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13267 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13268 | .manufacture_id = PMC_ID, |
| 13269 | .model_id = GENERIC_DEVICE_ID, |
| 13270 | .total_size = 0, |
| 13271 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 13272 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13273 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13274 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13275 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13276 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13277 | }, |
| 13278 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13279 | { |
| 13280 | .vendor = "SST", |
| 13281 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13282 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13283 | .manufacture_id = SST_ID, |
| 13284 | .model_id = GENERIC_DEVICE_ID, |
| 13285 | .total_size = 0, |
| 13286 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 13287 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13288 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13289 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13290 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13291 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13292 | }, |
| 13293 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13294 | { |
| 13295 | .vendor = "ST", |
| 13296 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13297 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13298 | .manufacture_id = ST_ID, |
| 13299 | .model_id = GENERIC_DEVICE_ID, |
| 13300 | .total_size = 0, |
| 13301 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 13302 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13303 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13304 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13305 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13306 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13307 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 13308 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13309 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 13310 | .vendor = "Sanyo", |
| 13311 | .name = "unknown Sanyo SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13312 | .bustype = BUS_SPI, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 13313 | .manufacture_id = SANYO_ID, |
| 13314 | .model_id = GENERIC_DEVICE_ID, |
| 13315 | .total_size = 0, |
| 13316 | .page_size = 256, |
| 13317 | .tested = TEST_BAD_PREW, |
| 13318 | .probe = probe_spi_rdid, |
| 13319 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 13320 | .write = NULL, |
| 13321 | .read = NULL, |
| 13322 | }, |
| 13323 | |
| 13324 | { |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 13325 | .vendor = "Winbond", |
| 13326 | .name = "unknown Winbond (ex Nexcom) SPI chip", |
| 13327 | .bustype = BUS_SPI, |
| 13328 | .manufacture_id = WINBOND_NEX_ID, |
| 13329 | .model_id = GENERIC_DEVICE_ID, |
| 13330 | .total_size = 0, |
| 13331 | .page_size = 256, |
| 13332 | .tested = TEST_BAD_PREW, |
| 13333 | .probe = probe_spi_rdid, |
| 13334 | .probe_timing = TIMING_ZERO, |
| 13335 | .write = NULL, |
| 13336 | .read = NULL, |
| 13337 | }, |
| 13338 | |
| 13339 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13340 | .vendor = "Generic", |
| 13341 | .name = "unknown SPI chip (RDID)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13342 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13343 | .manufacture_id = GENERIC_MANUF_ID, |
| 13344 | .model_id = GENERIC_DEVICE_ID, |
| 13345 | .total_size = 0, |
| 13346 | .page_size = 256, |
| 13347 | .tested = TEST_BAD_PREW, |
| 13348 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13349 | .write = NULL, |
| 13350 | }, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 13351 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13352 | { |
| 13353 | .vendor = "Generic", |
| 13354 | .name = "unknown SPI chip (REMS)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13355 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13356 | .manufacture_id = GENERIC_MANUF_ID, |
| 13357 | .model_id = GENERIC_DEVICE_ID, |
| 13358 | .total_size = 0, |
| 13359 | .page_size = 256, |
| 13360 | .tested = TEST_BAD_PREW, |
| 13361 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13362 | .write = NULL, |
| 13363 | }, |
| 13364 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13365 | { NULL } |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 13366 | }; |