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, |
| 2278 | .tested = TEST_UNTESTED, |
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, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3231 | .tested = TEST_UNTESTED, |
| 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, |
| 4274 | .tested = TEST_UNTESTED, |
| 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, |
| 5176 | .tested = TEST_UNTESTED, |
| 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", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5912 | .name = "MX25L512(E)/MX25V512(C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5913 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5914 | .manufacture_id = MACRONIX_ID, |
| 5915 | .model_id = MACRONIX_MX25L512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5916 | .total_size = 64, |
| 5917 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5918 | /* MX25L512E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5919 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5920 | .tested = TEST_UNTESTED, |
| 5921 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5922 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5923 | .block_erasers = |
| 5924 | { |
| 5925 | { |
| 5926 | .eraseblocks = { {4 * 1024, 16} }, |
| 5927 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5928 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5929 | .eraseblocks = { {64 * 1024, 1} }, |
| 5930 | .block_erase = spi_block_erase_52, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5931 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5932 | .eraseblocks = { {64 * 1024, 1} }, |
| 5933 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5934 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5935 | .eraseblocks = { {64 * 1024, 1} }, |
| 5936 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5937 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5938 | .eraseblocks = { {64 * 1024, 1} }, |
| 5939 | .block_erase = spi_block_erase_c7, |
| 5940 | }, |
| 5941 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5942 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5943 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5944 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5945 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */ |
| 5946 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5947 | }, |
| 5948 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5949 | { |
| 5950 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5951 | .name = "MX25L1005(C)/MX25L1006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5952 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5953 | .manufacture_id = MACRONIX_ID, |
| 5954 | .model_id = MACRONIX_MX25L1005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5955 | .total_size = 128, |
| 5956 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5957 | /* MX25L1006E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5958 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 5959 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5960 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5961 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5962 | .block_erasers = |
| 5963 | { |
| 5964 | { |
| 5965 | .eraseblocks = { {4 * 1024, 32} }, |
| 5966 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5967 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5968 | .eraseblocks = { {64 * 1024, 2} }, |
| 5969 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5970 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5971 | .eraseblocks = { {128 * 1024, 1} }, |
| 5972 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5973 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5974 | .eraseblocks = { {128 * 1024, 1} }, |
| 5975 | .block_erase = spi_block_erase_c7, |
| 5976 | }, |
| 5977 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5978 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5979 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5980 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5981 | .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] | 5982 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5983 | }, |
| 5984 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5985 | { |
| 5986 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5987 | .name = "MX25L2005(C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5988 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5989 | .manufacture_id = MACRONIX_ID, |
| 5990 | .model_id = MACRONIX_MX25L2005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5991 | .total_size = 256, |
| 5992 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5993 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5994 | .tested = TEST_UNTESTED, |
| 5995 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5996 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5997 | .block_erasers = |
| 5998 | { |
| 5999 | { |
| 6000 | .eraseblocks = { {4 * 1024, 64} }, |
| 6001 | .block_erase = spi_block_erase_20, |
| 6002 | }, { |
| 6003 | .eraseblocks = { {64 * 1024, 4} }, |
| 6004 | .block_erase = spi_block_erase_52, |
| 6005 | }, { |
| 6006 | .eraseblocks = { {64 * 1024, 4} }, |
| 6007 | .block_erase = spi_block_erase_d8, |
| 6008 | }, { |
| 6009 | .eraseblocks = { {256 * 1024, 1} }, |
| 6010 | .block_erase = spi_block_erase_60, |
| 6011 | }, { |
| 6012 | .eraseblocks = { {256 * 1024, 1} }, |
| 6013 | .block_erase = spi_block_erase_c7, |
| 6014 | }, |
| 6015 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6016 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6017 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6018 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6019 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6020 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6021 | }, |
| 6022 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6023 | { |
| 6024 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6025 | .name = "MX25L4005(A/C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6026 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6027 | .manufacture_id = MACRONIX_ID, |
| 6028 | .model_id = MACRONIX_MX25L4005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6029 | .total_size = 512, |
| 6030 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6031 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 6032 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6033 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6034 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6035 | .block_erasers = |
| 6036 | { |
| 6037 | { |
| 6038 | .eraseblocks = { {4 * 1024, 128} }, |
| 6039 | .block_erase = spi_block_erase_20, |
| 6040 | }, { |
| 6041 | .eraseblocks = { {64 * 1024, 8} }, |
| 6042 | .block_erase = spi_block_erase_52, |
| 6043 | }, { |
| 6044 | .eraseblocks = { {64 * 1024, 8} }, |
| 6045 | .block_erase = spi_block_erase_d8, |
| 6046 | }, { |
| 6047 | .eraseblocks = { {512 * 1024, 1} }, |
| 6048 | .block_erase = spi_block_erase_60, |
| 6049 | }, { |
| 6050 | .eraseblocks = { {512 * 1024, 1} }, |
| 6051 | .block_erase = spi_block_erase_c7, |
| 6052 | }, |
| 6053 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6054 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6055 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6056 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6057 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6058 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6059 | }, |
| 6060 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6061 | { |
| 6062 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6063 | .name = "MX25L8005/MX25V8005", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6064 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6065 | .manufacture_id = MACRONIX_ID, |
| 6066 | .model_id = MACRONIX_MX25L8005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6067 | .total_size = 1024, |
| 6068 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6069 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 6070 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6071 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6072 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6073 | .block_erasers = |
| 6074 | { |
| 6075 | { |
| 6076 | .eraseblocks = { {4 * 1024, 256} }, |
| 6077 | .block_erase = spi_block_erase_20, |
| 6078 | }, { |
| 6079 | .eraseblocks = { {64 * 1024, 16} }, |
| 6080 | .block_erase = spi_block_erase_52, |
| 6081 | }, { |
| 6082 | .eraseblocks = { {64 * 1024, 16} }, |
| 6083 | .block_erase = spi_block_erase_d8, |
| 6084 | }, { |
| 6085 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6086 | .block_erase = spi_block_erase_60, |
| 6087 | }, { |
| 6088 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6089 | .block_erase = spi_block_erase_c7, |
| 6090 | }, |
| 6091 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6092 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6093 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6094 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6095 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6096 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6097 | }, |
| 6098 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6099 | { |
| 6100 | .vendor = "Macronix", |
| 6101 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6102 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6103 | .manufacture_id = MACRONIX_ID, |
| 6104 | .model_id = MACRONIX_MX25L1605, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6105 | .total_size = 2048, |
| 6106 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6107 | .feature_bits = FEATURE_WRSR_WREN, |
Sven Schnelle | 4bd8a40 | 2011-03-07 10:59:06 +0000 | [diff] [blame] | 6108 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6109 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6110 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6111 | .block_erasers = |
| 6112 | { |
| 6113 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6114 | .eraseblocks = { {64 * 1024, 32} }, |
| 6115 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6116 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6117 | .eraseblocks = { {64 * 1024, 32} }, |
| 6118 | .block_erase = spi_block_erase_d8, |
| 6119 | }, { |
| 6120 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6121 | .block_erase = spi_block_erase_60, |
| 6122 | }, { |
| 6123 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6124 | .block_erase = spi_block_erase_c7, |
| 6125 | }, |
| 6126 | }, |
| 6127 | .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */ |
| 6128 | .unlock = spi_disable_blockprotect, |
| 6129 | .write = spi_chip_write_256, |
| 6130 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6131 | .voltage = {2700, 3600}, |
| 6132 | }, |
| 6133 | |
| 6134 | { |
| 6135 | .vendor = "Macronix", |
| 6136 | .name = "MX25L1605A/MX25L1606E", |
| 6137 | .bustype = BUS_SPI, |
| 6138 | .manufacture_id = MACRONIX_ID, |
| 6139 | .model_id = MACRONIX_MX25L1605, |
| 6140 | .total_size = 2048, |
| 6141 | .page_size = 256, |
| 6142 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */ |
| 6143 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6144 | .tested = TEST_OK_PREW, |
| 6145 | .probe = probe_spi_rdid, |
| 6146 | .probe_timing = TIMING_ZERO, |
| 6147 | .block_erasers = |
| 6148 | { |
| 6149 | { |
| 6150 | .eraseblocks = { {4 * 1024, 512} }, |
| 6151 | .block_erase = spi_block_erase_20, |
| 6152 | }, { |
| 6153 | .eraseblocks = { {64 * 1024, 32} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6154 | .block_erase = spi_block_erase_52, |
| 6155 | }, { |
| 6156 | .eraseblocks = { {64 * 1024, 32} }, |
| 6157 | .block_erase = spi_block_erase_d8, |
| 6158 | }, { |
| 6159 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6160 | .block_erase = spi_block_erase_60, |
| 6161 | }, { |
| 6162 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6163 | .block_erase = spi_block_erase_c7, |
| 6164 | }, |
| 6165 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6166 | .printlock = spi_prettyprint_status_register_default_bp3, /* MX25L1605A bp2 only */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6167 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6168 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6169 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6170 | .voltage = {2700, 3600}, |
| 6171 | }, |
| 6172 | |
| 6173 | { |
| 6174 | .vendor = "Macronix", |
| 6175 | .name = "MX25L1605D/MX25L1608D", |
| 6176 | .bustype = BUS_SPI, |
| 6177 | .manufacture_id = MACRONIX_ID, |
| 6178 | .model_id = MACRONIX_MX25L1605, |
| 6179 | .total_size = 2048, |
| 6180 | .page_size = 256, |
| 6181 | .feature_bits = FEATURE_WRSR_WREN, |
| 6182 | .tested = TEST_OK_PREW, |
| 6183 | .probe = probe_spi_rdid, |
| 6184 | .probe_timing = TIMING_ZERO, |
| 6185 | .block_erasers = |
| 6186 | { |
| 6187 | { |
| 6188 | .eraseblocks = { {4 * 1024, 512} }, |
| 6189 | .block_erase = spi_block_erase_20, |
| 6190 | }, { |
| 6191 | .eraseblocks = { {64 * 1024, 32} }, |
| 6192 | .block_erase = spi_block_erase_d8, |
| 6193 | }, { |
| 6194 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6195 | .block_erase = spi_block_erase_60, |
| 6196 | }, { |
| 6197 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6198 | .block_erase = spi_block_erase_c7, |
| 6199 | }, |
| 6200 | }, |
| 6201 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: Continously Program (CP) mode */ |
| 6202 | .unlock = spi_disable_blockprotect, |
| 6203 | .write = spi_chip_write_256, |
| 6204 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6205 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6206 | }, |
| 6207 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6208 | { |
| 6209 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6210 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6211 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6212 | .manufacture_id = MACRONIX_ID, |
| 6213 | .model_id = MACRONIX_MX25L1635D, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6214 | .total_size = 2048, |
| 6215 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6216 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 6217 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6218 | .tested = TEST_UNTESTED, |
| 6219 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6220 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6221 | .block_erasers = |
| 6222 | { |
| 6223 | { |
| 6224 | .eraseblocks = { {4 * 1024, 512} }, |
| 6225 | .block_erase = spi_block_erase_20, |
| 6226 | }, { |
| 6227 | .eraseblocks = { {64 * 1024, 32} }, |
| 6228 | .block_erase = spi_block_erase_d8, |
| 6229 | }, { |
| 6230 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6231 | .block_erase = spi_block_erase_60, |
| 6232 | }, { |
| 6233 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6234 | .block_erase = spi_block_erase_c7, |
| 6235 | } |
| 6236 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6237 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6238 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6239 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6240 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6241 | .voltage = {2700, 3600}, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6242 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 6243 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6244 | { |
| 6245 | .vendor = "Macronix", |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 6246 | .name = "MX25L1635E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6247 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6248 | .manufacture_id = MACRONIX_ID, |
| 6249 | .model_id = MACRONIX_MX25L1635E, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 6250 | .total_size = 2048, |
| 6251 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6252 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 6253 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 6254 | .tested = TEST_UNTESTED, |
| 6255 | .probe = probe_spi_rdid, |
| 6256 | .probe_timing = TIMING_ZERO, |
| 6257 | .block_erasers = |
| 6258 | { |
| 6259 | { |
| 6260 | .eraseblocks = { {4 * 1024, 512} }, |
| 6261 | .block_erase = spi_block_erase_20, |
| 6262 | }, { |
| 6263 | .eraseblocks = { {64 * 1024, 32} }, |
| 6264 | .block_erase = spi_block_erase_d8, |
| 6265 | }, { |
| 6266 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6267 | .block_erase = spi_block_erase_60, |
| 6268 | }, { |
| 6269 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6270 | .block_erase = spi_block_erase_c7, |
| 6271 | } |
| 6272 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6273 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 6274 | .unlock = spi_disable_blockprotect, |
| 6275 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6276 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6277 | .voltage = {2700, 3600}, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 6278 | }, |
| 6279 | |
| 6280 | { |
| 6281 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6282 | .name = "MX25L3205(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6283 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6284 | .manufacture_id = MACRONIX_ID, |
| 6285 | .model_id = MACRONIX_MX25L3205, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6286 | .total_size = 4096, |
| 6287 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6288 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 6289 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6290 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6291 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6292 | .block_erasers = |
| 6293 | { |
| 6294 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6295 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6296 | .block_erase = spi_block_erase_20, |
| 6297 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6298 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6299 | .block_erase = spi_block_erase_d8, |
| 6300 | }, { |
| 6301 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6302 | .block_erase = spi_block_erase_60, |
| 6303 | }, { |
| 6304 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6305 | .block_erase = spi_block_erase_c7, |
| 6306 | }, |
| 6307 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6308 | .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6309 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6310 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6311 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6312 | .voltage = {2700, 3600}, |
| 6313 | }, |
| 6314 | |
| 6315 | { |
| 6316 | .vendor = "Macronix", |
| 6317 | .name = "MX25L3205D/MX25L3208D", |
| 6318 | .bustype = BUS_SPI, |
| 6319 | .manufacture_id = MACRONIX_ID, |
| 6320 | .model_id = MACRONIX_MX25L3205, |
| 6321 | .total_size = 4096, |
| 6322 | .page_size = 256, |
| 6323 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 6324 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6325 | .tested = TEST_OK_PREW, |
| 6326 | .probe = probe_spi_rdid, |
| 6327 | .probe_timing = TIMING_ZERO, |
| 6328 | .block_erasers = |
| 6329 | { |
| 6330 | { |
| 6331 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6332 | .block_erase = spi_block_erase_20, |
| 6333 | }, { |
| 6334 | .eraseblocks = { {64 * 1024, 64} }, |
| 6335 | .block_erase = spi_block_erase_d8, |
| 6336 | }, { |
| 6337 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6338 | .block_erase = spi_block_erase_60, |
| 6339 | }, { |
| 6340 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6341 | .block_erase = spi_block_erase_c7, |
| 6342 | }, |
| 6343 | }, |
| 6344 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: CP mode */ |
| 6345 | .unlock = spi_disable_blockprotect, |
| 6346 | .write = spi_chip_write_256, |
| 6347 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 6348 | .voltage = {2700, 3600}, |
| 6349 | }, |
| 6350 | |
| 6351 | { |
| 6352 | .vendor = "Macronix", |
| 6353 | .name = "MX25L3206E", |
| 6354 | .bustype = BUS_SPI, |
| 6355 | .manufacture_id = MACRONIX_ID, |
| 6356 | .model_id = MACRONIX_MX25L3205, |
| 6357 | .total_size = 4096, |
| 6358 | .page_size = 256, |
| 6359 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 6360 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6361 | .tested = TEST_OK_PREW, |
| 6362 | .probe = probe_spi_rdid, |
| 6363 | .probe_timing = TIMING_ZERO, |
| 6364 | .block_erasers = |
| 6365 | { |
| 6366 | { |
| 6367 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6368 | .block_erase = spi_block_erase_20, |
| 6369 | }, { |
| 6370 | .eraseblocks = { {64 * 1024, 64} }, |
| 6371 | .block_erase = spi_block_erase_d8, |
| 6372 | }, { |
| 6373 | .eraseblocks = { {64 * 1024, 64} }, |
| 6374 | .block_erase = spi_block_erase_52, |
| 6375 | }, { |
| 6376 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6377 | .block_erase = spi_block_erase_60, |
| 6378 | }, { |
| 6379 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6380 | .block_erase = spi_block_erase_c7, |
| 6381 | }, |
| 6382 | }, |
| 6383 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 6384 | .unlock = spi_disable_blockprotect, |
| 6385 | .write = spi_chip_write_256, |
| 6386 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6387 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6388 | }, |
| 6389 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6390 | { |
| 6391 | .vendor = "Macronix", |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6392 | .name = "MX25L3235D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6393 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6394 | .manufacture_id = MACRONIX_ID, |
| 6395 | .model_id = MACRONIX_MX25L3235D, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6396 | .total_size = 4096, |
| 6397 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6398 | /* OTP: 256B total; enter 0xB1, exit 0xC1 */ |
| 6399 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6400 | .tested = TEST_UNTESTED, |
| 6401 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6402 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6403 | .block_erasers = |
| 6404 | { |
| 6405 | { |
| 6406 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6407 | .block_erase = spi_block_erase_20, |
| 6408 | }, { |
| 6409 | .eraseblocks = { {64 * 1024, 64} }, |
| 6410 | .block_erase = spi_block_erase_d8, |
| 6411 | }, { |
| 6412 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6413 | .block_erase = spi_block_erase_60, |
| 6414 | }, { |
| 6415 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6416 | .block_erase = spi_block_erase_c7, |
| 6417 | } |
| 6418 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6419 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6420 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6421 | .write = spi_chip_write_256, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6422 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6423 | .voltage = {2700, 3600}, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6424 | }, |
| 6425 | |
| 6426 | { |
| 6427 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6428 | .name = "MX25L6405(D)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6429 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6430 | .manufacture_id = MACRONIX_ID, |
| 6431 | .model_id = MACRONIX_MX25L6405, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6432 | .total_size = 8192, |
| 6433 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6434 | /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */ |
| 6435 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 6436 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6437 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6438 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6439 | .block_erasers = |
| 6440 | { |
| 6441 | { |
| 6442 | .eraseblocks = { {64 * 1024, 128} }, |
| 6443 | .block_erase = spi_block_erase_20, |
| 6444 | }, { |
| 6445 | .eraseblocks = { {64 * 1024, 128} }, |
| 6446 | .block_erase = spi_block_erase_d8, |
| 6447 | }, { |
| 6448 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6449 | .block_erase = spi_block_erase_60, |
| 6450 | }, { |
| 6451 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6452 | .block_erase = spi_block_erase_c7, |
| 6453 | } |
| 6454 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6455 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 has different meanings */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6456 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6457 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6458 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6459 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6460 | }, |
| 6461 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6462 | { |
| 6463 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6464 | .name = "MX25L6406E/MX25L6436E", |
| 6465 | .bustype = BUS_SPI, |
| 6466 | .manufacture_id = MACRONIX_ID, |
| 6467 | .model_id = MACRONIX_MX25L6405, |
| 6468 | .total_size = 8192, |
| 6469 | .page_size = 256, |
| 6470 | /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */ |
| 6471 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6472 | .tested = TEST_OK_PREW, |
| 6473 | .probe = probe_spi_rdid, |
| 6474 | .probe_timing = TIMING_ZERO, |
| 6475 | .block_erasers = |
| 6476 | { |
| 6477 | { |
| 6478 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6479 | .block_erase = spi_block_erase_20, |
| 6480 | }, { |
| 6481 | .eraseblocks = { {64 * 1024, 128} }, |
| 6482 | .block_erase = spi_block_erase_d8, |
| 6483 | }, { |
| 6484 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6485 | .block_erase = spi_block_erase_60, |
| 6486 | }, { |
| 6487 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6488 | .block_erase = spi_block_erase_c7, |
| 6489 | } |
| 6490 | }, |
| 6491 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 for 36E is quad enable */ |
| 6492 | .unlock = spi_disable_blockprotect, |
| 6493 | .write = spi_chip_write_256, |
| 6494 | .read = spi_chip_read, |
| 6495 | .voltage = {2700, 3600}, |
| 6496 | }, |
| 6497 | |
| 6498 | { |
| 6499 | .vendor = "Macronix", |
| 6500 | .name = "MX25L6445E", |
| 6501 | .bustype = BUS_SPI, |
| 6502 | .manufacture_id = MACRONIX_ID, |
| 6503 | .model_id = MACRONIX_MX25L6405, |
| 6504 | .total_size = 8192, |
| 6505 | .page_size = 256, |
| 6506 | /* supports SFDP */ |
| 6507 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6508 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6509 | .tested = TEST_OK_PREW, |
| 6510 | .probe = probe_spi_rdid, |
| 6511 | .probe_timing = TIMING_ZERO, |
| 6512 | .block_erasers = |
| 6513 | { |
| 6514 | { |
| 6515 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6516 | .block_erase = spi_block_erase_20, |
| 6517 | }, { |
| 6518 | .eraseblocks = { {32 * 1024, 256} }, |
| 6519 | .block_erase = spi_block_erase_52, |
| 6520 | }, { |
| 6521 | .eraseblocks = { {64 * 1024, 128} }, |
| 6522 | .block_erase = spi_block_erase_d8, |
| 6523 | }, { |
| 6524 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6525 | .block_erase = spi_block_erase_60, |
| 6526 | }, { |
| 6527 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6528 | .block_erase = spi_block_erase_c7, |
| 6529 | } |
| 6530 | }, |
| 6531 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 6532 | .unlock = spi_disable_blockprotect, |
| 6533 | .write = spi_chip_write_256, |
| 6534 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6535 | .voltage = {2700, 3600}, |
| 6536 | }, |
| 6537 | |
| 6538 | { |
| 6539 | .vendor = "Macronix", |
| 6540 | .name = "MX25L12805(D)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6541 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6542 | .manufacture_id = MACRONIX_ID, |
| 6543 | .model_id = MACRONIX_MX25L12805, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 6544 | .total_size = 16384, |
| 6545 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6546 | /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */ |
| 6547 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6548 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 6549 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6550 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6551 | .block_erasers = |
| 6552 | { |
| 6553 | { |
| 6554 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6555 | .block_erase = spi_block_erase_20, |
| 6556 | }, { |
| 6557 | .eraseblocks = { {64 * 1024, 256} }, |
| 6558 | .block_erase = spi_block_erase_d8, |
| 6559 | }, { |
| 6560 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6561 | .block_erase = spi_block_erase_60, |
| 6562 | }, { |
| 6563 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6564 | .block_erase = spi_block_erase_c7, |
| 6565 | } |
| 6566 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6567 | .printlock = spi_prettyprint_status_register_default_bp3, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6568 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6569 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6570 | .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6571 | .voltage = {2700, 3600}, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 6572 | }, |
| 6573 | |
| 6574 | { |
| 6575 | .vendor = "Macronix", |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 6576 | .name = "MX25U1635E", |
| 6577 | .bustype = BUS_SPI, |
| 6578 | .manufacture_id = MACRONIX_ID, |
| 6579 | .model_id = MACRONIX_MX25U1635E, |
| 6580 | .total_size = 2048, |
| 6581 | .page_size = 256, |
| 6582 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6583 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 6584 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6585 | .tested = TEST_UNTESTED, |
| 6586 | .probe = probe_spi_rdid, |
| 6587 | .probe_timing = TIMING_ZERO, |
| 6588 | .block_erasers = |
| 6589 | { |
| 6590 | { |
| 6591 | .eraseblocks = { {4 * 1024, 512} }, |
| 6592 | .block_erase = spi_block_erase_20, |
| 6593 | }, { |
| 6594 | .eraseblocks = { {32 * 1024, 64} }, |
| 6595 | .block_erase = spi_block_erase_52, |
| 6596 | }, { |
| 6597 | .eraseblocks = { {64 * 1024, 32} }, |
| 6598 | .block_erase = spi_block_erase_d8, |
| 6599 | }, { |
| 6600 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6601 | .block_erase = spi_block_erase_60, |
| 6602 | }, { |
| 6603 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6604 | .block_erase = spi_block_erase_c7, |
| 6605 | } |
| 6606 | }, |
| 6607 | /* TODO: security register */ |
| 6608 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 6609 | .unlock = spi_disable_blockprotect, |
| 6610 | .write = spi_chip_write_256, |
| 6611 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6612 | .voltage = {1650, 2000}, |
| 6613 | }, |
| 6614 | |
| 6615 | { |
| 6616 | .vendor = "Macronix", |
| 6617 | .name = "MX25U3235E/F", |
| 6618 | .bustype = BUS_SPI, |
| 6619 | .manufacture_id = MACRONIX_ID, |
| 6620 | .model_id = MACRONIX_MX25U3235E, |
| 6621 | .total_size = 4096, |
| 6622 | .page_size = 256, |
| 6623 | /* F model supports SFDP */ |
| 6624 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6625 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 6626 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6627 | .tested = TEST_OK_PREW, |
| 6628 | .probe = probe_spi_rdid, |
| 6629 | .probe_timing = TIMING_ZERO, |
| 6630 | .block_erasers = |
| 6631 | { |
| 6632 | { |
| 6633 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6634 | .block_erase = spi_block_erase_20, |
| 6635 | }, { |
| 6636 | .eraseblocks = { {32 * 1024, 128} }, |
| 6637 | .block_erase = spi_block_erase_52, |
| 6638 | }, { |
| 6639 | .eraseblocks = { {64 * 1024, 64} }, |
| 6640 | .block_erase = spi_block_erase_d8, |
| 6641 | }, { |
| 6642 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6643 | .block_erase = spi_block_erase_60, |
| 6644 | }, { |
| 6645 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6646 | .block_erase = spi_block_erase_c7, |
| 6647 | } |
| 6648 | }, |
| 6649 | /* TODO: security register */ |
| 6650 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 6651 | .unlock = spi_disable_blockprotect, |
| 6652 | .write = spi_chip_write_256, |
| 6653 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6654 | .voltage = {1650, 2000}, |
| 6655 | }, |
| 6656 | |
| 6657 | { |
| 6658 | .vendor = "Macronix", |
| 6659 | .name = "MX25U6435E/F", |
| 6660 | .bustype = BUS_SPI, |
| 6661 | .manufacture_id = MACRONIX_ID, |
| 6662 | .model_id = MACRONIX_MX25U6435E, |
| 6663 | .total_size = 8192, |
| 6664 | .page_size = 256, |
| 6665 | /* F model supports SFDP */ |
| 6666 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6667 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 6668 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6669 | .tested = TEST_UNTESTED, |
| 6670 | .probe = probe_spi_rdid, |
| 6671 | .probe_timing = TIMING_ZERO, |
| 6672 | .block_erasers = |
| 6673 | { |
| 6674 | { |
| 6675 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6676 | .block_erase = spi_block_erase_20, |
| 6677 | }, { |
| 6678 | .eraseblocks = { {32 * 1024, 256} }, |
| 6679 | .block_erase = spi_block_erase_52, |
| 6680 | }, { |
| 6681 | .eraseblocks = { {64 * 1024, 128} }, |
| 6682 | .block_erase = spi_block_erase_d8, |
| 6683 | }, { |
| 6684 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6685 | .block_erase = spi_block_erase_60, |
| 6686 | }, { |
| 6687 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6688 | .block_erase = spi_block_erase_c7, |
| 6689 | } |
| 6690 | }, |
| 6691 | /* TODO: security register */ |
| 6692 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 6693 | .unlock = spi_disable_blockprotect, |
| 6694 | .write = spi_chip_write_256, |
| 6695 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6696 | .voltage = {1650, 2000}, |
| 6697 | }, |
| 6698 | |
| 6699 | { |
| 6700 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6701 | .name = "MX29F001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6702 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6703 | .manufacture_id = MACRONIX_ID, |
| 6704 | .model_id = MACRONIX_MX29F001B, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6705 | .total_size = 128, |
| 6706 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6707 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6708 | .tested = TEST_UNTESTED, |
| 6709 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6710 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6711 | .block_erasers = |
| 6712 | { |
| 6713 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6714 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6715 | {8 * 1024, 1}, |
| 6716 | {4 * 1024, 2}, |
| 6717 | {8 * 1024, 2}, |
| 6718 | {32 * 1024, 1}, |
| 6719 | {64 * 1024, 1}, |
| 6720 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6721 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6722 | }, { |
| 6723 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6724 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6725 | } |
| 6726 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6727 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6728 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6729 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6730 | }, |
| 6731 | |
| 6732 | { |
| 6733 | .vendor = "Macronix", |
| 6734 | .name = "MX29F001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6735 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6736 | .manufacture_id = MACRONIX_ID, |
| 6737 | .model_id = MACRONIX_MX29F001T, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6738 | .total_size = 128, |
| 6739 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6740 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stefan Tauner | 74c6ec6 | 2011-05-18 01:31:46 +0000 | [diff] [blame] | 6741 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6742 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6743 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6744 | .block_erasers = |
| 6745 | { |
| 6746 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6747 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6748 | {64 * 1024, 1}, |
| 6749 | {32 * 1024, 1}, |
| 6750 | {8 * 1024, 2}, |
| 6751 | {4 * 1024, 2}, |
| 6752 | {8 * 1024, 1}, |
| 6753 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6754 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6755 | }, { |
| 6756 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6757 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6758 | } |
| 6759 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6760 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6761 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6762 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6763 | }, |
| 6764 | |
| 6765 | { |
| 6766 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 6767 | .name = "MX29F002(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6768 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6769 | .manufacture_id = MACRONIX_ID, |
| 6770 | .model_id = MACRONIX_MX29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6771 | .total_size = 256, |
| 6772 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6773 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6774 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6775 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6776 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6777 | .block_erasers = |
| 6778 | { |
| 6779 | { |
| 6780 | .eraseblocks = { |
| 6781 | {16 * 1024, 1}, |
| 6782 | {8 * 1024, 2}, |
| 6783 | {32 * 1024, 1}, |
| 6784 | {64 * 1024, 3}, |
| 6785 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6786 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6787 | }, { |
| 6788 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6789 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6790 | }, |
| 6791 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6792 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6793 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6794 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6795 | }, |
| 6796 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6797 | { |
| 6798 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 6799 | .name = "MX29F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6800 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6801 | .manufacture_id = MACRONIX_ID, |
| 6802 | .model_id = MACRONIX_MX29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6803 | .total_size = 256, |
| 6804 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6805 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 6806 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6807 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6808 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6809 | .block_erasers = |
| 6810 | { |
| 6811 | { |
| 6812 | .eraseblocks = { |
| 6813 | {64 * 1024, 3}, |
| 6814 | {32 * 1024, 1}, |
| 6815 | {8 * 1024, 2}, |
| 6816 | {16 * 1024, 1}, |
| 6817 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6818 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6819 | }, { |
| 6820 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6821 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6822 | }, |
| 6823 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6824 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6825 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6826 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6827 | }, |
| 6828 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6829 | { |
| 6830 | .vendor = "Macronix", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6831 | .name = "MX29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6832 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6833 | .manufacture_id = MACRONIX_ID, |
| 6834 | .model_id = MACRONIX_MX29F040, |
| 6835 | .total_size = 512, |
| 6836 | .page_size = 64 * 1024, |
| 6837 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6838 | .tested = TEST_UNTESTED, |
| 6839 | .probe = probe_jedec, |
| 6840 | .probe_timing = TIMING_ZERO, |
| 6841 | .block_erasers = |
| 6842 | { |
| 6843 | { |
| 6844 | .eraseblocks = { {64 * 1024, 8} }, |
| 6845 | .block_erase = erase_sector_jedec, |
| 6846 | }, { |
| 6847 | .eraseblocks = { {512 * 1024, 1} }, |
| 6848 | .block_erase = erase_chip_block_jedec, |
| 6849 | }, |
| 6850 | }, |
| 6851 | .write = write_jedec_1, |
| 6852 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6853 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6854 | }, |
| 6855 | |
| 6856 | { |
| 6857 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 6858 | .name = "MX29LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6859 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6860 | .manufacture_id = MACRONIX_ID, |
| 6861 | .model_id = MACRONIX_MX29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6862 | .total_size = 512, |
| 6863 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6864 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6865 | .tested = TEST_UNTESTED, |
| 6866 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6867 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6868 | .block_erasers = |
| 6869 | { |
| 6870 | { |
| 6871 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6872 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6873 | }, { |
| 6874 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6875 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6876 | }, |
| 6877 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6878 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6879 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6880 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 6881 | }, |
| 6882 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6883 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 6884 | .vendor = "Micron/Numonyx/ST", |
| 6885 | .name = "M25P05-A", |
| 6886 | .bustype = BUS_SPI, |
| 6887 | .manufacture_id = ST_ID, |
| 6888 | .model_id = ST_M25P05A, |
| 6889 | .total_size = 64, |
| 6890 | .page_size = 256, |
| 6891 | .feature_bits = FEATURE_WRSR_WREN, |
| 6892 | .tested = TEST_OK_PREW, |
| 6893 | .probe = probe_spi_rdid, |
| 6894 | .probe_timing = TIMING_ZERO, |
| 6895 | .block_erasers = |
| 6896 | { |
| 6897 | { |
| 6898 | .eraseblocks = { {32 * 1024, 2} }, |
| 6899 | .block_erase = spi_block_erase_d8, |
| 6900 | }, { |
| 6901 | .eraseblocks = { {64 * 1024, 1} }, |
| 6902 | .block_erase = spi_block_erase_c7, |
| 6903 | } |
| 6904 | }, |
| 6905 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
| 6906 | .unlock = spi_disable_blockprotect, |
| 6907 | .write = spi_chip_write_256, |
| 6908 | .read = spi_chip_read, |
| 6909 | .voltage = {2700, 3600}, |
| 6910 | }, |
| 6911 | |
| 6912 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 6913 | * ST M25P05-A in RES mode, but supports only 128 byte writes instead |
| 6914 | * of 256 byte writes. We rely heavily on the fact that probe_spi_res1 |
| 6915 | * only is successful if RDID does not work. |
| 6916 | */ |
| 6917 | { |
| 6918 | .vendor = "Micron/Numonyx/ST", |
| 6919 | .name = "M25P05", |
| 6920 | .bustype = BUS_SPI, |
| 6921 | .manufacture_id = 0, /* Not used. */ |
| 6922 | .model_id = ST_M25P05_RES, |
| 6923 | .total_size = 64, |
| 6924 | .page_size = 256, |
| 6925 | .feature_bits = FEATURE_WRSR_WREN, |
| 6926 | .tested = TEST_UNTESTED, |
| 6927 | .probe = probe_spi_res1, |
| 6928 | .probe_timing = TIMING_ZERO, |
| 6929 | .block_erasers = |
| 6930 | { |
| 6931 | { |
| 6932 | .eraseblocks = { {32 * 1024, 2} }, |
| 6933 | .block_erase = spi_block_erase_d8, |
| 6934 | }, { |
| 6935 | .eraseblocks = { {64 * 1024, 1} }, |
| 6936 | .block_erase = spi_block_erase_c7, |
| 6937 | } |
| 6938 | }, |
| 6939 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
| 6940 | .unlock = spi_disable_blockprotect, |
| 6941 | .write = spi_chip_write_1, /* 128 */ |
| 6942 | .read = spi_chip_read, |
| 6943 | .voltage = {2700, 3600}, |
| 6944 | }, |
| 6945 | |
| 6946 | { |
| 6947 | .vendor = "Micron/Numonyx/ST", |
| 6948 | .name = "M25P10-A", |
| 6949 | .bustype = BUS_SPI, |
| 6950 | .manufacture_id = ST_ID, |
| 6951 | .model_id = ST_M25P10A, |
| 6952 | .total_size = 128, |
| 6953 | .page_size = 256, |
| 6954 | .feature_bits = FEATURE_WRSR_WREN, |
| 6955 | .tested = TEST_OK_PRE, |
| 6956 | .probe = probe_spi_rdid, |
| 6957 | .probe_timing = TIMING_ZERO, |
| 6958 | .block_erasers = |
| 6959 | { |
| 6960 | { |
| 6961 | .eraseblocks = { {32 * 1024, 4} }, |
| 6962 | .block_erase = spi_block_erase_d8, |
| 6963 | }, { |
| 6964 | .eraseblocks = { {128 * 1024, 1} }, |
| 6965 | .block_erase = spi_block_erase_c7, |
| 6966 | } |
| 6967 | }, |
| 6968 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
| 6969 | .unlock = spi_disable_blockprotect, |
| 6970 | .write = spi_chip_write_256, |
| 6971 | .read = spi_chip_read, |
| 6972 | .voltage = {2700, 3600}, |
| 6973 | }, |
| 6974 | |
| 6975 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 6976 | { |
| 6977 | .vendor = "Micron/Numonyx/ST", |
| 6978 | .name = "M25P10", |
| 6979 | .bustype = BUS_SPI, |
| 6980 | .manufacture_id = 0, /* Not used. */ |
| 6981 | .model_id = ST_M25P10_RES, |
| 6982 | .total_size = 128, |
| 6983 | .page_size = 256, |
| 6984 | .feature_bits = FEATURE_WRSR_WREN, |
| 6985 | .tested = TEST_UNTESTED, |
| 6986 | .probe = probe_spi_res1, |
| 6987 | .probe_timing = TIMING_ZERO, |
| 6988 | .block_erasers = |
| 6989 | { |
| 6990 | { |
| 6991 | .eraseblocks = { {32 * 1024, 4} }, |
| 6992 | .block_erase = spi_block_erase_d8, |
| 6993 | }, { |
| 6994 | .eraseblocks = { {128 * 1024, 1} }, |
| 6995 | .block_erase = spi_block_erase_c7, |
| 6996 | } |
| 6997 | }, |
| 6998 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
| 6999 | .unlock = spi_disable_blockprotect, |
| 7000 | .write = spi_chip_write_1, /* 128 */ |
| 7001 | .read = spi_chip_read, |
| 7002 | .voltage = {2700, 3600}, |
| 7003 | }, |
| 7004 | |
| 7005 | { |
| 7006 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 7007 | .name = "M25P20", |
| 7008 | .bustype = BUS_SPI, |
| 7009 | .manufacture_id = ST_ID, |
| 7010 | .model_id = ST_M25P20, |
| 7011 | .total_size = 256, |
| 7012 | .page_size = 256, |
| 7013 | .feature_bits = FEATURE_WRSR_WREN, |
| 7014 | .tested = TEST_UNTESTED, |
| 7015 | .probe = probe_spi_rdid, |
| 7016 | .probe_timing = TIMING_ZERO, |
| 7017 | .block_erasers = |
| 7018 | { |
| 7019 | { |
| 7020 | .eraseblocks = { {64 * 1024, 4} }, |
| 7021 | .block_erase = spi_block_erase_d8, |
| 7022 | }, { |
| 7023 | .eraseblocks = { {256 * 1024, 1} }, |
| 7024 | .block_erase = spi_block_erase_c7, |
| 7025 | } |
| 7026 | }, |
| 7027 | .printlock = spi_prettyprint_status_register_default_bp1, |
| 7028 | .unlock = spi_disable_blockprotect, |
| 7029 | .write = spi_chip_write_256, |
| 7030 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7031 | .voltage = {2700, 3600}, |
| 7032 | }, |
| 7033 | |
| 7034 | { |
| 7035 | .vendor = "Micron/Numonyx/ST", |
| 7036 | .name = "M25P20-old", |
| 7037 | .bustype = BUS_SPI, |
| 7038 | .manufacture_id = 0, /* Not used. */ |
| 7039 | .model_id = ST_M25P20_RES, |
| 7040 | .total_size = 256, |
| 7041 | .page_size = 256, |
| 7042 | .feature_bits = FEATURE_WRSR_WREN, |
| 7043 | .tested = TEST_OK_PREW, |
| 7044 | .probe = probe_spi_res1, |
| 7045 | .probe_timing = TIMING_ZERO, |
| 7046 | .block_erasers = |
| 7047 | { |
| 7048 | { |
| 7049 | .eraseblocks = { {64 * 1024, 4} }, |
| 7050 | .block_erase = spi_block_erase_d8, |
| 7051 | }, { |
| 7052 | .eraseblocks = { {256 * 1024, 1} }, |
| 7053 | .block_erase = spi_block_erase_c7, |
| 7054 | } |
| 7055 | }, |
| 7056 | .printlock = spi_prettyprint_status_register_default_bp1, |
| 7057 | .unlock = spi_disable_blockprotect, |
| 7058 | .write = spi_chip_write_256, |
| 7059 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7060 | .voltage = {2700, 3600}, |
| 7061 | }, |
| 7062 | |
| 7063 | { |
| 7064 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 7065 | .name = "M25P40", |
| 7066 | .bustype = BUS_SPI, |
| 7067 | .manufacture_id = ST_ID, |
| 7068 | .model_id = ST_M25P40, |
| 7069 | .total_size = 512, |
| 7070 | .page_size = 256, |
| 7071 | .feature_bits = FEATURE_WRSR_WREN, |
| 7072 | .tested = TEST_OK_PREW, |
| 7073 | .probe = probe_spi_rdid, |
| 7074 | .probe_timing = TIMING_ZERO, |
| 7075 | .block_erasers = |
| 7076 | { |
| 7077 | { |
| 7078 | .eraseblocks = { {64 * 1024, 8} }, |
| 7079 | .block_erase = spi_block_erase_d8, |
| 7080 | }, { |
| 7081 | .eraseblocks = { {512 * 1024, 1} }, |
| 7082 | .block_erase = spi_block_erase_c7, |
| 7083 | } |
| 7084 | }, |
| 7085 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
| 7086 | .unlock = spi_disable_blockprotect, |
| 7087 | .write = spi_chip_write_256, |
| 7088 | .read = spi_chip_read, |
| 7089 | .voltage = {2700, 3600}, |
| 7090 | }, |
| 7091 | |
| 7092 | { |
| 7093 | .vendor = "Micron/Numonyx/ST", |
| 7094 | .name = "M25P40-old", |
| 7095 | .bustype = BUS_SPI, |
| 7096 | .manufacture_id = 0, /* Not used. */ |
| 7097 | .model_id = ST_M25P40_RES, |
| 7098 | .total_size = 512, |
| 7099 | .page_size = 256, |
| 7100 | .feature_bits = FEATURE_WRSR_WREN, |
| 7101 | .tested = TEST_UNTESTED, |
| 7102 | .probe = probe_spi_res1, |
| 7103 | .probe_timing = TIMING_ZERO, |
| 7104 | .block_erasers = |
| 7105 | { |
| 7106 | { |
| 7107 | .eraseblocks = { {64 * 1024, 8} }, |
| 7108 | .block_erase = spi_block_erase_d8, |
| 7109 | }, { |
| 7110 | .eraseblocks = { {512 * 1024, 1} }, |
| 7111 | .block_erase = spi_block_erase_c7, |
| 7112 | } |
| 7113 | }, |
| 7114 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
| 7115 | .unlock = spi_disable_blockprotect, |
| 7116 | .write = spi_chip_write_256, |
| 7117 | .read = spi_chip_read, |
| 7118 | }, |
| 7119 | |
| 7120 | { |
| 7121 | .vendor = "Micron/Numonyx/ST", |
| 7122 | .name = "M25P80", |
| 7123 | .bustype = BUS_SPI, |
| 7124 | .manufacture_id = ST_ID, |
| 7125 | .model_id = ST_M25P80, |
| 7126 | .total_size = 1024, |
| 7127 | .page_size = 256, |
| 7128 | .feature_bits = FEATURE_WRSR_WREN, |
| 7129 | .tested = TEST_OK_PREW, |
| 7130 | .probe = probe_spi_rdid, |
| 7131 | .probe_timing = TIMING_ZERO, |
| 7132 | .block_erasers = |
| 7133 | { |
| 7134 | { |
| 7135 | .eraseblocks = { {64 * 1024, 16} }, |
| 7136 | .block_erase = spi_block_erase_d8, |
| 7137 | }, { |
| 7138 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7139 | .block_erase = spi_block_erase_c7, |
| 7140 | } |
| 7141 | }, |
| 7142 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
| 7143 | .unlock = spi_disable_blockprotect, |
| 7144 | .write = spi_chip_write_256, |
| 7145 | .read = spi_chip_read, |
| 7146 | .voltage = {2700, 3600}, |
| 7147 | }, |
| 7148 | |
| 7149 | { |
| 7150 | .vendor = "Micron/Numonyx/ST", |
| 7151 | .name = "M25P16", |
| 7152 | .bustype = BUS_SPI, |
| 7153 | .manufacture_id = ST_ID, |
| 7154 | .model_id = ST_M25P16, |
| 7155 | .total_size = 2048, |
| 7156 | .page_size = 256, |
| 7157 | .feature_bits = FEATURE_WRSR_WREN, |
| 7158 | .tested = TEST_OK_PR, |
| 7159 | .probe = probe_spi_rdid, |
| 7160 | .probe_timing = TIMING_ZERO, |
| 7161 | .block_erasers = |
| 7162 | { |
| 7163 | { |
| 7164 | .eraseblocks = { {64 * 1024, 32} }, |
| 7165 | .block_erase = spi_block_erase_d8, |
| 7166 | }, { |
| 7167 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7168 | .block_erase = spi_block_erase_c7, |
| 7169 | } |
| 7170 | }, |
| 7171 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
| 7172 | .unlock = spi_disable_blockprotect, |
| 7173 | .write = spi_chip_write_256, |
| 7174 | .read = spi_chip_read, |
| 7175 | .voltage = {2700, 3600}, |
| 7176 | }, |
| 7177 | |
| 7178 | { |
| 7179 | .vendor = "Micron/Numonyx/ST", |
| 7180 | .name = "M25P32", |
| 7181 | .bustype = BUS_SPI, |
| 7182 | .manufacture_id = ST_ID, |
| 7183 | .model_id = ST_M25P32, |
| 7184 | .total_size = 4096, |
| 7185 | .page_size = 256, |
| 7186 | .feature_bits = FEATURE_WRSR_WREN, |
| 7187 | .tested = TEST_OK_PREW, |
| 7188 | .probe = probe_spi_rdid, |
| 7189 | .probe_timing = TIMING_ZERO, |
| 7190 | .block_erasers = |
| 7191 | { |
| 7192 | { |
| 7193 | .eraseblocks = { {64 * 1024, 64} }, |
| 7194 | .block_erase = spi_block_erase_d8, |
| 7195 | }, { |
| 7196 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7197 | .block_erase = spi_block_erase_c7, |
| 7198 | } |
| 7199 | }, |
| 7200 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
| 7201 | .unlock = spi_disable_blockprotect, |
| 7202 | .write = spi_chip_write_256, |
| 7203 | .read = spi_chip_read, |
| 7204 | .voltage = {2700, 3600}, |
| 7205 | }, |
| 7206 | |
| 7207 | { |
| 7208 | .vendor = "Micron/Numonyx/ST", |
| 7209 | .name = "M25P64", |
| 7210 | .bustype = BUS_SPI, |
| 7211 | .manufacture_id = ST_ID, |
| 7212 | .model_id = ST_M25P64, |
| 7213 | .total_size = 8192, |
| 7214 | .page_size = 256, |
| 7215 | .feature_bits = FEATURE_WRSR_WREN, |
| 7216 | .tested = TEST_OK_PREW, |
| 7217 | .probe = probe_spi_rdid, |
| 7218 | .probe_timing = TIMING_ZERO, |
| 7219 | .block_erasers = |
| 7220 | { |
| 7221 | { |
| 7222 | .eraseblocks = { {64 * 1024, 128} }, |
| 7223 | .block_erase = spi_block_erase_d8, |
| 7224 | }, { |
| 7225 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7226 | .block_erase = spi_block_erase_c7, |
| 7227 | } |
| 7228 | }, |
| 7229 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
| 7230 | .unlock = spi_disable_blockprotect, |
| 7231 | .write = spi_chip_write_256, |
| 7232 | .read = spi_chip_read, |
| 7233 | .voltage = {2700, 3600}, |
| 7234 | }, |
| 7235 | |
| 7236 | { |
| 7237 | .vendor = "Micron/Numonyx/ST", |
| 7238 | .name = "M25P128", |
| 7239 | .bustype = BUS_SPI, |
| 7240 | .manufacture_id = ST_ID, |
| 7241 | .model_id = ST_M25P128, |
| 7242 | .total_size = 16384, |
| 7243 | .page_size = 256, |
| 7244 | .feature_bits = FEATURE_WRSR_WREN, |
| 7245 | .tested = TEST_OK_PREW, |
| 7246 | .probe = probe_spi_rdid, |
| 7247 | .probe_timing = TIMING_ZERO, |
| 7248 | .block_erasers = |
| 7249 | { |
| 7250 | { |
| 7251 | .eraseblocks = { {256 * 1024, 64} }, |
| 7252 | .block_erase = spi_block_erase_d8, |
| 7253 | }, { |
| 7254 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7255 | .block_erase = spi_block_erase_c7, |
| 7256 | } |
| 7257 | }, |
| 7258 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
| 7259 | .unlock = spi_disable_blockprotect, |
| 7260 | .write = spi_chip_write_256, |
| 7261 | .read = spi_chip_read, |
| 7262 | .voltage = {2700, 3600}, |
| 7263 | }, |
| 7264 | |
| 7265 | { |
| 7266 | .vendor = "Micron/Numonyx/ST", |
| 7267 | .name = "M25PE10", |
| 7268 | .bustype = BUS_SPI, |
| 7269 | .manufacture_id = ST_ID, |
| 7270 | .model_id = ST_M25PE10, |
| 7271 | .total_size = 128, |
| 7272 | .page_size = 256, |
| 7273 | .feature_bits = FEATURE_WRSR_WREN, |
| 7274 | .tested = TEST_UNTESTED, |
| 7275 | .probe = probe_spi_rdid, |
| 7276 | .probe_timing = TIMING_ZERO, |
| 7277 | .block_erasers = |
| 7278 | { |
| 7279 | { |
| 7280 | .eraseblocks = { {4 * 1024, 32} }, |
| 7281 | .block_erase = spi_block_erase_20, |
| 7282 | }, { |
| 7283 | .eraseblocks = { {64 * 1024, 2} }, |
| 7284 | .block_erase = spi_block_erase_d8, |
| 7285 | }, { |
| 7286 | .eraseblocks = { {128 * 1024, 1} }, |
| 7287 | .block_erase = spi_block_erase_c7, |
| 7288 | } |
| 7289 | }, |
| 7290 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 7291 | .unlock = spi_disable_blockprotect, |
| 7292 | .write = spi_chip_write_256, |
| 7293 | .read = spi_chip_read, |
| 7294 | .voltage = {2700, 3600}, |
| 7295 | }, |
| 7296 | |
| 7297 | { |
| 7298 | .vendor = "Micron/Numonyx/ST", |
| 7299 | .name = "M25PE20", |
| 7300 | .bustype = BUS_SPI, |
| 7301 | .manufacture_id = ST_ID, |
| 7302 | .model_id = ST_M25PE20, |
| 7303 | .total_size = 256, |
| 7304 | .page_size = 256, |
| 7305 | .feature_bits = FEATURE_WRSR_WREN, |
| 7306 | .tested = TEST_UNTESTED, |
| 7307 | .probe = probe_spi_rdid, |
| 7308 | .probe_timing = TIMING_ZERO, |
| 7309 | .block_erasers = |
| 7310 | { |
| 7311 | { |
| 7312 | .eraseblocks = { {4 * 1024, 64} }, |
| 7313 | .block_erase = spi_block_erase_20, |
| 7314 | }, { |
| 7315 | .eraseblocks = { {64 * 1024, 4} }, |
| 7316 | .block_erase = spi_block_erase_d8, |
| 7317 | }, { |
| 7318 | .eraseblocks = { {256 * 1024, 1} }, |
| 7319 | .block_erase = spi_block_erase_c7, |
| 7320 | } |
| 7321 | }, |
| 7322 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 7323 | .unlock = spi_disable_blockprotect, |
| 7324 | .write = spi_chip_write_256, |
| 7325 | .read = spi_chip_read, |
| 7326 | .voltage = {2700, 3600}, |
| 7327 | }, |
| 7328 | |
| 7329 | { |
| 7330 | .vendor = "Micron/Numonyx/ST", |
| 7331 | .name = "M25PE40", |
| 7332 | .bustype = BUS_SPI, |
| 7333 | .manufacture_id = ST_ID, |
| 7334 | .model_id = ST_M25PE40, |
| 7335 | .total_size = 512, |
| 7336 | .page_size = 256, |
| 7337 | .feature_bits = FEATURE_WRSR_WREN, |
| 7338 | .tested = TEST_UNTESTED, |
| 7339 | .probe = probe_spi_rdid, |
| 7340 | .probe_timing = TIMING_ZERO, |
| 7341 | .block_erasers = |
| 7342 | { |
| 7343 | { |
| 7344 | .eraseblocks = { {4 * 1024, 128} }, |
| 7345 | .block_erase = spi_block_erase_20, |
| 7346 | }, { |
| 7347 | .eraseblocks = { {64 * 1024, 8} }, |
| 7348 | .block_erase = spi_block_erase_d8, |
| 7349 | }, { |
| 7350 | .eraseblocks = { {512 * 1024, 1} }, |
| 7351 | .block_erase = spi_block_erase_c7, |
| 7352 | } |
| 7353 | }, |
| 7354 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 7355 | .unlock = spi_disable_blockprotect, |
| 7356 | .write = spi_chip_write_256, |
| 7357 | .read = spi_chip_read, |
| 7358 | .voltage = {2700, 3600}, |
| 7359 | }, |
| 7360 | |
| 7361 | { |
| 7362 | .vendor = "Micron/Numonyx/ST", |
| 7363 | .name = "M25PE80", |
| 7364 | .bustype = BUS_SPI, |
| 7365 | .manufacture_id = ST_ID, |
| 7366 | .model_id = ST_M25PE80, |
| 7367 | .total_size = 1024, |
| 7368 | .page_size = 256, |
| 7369 | .feature_bits = FEATURE_WRSR_WREN, |
| 7370 | .tested = TEST_OK_PREW, |
| 7371 | .probe = probe_spi_rdid, |
| 7372 | .probe_timing = TIMING_ZERO, |
| 7373 | .block_erasers = |
| 7374 | { |
| 7375 | { |
| 7376 | .eraseblocks = { {4 * 1024, 256} }, |
| 7377 | .block_erase = spi_block_erase_20, |
| 7378 | }, { |
| 7379 | .eraseblocks = { {64 * 1024, 16} }, |
| 7380 | .block_erase = spi_block_erase_d8, |
| 7381 | }, { |
| 7382 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7383 | .block_erase = spi_block_erase_c7, |
| 7384 | } |
| 7385 | }, |
| 7386 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 7387 | .unlock = spi_disable_blockprotect, |
| 7388 | .write = spi_chip_write_256, |
| 7389 | .read = spi_chip_read, |
| 7390 | .voltage = {2700, 3600}, |
| 7391 | }, |
| 7392 | |
| 7393 | { |
| 7394 | .vendor = "Micron/Numonyx/ST", |
| 7395 | .name = "M25PE16", |
| 7396 | .bustype = BUS_SPI, |
| 7397 | .manufacture_id = ST_ID, |
| 7398 | .model_id = ST_M25PE16, |
| 7399 | .total_size = 2048, |
| 7400 | .page_size = 256, |
| 7401 | .feature_bits = FEATURE_WRSR_WREN, |
| 7402 | .tested = TEST_UNTESTED, |
| 7403 | .probe = probe_spi_rdid, |
| 7404 | .probe_timing = TIMING_ZERO, |
| 7405 | .block_erasers = |
| 7406 | { |
| 7407 | { |
| 7408 | .eraseblocks = { {4 * 1024, 512} }, |
| 7409 | .block_erase = spi_block_erase_20, |
| 7410 | }, { |
| 7411 | .eraseblocks = { {64 * 1024, 32} }, |
| 7412 | .block_erase = spi_block_erase_d8, |
| 7413 | }, { |
| 7414 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7415 | .block_erase = spi_block_erase_c7, |
| 7416 | } |
| 7417 | }, |
| 7418 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 7419 | .unlock = spi_disable_blockprotect, |
| 7420 | .write = spi_chip_write_256, |
| 7421 | .read = spi_chip_read, |
| 7422 | .voltage = {2700, 3600}, |
| 7423 | }, |
| 7424 | |
| 7425 | { |
| 7426 | .vendor = "Micron/Numonyx/ST", |
| 7427 | .name = "M25PX80", |
| 7428 | .bustype = BUS_SPI, |
| 7429 | .manufacture_id = ST_ID, |
| 7430 | .model_id = ST_M25PX80, |
| 7431 | .total_size = 1024, |
| 7432 | .page_size = 256, |
| 7433 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7434 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7435 | .tested = TEST_OK_PREW, |
| 7436 | .probe = probe_spi_rdid, |
| 7437 | .probe_timing = TIMING_ZERO, |
| 7438 | .block_erasers = { |
| 7439 | { |
| 7440 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 7441 | .block_erase = spi_block_erase_20, |
| 7442 | }, { |
| 7443 | .eraseblocks = { {64 * 1024, 16} }, |
| 7444 | .block_erase = spi_block_erase_d8, |
| 7445 | }, { |
| 7446 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7447 | .block_erase = spi_block_erase_c7, |
| 7448 | } |
| 7449 | }, |
| 7450 | .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */ |
| 7451 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 7452 | .write = spi_chip_write_256, |
| 7453 | .read = spi_chip_read, |
| 7454 | .voltage = {2700, 3600}, |
| 7455 | }, |
| 7456 | |
| 7457 | { |
| 7458 | .vendor = "Micron/Numonyx/ST", |
| 7459 | .name = "M25PX16", |
| 7460 | .bustype = BUS_SPI, |
| 7461 | .manufacture_id = ST_ID, |
| 7462 | .model_id = ST_M25PX16, |
| 7463 | .total_size = 2048, |
| 7464 | .page_size = 256, |
| 7465 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 7466 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7467 | .tested = TEST_OK_PREW, |
| 7468 | .probe = probe_spi_rdid, |
| 7469 | .probe_timing = TIMING_ZERO, |
| 7470 | .block_erasers = |
| 7471 | { |
| 7472 | { |
| 7473 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 7474 | .block_erase = spi_block_erase_20, |
| 7475 | }, { |
| 7476 | .eraseblocks = { {64 * 1024, 32} }, |
| 7477 | .block_erase = spi_block_erase_d8, |
| 7478 | }, { |
| 7479 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7480 | .block_erase = spi_block_erase_c7, |
| 7481 | } |
| 7482 | }, |
| 7483 | .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */ |
| 7484 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 7485 | .write = spi_chip_write_256, |
| 7486 | .read = spi_chip_read, |
| 7487 | }, |
| 7488 | |
| 7489 | { |
| 7490 | .vendor = "Micron/Numonyx/ST", |
| 7491 | .name = "M25PX32", |
| 7492 | .bustype = BUS_SPI, |
| 7493 | .manufacture_id = ST_ID, |
| 7494 | .model_id = ST_M25PX32, |
| 7495 | .total_size = 4096, |
| 7496 | .page_size = 256, |
| 7497 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 7498 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7499 | .tested = TEST_OK_PRE, |
| 7500 | .probe = probe_spi_rdid, |
| 7501 | .probe_timing = TIMING_ZERO, |
| 7502 | .block_erasers = |
| 7503 | { |
| 7504 | { |
| 7505 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 7506 | .block_erase = spi_block_erase_20, |
| 7507 | }, { |
| 7508 | .eraseblocks = { {64 * 1024, 64} }, |
| 7509 | .block_erase = spi_block_erase_d8, |
| 7510 | }, { |
| 7511 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7512 | .block_erase = spi_block_erase_c7, |
| 7513 | } |
| 7514 | }, |
| 7515 | .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */ |
| 7516 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 7517 | .write = spi_chip_write_256, |
| 7518 | .read = spi_chip_read, |
| 7519 | .voltage = {2700, 3600}, |
| 7520 | }, |
| 7521 | |
| 7522 | { |
| 7523 | .vendor = "Micron/Numonyx/ST", |
| 7524 | .name = "M25PX64", |
| 7525 | .bustype = BUS_SPI, |
| 7526 | .manufacture_id = ST_ID, |
| 7527 | .model_id = ST_M25PX64, |
| 7528 | .total_size = 8192, |
| 7529 | .page_size = 256, |
| 7530 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 7531 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7532 | .tested = TEST_OK_PRE, |
| 7533 | .probe = probe_spi_rdid, |
| 7534 | .probe_timing = TIMING_ZERO, |
| 7535 | .block_erasers = |
| 7536 | { |
| 7537 | { |
| 7538 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 7539 | .block_erase = spi_block_erase_20, |
| 7540 | }, { |
| 7541 | .eraseblocks = { {64 * 1024, 128} }, |
| 7542 | .block_erase = spi_block_erase_d8, |
| 7543 | }, { |
| 7544 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7545 | .block_erase = spi_block_erase_c7, |
| 7546 | } |
| 7547 | }, |
| 7548 | .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */ |
| 7549 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 7550 | .write = spi_chip_write_256, |
| 7551 | .read = spi_chip_read, |
| 7552 | }, |
| 7553 | |
| 7554 | { |
| 7555 | .vendor = "Micron/Numonyx/ST", |
| 7556 | .name = "M45PE10", |
| 7557 | .bustype = BUS_SPI, |
| 7558 | .manufacture_id = ST_ID, |
| 7559 | .model_id = ST_M45PE10, |
| 7560 | .total_size = 128, |
| 7561 | .page_size = 256, |
| 7562 | .tested = TEST_UNTESTED, |
| 7563 | .probe = probe_spi_rdid, |
| 7564 | .probe_timing = TIMING_ZERO, |
| 7565 | .block_erasers = { |
| 7566 | { |
| 7567 | .eraseblocks = { {256, 512} }, |
| 7568 | .block_erase = spi_block_erase_db, |
| 7569 | }, { |
| 7570 | .eraseblocks = { {64 * 1024, 2} }, |
| 7571 | .block_erase = spi_block_erase_d8, |
| 7572 | } |
| 7573 | }, |
| 7574 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7575 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7576 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7577 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7578 | .voltage = {2700, 3600}, |
| 7579 | }, |
| 7580 | |
| 7581 | { |
| 7582 | .vendor = "Micron/Numonyx/ST", |
| 7583 | .name = "M45PE20", |
| 7584 | .bustype = BUS_SPI, |
| 7585 | .manufacture_id = ST_ID, |
| 7586 | .model_id = ST_M45PE20, |
| 7587 | .total_size = 256, |
| 7588 | .page_size = 256, |
| 7589 | .tested = TEST_UNTESTED, |
| 7590 | .probe = probe_spi_rdid, |
| 7591 | .probe_timing = TIMING_ZERO, |
| 7592 | .block_erasers = { |
| 7593 | { |
| 7594 | .eraseblocks = { {256, 1024} }, |
| 7595 | .block_erase = spi_block_erase_db, |
| 7596 | }, { |
| 7597 | .eraseblocks = { {64 * 1024, 4} }, |
| 7598 | .block_erase = spi_block_erase_d8, |
| 7599 | } |
| 7600 | }, |
| 7601 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7602 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7603 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7604 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7605 | .voltage = {2700, 3600}, |
| 7606 | }, |
| 7607 | |
| 7608 | { |
| 7609 | .vendor = "Micron/Numonyx/ST", |
| 7610 | .name = "M45PE40", |
| 7611 | .bustype = BUS_SPI, |
| 7612 | .manufacture_id = ST_ID, |
| 7613 | .model_id = ST_M45PE40, |
| 7614 | .total_size = 512, |
| 7615 | .page_size = 256, |
| 7616 | .tested = TEST_UNTESTED, |
| 7617 | .probe = probe_spi_rdid, |
| 7618 | .probe_timing = TIMING_ZERO, |
| 7619 | .block_erasers = { |
| 7620 | { |
| 7621 | .eraseblocks = { {256, 2048} }, |
| 7622 | .block_erase = spi_block_erase_db, |
| 7623 | }, { |
| 7624 | .eraseblocks = { {64 * 1024, 8} }, |
| 7625 | .block_erase = spi_block_erase_d8, |
| 7626 | } |
| 7627 | }, |
| 7628 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7629 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7630 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7631 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7632 | .voltage = {2700, 3600}, |
| 7633 | }, |
| 7634 | |
| 7635 | { |
| 7636 | .vendor = "Micron/Numonyx/ST", |
| 7637 | .name = "M45PE80", |
| 7638 | .bustype = BUS_SPI, |
| 7639 | .manufacture_id = ST_ID, |
| 7640 | .model_id = ST_M45PE80, |
| 7641 | .total_size = 1024, |
| 7642 | .page_size = 256, |
| 7643 | .tested = TEST_UNTESTED, |
| 7644 | .probe = probe_spi_rdid, |
| 7645 | .probe_timing = TIMING_ZERO, |
| 7646 | .block_erasers = { |
| 7647 | { |
| 7648 | .eraseblocks = { {256, 4096} }, |
| 7649 | .block_erase = spi_block_erase_db, |
| 7650 | }, { |
| 7651 | .eraseblocks = { {64 * 1024, 16} }, |
| 7652 | .block_erase = spi_block_erase_d8, |
| 7653 | } |
| 7654 | }, |
| 7655 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7656 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7657 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7658 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7659 | .voltage = {2700, 3600}, |
| 7660 | }, |
| 7661 | |
| 7662 | { |
| 7663 | .vendor = "Micron/Numonyx/ST", |
| 7664 | .name = "M45PE16", |
| 7665 | .bustype = BUS_SPI, |
| 7666 | .manufacture_id = ST_ID, |
| 7667 | .model_id = ST_M45PE16, |
| 7668 | .total_size = 2048, |
| 7669 | .page_size = 256, |
| 7670 | .tested = TEST_UNTESTED, |
| 7671 | .probe = probe_spi_rdid, |
| 7672 | .probe_timing = TIMING_ZERO, |
| 7673 | .block_erasers = { |
| 7674 | { |
| 7675 | .eraseblocks = { {256, 8192} }, |
| 7676 | .block_erase = spi_block_erase_db, |
| 7677 | }, { |
| 7678 | .eraseblocks = { {64 * 1024, 32} }, |
| 7679 | .block_erase = spi_block_erase_d8, |
| 7680 | } |
| 7681 | }, |
| 7682 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7683 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7684 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7685 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7686 | .voltage = {2700, 3600}, |
| 7687 | }, |
| 7688 | |
| 7689 | { |
| 7690 | .vendor = "Micron/Numonyx/ST", |
| 7691 | .name = "N25Q016", |
| 7692 | .bustype = BUS_SPI, |
| 7693 | .manufacture_id = ST_ID, |
| 7694 | .model_id = ST_N25Q016__1E, |
| 7695 | .total_size = 2048, |
| 7696 | .page_size = 256, |
| 7697 | /* supports SFDP */ |
| 7698 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7699 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7700 | .tested = TEST_UNTESTED, |
| 7701 | .probe = probe_spi_rdid, |
| 7702 | .probe_timing = TIMING_ZERO, |
| 7703 | .block_erasers = |
| 7704 | { |
| 7705 | { |
| 7706 | .eraseblocks = { {4 * 1024, 512} }, |
| 7707 | .block_erase = spi_block_erase_20, |
| 7708 | }, { |
| 7709 | .eraseblocks = { {32 * 1024, 64} }, |
| 7710 | .block_erase = spi_block_erase_52, |
| 7711 | }, { |
| 7712 | .eraseblocks = { {64 * 1024, 32} }, |
| 7713 | .block_erase = spi_block_erase_d8, |
| 7714 | }, { |
| 7715 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7716 | .block_erase = spi_block_erase_c7, |
| 7717 | } |
| 7718 | }, |
| 7719 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7720 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7721 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7722 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7723 | .voltage = {1700, 2000}, |
| 7724 | }, |
| 7725 | |
| 7726 | { |
| 7727 | .vendor = "Micron/Numonyx/ST", |
| 7728 | .name = "N25Q032..1E", |
| 7729 | .bustype = BUS_SPI, |
| 7730 | .manufacture_id = ST_ID, |
| 7731 | .model_id = ST_N25Q032__1E, |
| 7732 | .total_size = 4096, |
| 7733 | .page_size = 256, |
| 7734 | /* supports SFDP */ |
| 7735 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7736 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7737 | .tested = TEST_UNTESTED, |
| 7738 | .probe = probe_spi_rdid, |
| 7739 | .probe_timing = TIMING_ZERO, |
| 7740 | .block_erasers = |
| 7741 | { |
| 7742 | { |
| 7743 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7744 | .block_erase = spi_block_erase_20, |
| 7745 | }, { |
| 7746 | .eraseblocks = { {64 * 1024, 64} }, |
| 7747 | .block_erase = spi_block_erase_d8, |
| 7748 | }, { |
| 7749 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7750 | .block_erase = spi_block_erase_c7, |
| 7751 | } |
| 7752 | }, |
| 7753 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7754 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7755 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7756 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7757 | .voltage = {1700, 2000}, |
| 7758 | }, |
| 7759 | |
| 7760 | { |
| 7761 | .vendor = "Micron/Numonyx/ST", |
| 7762 | .name = "N25Q032..3E", |
| 7763 | .bustype = BUS_SPI, |
| 7764 | .manufacture_id = ST_ID, |
| 7765 | .model_id = ST_N25Q032__3E, |
| 7766 | .total_size = 4096, |
| 7767 | .page_size = 256, |
| 7768 | /* supports SFDP */ |
| 7769 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7770 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7771 | .tested = TEST_OK_PREW, |
| 7772 | .probe = probe_spi_rdid, |
| 7773 | .probe_timing = TIMING_ZERO, |
| 7774 | .block_erasers = |
| 7775 | { |
| 7776 | { |
| 7777 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7778 | .block_erase = spi_block_erase_20, |
| 7779 | }, { |
| 7780 | .eraseblocks = { {64 * 1024, 64} }, |
| 7781 | .block_erase = spi_block_erase_d8, |
| 7782 | }, { |
| 7783 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7784 | .block_erase = spi_block_erase_c7, |
| 7785 | } |
| 7786 | }, |
| 7787 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7788 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7789 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7790 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7791 | .voltage = {2700, 3600}, |
| 7792 | }, |
| 7793 | |
| 7794 | { |
| 7795 | .vendor = "Micron/Numonyx/ST", |
| 7796 | .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 7797 | .bustype = BUS_SPI, |
| 7798 | .manufacture_id = ST_ID, |
| 7799 | .model_id = ST_N25Q064__1E, |
| 7800 | .total_size = 8192, |
| 7801 | .page_size = 256, |
| 7802 | /* supports SFDP */ |
| 7803 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7804 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7805 | .tested = TEST_UNTESTED, |
| 7806 | .probe = probe_spi_rdid, |
| 7807 | .probe_timing = TIMING_ZERO, |
| 7808 | .block_erasers = |
| 7809 | { |
| 7810 | { |
| 7811 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 7812 | .block_erase = spi_block_erase_20, |
| 7813 | }, { |
| 7814 | .eraseblocks = { {64 * 1024, 128} }, |
| 7815 | .block_erase = spi_block_erase_d8, |
| 7816 | }, { |
| 7817 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7818 | .block_erase = spi_block_erase_c7, |
| 7819 | } |
| 7820 | }, |
| 7821 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7822 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7823 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7824 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7825 | .voltage = {1700, 2000}, |
| 7826 | }, |
| 7827 | |
| 7828 | { |
| 7829 | .vendor = "Micron/Numonyx/ST", |
| 7830 | .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 7831 | .bustype = BUS_SPI, |
| 7832 | .manufacture_id = ST_ID, |
| 7833 | .model_id = ST_N25Q064__3E, |
| 7834 | .total_size = 8192, |
| 7835 | .page_size = 256, |
| 7836 | /* supports SFDP */ |
| 7837 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7838 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7839 | .tested = TEST_OK_PREW, |
| 7840 | .probe = probe_spi_rdid, |
| 7841 | .probe_timing = TIMING_ZERO, |
| 7842 | .block_erasers = |
| 7843 | { |
| 7844 | { |
| 7845 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 7846 | .block_erase = spi_block_erase_20, |
| 7847 | }, { |
| 7848 | .eraseblocks = { {64 * 1024, 128} }, |
| 7849 | .block_erase = spi_block_erase_d8, |
| 7850 | }, { |
| 7851 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7852 | .block_erase = spi_block_erase_c7, |
| 7853 | } |
| 7854 | }, |
| 7855 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7856 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7857 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7858 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7859 | .voltage = {2700, 3600}, |
| 7860 | }, |
| 7861 | |
| 7862 | { |
| 7863 | .vendor = "Micron/Numonyx/ST", |
| 7864 | .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 7865 | .bustype = BUS_SPI, |
| 7866 | .manufacture_id = ST_ID, |
| 7867 | .model_id = ST_N25Q128__1E, |
| 7868 | .total_size = 16384, |
| 7869 | .page_size = 256, |
| 7870 | /* supports SFDP */ |
| 7871 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7872 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7873 | .tested = TEST_UNTESTED, |
| 7874 | .probe = probe_spi_rdid, |
| 7875 | .probe_timing = TIMING_ZERO, |
| 7876 | .block_erasers = { |
| 7877 | { |
| 7878 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 7879 | .block_erase = spi_block_erase_20, |
| 7880 | }, { |
| 7881 | .eraseblocks = { {64 * 1024, 256} }, |
| 7882 | .block_erase = spi_block_erase_d8, |
| 7883 | }, { |
| 7884 | .eraseblocks = { {16384 * 1024, 1} }, |
| 7885 | .block_erase = spi_block_erase_c7, |
| 7886 | } |
| 7887 | }, |
| 7888 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7889 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7890 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7891 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7892 | .voltage = {1700, 2000}, |
| 7893 | }, |
| 7894 | |
| 7895 | { |
| 7896 | .vendor = "Micron/Numonyx/ST", |
| 7897 | .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 7898 | .bustype = BUS_SPI, |
| 7899 | .manufacture_id = ST_ID, |
| 7900 | .model_id = ST_N25Q128__3E, |
| 7901 | .total_size = 16384, |
| 7902 | .page_size = 256, |
| 7903 | /* supports SFDP */ |
| 7904 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7905 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7906 | .tested = TEST_OK_PREW, |
| 7907 | .probe = probe_spi_rdid, |
| 7908 | .probe_timing = TIMING_ZERO, |
| 7909 | .block_erasers = { |
| 7910 | { |
| 7911 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 7912 | .block_erase = spi_block_erase_20, |
| 7913 | }, { |
| 7914 | .eraseblocks = { {64 * 1024, 256} }, |
| 7915 | .block_erase = spi_block_erase_d8, |
| 7916 | }, { |
| 7917 | .eraseblocks = { {16384 * 1024, 1} }, |
| 7918 | .block_erase = spi_block_erase_c7, |
| 7919 | } |
| 7920 | }, |
| 7921 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7922 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7923 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7924 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7925 | .voltage = {2700, 3600}, |
| 7926 | }, |
| 7927 | |
| 7928 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 7929 | .vendor = "MoselVitelic", |
| 7930 | .name = "V29C51000B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7931 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 7932 | .manufacture_id = SYNCMOS_MVC_ID, |
| 7933 | .model_id = MVC_V29C51000B, |
| 7934 | .total_size = 64, |
| 7935 | .page_size = 512, |
| 7936 | .feature_bits = FEATURE_EITHER_RESET, |
| 7937 | .tested = TEST_UNTESTED, |
| 7938 | .probe = probe_jedec, |
| 7939 | .probe_timing = TIMING_ZERO, |
| 7940 | .block_erasers = |
| 7941 | { |
| 7942 | { |
| 7943 | .eraseblocks = { {512, 128} }, |
| 7944 | .block_erase = erase_sector_jedec, |
| 7945 | }, { |
| 7946 | .eraseblocks = { {64 * 1024, 1} }, |
| 7947 | .block_erase = erase_chip_block_jedec, |
| 7948 | }, |
| 7949 | }, |
| 7950 | .write = write_jedec_1, |
| 7951 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7952 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 7953 | }, |
| 7954 | |
| 7955 | { |
| 7956 | .vendor = "MoselVitelic", |
| 7957 | .name = "V29C51000T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7958 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 7959 | .manufacture_id = SYNCMOS_MVC_ID, |
| 7960 | .model_id = MVC_V29C51000T, |
| 7961 | .total_size = 64, |
| 7962 | .page_size = 512, |
| 7963 | .feature_bits = FEATURE_EITHER_RESET, |
| 7964 | .tested = TEST_UNTESTED, |
| 7965 | .probe = probe_jedec, |
| 7966 | .probe_timing = TIMING_ZERO, |
| 7967 | .block_erasers = |
| 7968 | { |
| 7969 | { |
| 7970 | .eraseblocks = { {512, 128} }, |
| 7971 | .block_erase = erase_sector_jedec, |
| 7972 | }, { |
| 7973 | .eraseblocks = { {64 * 1024, 1} }, |
| 7974 | .block_erase = erase_chip_block_jedec, |
| 7975 | }, |
| 7976 | }, |
| 7977 | .write = write_jedec_1, |
| 7978 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7979 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 7980 | }, |
| 7981 | |
| 7982 | { |
| 7983 | .vendor = "MoselVitelic", |
| 7984 | .name = "V29C51400B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7985 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 7986 | .manufacture_id = SYNCMOS_MVC_ID, |
| 7987 | .model_id = MVC_V29C51400B, |
| 7988 | .total_size = 512, |
| 7989 | .page_size = 1024, |
| 7990 | .feature_bits = FEATURE_EITHER_RESET, |
| 7991 | .tested = TEST_UNTESTED, |
| 7992 | .probe = probe_jedec, |
| 7993 | .probe_timing = TIMING_ZERO, |
| 7994 | .block_erasers = |
| 7995 | { |
| 7996 | { |
| 7997 | .eraseblocks = { {1024, 512} }, |
| 7998 | .block_erase = erase_sector_jedec, |
| 7999 | }, { |
| 8000 | .eraseblocks = { {512 * 1024, 1} }, |
| 8001 | .block_erase = erase_chip_block_jedec, |
| 8002 | }, |
| 8003 | }, |
| 8004 | .write = write_jedec_1, |
| 8005 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8006 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8007 | }, |
| 8008 | |
| 8009 | { |
| 8010 | .vendor = "MoselVitelic", |
| 8011 | .name = "V29C51400T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8012 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8013 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8014 | .model_id = MVC_V29C51400T, |
| 8015 | .total_size = 512, |
| 8016 | .page_size = 1024, |
| 8017 | .feature_bits = FEATURE_EITHER_RESET, |
| 8018 | .tested = TEST_UNTESTED, |
| 8019 | .probe = probe_jedec, |
| 8020 | .probe_timing = TIMING_ZERO, |
| 8021 | .block_erasers = |
| 8022 | { |
| 8023 | { |
| 8024 | .eraseblocks = { {1024, 512} }, |
| 8025 | .block_erase = erase_sector_jedec, |
| 8026 | }, { |
| 8027 | .eraseblocks = { {512 * 1024, 1} }, |
| 8028 | .block_erase = erase_chip_block_jedec, |
| 8029 | }, |
| 8030 | }, |
| 8031 | .write = write_jedec_1, |
| 8032 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8033 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8034 | }, |
| 8035 | |
| 8036 | { |
| 8037 | .vendor = "MoselVitelic", |
| 8038 | .name = "V29LC51000", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8039 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8040 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8041 | .model_id = MVC_V29LC51000, |
| 8042 | .total_size = 64, |
| 8043 | .page_size = 512, |
| 8044 | .feature_bits = FEATURE_EITHER_RESET, |
| 8045 | .tested = TEST_UNTESTED, |
| 8046 | .probe = probe_jedec, |
| 8047 | .probe_timing = TIMING_ZERO, |
| 8048 | .block_erasers = |
| 8049 | { |
| 8050 | { |
| 8051 | .eraseblocks = { {512, 128} }, |
| 8052 | .block_erase = erase_sector_jedec, |
| 8053 | }, { |
| 8054 | .eraseblocks = { {64 * 1024, 1} }, |
| 8055 | .block_erase = erase_chip_block_jedec, |
| 8056 | }, |
| 8057 | }, |
| 8058 | .write = write_jedec_1, |
| 8059 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8060 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8061 | }, |
| 8062 | |
| 8063 | { |
| 8064 | .vendor = "MoselVitelic", |
| 8065 | .name = "V29LC51001", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8066 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8067 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8068 | .model_id = MVC_V29LC51001, |
| 8069 | .total_size = 128, |
| 8070 | .page_size = 512, |
| 8071 | .feature_bits = FEATURE_EITHER_RESET, |
| 8072 | .tested = TEST_UNTESTED, |
| 8073 | .probe = probe_jedec, |
| 8074 | .probe_timing = TIMING_ZERO, |
| 8075 | .block_erasers = |
| 8076 | { |
| 8077 | { |
| 8078 | .eraseblocks = { {512, 256} }, |
| 8079 | .block_erase = erase_sector_jedec, |
| 8080 | }, { |
| 8081 | .eraseblocks = { {128 * 1024, 1} }, |
| 8082 | .block_erase = erase_chip_block_jedec, |
| 8083 | }, |
| 8084 | }, |
| 8085 | .write = write_jedec_1, |
| 8086 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8087 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8088 | }, |
| 8089 | |
| 8090 | { |
| 8091 | .vendor = "MoselVitelic", |
| 8092 | .name = "V29LC51002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8093 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8094 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8095 | .model_id = MVC_V29LC51002, |
| 8096 | .total_size = 256, |
| 8097 | .page_size = 512, |
| 8098 | .feature_bits = FEATURE_EITHER_RESET, |
| 8099 | .tested = TEST_UNTESTED, |
| 8100 | .probe = probe_jedec, |
| 8101 | .probe_timing = TIMING_ZERO, |
| 8102 | .block_erasers = |
| 8103 | { |
| 8104 | { |
| 8105 | .eraseblocks = { {512, 512} }, |
| 8106 | .block_erase = erase_sector_jedec, |
| 8107 | }, { |
| 8108 | .eraseblocks = { {256 * 1024, 1} }, |
| 8109 | .block_erase = erase_chip_block_jedec, |
| 8110 | }, |
| 8111 | }, |
| 8112 | .write = write_jedec_1, |
| 8113 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8114 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8115 | }, |
| 8116 | |
| 8117 | { |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 8118 | .vendor = "Nantronics", |
| 8119 | .name = "N25S10", |
| 8120 | .bustype = BUS_SPI, |
| 8121 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 8122 | .model_id = NANTRONICS_N25S10, |
| 8123 | .total_size = 128, |
| 8124 | .page_size = 256, |
| 8125 | .feature_bits = FEATURE_WRSR_WREN, |
| 8126 | .tested = TEST_UNTESTED, |
| 8127 | .probe = probe_spi_rdid, |
| 8128 | .probe_timing = TIMING_ZERO, |
| 8129 | .block_erasers = |
| 8130 | { |
| 8131 | { |
| 8132 | .eraseblocks = { {4 * 1024, 32} }, |
| 8133 | .block_erase = spi_block_erase_20, |
| 8134 | }, { |
| 8135 | .eraseblocks = { {4 * 1024, 32} }, |
| 8136 | .block_erase = spi_block_erase_d7, |
| 8137 | }, { |
| 8138 | .eraseblocks = { {32 * 1024, 4} }, |
| 8139 | .block_erase = spi_block_erase_52, |
| 8140 | }, { |
| 8141 | .eraseblocks = { {64 * 1024, 2} }, |
| 8142 | .block_erase = spi_block_erase_d8, |
| 8143 | }, { |
| 8144 | .eraseblocks = { {128 * 1024, 1} }, |
| 8145 | .block_erase = spi_block_erase_60, |
| 8146 | }, { |
| 8147 | .eraseblocks = { {128 * 1024, 1} }, |
| 8148 | .block_erase = spi_block_erase_c7, |
| 8149 | } |
| 8150 | }, |
| 8151 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 8152 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8153 | .write = spi_chip_write_256, |
| 8154 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 8155 | .voltage = {2700, 3600}, |
| 8156 | }, |
| 8157 | |
| 8158 | { |
| 8159 | .vendor = "Nantronics", |
| 8160 | .name = "N25S20", |
| 8161 | .bustype = BUS_SPI, |
| 8162 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 8163 | .model_id = NANTRONICS_N25S20, |
| 8164 | .total_size = 256, |
| 8165 | .page_size = 256, |
| 8166 | .feature_bits = FEATURE_WRSR_WREN, |
| 8167 | .tested = TEST_UNTESTED, |
| 8168 | .probe = probe_spi_rdid, |
| 8169 | .probe_timing = TIMING_ZERO, |
| 8170 | .block_erasers = |
| 8171 | { |
| 8172 | { |
| 8173 | .eraseblocks = { {4 * 1024, 64} }, |
| 8174 | .block_erase = spi_block_erase_20, |
| 8175 | }, { |
| 8176 | .eraseblocks = { {4 * 1024, 64} }, |
| 8177 | .block_erase = spi_block_erase_d7, |
| 8178 | }, { |
| 8179 | .eraseblocks = { {32 * 1024, 8} }, |
| 8180 | .block_erase = spi_block_erase_52, |
| 8181 | }, { |
| 8182 | .eraseblocks = { {64 * 1024, 4} }, |
| 8183 | .block_erase = spi_block_erase_d8, |
| 8184 | }, { |
| 8185 | .eraseblocks = { {256 * 1024, 1} }, |
| 8186 | .block_erase = spi_block_erase_60, |
| 8187 | }, { |
| 8188 | .eraseblocks = { {256 * 1024, 1} }, |
| 8189 | .block_erase = spi_block_erase_c7, |
| 8190 | } |
| 8191 | }, |
| 8192 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 8193 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8194 | .write = spi_chip_write_256, |
| 8195 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 8196 | .voltage = {2700, 3600}, |
| 8197 | }, |
| 8198 | |
| 8199 | { |
| 8200 | .vendor = "Nantronics", |
| 8201 | .name = "N25S40", |
| 8202 | .bustype = BUS_SPI, |
| 8203 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 8204 | .model_id = NANTRONICS_N25S40, |
| 8205 | .total_size = 512, |
| 8206 | .page_size = 256, |
| 8207 | .feature_bits = FEATURE_WRSR_WREN, |
| 8208 | .tested = TEST_UNTESTED, |
| 8209 | .probe = probe_spi_rdid, |
| 8210 | .probe_timing = TIMING_ZERO, |
| 8211 | .block_erasers = |
| 8212 | { |
| 8213 | { |
| 8214 | .eraseblocks = { {4 * 1024, 128} }, |
| 8215 | .block_erase = spi_block_erase_20, |
| 8216 | }, { |
| 8217 | .eraseblocks = { {4 * 1024, 128} }, |
| 8218 | .block_erase = spi_block_erase_d7, |
| 8219 | }, { |
| 8220 | .eraseblocks = { {32 * 1024, 16} }, |
| 8221 | .block_erase = spi_block_erase_52, |
| 8222 | }, { |
| 8223 | .eraseblocks = { {64 * 1024, 8} }, |
| 8224 | .block_erase = spi_block_erase_d8, |
| 8225 | }, { |
| 8226 | .eraseblocks = { {512 * 1024, 1} }, |
| 8227 | .block_erase = spi_block_erase_60, |
| 8228 | }, { |
| 8229 | .eraseblocks = { {512 * 1024, 1} }, |
| 8230 | .block_erase = spi_block_erase_c7, |
| 8231 | } |
| 8232 | }, |
| 8233 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 8234 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8235 | .write = spi_chip_write_256, |
| 8236 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 8237 | .voltage = {2700, 3600}, |
| 8238 | }, |
| 8239 | |
| 8240 | { |
| 8241 | .vendor = "Nantronics", |
| 8242 | .name = "N25S80", |
| 8243 | .bustype = BUS_SPI, |
| 8244 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 8245 | .model_id = NANTRONICS_N25S80, |
| 8246 | .total_size = 1024, |
| 8247 | .page_size = 256, |
| 8248 | .feature_bits = FEATURE_WRSR_WREN, |
| 8249 | .tested = TEST_UNTESTED, |
| 8250 | .probe = probe_spi_rdid, |
| 8251 | .probe_timing = TIMING_ZERO, |
| 8252 | .block_erasers = |
| 8253 | { |
| 8254 | { |
| 8255 | .eraseblocks = { {4 * 1024, 256} }, |
| 8256 | .block_erase = spi_block_erase_20, |
| 8257 | }, { |
| 8258 | .eraseblocks = { {32 * 1024, 32} }, |
| 8259 | .block_erase = spi_block_erase_52, |
| 8260 | }, { |
| 8261 | .eraseblocks = { {64 * 1024, 16} }, |
| 8262 | .block_erase = spi_block_erase_d8, |
| 8263 | }, { |
| 8264 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8265 | .block_erase = spi_block_erase_60, |
| 8266 | }, { |
| 8267 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8268 | .block_erase = spi_block_erase_c7, |
| 8269 | } |
| 8270 | }, |
| 8271 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 8272 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8273 | .write = spi_chip_write_256, |
| 8274 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 8275 | .voltage = {2700, 3600}, |
| 8276 | }, |
| 8277 | |
| 8278 | { |
| 8279 | .vendor = "Nantronics", |
| 8280 | .name = "N25S16", |
| 8281 | .bustype = BUS_SPI, |
| 8282 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 8283 | .model_id = NANTRONICS_N25S16, |
| 8284 | .total_size = 2048, |
| 8285 | .page_size = 256, |
| 8286 | .feature_bits = FEATURE_WRSR_WREN, |
| 8287 | .tested = TEST_UNTESTED, |
| 8288 | .probe = probe_spi_rdid, |
| 8289 | .probe_timing = TIMING_ZERO, |
| 8290 | .block_erasers = |
| 8291 | { |
| 8292 | { |
| 8293 | .eraseblocks = { {4 * 1024, 512} }, |
| 8294 | .block_erase = spi_block_erase_20, |
| 8295 | }, { |
| 8296 | .eraseblocks = { {64 * 1024, 32} }, |
| 8297 | .block_erase = spi_block_erase_d8, |
| 8298 | }, { |
| 8299 | .eraseblocks = { {2048 * 1024, 1} }, |
| 8300 | .block_erase = spi_block_erase_60, |
| 8301 | }, { |
| 8302 | .eraseblocks = { {2048 * 1024, 1} }, |
| 8303 | .block_erase = spi_block_erase_c7, |
| 8304 | } |
| 8305 | }, |
| 8306 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 8307 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8308 | .write = spi_chip_write_256, |
| 8309 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 8310 | .voltage = {2700, 3600}, |
| 8311 | }, |
| 8312 | |
| 8313 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8314 | .vendor = "PMC", |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 8315 | .name = "Pm25LD256C", |
| 8316 | .bustype = BUS_SPI, |
| 8317 | .manufacture_id = PMC_ID, |
| 8318 | .model_id = PMC_PM25LD256C, |
| 8319 | .total_size = 32, |
| 8320 | .page_size = 256, |
| 8321 | .feature_bits = FEATURE_WRSR_WREN, |
| 8322 | .tested = TEST_UNTESTED, |
| 8323 | .probe = probe_spi_rdid, |
| 8324 | .probe_timing = TIMING_ZERO, |
| 8325 | .block_erasers = |
| 8326 | { |
| 8327 | { |
| 8328 | .eraseblocks = { {4 * 1024, 8} }, |
| 8329 | .block_erase = spi_block_erase_20, |
| 8330 | }, { |
| 8331 | .eraseblocks = { {4 * 1024, 8} }, |
| 8332 | .block_erase = spi_block_erase_d7, |
| 8333 | }, { |
| 8334 | .eraseblocks = { {32 * 1024, 1} }, |
| 8335 | .block_erase = spi_block_erase_d8, |
| 8336 | }, { |
| 8337 | .eraseblocks = { {32 * 1024, 1} }, |
| 8338 | .block_erase = spi_block_erase_60, |
| 8339 | }, { |
| 8340 | .eraseblocks = { {32 * 1024, 1} }, |
| 8341 | .block_erase = spi_block_erase_c7, |
| 8342 | } |
| 8343 | }, |
| 8344 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 8345 | .unlock = spi_disable_blockprotect, |
| 8346 | .write = spi_chip_write_256, |
| 8347 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 8348 | .voltage = {2700, 3600}, |
| 8349 | }, |
| 8350 | { |
| 8351 | .vendor = "PMC", |
| 8352 | .name = "Pm25LD512(C)", |
| 8353 | .bustype = BUS_SPI, |
| 8354 | .manufacture_id = PMC_ID, |
| 8355 | .model_id = PMC_PM25LD512, |
| 8356 | .total_size = 64, |
| 8357 | .page_size = 256, |
| 8358 | .feature_bits = FEATURE_WRSR_WREN, |
| 8359 | .tested = TEST_OK_PREW, |
| 8360 | .probe = probe_spi_rdid, |
| 8361 | .probe_timing = TIMING_ZERO, |
| 8362 | .block_erasers = |
| 8363 | { |
| 8364 | { |
| 8365 | .eraseblocks = { {4 * 1024, 16} }, |
| 8366 | .block_erase = spi_block_erase_20, |
| 8367 | }, { |
| 8368 | .eraseblocks = { {4 * 1024, 16} }, |
| 8369 | .block_erase = spi_block_erase_d7, |
| 8370 | }, { |
| 8371 | .eraseblocks = { {32 * 1024, 2} }, |
| 8372 | .block_erase = spi_block_erase_d8, |
| 8373 | }, { |
| 8374 | .eraseblocks = { {64 * 1024, 1} }, |
| 8375 | .block_erase = spi_block_erase_60, |
| 8376 | }, { |
| 8377 | .eraseblocks = { {64 * 1024, 1} }, |
| 8378 | .block_erase = spi_block_erase_c7, |
| 8379 | } |
| 8380 | }, |
| 8381 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 8382 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 8383 | .write = spi_chip_write_256, |
| 8384 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 8385 | .voltage = {2300, 3600}, |
| 8386 | }, |
| 8387 | |
| 8388 | { |
| 8389 | .vendor = "PMC", |
| 8390 | .name = "Pm25LD010(C)", |
| 8391 | .bustype = BUS_SPI, |
| 8392 | .manufacture_id = PMC_ID, |
| 8393 | .model_id = PMC_PM25LD010, |
| 8394 | .total_size = 128, |
| 8395 | .page_size = 256, |
| 8396 | .feature_bits = FEATURE_WRSR_WREN, |
| 8397 | .tested = TEST_UNTESTED, |
| 8398 | .probe = probe_spi_rdid, |
| 8399 | .probe_timing = TIMING_ZERO, |
| 8400 | .block_erasers = |
| 8401 | { |
| 8402 | { |
| 8403 | .eraseblocks = { {4 * 1024, 32} }, |
| 8404 | .block_erase = spi_block_erase_20, |
| 8405 | }, { |
| 8406 | .eraseblocks = { {4 * 1024, 32} }, |
| 8407 | .block_erase = spi_block_erase_d7, |
| 8408 | }, { |
| 8409 | .eraseblocks = { {32 * 1024, 4} }, |
| 8410 | .block_erase = spi_block_erase_d8, |
| 8411 | }, { |
| 8412 | .eraseblocks = { {128 * 1024, 1} }, |
| 8413 | .block_erase = spi_block_erase_60, |
| 8414 | }, { |
| 8415 | .eraseblocks = { {128 * 1024, 1} }, |
| 8416 | .block_erase = spi_block_erase_c7, |
| 8417 | } |
| 8418 | }, |
| 8419 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 8420 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 8421 | .write = spi_chip_write_256, |
| 8422 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 8423 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */ |
| 8424 | }, |
| 8425 | |
| 8426 | { |
| 8427 | .vendor = "PMC", |
| 8428 | .name = "Pm25LD020(C)", |
| 8429 | .bustype = BUS_SPI, |
| 8430 | .manufacture_id = PMC_ID, |
| 8431 | .model_id = PMC_PM25LD020, |
| 8432 | .total_size = 256, |
| 8433 | .page_size = 256, |
| 8434 | .feature_bits = FEATURE_WRSR_WREN, |
| 8435 | .tested = TEST_UNTESTED, |
| 8436 | .probe = probe_spi_rdid, |
| 8437 | .probe_timing = TIMING_ZERO, |
| 8438 | .block_erasers = |
| 8439 | { |
| 8440 | { |
| 8441 | .eraseblocks = { {4 * 1024, 64} }, |
| 8442 | .block_erase = spi_block_erase_20, |
| 8443 | }, { |
| 8444 | .eraseblocks = { {4 * 1024, 64} }, |
| 8445 | .block_erase = spi_block_erase_d7, |
| 8446 | }, { |
| 8447 | .eraseblocks = { {64 * 1024, 4} }, |
| 8448 | .block_erase = spi_block_erase_d8, |
| 8449 | }, { |
| 8450 | .eraseblocks = { {256 * 1024, 1} }, |
| 8451 | .block_erase = spi_block_erase_60, |
| 8452 | }, { |
| 8453 | .eraseblocks = { {256 * 1024, 1} }, |
| 8454 | .block_erase = spi_block_erase_c7, |
| 8455 | } |
| 8456 | }, |
| 8457 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 8458 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 8459 | .write = spi_chip_write_256, |
| 8460 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 8461 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */ |
| 8462 | }, |
| 8463 | |
| 8464 | { |
| 8465 | .vendor = "PMC", |
| 8466 | .name = "Pm25LD040(C)", |
| 8467 | .bustype = BUS_SPI, |
| 8468 | .manufacture_id = PMC_ID, |
| 8469 | .model_id = PMC_PM25LV040, |
| 8470 | .total_size = 512, |
| 8471 | .page_size = 256, |
| 8472 | .feature_bits = FEATURE_WRSR_WREN, |
| 8473 | .tested = TEST_UNTESTED, |
| 8474 | .probe = probe_spi_rdid, |
| 8475 | .probe_timing = TIMING_ZERO, |
| 8476 | .block_erasers = |
| 8477 | { |
| 8478 | { |
| 8479 | .eraseblocks = { {4 * 1024, 128} }, |
| 8480 | .block_erase = spi_block_erase_20, |
| 8481 | }, { |
| 8482 | .eraseblocks = { {4 * 1024, 128} }, |
| 8483 | .block_erase = spi_block_erase_d7, |
| 8484 | }, { |
| 8485 | .eraseblocks = { {64 * 1024, 8} }, |
| 8486 | .block_erase = spi_block_erase_d8, |
| 8487 | }, { |
| 8488 | .eraseblocks = { {512 * 1024, 1} }, |
| 8489 | .block_erase = spi_block_erase_60, |
| 8490 | }, { |
| 8491 | .eraseblocks = { {512 * 1024, 1} }, |
| 8492 | .block_erase = spi_block_erase_c7, |
| 8493 | } |
| 8494 | }, |
| 8495 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 8496 | .unlock = spi_disable_blockprotect, |
| 8497 | .write = spi_chip_write_256, |
| 8498 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 8499 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */ |
| 8500 | }, |
| 8501 | |
| 8502 | { |
| 8503 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8504 | .name = "Pm25LV512(A)", |
| 8505 | .bustype = BUS_SPI, |
| 8506 | .manufacture_id = PMC_ID, |
| 8507 | .model_id = PMC_PM25LV512, |
| 8508 | .total_size = 64, |
| 8509 | .page_size = 256, |
| 8510 | .feature_bits = FEATURE_WRSR_WREN, |
| 8511 | .tested = TEST_UNTESTED, |
| 8512 | .probe = probe_spi_res3, |
| 8513 | .probe_timing = TIMING_ZERO, |
| 8514 | .block_erasers = |
| 8515 | { |
| 8516 | { |
| 8517 | .eraseblocks = { {4 * 1024, 16} }, |
| 8518 | .block_erase = spi_block_erase_d7, |
| 8519 | }, { |
| 8520 | .eraseblocks = { {32 * 1024, 2} }, |
| 8521 | .block_erase = spi_block_erase_d8, |
| 8522 | }, { |
| 8523 | .eraseblocks = { {64 * 1024, 1} }, |
| 8524 | .block_erase = spi_block_erase_c7, |
| 8525 | } |
| 8526 | }, |
| 8527 | .printlock = spi_prettyprint_status_register_default_bp1, |
| 8528 | .unlock = spi_disable_blockprotect, |
| 8529 | .write = spi_chip_write_256, |
| 8530 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8531 | .voltage = {2700, 3600}, |
| 8532 | }, |
| 8533 | |
| 8534 | { |
| 8535 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8536 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8537 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8538 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8539 | .model_id = PMC_PM25LV010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8540 | .total_size = 128, |
| 8541 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8542 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8543 | .tested = TEST_UNTESTED, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8544 | .probe = probe_spi_res3, |
| 8545 | .probe_timing = TIMING_ZERO, |
| 8546 | .block_erasers = |
| 8547 | { |
| 8548 | { |
| 8549 | .eraseblocks = { {4 * 1024, 32} }, |
| 8550 | .block_erase = spi_block_erase_d7, |
| 8551 | }, { |
| 8552 | .eraseblocks = { {32 * 1024, 4} }, |
| 8553 | .block_erase = spi_block_erase_d8, |
| 8554 | }, { |
| 8555 | .eraseblocks = { {128 * 1024, 1} }, |
| 8556 | .block_erase = spi_block_erase_c7, |
| 8557 | } |
| 8558 | }, |
| 8559 | .printlock = spi_prettyprint_status_register_default_bp1, |
| 8560 | .unlock = spi_disable_blockprotect, |
| 8561 | .write = spi_chip_write_256, |
| 8562 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8563 | .voltage = {2700, 3600}, |
| 8564 | }, |
| 8565 | |
| 8566 | { |
| 8567 | .vendor = "PMC", |
| 8568 | .name = "Pm25LV010A", |
| 8569 | .bustype = BUS_SPI, |
| 8570 | .manufacture_id = PMC_ID, |
| 8571 | .model_id = PMC_PM25LV010, |
| 8572 | .total_size = 128, |
| 8573 | .page_size = 256, |
| 8574 | .feature_bits = FEATURE_WRSR_WREN, |
| 8575 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8576 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8577 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8578 | .block_erasers = |
| 8579 | { |
| 8580 | { |
| 8581 | .eraseblocks = { {4 * 1024, 32} }, |
| 8582 | .block_erase = spi_block_erase_d7, |
| 8583 | }, { |
| 8584 | .eraseblocks = { {32 * 1024, 4} }, |
| 8585 | .block_erase = spi_block_erase_d8, |
| 8586 | }, { |
| 8587 | .eraseblocks = { {128 * 1024, 1} }, |
| 8588 | .block_erase = spi_block_erase_c7, |
| 8589 | } |
| 8590 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8591 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8592 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8593 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8594 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8595 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8596 | }, |
| 8597 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8598 | { |
| 8599 | .vendor = "PMC", |
| 8600 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8601 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8602 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8603 | .model_id = PMC_PM25LV020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8604 | .total_size = 256, |
| 8605 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8606 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8607 | .tested = TEST_UNTESTED, |
| 8608 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8609 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8610 | .block_erasers = |
| 8611 | { |
| 8612 | { |
| 8613 | .eraseblocks = { {4 * 1024, 64} }, |
| 8614 | .block_erase = spi_block_erase_d7, |
| 8615 | }, { |
| 8616 | .eraseblocks = { {64 * 1024, 4} }, |
| 8617 | .block_erase = spi_block_erase_d8, |
| 8618 | }, { |
| 8619 | .eraseblocks = { {256 * 1024, 1} }, |
| 8620 | .block_erase = spi_block_erase_c7, |
| 8621 | } |
| 8622 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8623 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8624 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8625 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8626 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8627 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8628 | }, |
| 8629 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8630 | { |
| 8631 | .vendor = "PMC", |
| 8632 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8633 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8634 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8635 | .model_id = PMC_PM25LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8636 | .total_size = 512, |
| 8637 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8638 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 8639 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8640 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8641 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8642 | .block_erasers = |
| 8643 | { |
| 8644 | { |
| 8645 | .eraseblocks = { {4 * 1024, 128} }, |
| 8646 | .block_erase = spi_block_erase_d7, |
| 8647 | }, { |
| 8648 | .eraseblocks = { {64 * 1024, 8} }, |
| 8649 | .block_erase = spi_block_erase_d8, |
| 8650 | }, { |
| 8651 | .eraseblocks = { {512 * 1024, 1} }, |
| 8652 | .block_erase = spi_block_erase_c7, |
| 8653 | } |
| 8654 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8655 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8656 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8657 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8658 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8659 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8660 | }, |
| 8661 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8662 | { |
| 8663 | .vendor = "PMC", |
| 8664 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8665 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8666 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8667 | .model_id = PMC_PM25LV080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8668 | .total_size = 1024, |
| 8669 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8670 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8671 | .tested = TEST_UNTESTED, |
| 8672 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8673 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8674 | .block_erasers = |
| 8675 | { |
| 8676 | { |
| 8677 | .eraseblocks = { {4 * 1024, 256} }, |
| 8678 | .block_erase = spi_block_erase_d7, |
| 8679 | }, { |
| 8680 | .eraseblocks = { {4 * 1024, 256} }, |
| 8681 | .block_erase = spi_block_erase_20, |
| 8682 | }, { |
| 8683 | .eraseblocks = { {64 * 1024, 16} }, |
| 8684 | .block_erase = spi_block_erase_d8, |
| 8685 | }, { |
| 8686 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8687 | .block_erase = spi_block_erase_60, |
| 8688 | }, { |
| 8689 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8690 | .block_erase = spi_block_erase_c7, |
| 8691 | } |
| 8692 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8693 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8694 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8695 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8696 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8697 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8698 | }, |
| 8699 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8700 | { |
| 8701 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8702 | .name = "Pm25LV016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8703 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8704 | .manufacture_id = PMC_ID, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8705 | .model_id = PMC_PM25LV016B, |
| 8706 | .total_size = 2048, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8707 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8708 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8709 | .tested = TEST_UNTESTED, |
| 8710 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8711 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8712 | .block_erasers = |
| 8713 | { |
| 8714 | { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8715 | .eraseblocks = { {4 * 1024, 512} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8716 | .block_erase = spi_block_erase_d7, |
| 8717 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8718 | .eraseblocks = { {4 * 1024, 512} }, |
| 8719 | .block_erase = spi_block_erase_20, |
| 8720 | }, { |
| 8721 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8722 | .block_erase = spi_block_erase_d8, |
| 8723 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8724 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8725 | .block_erase = spi_block_erase_60, |
| 8726 | }, { |
| 8727 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8728 | .block_erase = spi_block_erase_c7, |
| 8729 | } |
| 8730 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8731 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8732 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8733 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8734 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8735 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8736 | }, |
| 8737 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8738 | { |
| 8739 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8740 | .name = "Pm29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8741 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8742 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8743 | .model_id = PMC_PM29F002T, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8744 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8745 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8746 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 8747 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8748 | .probe = probe_jedec, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 8749 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8750 | .block_erasers = |
| 8751 | { |
| 8752 | { |
| 8753 | .eraseblocks = { |
| 8754 | {128 * 1024, 1}, |
| 8755 | {96 * 1024, 1}, |
| 8756 | {8 * 1024, 2}, |
| 8757 | {16 * 1024, 1}, |
| 8758 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8759 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8760 | }, { |
| 8761 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8762 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8763 | }, |
| 8764 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8765 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8766 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8767 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8768 | }, |
| 8769 | |
| 8770 | { |
| 8771 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8772 | .name = "Pm29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8773 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8774 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8775 | .model_id = PMC_PM29F002B, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8776 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8777 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8778 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8779 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8780 | .probe = probe_jedec, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8781 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8782 | .block_erasers = |
| 8783 | { |
| 8784 | { |
| 8785 | .eraseblocks = { |
| 8786 | {16 * 1024, 1}, |
| 8787 | {8 * 1024, 2}, |
| 8788 | {96 * 1024, 1}, |
| 8789 | {128 * 1024, 1}, |
| 8790 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8791 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8792 | }, { |
| 8793 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8794 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8795 | }, |
| 8796 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8797 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8798 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8799 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8800 | }, |
| 8801 | |
| 8802 | { |
| 8803 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8804 | .name = "Pm39LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8805 | .bustype = BUS_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8806 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8807 | .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] | 8808 | .total_size = 128, |
| 8809 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8810 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 8811 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8812 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8813 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8814 | .block_erasers = |
| 8815 | { |
| 8816 | { |
| 8817 | .eraseblocks = { {4 * 1024, 32} }, |
| 8818 | .block_erase = erase_sector_jedec, |
| 8819 | }, { |
| 8820 | .eraseblocks = { {64 * 1024, 2} }, |
| 8821 | .block_erase = erase_block_jedec, |
| 8822 | }, { |
| 8823 | .eraseblocks = { {128 * 1024, 1} }, |
| 8824 | .block_erase = erase_chip_block_jedec, |
| 8825 | } |
| 8826 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8827 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8828 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8829 | .voltage = {2700, 3600}, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8830 | }, |
| 8831 | |
| 8832 | { |
| 8833 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8834 | .name = "Pm39LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8835 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8836 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8837 | .model_id = PMC_PM39LV020, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8838 | .total_size = 256, |
| 8839 | .page_size = 4096, |
| 8840 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 8841 | .tested = TEST_UNTESTED, |
| 8842 | .probe = probe_jedec, |
| 8843 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8844 | .block_erasers = |
| 8845 | { |
| 8846 | { |
| 8847 | .eraseblocks = { {4 * 1024, 64} }, |
| 8848 | .block_erase = erase_sector_jedec, |
| 8849 | }, { |
| 8850 | .eraseblocks = { {64 * 1024, 4} }, |
| 8851 | .block_erase = erase_block_jedec, |
| 8852 | }, { |
| 8853 | .eraseblocks = { {256 * 1024, 1} }, |
| 8854 | .block_erase = erase_chip_block_jedec, |
| 8855 | } |
| 8856 | }, |
| 8857 | .write = write_jedec_1, |
| 8858 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8859 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8860 | }, |
| 8861 | |
| 8862 | { |
| 8863 | .vendor = "PMC", |
| 8864 | .name = "Pm39LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8865 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8866 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8867 | .model_id = PMC_PM39LV040, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8868 | .total_size = 512, |
| 8869 | .page_size = 4096, |
| 8870 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 8871 | .tested = TEST_OK_PR, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8872 | .probe = probe_jedec, |
| 8873 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8874 | .block_erasers = |
| 8875 | { |
| 8876 | { |
| 8877 | .eraseblocks = { {4 * 1024, 128} }, |
| 8878 | .block_erase = erase_sector_jedec, |
| 8879 | }, { |
| 8880 | .eraseblocks = { {64 * 1024, 8} }, |
| 8881 | .block_erase = erase_block_jedec, |
| 8882 | }, { |
| 8883 | .eraseblocks = { {512 * 1024, 1} }, |
| 8884 | .block_erase = erase_chip_block_jedec, |
| 8885 | } |
| 8886 | }, |
| 8887 | .write = write_jedec_1, |
| 8888 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8889 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8890 | }, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 8891 | |
| 8892 | { |
| 8893 | .vendor = "PMC", |
| 8894 | .name = "Pm39LV512", |
| 8895 | .bustype = BUS_PARALLEL, |
| 8896 | .manufacture_id = PMC_ID_NOPREFIX, |
| 8897 | .model_id = PMC_PM39LV512, |
| 8898 | .total_size = 64, |
| 8899 | .page_size = 4096, |
| 8900 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 8901 | .tested = TEST_OK_PREW, |
| 8902 | .probe = probe_jedec, |
| 8903 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8904 | .block_erasers = |
| 8905 | { |
| 8906 | { |
| 8907 | .eraseblocks = { {4 * 1024, 16} }, |
| 8908 | .block_erase = erase_sector_jedec, |
| 8909 | }, { |
| 8910 | .eraseblocks = { {64 * 1024, 1} }, |
| 8911 | .block_erase = erase_block_jedec, |
| 8912 | }, { |
| 8913 | .eraseblocks = { {64 * 1024, 1} }, |
| 8914 | .block_erase = erase_chip_block_jedec, |
| 8915 | } |
| 8916 | }, |
| 8917 | .write = write_jedec_1, |
| 8918 | .read = read_memmapped, |
| 8919 | .voltage = {2700, 3600}, |
| 8920 | }, |
| 8921 | |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8922 | { |
| 8923 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8924 | .name = "Pm49FL002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8925 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8926 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8927 | .model_id = PMC_PM49FL002, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8928 | .total_size = 256, |
| 8929 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8930 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 8931 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 8932 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8933 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8934 | .block_erasers = |
| 8935 | { |
| 8936 | { |
| 8937 | .eraseblocks = { {4 * 1024, 64} }, |
| 8938 | .block_erase = erase_sector_jedec, |
| 8939 | }, { |
| 8940 | .eraseblocks = { {16 * 1024, 16} }, |
| 8941 | .block_erase = erase_block_jedec, |
| 8942 | }, { |
| 8943 | .eraseblocks = { {256 * 1024, 1} }, |
| 8944 | .block_erase = erase_chip_block_jedec, |
| 8945 | } |
| 8946 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 8947 | .unlock = unlock_49fl00x, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 8948 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8949 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8950 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8951 | }, |
| 8952 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8953 | { |
| 8954 | .vendor = "PMC", |
| 8955 | .name = "Pm49FL004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8956 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8957 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8958 | .model_id = PMC_PM49FL004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8959 | .total_size = 512, |
| 8960 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8961 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 8962 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 8963 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8964 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8965 | .block_erasers = |
| 8966 | { |
| 8967 | { |
| 8968 | .eraseblocks = { {4 * 1024, 128} }, |
| 8969 | .block_erase = erase_sector_jedec, |
| 8970 | }, { |
| 8971 | .eraseblocks = { {64 * 1024, 8} }, |
| 8972 | .block_erase = erase_block_jedec, |
| 8973 | }, { |
| 8974 | .eraseblocks = { {512 * 1024, 1} }, |
| 8975 | .block_erase = erase_chip_block_jedec, |
| 8976 | } |
| 8977 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 8978 | .unlock = unlock_49fl00x, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 8979 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8980 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8981 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8982 | }, |
| 8983 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8984 | { |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 8985 | .vendor = "Sanyo", |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 8986 | .name = "LE25FW203A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8987 | .bustype = BUS_SPI, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 8988 | .manufacture_id = SANYO_ID, |
| 8989 | .model_id = SANYO_LE25FW203A, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 8990 | .total_size = 256, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 8991 | .page_size = 256, |
| 8992 | .tested = TEST_UNTESTED, |
| 8993 | .probe = probe_spi_rdid, |
| 8994 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8995 | .block_erasers = |
| 8996 | { |
| 8997 | { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 8998 | .eraseblocks = { {256, 1024} }, |
| 8999 | .block_erase = spi_block_erase_db, |
| 9000 | }, { |
| 9001 | .eraseblocks = { {64 * 1024, 4} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9002 | .block_erase = spi_block_erase_d8, |
| 9003 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9004 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9005 | .block_erase = spi_block_erase_c7, |
| 9006 | } |
| 9007 | }, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9008 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9009 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 9010 | .write = spi_chip_write_256, |
| 9011 | .read = spi_chip_read, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9012 | .voltage = {2700, 3600}, |
| 9013 | }, |
| 9014 | |
| 9015 | { |
| 9016 | .vendor = "Sanyo", |
| 9017 | .name = "LE25FW403A", |
| 9018 | .bustype = BUS_SPI, |
| 9019 | .manufacture_id = SANYO_ID, |
| 9020 | .model_id = SANYO_LE25FW403A, |
| 9021 | .total_size = 512, |
| 9022 | .page_size = 256, |
| 9023 | .tested = TEST_UNTESTED, |
| 9024 | .probe = probe_spi_rdid, |
| 9025 | .probe_timing = TIMING_ZERO, |
| 9026 | .block_erasers = { |
| 9027 | { |
| 9028 | .eraseblocks = { {256, 2 * 1024} }, |
| 9029 | .block_erase = spi_block_erase_db, |
| 9030 | }, { |
| 9031 | .eraseblocks = { {64 * 1024, 8} }, |
| 9032 | .block_erase = spi_block_erase_d8, |
| 9033 | }, { |
| 9034 | .eraseblocks = { {512 * 1024, 1} }, |
| 9035 | .block_erase = spi_block_erase_c7, |
| 9036 | } |
| 9037 | }, |
| 9038 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9039 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 9040 | .write = spi_chip_write_256, |
| 9041 | .read = spi_chip_read, |
| 9042 | .voltage = {2700, 3600}, |
| 9043 | }, |
| 9044 | |
| 9045 | { |
| 9046 | .vendor = "Sanyo", |
| 9047 | .name = "LE25FW418A", |
| 9048 | .bustype = BUS_SPI, |
| 9049 | .manufacture_id = SANYO_ID, |
| 9050 | .model_id = SANYO_LE25FW418A, |
| 9051 | .total_size = 512, |
| 9052 | .page_size = 256, |
| 9053 | .feature_bits = FEATURE_WRSR_WREN, |
| 9054 | .tested = TEST_UNTESTED, |
| 9055 | .probe = probe_spi_res2, |
| 9056 | .probe_timing = TIMING_ZERO, |
| 9057 | .block_erasers = { |
| 9058 | { |
| 9059 | .eraseblocks = { {4 * 1024, 128} }, |
| 9060 | .block_erase = spi_block_erase_d7, |
| 9061 | }, { |
| 9062 | .eraseblocks = { {64 * 1024, 8} }, |
| 9063 | .block_erase = spi_block_erase_d8, |
| 9064 | }, { |
| 9065 | .eraseblocks = { {512 * 1024, 1} }, |
| 9066 | .block_erase = spi_block_erase_c7, |
| 9067 | } |
| 9068 | }, |
| 9069 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 9070 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 9071 | .write = spi_chip_write_256, |
| 9072 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 9073 | .voltage = {2700, 3600}, |
| 9074 | }, |
| 9075 | |
| 9076 | { |
| 9077 | .vendor = "Sanyo", |
| 9078 | .name = "LE25FW806", |
| 9079 | .bustype = BUS_SPI, |
| 9080 | .manufacture_id = SANYO_ID, |
| 9081 | .model_id = SANYO_LE25FW806, |
| 9082 | .total_size = 1024, |
| 9083 | .page_size = 256, |
| 9084 | .feature_bits = FEATURE_WRSR_WREN, |
| 9085 | .tested = TEST_UNTESTED, |
| 9086 | .probe = probe_spi_res2, |
| 9087 | .probe_timing = TIMING_ZERO, |
| 9088 | .block_erasers = { |
| 9089 | { |
| 9090 | .eraseblocks = { {4 * 1024, 256} }, |
| 9091 | .block_erase = spi_block_erase_20, |
| 9092 | }, { |
| 9093 | .eraseblocks = { {4 * 1024, 256} }, |
| 9094 | .block_erase = spi_block_erase_d7, |
| 9095 | }, { |
| 9096 | .eraseblocks = { {64 * 1024, 16} }, |
| 9097 | .block_erase = spi_block_erase_d8, |
| 9098 | }, { |
| 9099 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9100 | .block_erase = spi_block_erase_c7, |
| 9101 | } |
| 9102 | }, |
| 9103 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 9104 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 9105 | .write = spi_chip_write_256, |
| 9106 | .read = spi_chip_read, |
| 9107 | .voltage = {2700, 3600}, |
| 9108 | }, |
| 9109 | |
| 9110 | { |
| 9111 | .vendor = "Sanyo", |
| 9112 | .name = "LE25FW808", |
| 9113 | .bustype = BUS_SPI, |
| 9114 | .manufacture_id = SANYO_ID, |
| 9115 | .model_id = SANYO_LE25FW808, |
| 9116 | .total_size = 1024, |
| 9117 | .page_size = 256, |
| 9118 | .feature_bits = FEATURE_WRSR_WREN, |
| 9119 | .tested = TEST_UNTESTED, |
| 9120 | .probe = probe_spi_res2, |
| 9121 | .probe_timing = TIMING_ZERO, |
| 9122 | .block_erasers = { |
| 9123 | { |
| 9124 | .eraseblocks = { {8 * 1024, 128} }, |
| 9125 | .block_erase = spi_block_erase_d7, |
| 9126 | }, { |
| 9127 | .eraseblocks = { {64 * 1024, 16} }, |
| 9128 | .block_erase = spi_block_erase_d8, |
| 9129 | }, { |
| 9130 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9131 | .block_erase = spi_block_erase_c7, |
| 9132 | } |
| 9133 | }, |
| 9134 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 9135 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 9136 | .write = spi_chip_write_256, |
| 9137 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 9138 | .voltage = {2700, 3600}, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 9139 | }, |
| 9140 | |
| 9141 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9142 | .vendor = "Sharp", |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 9143 | .name = "LH28F008BJT-BTLZ1", |
| 9144 | .bustype = BUS_PARALLEL, |
| 9145 | .manufacture_id = SHARP_ID, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 9146 | .model_id = SHARP_LH28F008BJ__PB, |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 9147 | .total_size = 1024, |
| 9148 | .page_size = 64 * 1024, |
| 9149 | .tested = TEST_OK_PREW, |
| 9150 | .probe = probe_82802ab, |
| 9151 | .probe_timing = TIMING_ZERO, |
| 9152 | .block_erasers = |
| 9153 | { |
| 9154 | { |
| 9155 | .eraseblocks = { |
| 9156 | {8 * 1024, 8}, |
| 9157 | {64 * 1024, 15} |
| 9158 | }, |
| 9159 | .block_erase = erase_block_82802ab, |
| 9160 | }, { |
| 9161 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9162 | .block_erase = erase_sector_49lfxxxc, |
| 9163 | } |
| 9164 | }, |
| 9165 | .unlock = unlock_lh28f008bjt, |
| 9166 | .write = write_82802ab, |
| 9167 | .read = read_memmapped, |
| 9168 | .voltage = {2700, 3600}, |
| 9169 | }, |
| 9170 | |
| 9171 | { |
| 9172 | .vendor = "Sharp", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9173 | .name = "LHF00L04", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9174 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9175 | .manufacture_id = SHARP_ID, |
| 9176 | .model_id = SHARP_LHF00L04, |
| 9177 | .total_size = 1024, |
| 9178 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9179 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9180 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9181 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 9182 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 9183 | .block_erasers = |
| 9184 | { |
| 9185 | { |
| 9186 | .eraseblocks = { |
| 9187 | {64 * 1024, 15}, |
| 9188 | {8 * 1024, 8} |
| 9189 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9190 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 9191 | }, { |
| 9192 | .eraseblocks = { |
| 9193 | {1024 * 1024, 1} |
| 9194 | }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9195 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 9196 | }, |
| 9197 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9198 | .unlock = unlock_82802ab, |
| 9199 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9200 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9201 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9202 | }, |
| 9203 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9204 | { |
| 9205 | .vendor = "Spansion", |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9206 | .name = "S25FL004A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9207 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9208 | .manufacture_id = SPANSION_ID, |
| 9209 | .model_id = SPANSION_S25FL004A, |
| 9210 | .total_size = 512, |
| 9211 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9212 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9213 | .tested = TEST_UNTESTED, |
| 9214 | .probe = probe_spi_rdid, |
| 9215 | .probe_timing = TIMING_ZERO, |
| 9216 | .block_erasers = |
| 9217 | { |
| 9218 | { |
| 9219 | .eraseblocks = { {64 * 1024, 8} }, |
| 9220 | .block_erase = spi_block_erase_d8, |
| 9221 | }, { |
| 9222 | .eraseblocks = { {512 * 1024, 1} }, |
| 9223 | .block_erase = spi_block_erase_c7, |
| 9224 | } |
| 9225 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9226 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9227 | .unlock = spi_disable_blockprotect, |
| 9228 | .write = spi_chip_write_256, |
| 9229 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9230 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9231 | }, |
| 9232 | |
| 9233 | { |
| 9234 | .vendor = "Spansion", |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9235 | .name = "S25FL008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9236 | .bustype = BUS_SPI, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9237 | .manufacture_id = SPANSION_ID, |
| 9238 | .model_id = SPANSION_S25FL008A, |
| 9239 | .total_size = 1024, |
| 9240 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9241 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 9242 | .tested = TEST_OK_PRE, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9243 | .probe = probe_spi_rdid, |
| 9244 | .probe_timing = TIMING_ZERO, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9245 | .block_erasers = |
| 9246 | { |
| 9247 | { |
| 9248 | .eraseblocks = { {64 * 1024, 16} }, |
| 9249 | .block_erase = spi_block_erase_d8, |
| 9250 | }, { |
| 9251 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9252 | .block_erase = spi_block_erase_c7, |
| 9253 | } |
| 9254 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9255 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9256 | .unlock = spi_disable_blockprotect, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9257 | .write = spi_chip_write_256, |
| 9258 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9259 | .voltage = {2700, 3600}, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9260 | }, |
| 9261 | |
| 9262 | { |
| 9263 | .vendor = "Spansion", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9264 | .name = "S25FL016A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9265 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9266 | .manufacture_id = SPANSION_ID, |
| 9267 | .model_id = SPANSION_S25FL016A, |
| 9268 | .total_size = 2048, |
| 9269 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9270 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 9271 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9272 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9273 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9274 | .block_erasers = |
| 9275 | { |
| 9276 | { |
| 9277 | .eraseblocks = { {64 * 1024, 32} }, |
| 9278 | .block_erase = spi_block_erase_d8, |
| 9279 | }, { |
| 9280 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9281 | .block_erase = spi_block_erase_c7, |
| 9282 | } |
| 9283 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9284 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9285 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9286 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9287 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9288 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9289 | }, |
| 9290 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9291 | { |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9292 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 9293 | .name = "S25FL032A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9294 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9295 | .manufacture_id = SPANSION_ID, |
| 9296 | .model_id = SPANSION_S25FL032A, |
| 9297 | .total_size = 4096, |
| 9298 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9299 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 9300 | .tested = TEST_OK_PREW, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9301 | .probe = probe_spi_rdid, |
| 9302 | .probe_timing = TIMING_ZERO, |
| 9303 | .block_erasers = |
| 9304 | { |
| 9305 | { |
| 9306 | .eraseblocks = { {64 * 1024, 64} }, |
| 9307 | .block_erase = spi_block_erase_d8, |
| 9308 | }, { |
| 9309 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9310 | .block_erase = spi_block_erase_c7, |
| 9311 | } |
| 9312 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9313 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9314 | .unlock = spi_disable_blockprotect, |
| 9315 | .write = spi_chip_write_256, |
| 9316 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9317 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9318 | }, |
| 9319 | |
| 9320 | { |
| 9321 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 9322 | .name = "S25FL064A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9323 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9324 | .manufacture_id = SPANSION_ID, |
| 9325 | .model_id = SPANSION_S25FL064A, |
| 9326 | .total_size = 8192, |
| 9327 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9328 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9329 | .tested = TEST_OK_PREW, |
| 9330 | .probe = probe_spi_rdid, |
| 9331 | .probe_timing = TIMING_ZERO, |
| 9332 | .block_erasers = |
| 9333 | { |
| 9334 | { |
| 9335 | .eraseblocks = { {64 * 1024, 128} }, |
| 9336 | .block_erase = spi_block_erase_d8, |
| 9337 | }, { |
| 9338 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9339 | .block_erase = spi_block_erase_c7, |
| 9340 | } |
| 9341 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9342 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9343 | .unlock = spi_disable_blockprotect, |
| 9344 | .write = spi_chip_write_256, |
| 9345 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9346 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9347 | }, |
| 9348 | |
| 9349 | { |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 9350 | .vendor = "Spansion", |
| 9351 | .name = "S25FL204K", |
| 9352 | .bustype = BUS_SPI, |
| 9353 | .manufacture_id = SPANSION_ID, |
| 9354 | .model_id = SPANSION_S25FL204, |
| 9355 | .total_size = 512, |
| 9356 | .page_size = 256, |
| 9357 | .feature_bits = FEATURE_WRSR_WREN, |
| 9358 | .tested = TEST_UNTESTED, |
| 9359 | .probe = probe_spi_rdid, |
| 9360 | .probe_timing = TIMING_ZERO, |
| 9361 | .block_erasers = { |
| 9362 | { |
| 9363 | .eraseblocks = { {4 * 1024, 128} }, |
| 9364 | .block_erase = spi_block_erase_20, |
| 9365 | }, { |
| 9366 | .eraseblocks = { {64 * 1024, 8} }, |
| 9367 | .block_erase = spi_block_erase_d8, |
| 9368 | }, { |
| 9369 | .eraseblocks = { { 512 * 1024, 1} }, |
| 9370 | .block_erase = spi_block_erase_60, |
| 9371 | }, { |
| 9372 | .eraseblocks = { { 512 * 1024, 1} }, |
| 9373 | .block_erase = spi_block_erase_c7, |
| 9374 | } |
| 9375 | }, |
| 9376 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 9377 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 9378 | .write = spi_chip_write_256, |
| 9379 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 9380 | .voltage = {2700, 3600}, |
| 9381 | }, |
| 9382 | |
| 9383 | { |
| 9384 | .vendor = "Spansion", |
| 9385 | .name = "S25FL208K", |
| 9386 | .bustype = BUS_SPI, |
| 9387 | .manufacture_id = SPANSION_ID, |
| 9388 | .model_id = SPANSION_S25FL208, |
| 9389 | .total_size = 1024, |
| 9390 | .page_size = 256, |
| 9391 | .feature_bits = FEATURE_WRSR_WREN, |
| 9392 | .tested = TEST_UNTESTED, |
| 9393 | .probe = probe_spi_rdid, |
| 9394 | .probe_timing = TIMING_ZERO, |
| 9395 | .block_erasers = { |
| 9396 | { |
| 9397 | .eraseblocks = { {4 * 1024, 256} }, |
| 9398 | .block_erase = spi_block_erase_20, |
| 9399 | }, { |
| 9400 | .eraseblocks = { {64 * 1024, 16} }, |
| 9401 | .block_erase = spi_block_erase_d8, |
| 9402 | }, { |
| 9403 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 9404 | .block_erase = spi_block_erase_60, |
| 9405 | }, { |
| 9406 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 9407 | .block_erase = spi_block_erase_c7, |
| 9408 | } |
| 9409 | }, |
| 9410 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 9411 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 9412 | .write = spi_chip_write_256, |
| 9413 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 9414 | .voltage = {2700, 3600}, |
| 9415 | }, |
| 9416 | |
| 9417 | { |
| 9418 | .vendor = "Spansion", |
| 9419 | .name = "S25FL116K/S25FL216K", |
| 9420 | .bustype = BUS_SPI, |
| 9421 | .manufacture_id = SPANSION_ID, |
| 9422 | .model_id = SPANSION_S25FL216, |
| 9423 | .total_size = 2048, |
| 9424 | .page_size = 256, |
| 9425 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */ |
| 9426 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9427 | .tested = TEST_UNTESTED, |
| 9428 | .probe = probe_spi_rdid, |
| 9429 | .probe_timing = TIMING_ZERO, |
| 9430 | .block_erasers = { |
| 9431 | { |
| 9432 | .eraseblocks = { {4 * 1024, 512} }, |
| 9433 | .block_erase = spi_block_erase_20, |
| 9434 | }, { |
| 9435 | .eraseblocks = { {64 * 1024, 32} }, |
| 9436 | .block_erase = spi_block_erase_d8, |
| 9437 | }, { |
| 9438 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 9439 | .block_erase = spi_block_erase_60, |
| 9440 | }, { |
| 9441 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 9442 | .block_erase = spi_block_erase_c7, |
| 9443 | } |
| 9444 | }, |
| 9445 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 9446 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 9447 | .write = spi_chip_write_256, |
| 9448 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 9449 | .voltage = {2700, 3600}, |
| 9450 | }, |
| 9451 | |
| 9452 | { |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 9453 | .vendor = "Spansion", |
| 9454 | .name = "S25FL128S......0", /* uniform 256kB sectors */ |
| 9455 | .bustype = BUS_SPI, |
| 9456 | .manufacture_id = SPANSION_ID, |
| 9457 | .model_id = SPANSION_S25FL128, |
| 9458 | .total_size = 16384, |
| 9459 | .page_size = 256, |
| 9460 | /* supports 4B addressing */ |
| 9461 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 9462 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9463 | .tested = TEST_UNTESTED, |
| 9464 | .probe = probe_spi_rdid, |
| 9465 | .probe_timing = TIMING_ZERO, |
| 9466 | .block_erasers = { |
| 9467 | { |
| 9468 | .eraseblocks = { {4 * 1024, 4096} }, |
| 9469 | .block_erase = spi_block_erase_20, |
| 9470 | }, { |
| 9471 | .eraseblocks = { {256 * 1024, 64} }, |
| 9472 | .block_erase = spi_block_erase_d8, |
| 9473 | }, { |
| 9474 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 9475 | .block_erase = spi_block_erase_60, |
| 9476 | }, { |
| 9477 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 9478 | .block_erase = spi_block_erase_c7, |
| 9479 | } |
| 9480 | }, |
| 9481 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 9482 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 9483 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9484 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9485 | .voltage = {2700, 3600}, |
| 9486 | }, |
| 9487 | |
| 9488 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9489 | .vendor = "SST", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9490 | .name = "SST25LF040A", |
| 9491 | .bustype = BUS_SPI, |
| 9492 | .manufacture_id = SST_ID, |
| 9493 | .model_id = SST_SST25VF040_REMS, |
| 9494 | .total_size = 512, |
| 9495 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9496 | .feature_bits = FEATURE_WRSR_EWSR, |
Uwe Hermann | 4335ec8 | 2011-09-07 20:20:25 +0000 | [diff] [blame] | 9497 | .tested = TEST_OK_PREW, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9498 | .probe = probe_spi_res2, |
| 9499 | .probe_timing = TIMING_ZERO, |
| 9500 | .block_erasers = |
| 9501 | { |
| 9502 | { |
| 9503 | .eraseblocks = { {4 * 1024, 128} }, |
| 9504 | .block_erase = spi_block_erase_20, |
| 9505 | }, { |
| 9506 | .eraseblocks = { {32 * 1024, 16} }, |
| 9507 | .block_erase = spi_block_erase_52, |
| 9508 | }, { |
| 9509 | .eraseblocks = { {512 * 1024, 1} }, |
| 9510 | .block_erase = spi_block_erase_60, |
| 9511 | }, |
| 9512 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9513 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9514 | .unlock = spi_disable_blockprotect, |
| 9515 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 9516 | .read = spi_chip_read, |
| 9517 | .voltage = {3000, 3600}, |
| 9518 | }, |
| 9519 | |
| 9520 | { |
| 9521 | .vendor = "SST", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 9522 | .name = "SST25LF080(A)", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9523 | .bustype = BUS_SPI, |
| 9524 | .manufacture_id = SST_ID, |
| 9525 | .model_id = SST_SST25VF080_REMS, |
| 9526 | .total_size = 1024, |
| 9527 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 9528 | .feature_bits = FEATURE_WRSR_EITHER, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9529 | .tested = TEST_UNTESTED, |
| 9530 | .probe = probe_spi_res2, |
| 9531 | .probe_timing = TIMING_ZERO, |
| 9532 | .block_erasers = |
| 9533 | { |
| 9534 | { |
| 9535 | .eraseblocks = { {4 * 1024, 256} }, |
| 9536 | .block_erase = spi_block_erase_20, |
| 9537 | }, { |
| 9538 | .eraseblocks = { {32 * 1024, 32} }, |
| 9539 | .block_erase = spi_block_erase_52, |
| 9540 | }, { |
| 9541 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9542 | .block_erase = spi_block_erase_60, |
| 9543 | }, |
| 9544 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9545 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9546 | .unlock = spi_disable_blockprotect, |
| 9547 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 9548 | .read = spi_chip_read, |
| 9549 | .voltage = {3000, 3600}, |
| 9550 | }, |
| 9551 | |
| 9552 | { |
| 9553 | .vendor = "SST", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9554 | .name = "SST25VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9555 | .bustype = BUS_SPI, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9556 | .manufacture_id = SST_ID, |
| 9557 | .model_id = SST_SST25VF010_REMS, |
| 9558 | .total_size = 128, |
| 9559 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9560 | .feature_bits = FEATURE_WRSR_EWSR, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9561 | .tested = TEST_OK_PREW, |
| 9562 | .probe = probe_spi_rems, |
| 9563 | .probe_timing = TIMING_ZERO, |
| 9564 | .block_erasers = |
| 9565 | { |
| 9566 | { |
| 9567 | .eraseblocks = { {4 * 1024, 32} }, |
| 9568 | .block_erase = spi_block_erase_20, |
| 9569 | }, { |
| 9570 | .eraseblocks = { {32 * 1024, 4} }, |
| 9571 | .block_erase = spi_block_erase_52, |
| 9572 | }, { |
| 9573 | .eraseblocks = { {128 * 1024, 1} }, |
| 9574 | .block_erase = spi_block_erase_60, |
| 9575 | }, |
| 9576 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9577 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9578 | .unlock = spi_disable_blockprotect, |
| 9579 | .write = spi_chip_write_1, |
| 9580 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9581 | .voltage = {2700, 3600}, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9582 | }, |
| 9583 | |
| 9584 | { |
| 9585 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9586 | .name = "SST25VF016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9587 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9588 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9589 | .model_id = SST_SST25VF016B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9590 | .total_size = 2048, |
| 9591 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 9592 | .feature_bits = FEATURE_WRSR_EITHER, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9593 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9594 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9595 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9596 | .block_erasers = |
| 9597 | { |
| 9598 | { |
| 9599 | .eraseblocks = { {4 * 1024, 512} }, |
| 9600 | .block_erase = spi_block_erase_20, |
| 9601 | }, { |
| 9602 | .eraseblocks = { {32 * 1024, 64} }, |
| 9603 | .block_erase = spi_block_erase_52, |
| 9604 | }, { |
| 9605 | .eraseblocks = { {64 * 1024, 32} }, |
| 9606 | .block_erase = spi_block_erase_d8, |
| 9607 | }, { |
| 9608 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9609 | .block_erase = spi_block_erase_60, |
| 9610 | }, { |
| 9611 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9612 | .block_erase = spi_block_erase_c7, |
| 9613 | }, |
| 9614 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9615 | .printlock = spi_prettyprint_status_register_sst25vf016, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9616 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 9617 | .write = spi_aai_write, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9618 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9619 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9620 | }, |
| 9621 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9622 | { |
| 9623 | .vendor = "SST", |
| 9624 | .name = "SST25VF032B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9625 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9626 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9627 | .model_id = SST_SST25VF032B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9628 | .total_size = 4096, |
| 9629 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9630 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | fcf6a8c | 2011-05-18 01:32:00 +0000 | [diff] [blame] | 9631 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9632 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9633 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9634 | .block_erasers = |
| 9635 | { |
| 9636 | { |
| 9637 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9638 | .block_erase = spi_block_erase_20, |
| 9639 | }, { |
| 9640 | .eraseblocks = { {32 * 1024, 128} }, |
| 9641 | .block_erase = spi_block_erase_52, |
| 9642 | }, { |
| 9643 | .eraseblocks = { {64 * 1024, 64} }, |
| 9644 | .block_erase = spi_block_erase_d8, |
| 9645 | }, { |
| 9646 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9647 | .block_erase = spi_block_erase_60, |
| 9648 | }, { |
| 9649 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9650 | .block_erase = spi_block_erase_c7, |
| 9651 | }, |
| 9652 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9653 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9654 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 9655 | .write = spi_aai_write, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9656 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9657 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9658 | }, |
| 9659 | |
| 9660 | { |
| 9661 | .vendor = "SST", |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 9662 | .name = "SST25VF064C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9663 | .bustype = BUS_SPI, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 9664 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9665 | .model_id = SST_SST25VF064C, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 9666 | .total_size = 8192, |
| 9667 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9668 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 9669 | .tested = TEST_OK_PREW, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 9670 | .probe = probe_spi_rdid, |
| 9671 | .probe_timing = TIMING_ZERO, |
| 9672 | .block_erasers = |
| 9673 | { |
| 9674 | { |
| 9675 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9676 | .block_erase = spi_block_erase_20, |
| 9677 | }, { |
| 9678 | .eraseblocks = { {32 * 1024, 256} }, |
| 9679 | .block_erase = spi_block_erase_52, |
| 9680 | }, { |
| 9681 | .eraseblocks = { {64 * 1024, 128} }, |
| 9682 | .block_erase = spi_block_erase_d8, |
| 9683 | }, { |
| 9684 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9685 | .block_erase = spi_block_erase_60, |
| 9686 | }, { |
| 9687 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9688 | .block_erase = spi_block_erase_c7, |
| 9689 | }, |
| 9690 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9691 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 9692 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 9693 | .write = spi_chip_write_256, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 9694 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9695 | .voltage = {2700, 3600}, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 9696 | }, |
| 9697 | |
| 9698 | { |
| 9699 | .vendor = "SST", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9700 | .name = "SST25VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9701 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9702 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9703 | .model_id = SST_SST25VF040_REMS, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9704 | .total_size = 512, |
| 9705 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9706 | .feature_bits = FEATURE_WRSR_EWSR, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9707 | .tested = TEST_OK_PR, |
| 9708 | .probe = probe_spi_rems, |
| 9709 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9710 | .block_erasers = |
| 9711 | { |
| 9712 | { |
| 9713 | .eraseblocks = { {4 * 1024, 128} }, |
| 9714 | .block_erase = spi_block_erase_20, |
| 9715 | }, { |
| 9716 | .eraseblocks = { {32 * 1024, 16} }, |
| 9717 | .block_erase = spi_block_erase_52, |
| 9718 | }, { |
| 9719 | .eraseblocks = { {512 * 1024, 1} }, |
| 9720 | .block_erase = spi_block_erase_60, |
| 9721 | }, |
| 9722 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9723 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9724 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 9725 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9726 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9727 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9728 | }, |
| 9729 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9730 | { |
| 9731 | .vendor = "SST", |
| 9732 | .name = "SST25VF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9733 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9734 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9735 | .model_id = SST_SST25VF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9736 | .total_size = 512, |
| 9737 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9738 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 9739 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9740 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9741 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9742 | .block_erasers = |
| 9743 | { |
| 9744 | { |
| 9745 | .eraseblocks = { {4 * 1024, 128} }, |
| 9746 | .block_erase = spi_block_erase_20, |
| 9747 | }, { |
| 9748 | .eraseblocks = { {32 * 1024, 16} }, |
| 9749 | .block_erase = spi_block_erase_52, |
| 9750 | }, { |
| 9751 | .eraseblocks = { {64 * 1024, 8} }, |
| 9752 | .block_erase = spi_block_erase_d8, |
| 9753 | }, { |
| 9754 | .eraseblocks = { {512 * 1024, 1} }, |
| 9755 | .block_erase = spi_block_erase_60, |
| 9756 | }, { |
| 9757 | .eraseblocks = { {512 * 1024, 1} }, |
| 9758 | .block_erase = spi_block_erase_c7, |
| 9759 | }, |
| 9760 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9761 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9762 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 9763 | .write = spi_aai_write, |
Zheng Bao | 0677dff | 2009-02-25 08:07:33 +0000 | [diff] [blame] | 9764 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9765 | .voltage = {2700, 3600}, |
Zheng Bao | 0677dff | 2009-02-25 08:07:33 +0000 | [diff] [blame] | 9766 | }, |
| 9767 | |
| 9768 | { |
| 9769 | .vendor = "SST", |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 9770 | .name = "SST25VF040B.REMS", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9771 | .bustype = BUS_SPI, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 9772 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9773 | .model_id = SST_SST25VF040B_REMS, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 9774 | .total_size = 512, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9775 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9776 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 9777 | .tested = TEST_OK_PREW, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 9778 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9779 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9780 | .block_erasers = |
| 9781 | { |
| 9782 | { |
| 9783 | .eraseblocks = { {4 * 1024, 128} }, |
| 9784 | .block_erase = spi_block_erase_20, |
| 9785 | }, { |
| 9786 | .eraseblocks = { {32 * 1024, 16} }, |
| 9787 | .block_erase = spi_block_erase_52, |
| 9788 | }, { |
| 9789 | .eraseblocks = { {64 * 1024, 8} }, |
| 9790 | .block_erase = spi_block_erase_d8, |
| 9791 | }, { |
| 9792 | .eraseblocks = { {512 * 1024, 1} }, |
| 9793 | .block_erase = spi_block_erase_60, |
| 9794 | }, { |
| 9795 | .eraseblocks = { {512 * 1024, 1} }, |
| 9796 | .block_erase = spi_block_erase_c7, |
| 9797 | }, |
| 9798 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9799 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9800 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 9801 | .write = spi_aai_write, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 9802 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9803 | .voltage = {2700, 3600}, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 9804 | }, |
| 9805 | |
| 9806 | { |
| 9807 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9808 | .name = "SST25VF080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9809 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9810 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9811 | .model_id = SST_SST25VF080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9812 | .total_size = 1024, |
| 9813 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9814 | .feature_bits = FEATURE_WRSR_EWSR, |
John Schmerge | c965c2d | 2011-05-18 11:28:47 +0000 | [diff] [blame] | 9815 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9816 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9817 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9818 | .block_erasers = |
| 9819 | { |
| 9820 | { |
| 9821 | .eraseblocks = { {4 * 1024, 256} }, |
| 9822 | .block_erase = spi_block_erase_20, |
| 9823 | }, { |
| 9824 | .eraseblocks = { {32 * 1024, 32} }, |
| 9825 | .block_erase = spi_block_erase_52, |
| 9826 | }, { |
| 9827 | .eraseblocks = { {64 * 1024, 16} }, |
| 9828 | .block_erase = spi_block_erase_d8, |
| 9829 | }, { |
| 9830 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9831 | .block_erase = spi_block_erase_60, |
| 9832 | }, { |
| 9833 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9834 | .block_erase = spi_block_erase_c7, |
| 9835 | }, |
| 9836 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9837 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9838 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 9839 | .write = spi_aai_write, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9840 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9841 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9842 | }, |
| 9843 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9844 | { |
| 9845 | .vendor = "SST", |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 9846 | .name = "SST25WF512", |
| 9847 | .bustype = BUS_SPI, |
| 9848 | .manufacture_id = SST_ID, |
| 9849 | .model_id = SST_SST25WF512, |
| 9850 | .total_size = 64, |
| 9851 | .page_size = 256, |
| 9852 | .feature_bits = FEATURE_WRSR_EITHER, |
| 9853 | .tested = TEST_UNTESTED, |
| 9854 | .probe = probe_spi_rdid, |
| 9855 | .probe_timing = TIMING_ZERO, |
| 9856 | .block_erasers = |
| 9857 | { |
| 9858 | { |
| 9859 | .eraseblocks = { {4 * 1024, 16} }, |
| 9860 | .block_erase = spi_block_erase_20, |
| 9861 | }, { |
| 9862 | .eraseblocks = { {32 * 1024, 2} }, |
| 9863 | .block_erase = spi_block_erase_52, |
| 9864 | }, { |
| 9865 | .eraseblocks = { {1024 * 64, 1} }, |
| 9866 | .block_erase = spi_block_erase_60, |
| 9867 | }, { |
| 9868 | .eraseblocks = { {1024 * 64, 1} }, |
| 9869 | .block_erase = spi_block_erase_c7, |
| 9870 | }, |
| 9871 | }, |
| 9872 | .unlock = spi_disable_blockprotect, |
| 9873 | .write = spi_aai_write, |
| 9874 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9875 | .voltage = {1650, 1950}, |
| 9876 | }, |
| 9877 | |
| 9878 | { |
| 9879 | .vendor = "SST", |
| 9880 | .name = "SST25WF010", |
| 9881 | .bustype = BUS_SPI, |
| 9882 | .manufacture_id = SST_ID, |
| 9883 | .model_id = SST_SST25WF010, |
| 9884 | .total_size = 128, |
| 9885 | .page_size = 256, |
| 9886 | .feature_bits = FEATURE_WRSR_EITHER, |
| 9887 | .tested = TEST_UNTESTED, |
| 9888 | .probe = probe_spi_rdid, |
| 9889 | .probe_timing = TIMING_ZERO, |
| 9890 | .block_erasers = |
| 9891 | { |
| 9892 | { |
| 9893 | .eraseblocks = { {4 * 1024, 32} }, |
| 9894 | .block_erase = spi_block_erase_20, |
| 9895 | }, { |
| 9896 | .eraseblocks = { {32 * 1024, 4} }, |
| 9897 | .block_erase = spi_block_erase_52, |
| 9898 | }, { |
| 9899 | .eraseblocks = { {1024 * 128, 1} }, |
| 9900 | .block_erase = spi_block_erase_60, |
| 9901 | }, { |
| 9902 | .eraseblocks = { {1024 * 128, 1} }, |
| 9903 | .block_erase = spi_block_erase_c7, |
| 9904 | }, |
| 9905 | }, |
| 9906 | .unlock = spi_disable_blockprotect, |
| 9907 | .write = spi_aai_write, |
| 9908 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9909 | .voltage = {1650, 1950}, |
| 9910 | }, |
| 9911 | |
| 9912 | { |
| 9913 | .vendor = "SST", |
| 9914 | .name = "SST25WF020", |
| 9915 | .bustype = BUS_SPI, |
| 9916 | .manufacture_id = SST_ID, |
| 9917 | .model_id = SST_SST25WF020, |
| 9918 | .total_size = 256, |
| 9919 | .page_size = 256, |
| 9920 | .feature_bits = FEATURE_WRSR_EITHER, |
| 9921 | .tested = TEST_UNTESTED, |
| 9922 | .probe = probe_spi_rdid, |
| 9923 | .probe_timing = TIMING_ZERO, |
| 9924 | .block_erasers = |
| 9925 | { |
| 9926 | { |
| 9927 | .eraseblocks = { {4 * 1024, 64} }, |
| 9928 | .block_erase = spi_block_erase_20, |
| 9929 | }, { |
| 9930 | .eraseblocks = { {32 * 1024, 8} }, |
| 9931 | .block_erase = spi_block_erase_52, |
| 9932 | }, { |
| 9933 | .eraseblocks = { {64 * 1024, 4} }, |
| 9934 | .block_erase = spi_block_erase_d8, |
| 9935 | }, { |
| 9936 | .eraseblocks = { {1024 * 256, 1} }, |
| 9937 | .block_erase = spi_block_erase_60, |
| 9938 | }, { |
| 9939 | .eraseblocks = { {1024 * 256, 1} }, |
| 9940 | .block_erase = spi_block_erase_c7, |
| 9941 | }, |
| 9942 | }, |
| 9943 | .unlock = spi_disable_blockprotect, |
| 9944 | .write = spi_aai_write, |
| 9945 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9946 | .voltage = {1650, 1950}, |
| 9947 | }, |
| 9948 | |
| 9949 | { |
| 9950 | .vendor = "SST", |
| 9951 | .name = "SST25WF040", |
| 9952 | .bustype = BUS_SPI, |
| 9953 | .manufacture_id = SST_ID, |
| 9954 | .model_id = SST_SST25WF040, |
| 9955 | .total_size = 512, |
| 9956 | .page_size = 256, |
| 9957 | .feature_bits = FEATURE_WRSR_EITHER, |
| 9958 | .tested = TEST_UNTESTED, |
| 9959 | .probe = probe_spi_rdid, |
| 9960 | .probe_timing = TIMING_ZERO, |
| 9961 | .block_erasers = |
| 9962 | { |
| 9963 | { |
| 9964 | .eraseblocks = { {4 * 1024, 128} }, |
| 9965 | .block_erase = spi_block_erase_20, |
| 9966 | }, { |
| 9967 | .eraseblocks = { {32 * 1024, 16} }, |
| 9968 | .block_erase = spi_block_erase_52, |
| 9969 | }, { |
| 9970 | .eraseblocks = { {64 * 1024, 8} }, |
| 9971 | .block_erase = spi_block_erase_d8, |
| 9972 | }, { |
| 9973 | .eraseblocks = { {1024 * 512, 1} }, |
| 9974 | .block_erase = spi_block_erase_60, |
| 9975 | }, { |
| 9976 | .eraseblocks = { {1024 * 512, 1} }, |
| 9977 | .block_erase = spi_block_erase_c7, |
| 9978 | }, |
| 9979 | }, |
| 9980 | .unlock = spi_disable_blockprotect, |
| 9981 | .write = spi_aai_write, |
| 9982 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9983 | .voltage = {1650, 1950}, |
| 9984 | }, |
| 9985 | |
| 9986 | { |
| 9987 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9988 | .name = "SST28SF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9989 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9990 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9991 | .model_id = SST_SST28SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9992 | .total_size = 512, |
| 9993 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9994 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9995 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9996 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 9997 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9998 | .block_erasers = |
| 9999 | { |
| 10000 | { |
| 10001 | .eraseblocks = { {128, 4096} }, |
| 10002 | .block_erase = erase_sector_28sf040, |
| 10003 | }, { |
| 10004 | .eraseblocks = { {512 * 1024, 1} }, |
| 10005 | .block_erase = erase_chip_28sf040, |
| 10006 | } |
| 10007 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 10008 | .unlock = unprotect_28sf040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10009 | .write = write_28sf040, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10010 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10011 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10012 | }, |
| 10013 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10014 | { |
| 10015 | .vendor = "SST", |
| 10016 | .name = "SST29EE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10017 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10018 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10019 | .model_id = SST_SST29EE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10020 | .total_size = 128, |
| 10021 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10022 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10023 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10024 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10025 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10026 | .block_erasers = |
| 10027 | { |
| 10028 | { |
| 10029 | .eraseblocks = { {128 * 1024, 1} }, |
| 10030 | .block_erase = erase_chip_block_jedec, |
| 10031 | } |
| 10032 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10033 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10034 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10035 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10036 | }, |
| 10037 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10038 | { |
| 10039 | .vendor = "SST", |
| 10040 | .name = "SST29LE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10041 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10042 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10043 | .model_id = SST_SST29LE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10044 | .total_size = 128, |
| 10045 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10046 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10047 | .tested = TEST_UNTESTED, |
| 10048 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10049 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10050 | .block_erasers = |
| 10051 | { |
| 10052 | { |
| 10053 | .eraseblocks = { {128 * 1024, 1} }, |
| 10054 | .block_erase = erase_chip_block_jedec, |
| 10055 | } |
| 10056 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10057 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10058 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10059 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10060 | }, |
| 10061 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10062 | { |
| 10063 | .vendor = "SST", |
| 10064 | .name = "SST29EE020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10065 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10066 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10067 | .model_id = SST_SST29EE020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10068 | .total_size = 256, |
| 10069 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10070 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10071 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10072 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10073 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10074 | .block_erasers = |
| 10075 | { |
| 10076 | { |
| 10077 | .eraseblocks = { {256 * 1024, 1} }, |
| 10078 | .block_erase = erase_chip_block_jedec, |
| 10079 | } |
| 10080 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10081 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10082 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10083 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10084 | }, |
| 10085 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10086 | { |
| 10087 | .vendor = "SST", |
| 10088 | .name = "SST29LE020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10089 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10090 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10091 | .model_id = SST_SST29LE020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10092 | .total_size = 256, |
| 10093 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10094 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10095 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10096 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10097 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10098 | .block_erasers = |
| 10099 | { |
| 10100 | { |
| 10101 | .eraseblocks = { {256 * 1024, 1} }, |
| 10102 | .block_erase = erase_chip_block_jedec, |
| 10103 | } |
| 10104 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10105 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10106 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10107 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10108 | }, |
| 10109 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10110 | { |
| 10111 | .vendor = "SST", |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10112 | .name = "SST39SF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10113 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10114 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10115 | .model_id = SST_SST39SF512, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10116 | .total_size = 64, |
| 10117 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10118 | .feature_bits = FEATURE_EITHER_RESET, |
Idwer Vollering | 7913fb4 | 2011-03-07 15:32:58 +0000 | [diff] [blame] | 10119 | .tested = TEST_OK_PREW, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10120 | .probe = probe_jedec, |
| 10121 | .probe_timing = 1, /* 150 ns */ |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10122 | .block_erasers = |
| 10123 | { |
| 10124 | { |
| 10125 | .eraseblocks = { {4 * 1024, 16} }, |
| 10126 | .block_erase = erase_sector_jedec, |
| 10127 | }, { |
| 10128 | .eraseblocks = { {64 * 1024, 1} }, |
| 10129 | .block_erase = erase_chip_block_jedec, |
| 10130 | } |
| 10131 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10132 | .write = write_jedec_1, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10133 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10134 | .voltage = {4500, 5500}, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10135 | }, |
| 10136 | |
| 10137 | { |
| 10138 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10139 | .name = "SST39SF010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10140 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10141 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10142 | .model_id = SST_SST39SF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10143 | .total_size = 128, |
| 10144 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10145 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 10146 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10147 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 10148 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10149 | .block_erasers = |
| 10150 | { |
| 10151 | { |
| 10152 | .eraseblocks = { {4 * 1024, 32} }, |
| 10153 | .block_erase = erase_sector_jedec, |
| 10154 | }, { |
| 10155 | .eraseblocks = { {128 * 1024, 1} }, |
| 10156 | .block_erase = erase_chip_block_jedec, |
| 10157 | } |
| 10158 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10159 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10160 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10161 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10162 | }, |
| 10163 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10164 | { |
| 10165 | .vendor = "SST", |
| 10166 | .name = "SST39SF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10167 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10168 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10169 | .model_id = SST_SST39SF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10170 | .total_size = 256, |
| 10171 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10172 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 10173 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10174 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10175 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10176 | .block_erasers = |
| 10177 | { |
| 10178 | { |
| 10179 | .eraseblocks = { {4 * 1024, 64} }, |
| 10180 | .block_erase = erase_sector_jedec, |
| 10181 | }, { |
| 10182 | .eraseblocks = { {256 * 1024, 1} }, |
| 10183 | .block_erase = erase_chip_block_jedec, |
| 10184 | } |
| 10185 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10186 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10187 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10188 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10189 | }, |
| 10190 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10191 | { |
| 10192 | .vendor = "SST", |
| 10193 | .name = "SST39SF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10194 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10195 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10196 | .model_id = SST_SST39SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10197 | .total_size = 512, |
| 10198 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10199 | .feature_bits = FEATURE_EITHER_RESET, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 10200 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10201 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10202 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10203 | .block_erasers = |
| 10204 | { |
| 10205 | { |
| 10206 | .eraseblocks = { {4 * 1024, 128} }, |
| 10207 | .block_erase = erase_sector_jedec, |
| 10208 | }, { |
| 10209 | .eraseblocks = { {512 * 1024, 1} }, |
| 10210 | .block_erase = erase_chip_block_jedec, |
| 10211 | } |
| 10212 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10213 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10214 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10215 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10216 | }, |
| 10217 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10218 | { |
| 10219 | .vendor = "SST", |
| 10220 | .name = "SST39VF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10221 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10222 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10223 | .model_id = SST_SST39VF512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10224 | .total_size = 64, |
| 10225 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10226 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 10227 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10228 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10229 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10230 | .block_erasers = |
| 10231 | { |
| 10232 | { |
| 10233 | .eraseblocks = { {4 * 1024, 16} }, |
| 10234 | .block_erase = erase_sector_jedec, |
| 10235 | }, { |
| 10236 | .eraseblocks = { {64 * 1024, 1} }, |
| 10237 | .block_erase = erase_chip_block_jedec, |
| 10238 | } |
| 10239 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10240 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10241 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10242 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10243 | }, |
| 10244 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10245 | { |
| 10246 | .vendor = "SST", |
| 10247 | .name = "SST39VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10248 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10249 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10250 | .model_id = SST_SST39VF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10251 | .total_size = 128, |
| 10252 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10253 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 10254 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10255 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10256 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10257 | .block_erasers = |
| 10258 | { |
| 10259 | { |
| 10260 | .eraseblocks = { {4 * 1024, 32} }, |
| 10261 | .block_erase = erase_sector_jedec, |
| 10262 | }, { |
| 10263 | .eraseblocks = { {128 * 1024, 1} }, |
| 10264 | .block_erase = erase_chip_block_jedec, |
| 10265 | } |
| 10266 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10267 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10268 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10269 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10270 | }, |
| 10271 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10272 | { |
| 10273 | .vendor = "SST", |
| 10274 | .name = "SST39VF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10275 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10276 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10277 | .model_id = SST_SST39VF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10278 | .total_size = 256, |
| 10279 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10280 | .feature_bits = FEATURE_EITHER_RESET, |
| 10281 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10282 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10283 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10284 | .block_erasers = |
| 10285 | { |
| 10286 | { |
| 10287 | .eraseblocks = { {4 * 1024, 64} }, |
| 10288 | .block_erase = erase_sector_jedec, |
| 10289 | }, { |
| 10290 | .eraseblocks = { {256 * 1024, 1} }, |
| 10291 | .block_erase = erase_chip_block_jedec, |
| 10292 | } |
| 10293 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10294 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10295 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10296 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10297 | }, |
| 10298 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10299 | { |
| 10300 | .vendor = "SST", |
| 10301 | .name = "SST39VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10302 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10303 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10304 | .model_id = SST_SST39VF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10305 | .total_size = 512, |
| 10306 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10307 | .feature_bits = FEATURE_EITHER_RESET, |
| 10308 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10309 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10310 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10311 | .block_erasers = |
| 10312 | { |
| 10313 | { |
| 10314 | .eraseblocks = { {4 * 1024, 128} }, |
| 10315 | .block_erase = erase_sector_jedec, |
| 10316 | }, { |
| 10317 | .eraseblocks = { {512 * 1024, 1} }, |
| 10318 | .block_erase = erase_chip_block_jedec, |
| 10319 | } |
| 10320 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10321 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10322 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10323 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 10324 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10325 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10326 | { |
| 10327 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 10328 | .name = "SST39VF080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10329 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 10330 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10331 | .model_id = SST_SST39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 10332 | .total_size = 1024, |
| 10333 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10334 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 10335 | .tested = TEST_UNTESTED, |
| 10336 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10337 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10338 | .block_erasers = |
| 10339 | { |
| 10340 | { |
| 10341 | .eraseblocks = { {4 * 1024, 256} }, |
| 10342 | .block_erase = erase_sector_jedec, |
| 10343 | }, { |
| 10344 | .eraseblocks = { {64 * 1024, 16} }, |
| 10345 | .block_erase = erase_block_jedec, |
| 10346 | }, { |
| 10347 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10348 | .block_erase = erase_chip_block_jedec, |
| 10349 | } |
| 10350 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10351 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10352 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10353 | .voltage = {2700, 3600}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 10354 | }, |
| 10355 | |
| 10356 | { |
| 10357 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10358 | .name = "SST49LF002A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10359 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10360 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10361 | .model_id = SST_SST49LF002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10362 | .total_size = 256, |
| 10363 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10364 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 10365 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10366 | .probe = probe_jedec, |
| 10367 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10368 | .block_erasers = |
| 10369 | { |
| 10370 | { |
| 10371 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10372 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10373 | }, { |
| 10374 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10375 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10376 | }, { |
| 10377 | .eraseblocks = { {256 * 1024, 1} }, |
| 10378 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 10379 | } |
| 10380 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10381 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10382 | .unlock = unlock_sst_fwhub, |
| 10383 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10384 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10385 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10386 | }, |
| 10387 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10388 | { |
| 10389 | .vendor = "SST", |
| 10390 | .name = "SST49LF003A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10391 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10392 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10393 | .model_id = SST_SST49LF003A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10394 | .total_size = 384, |
| 10395 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10396 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 10397 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10398 | .probe = probe_jedec, |
| 10399 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10400 | .block_erasers = |
| 10401 | { |
| 10402 | { |
| 10403 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10404 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10405 | }, { |
| 10406 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10407 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10408 | }, { |
| 10409 | .eraseblocks = { {384 * 1024, 1} }, |
| 10410 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 10411 | } |
| 10412 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10413 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10414 | .unlock = unlock_sst_fwhub, |
| 10415 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10416 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10417 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10418 | }, |
| 10419 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10420 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 10421 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 10422 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 10423 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10424 | .vendor = "SST", |
| 10425 | .name = "SST49LF004A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10426 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10427 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10428 | .model_id = SST_SST49LF004A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10429 | .total_size = 512, |
| 10430 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10431 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 10432 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10433 | .probe = probe_jedec, |
| 10434 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 10435 | .block_erasers = |
| 10436 | { |
| 10437 | { |
| 10438 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10439 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 10440 | }, { |
| 10441 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10442 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 10443 | }, { |
| 10444 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10445 | .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] | 10446 | }, |
| 10447 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10448 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10449 | .unlock = unlock_sst_fwhub, |
| 10450 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10451 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10452 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10453 | }, |
| 10454 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10455 | { |
| 10456 | .vendor = "SST", |
| 10457 | .name = "SST49LF004C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10458 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10459 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10460 | .model_id = SST_SST49LF004C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10461 | .total_size = 512, |
| 10462 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10463 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10464 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10465 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 10466 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10467 | .block_erasers = |
| 10468 | { |
| 10469 | { |
| 10470 | .eraseblocks = { {4 * 1024, 128} }, |
| 10471 | .block_erase = erase_sector_49lfxxxc, |
| 10472 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10473 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10474 | {64 * 1024, 7}, |
| 10475 | {32 * 1024, 1}, |
| 10476 | {8 * 1024, 2}, |
| 10477 | {16 * 1024, 1}, |
| 10478 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10479 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10480 | } |
| 10481 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10482 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 10483 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10484 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10485 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10486 | }, |
| 10487 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10488 | { |
| 10489 | .vendor = "SST", |
| 10490 | .name = "SST49LF008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10491 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10492 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10493 | .model_id = SST_SST49LF008A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10494 | .total_size = 1024, |
| 10495 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10496 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 10497 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10498 | .probe = probe_jedec, |
| 10499 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10500 | .block_erasers = |
| 10501 | { |
| 10502 | { |
| 10503 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10504 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10505 | }, { |
| 10506 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10507 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10508 | }, { |
| 10509 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10510 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 10511 | } |
| 10512 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10513 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10514 | .unlock = unlock_sst_fwhub, |
| 10515 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10516 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10517 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10518 | }, |
| 10519 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10520 | { |
| 10521 | .vendor = "SST", |
| 10522 | .name = "SST49LF008C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10523 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10524 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10525 | .model_id = SST_SST49LF008C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10526 | .total_size = 1024, |
| 10527 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10528 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10529 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10530 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 10531 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10532 | .block_erasers = |
| 10533 | { |
| 10534 | { |
| 10535 | .eraseblocks = { {4 * 1024, 256} }, |
| 10536 | .block_erase = erase_sector_49lfxxxc, |
| 10537 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10538 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10539 | {64 * 1024, 15}, |
| 10540 | {32 * 1024, 1}, |
| 10541 | {8 * 1024, 2}, |
| 10542 | {16 * 1024, 1}, |
| 10543 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10544 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10545 | } |
| 10546 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10547 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 10548 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10549 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10550 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10551 | }, |
| 10552 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10553 | { |
| 10554 | .vendor = "SST", |
| 10555 | .name = "SST49LF016C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10556 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10557 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10558 | .model_id = SST_SST49LF016C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10559 | .total_size = 2048, |
| 10560 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10561 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | 2abab94 | 2012-04-27 20:41:23 +0000 | [diff] [blame] | 10562 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10563 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 10564 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10565 | .block_erasers = |
| 10566 | { |
| 10567 | { |
| 10568 | .eraseblocks = { {4 * 1024, 512} }, |
| 10569 | .block_erase = erase_sector_49lfxxxc, |
| 10570 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10571 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10572 | {64 * 1024, 31}, |
| 10573 | {32 * 1024, 1}, |
| 10574 | {8 * 1024, 2}, |
| 10575 | {16 * 1024, 1}, |
| 10576 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10577 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10578 | } |
| 10579 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10580 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 10581 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10582 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10583 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10584 | }, |
| 10585 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10586 | { |
| 10587 | .vendor = "SST", |
| 10588 | .name = "SST49LF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10589 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10590 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10591 | .model_id = SST_SST49LF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10592 | .total_size = 256, |
| 10593 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10594 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 10595 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10596 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10597 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10598 | .block_erasers = |
| 10599 | { |
| 10600 | { |
| 10601 | .eraseblocks = { {4 * 1024, 64} }, |
| 10602 | .block_erase = erase_sector_jedec, |
| 10603 | }, { |
| 10604 | .eraseblocks = { {16 * 1024, 16} }, |
| 10605 | .block_erase = erase_block_jedec, |
| 10606 | }, { |
| 10607 | .eraseblocks = { {256 * 1024, 1} }, |
| 10608 | .block_erase = NULL, |
| 10609 | } |
| 10610 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10611 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10612 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10613 | .voltage = {3000, 3600}, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 10614 | }, |
| 10615 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10616 | { |
| 10617 | .vendor = "SST", |
| 10618 | .name = "SST49LF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10619 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10620 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10621 | .model_id = SST_SST49LF020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10622 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 10623 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10624 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10625 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10626 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10627 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10628 | .block_erasers = |
| 10629 | { |
| 10630 | { |
| 10631 | .eraseblocks = { {4 * 1024, 64} }, |
| 10632 | .block_erase = erase_sector_jedec, |
| 10633 | }, { |
| 10634 | .eraseblocks = { {16 * 1024, 16} }, |
| 10635 | .block_erase = erase_block_jedec, |
| 10636 | }, { |
| 10637 | .eraseblocks = { {256 * 1024, 1} }, |
| 10638 | .block_erase = NULL, |
| 10639 | } |
| 10640 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10641 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10642 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10643 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10644 | }, |
| 10645 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10646 | { |
| 10647 | .vendor = "SST", |
| 10648 | .name = "SST49LF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10649 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10650 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10651 | .model_id = SST_SST49LF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10652 | .total_size = 512, |
| 10653 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10654 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10655 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10656 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10657 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10658 | .block_erasers = |
| 10659 | { |
| 10660 | { |
| 10661 | .eraseblocks = { {4 * 1024, 128} }, |
| 10662 | .block_erase = erase_sector_jedec, |
| 10663 | }, { |
| 10664 | .eraseblocks = { {64 * 1024, 8} }, |
| 10665 | .block_erase = erase_block_jedec, |
| 10666 | }, { |
| 10667 | .eraseblocks = { {512 * 1024, 1} }, |
| 10668 | .block_erase = NULL, |
| 10669 | } |
| 10670 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10671 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10672 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10673 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10674 | }, |
| 10675 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10676 | { |
| 10677 | .vendor = "SST", |
| 10678 | .name = "SST49LF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10679 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10680 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10681 | .model_id = SST_SST49LF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10682 | .total_size = 512, |
| 10683 | .page_size = 64 * 1024, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 10684 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 10685 | .tested = TEST_OK_PREW, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10686 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10687 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10688 | .block_erasers = |
| 10689 | { |
| 10690 | { |
| 10691 | .eraseblocks = { {4 * 1024, 128} }, |
| 10692 | .block_erase = erase_sector_jedec, |
| 10693 | }, { |
| 10694 | .eraseblocks = { {64 * 1024, 8} }, |
| 10695 | .block_erase = erase_block_jedec, |
| 10696 | }, { |
| 10697 | .eraseblocks = { {512 * 1024, 1} }, |
| 10698 | .block_erase = NULL, |
| 10699 | } |
| 10700 | }, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 10701 | .unlock = unlock_82802ab, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10702 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10703 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10704 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10705 | }, |
| 10706 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10707 | { |
| 10708 | .vendor = "SST", |
| 10709 | .name = "SST49LF080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10710 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10711 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10712 | .model_id = SST_SST49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10713 | .total_size = 1024, |
| 10714 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10715 | .feature_bits = FEATURE_EITHER_RESET, |
Brandon Dowdy | f07bf32 | 2011-03-06 18:31:11 +0000 | [diff] [blame] | 10716 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10717 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10718 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10719 | .block_erasers = |
| 10720 | { |
| 10721 | { |
| 10722 | .eraseblocks = { {4 * 1024, 256} }, |
| 10723 | .block_erase = erase_sector_jedec, |
| 10724 | }, { |
| 10725 | .eraseblocks = { {64 * 1024, 16} }, |
| 10726 | .block_erase = erase_block_jedec, |
| 10727 | }, { |
| 10728 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10729 | .block_erase = NULL, |
| 10730 | } |
| 10731 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10732 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10733 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10734 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10735 | }, |
| 10736 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10737 | { |
| 10738 | .vendor = "SST", |
| 10739 | .name = "SST49LF160C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10740 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10741 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10742 | .model_id = SST_SST49LF160C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10743 | .total_size = 2048, |
| 10744 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10745 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10746 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10747 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 10748 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10749 | .block_erasers = |
| 10750 | { |
| 10751 | { |
| 10752 | .eraseblocks = { {4 * 1024, 512} }, |
| 10753 | .block_erase = erase_sector_49lfxxxc, |
| 10754 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10755 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10756 | {64 * 1024, 31}, |
| 10757 | {32 * 1024, 1}, |
| 10758 | {8 * 1024, 2}, |
| 10759 | {16 * 1024, 1}, |
| 10760 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10761 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10762 | } |
| 10763 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 10764 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 10765 | .write = write_82802ab, |
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 = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10772 | .name = "M29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10773 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10774 | .manufacture_id = ST_ID, |
| 10775 | .model_id = ST_M29F002B, |
| 10776 | .total_size = 256, |
| 10777 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10778 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10779 | .tested = TEST_UNTESTED, |
| 10780 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10781 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10782 | .block_erasers = |
| 10783 | { |
| 10784 | { |
| 10785 | .eraseblocks = { |
| 10786 | {16 * 1024, 1}, |
| 10787 | {8 * 1024, 2}, |
| 10788 | {32 * 1024, 1}, |
| 10789 | {64 * 1024, 3}, |
| 10790 | }, |
| 10791 | .block_erase = erase_sector_jedec, |
| 10792 | }, { |
| 10793 | .eraseblocks = { {256 * 1024, 1} }, |
| 10794 | .block_erase = erase_chip_block_jedec, |
| 10795 | } |
| 10796 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10797 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10798 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10799 | .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] | 10800 | }, |
| 10801 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10802 | { |
| 10803 | .vendor = "ST", |
| 10804 | .name = "M29F002T/NT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10805 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10806 | .manufacture_id = ST_ID, |
| 10807 | .model_id = ST_M29F002T, |
| 10808 | .total_size = 256, |
| 10809 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10810 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 10811 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10812 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10813 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10814 | .block_erasers = |
| 10815 | { |
| 10816 | { |
| 10817 | .eraseblocks = { |
| 10818 | {64 * 1024, 3}, |
| 10819 | {32 * 1024, 1}, |
| 10820 | {8 * 1024, 2}, |
| 10821 | {16 * 1024, 1}, |
| 10822 | }, |
| 10823 | .block_erase = erase_sector_jedec, |
| 10824 | }, { |
| 10825 | .eraseblocks = { {256 * 1024, 1} }, |
| 10826 | .block_erase = erase_chip_block_jedec, |
| 10827 | } |
| 10828 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10829 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10830 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10831 | .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] | 10832 | }, |
| 10833 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10834 | { |
| 10835 | .vendor = "ST", |
| 10836 | .name = "M29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10837 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10838 | .manufacture_id = ST_ID, |
| 10839 | .model_id = ST_M29F040B, |
| 10840 | .total_size = 512, |
| 10841 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10842 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 10843 | .tested = TEST_UNTESTED, |
| 10844 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 10845 | .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10846 | .block_erasers = |
| 10847 | { |
| 10848 | { |
| 10849 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10850 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10851 | }, { |
| 10852 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10853 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10854 | } |
| 10855 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10856 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10857 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10858 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10859 | }, |
| 10860 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10861 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10862 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10863 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 10864 | .name = "M29F400BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10865 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 10866 | .manufacture_id = ST_ID, |
| 10867 | .model_id = ST_M29F400BB, |
| 10868 | .total_size = 512, |
| 10869 | .page_size = 64 * 1024, |
| 10870 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 10871 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 10872 | .probe = probe_m29f400bt, |
| 10873 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
| 10874 | .block_erasers = |
| 10875 | { |
| 10876 | { |
| 10877 | .eraseblocks = { |
| 10878 | {16 * 1024, 1}, |
| 10879 | {8 * 1024, 2}, |
| 10880 | {32 * 1024, 1}, |
| 10881 | {64 * 1024, 7}, |
| 10882 | }, |
| 10883 | .block_erase = block_erase_m29f400bt, |
| 10884 | }, { |
| 10885 | .eraseblocks = { {512 * 1024, 1} }, |
| 10886 | .block_erase = block_erase_chip_m29f400bt, |
| 10887 | } |
| 10888 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 10889 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 10890 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10891 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 10892 | }, |
| 10893 | { |
| 10894 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 10895 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10896 | .name = "M29F400BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10897 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10898 | .manufacture_id = ST_ID, |
| 10899 | .model_id = ST_M29F400BT, |
| 10900 | .total_size = 512, |
| 10901 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10902 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10903 | .tested = TEST_UNTESTED, |
| 10904 | .probe = probe_m29f400bt, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 10905 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10906 | .block_erasers = |
| 10907 | { |
| 10908 | { |
| 10909 | .eraseblocks = { |
| 10910 | {64 * 1024, 7}, |
| 10911 | {32 * 1024, 1}, |
| 10912 | {8 * 1024, 2}, |
| 10913 | {16 * 1024, 1}, |
| 10914 | }, |
| 10915 | .block_erase = block_erase_m29f400bt, |
| 10916 | }, { |
| 10917 | .eraseblocks = { {512 * 1024, 1} }, |
| 10918 | .block_erase = block_erase_chip_m29f400bt, |
| 10919 | } |
| 10920 | }, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 10921 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10922 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10923 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10924 | }, |
| 10925 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10926 | { |
| 10927 | .vendor = "ST", |
| 10928 | .name = "M29W010B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10929 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10930 | .manufacture_id = ST_ID, |
| 10931 | .model_id = ST_M29W010B, |
| 10932 | .total_size = 128, |
| 10933 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10934 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10935 | .tested = TEST_UNTESTED, |
| 10936 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10937 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10938 | .block_erasers = |
| 10939 | { |
| 10940 | { |
| 10941 | .eraseblocks = { {16 * 1024, 8}, }, |
| 10942 | .block_erase = erase_sector_jedec, |
| 10943 | }, { |
| 10944 | .eraseblocks = { {128 * 1024, 1} }, |
| 10945 | .block_erase = erase_chip_block_jedec, |
| 10946 | } |
| 10947 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10948 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10949 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10950 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10951 | }, |
| 10952 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10953 | { |
| 10954 | .vendor = "ST", |
| 10955 | .name = "M29W040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10956 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10957 | .manufacture_id = ST_ID, |
| 10958 | .model_id = ST_M29W040B, |
| 10959 | .total_size = 512, |
| 10960 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10961 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10962 | .tested = TEST_UNTESTED, |
| 10963 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10964 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10965 | .block_erasers = |
| 10966 | { |
| 10967 | { |
| 10968 | .eraseblocks = { {64 * 1024, 8}, }, |
| 10969 | .block_erase = erase_sector_jedec, |
| 10970 | }, { |
| 10971 | .eraseblocks = { {512 * 1024, 1} }, |
| 10972 | .block_erase = erase_chip_block_jedec, |
| 10973 | } |
| 10974 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10975 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10976 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10977 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10978 | }, |
| 10979 | |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 10980 | { |
| 10981 | .vendor = "ST", |
| 10982 | .name = "M29W512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10983 | .bustype = BUS_PARALLEL, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 10984 | .manufacture_id = ST_ID, |
| 10985 | .model_id = ST_M29W512B, |
| 10986 | .total_size = 64, |
| 10987 | .page_size = 64 * 1024, |
| 10988 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10989 | .tested = TEST_OK_PREW, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 10990 | .probe = probe_jedec, |
| 10991 | .probe_timing = TIMING_ZERO, |
| 10992 | .block_erasers = |
| 10993 | { |
| 10994 | { |
| 10995 | .eraseblocks = { {64 * 1024, 1} }, |
| 10996 | .block_erase = erase_chip_block_jedec, |
| 10997 | } |
| 10998 | }, |
| 10999 | .write = write_jedec_1, |
| 11000 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11001 | .voltage = {2700, 3600}, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 11002 | }, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 11003 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11004 | { |
| 11005 | .vendor = "ST", |
| 11006 | .name = "M50FLW040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11007 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11008 | .manufacture_id = ST_ID, |
| 11009 | .model_id = ST_M50FLW040A, |
| 11010 | .total_size = 512, |
| 11011 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11012 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11013 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11014 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 11015 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11016 | .block_erasers = |
| 11017 | { |
| 11018 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11019 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11020 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11021 | {64 * 1024, 5}, /* block */ |
| 11022 | {4 * 1024, 16}, /* sector */ |
| 11023 | {4 * 1024, 16}, /* sector */ |
| 11024 | }, |
| 11025 | .block_erase = NULL, |
| 11026 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11027 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11028 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11029 | } |
| 11030 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11031 | .unlock = unlock_stm50flw0x0x, |
| 11032 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11033 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11034 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11035 | }, |
| 11036 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11037 | { |
| 11038 | .vendor = "ST", |
| 11039 | .name = "M50FLW040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11040 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11041 | .manufacture_id = ST_ID, |
| 11042 | .model_id = ST_M50FLW040B, |
| 11043 | .total_size = 512, |
| 11044 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11045 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11046 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11047 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 11048 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11049 | .block_erasers = |
| 11050 | { |
| 11051 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11052 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11053 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11054 | {4 * 1024, 16}, /* sector */ |
| 11055 | {64 * 1024, 5}, /* block */ |
| 11056 | {4 * 1024, 16}, /* sector */ |
| 11057 | }, |
| 11058 | .block_erase = NULL, |
| 11059 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11060 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11061 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11062 | } |
| 11063 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11064 | .unlock = unlock_stm50flw0x0x, |
| 11065 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11066 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11067 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11068 | }, |
| 11069 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11070 | { |
| 11071 | .vendor = "ST", |
| 11072 | .name = "M50FLW080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11073 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11074 | .manufacture_id = ST_ID, |
| 11075 | .model_id = ST_M50FLW080A, |
| 11076 | .total_size = 1024, |
| 11077 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11078 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 11079 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11080 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 11081 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11082 | .block_erasers = |
| 11083 | { |
| 11084 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11085 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11086 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11087 | {64 * 1024, 13}, /* block */ |
| 11088 | {4 * 1024, 16}, /* sector */ |
| 11089 | {4 * 1024, 16}, /* sector */ |
| 11090 | }, |
| 11091 | .block_erase = NULL, |
| 11092 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11093 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11094 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11095 | } |
| 11096 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11097 | .unlock = unlock_stm50flw0x0x, |
| 11098 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11099 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11100 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11101 | }, |
| 11102 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11103 | { |
| 11104 | .vendor = "ST", |
| 11105 | .name = "M50FLW080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11106 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11107 | .manufacture_id = ST_ID, |
| 11108 | .model_id = ST_M50FLW080B, |
| 11109 | .total_size = 1024, |
| 11110 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11111 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11112 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11113 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 11114 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11115 | .block_erasers = |
| 11116 | { |
| 11117 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11118 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11119 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11120 | {4 * 1024, 16}, /* sector */ |
| 11121 | {64 * 1024, 13}, /* block */ |
| 11122 | {4 * 1024, 16}, /* sector */ |
| 11123 | }, |
| 11124 | .block_erase = NULL, |
| 11125 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11126 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11127 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11128 | } |
| 11129 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11130 | .unlock = unlock_stm50flw0x0x, |
| 11131 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11132 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11133 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11134 | }, |
| 11135 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11136 | { |
| 11137 | .vendor = "ST", |
| 11138 | .name = "M50FW002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11139 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11140 | .manufacture_id = ST_ID, |
| 11141 | .model_id = ST_M50FW002, |
| 11142 | .total_size = 256, |
| 11143 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11144 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11145 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11146 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11147 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11148 | .block_erasers = |
| 11149 | { |
| 11150 | { |
| 11151 | .eraseblocks = { |
| 11152 | {64 * 1024, 3}, |
| 11153 | {32 * 1024, 1}, |
| 11154 | {8 * 1024, 2}, |
| 11155 | {16 * 1024, 1}, |
| 11156 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11157 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11158 | } |
| 11159 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11160 | .unlock = unlock_stm50flw0x0x, |
| 11161 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11162 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11163 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11164 | }, |
| 11165 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11166 | { |
| 11167 | .vendor = "ST", |
| 11168 | .name = "M50FW016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11169 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11170 | .manufacture_id = ST_ID, |
| 11171 | .model_id = ST_M50FW016, |
| 11172 | .total_size = 2048, |
| 11173 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11174 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11175 | .tested = TEST_UNTESTED, |
| 11176 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11177 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11178 | .block_erasers = |
| 11179 | { |
| 11180 | { |
| 11181 | .eraseblocks = { {64 * 1024, 32}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11182 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11183 | } |
| 11184 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11185 | .unlock = unlock_stm50flw0x0x, |
| 11186 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11187 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11188 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11189 | }, |
| 11190 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11191 | { |
| 11192 | .vendor = "ST", |
| 11193 | .name = "M50FW040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11194 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11195 | .manufacture_id = ST_ID, |
| 11196 | .model_id = ST_M50FW040, |
| 11197 | .total_size = 512, |
| 11198 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11199 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11200 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11201 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11202 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11203 | .block_erasers = |
| 11204 | { |
| 11205 | { |
| 11206 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11207 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11208 | } |
| 11209 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11210 | .unlock = unlock_stm50flw0x0x, |
| 11211 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11212 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11213 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11214 | }, |
| 11215 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11216 | { |
| 11217 | .vendor = "ST", |
| 11218 | .name = "M50FW080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11219 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11220 | .manufacture_id = ST_ID, |
| 11221 | .model_id = ST_M50FW080, |
| 11222 | .total_size = 1024, |
| 11223 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11224 | .feature_bits = FEATURE_REGISTERMAP, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 11225 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11226 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11227 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11228 | .block_erasers = |
| 11229 | { |
| 11230 | { |
| 11231 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11232 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11233 | } |
| 11234 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11235 | .unlock = unlock_stm50flw0x0x, |
| 11236 | .write = write_82802ab, |
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 = {3000, 3600}, /* Also has 12V fast program & erase */ |
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 = "M50LPW116", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11244 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11245 | .manufacture_id = ST_ID, |
| 11246 | .model_id = ST_M50LPW116, |
| 11247 | .total_size = 2048, |
| 11248 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11249 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11250 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11251 | .probe = probe_82802ab, |
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 = { |
| 11257 | {4 * 1024, 16}, |
| 11258 | {64 * 1024, 30}, |
| 11259 | {32 * 1024, 1}, |
| 11260 | {8 * 1024, 2}, |
| 11261 | {16 * 1024, 1}, |
| 11262 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11263 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11264 | } |
| 11265 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11266 | .unlock = unlock_stm50flw0x0x, |
| 11267 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11268 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11269 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11270 | }, |
| 11271 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11272 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11273 | .vendor = "SyncMOS/MoselVitelic", |
| 11274 | .name = "{F,S,V}29C51001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11275 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11276 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11277 | .model_id = SM_MVC_29C51001B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11278 | .total_size = 128, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11279 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11280 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11281 | .tested = TEST_UNTESTED, |
| 11282 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11283 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11284 | .block_erasers = |
| 11285 | { |
| 11286 | { |
| 11287 | .eraseblocks = { {512, 256} }, |
| 11288 | .block_erase = erase_sector_jedec, |
| 11289 | }, { |
| 11290 | .eraseblocks = { {128 * 1024, 1} }, |
| 11291 | .block_erase = erase_chip_block_jedec, |
| 11292 | }, |
| 11293 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11294 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11295 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11296 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11297 | }, |
| 11298 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11299 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11300 | .vendor = "SyncMOS/MoselVitelic", |
| 11301 | .name = "{F,S,V}29C51001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11302 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11303 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11304 | .model_id = SM_MVC_29C51001T, |
| 11305 | .total_size = 128, |
| 11306 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11307 | .feature_bits = FEATURE_EITHER_RESET, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11308 | .tested = TEST_UNTESTED, |
| 11309 | .probe = probe_jedec, |
| 11310 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11311 | .block_erasers = |
| 11312 | { |
| 11313 | { |
| 11314 | .eraseblocks = { {512, 256} }, |
| 11315 | .block_erase = erase_sector_jedec, |
| 11316 | }, { |
| 11317 | .eraseblocks = { {128 * 1024, 1} }, |
| 11318 | .block_erase = erase_chip_block_jedec, |
| 11319 | }, |
| 11320 | }, |
| 11321 | .write = write_jedec_1, |
| 11322 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11323 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11324 | }, |
| 11325 | |
| 11326 | { |
| 11327 | .vendor = "SyncMOS/MoselVitelic", |
| 11328 | .name = "{F,S,V}29C51002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11329 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11330 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11331 | .model_id = SM_MVC_29C51002B, |
| 11332 | .total_size = 256, |
| 11333 | .page_size = 512, |
| 11334 | .feature_bits = FEATURE_EITHER_RESET, |
| 11335 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11336 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11337 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11338 | .block_erasers = |
| 11339 | { |
| 11340 | { |
| 11341 | .eraseblocks = { {512, 512} }, |
| 11342 | .block_erase = erase_sector_jedec, |
| 11343 | }, { |
| 11344 | .eraseblocks = { {256 * 1024, 1} }, |
| 11345 | .block_erase = erase_chip_block_jedec, |
| 11346 | }, |
| 11347 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11348 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11349 | .read = read_memmapped, |
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 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11353 | .vendor = "SyncMOS/MoselVitelic", |
| 11354 | .name = "{F,S,V}29C51002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11355 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11356 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11357 | .model_id = SM_MVC_29C51002T, |
| 11358 | .total_size = 256, |
| 11359 | .page_size = 512, |
| 11360 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 11361 | .tested = TEST_OK_PREW, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11362 | .probe = probe_jedec, |
| 11363 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11364 | .block_erasers = |
| 11365 | { |
| 11366 | { |
| 11367 | .eraseblocks = { {512, 512} }, |
| 11368 | .block_erase = erase_sector_jedec, |
| 11369 | }, { |
| 11370 | .eraseblocks = { {256 * 1024, 1} }, |
| 11371 | .block_erase = erase_chip_block_jedec, |
| 11372 | }, |
| 11373 | }, |
| 11374 | .write = write_jedec_1, |
| 11375 | .read = read_memmapped, |
| 11376 | }, |
| 11377 | |
| 11378 | { |
| 11379 | .vendor = "SyncMOS/MoselVitelic", |
| 11380 | .name = "{F,S,V}29C51004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11381 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11382 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11383 | .model_id = SM_MVC_29C51004B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11384 | .total_size = 512, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11385 | .page_size = 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11386 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11387 | .tested = TEST_UNTESTED, |
| 11388 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11389 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11390 | .block_erasers = |
| 11391 | { |
| 11392 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11393 | .eraseblocks = { {1024, 512} }, |
| 11394 | .block_erase = erase_sector_jedec, |
| 11395 | }, { |
| 11396 | .eraseblocks = { {512 * 1024, 1} }, |
| 11397 | .block_erase = erase_chip_block_jedec, |
| 11398 | }, |
| 11399 | }, |
| 11400 | .write = write_jedec_1, |
| 11401 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11402 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11403 | }, |
| 11404 | |
| 11405 | { |
| 11406 | .vendor = "SyncMOS/MoselVitelic", |
| 11407 | .name = "{F,S,V}29C51004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11408 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11409 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11410 | .model_id = SM_MVC_29C51004T, |
| 11411 | .total_size = 512, |
| 11412 | .page_size = 1024, |
| 11413 | .feature_bits = FEATURE_EITHER_RESET, |
| 11414 | .tested = TEST_UNTESTED, |
| 11415 | .probe = probe_jedec, |
| 11416 | .probe_timing = TIMING_ZERO, |
| 11417 | .block_erasers = |
| 11418 | { |
| 11419 | { |
| 11420 | .eraseblocks = { {1024, 512} }, |
| 11421 | .block_erase = erase_sector_jedec, |
| 11422 | }, { |
| 11423 | .eraseblocks = { {512 * 1024, 1} }, |
| 11424 | .block_erase = erase_chip_block_jedec, |
| 11425 | }, |
| 11426 | }, |
| 11427 | .write = write_jedec_1, |
| 11428 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11429 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11430 | }, |
| 11431 | |
| 11432 | { |
| 11433 | .vendor = "SyncMOS/MoselVitelic", |
| 11434 | .name = "{S,V}29C31004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11435 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11436 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11437 | .model_id = SM_MVC_29C31004B, |
| 11438 | .total_size = 512, |
| 11439 | .page_size = 1024, |
| 11440 | .feature_bits = FEATURE_EITHER_RESET, |
| 11441 | .tested = TEST_UNTESTED, |
| 11442 | .probe = probe_jedec, |
| 11443 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11444 | .block_erasers = |
| 11445 | { |
| 11446 | { |
| 11447 | .eraseblocks = { {1024, 512} }, |
| 11448 | .block_erase = erase_sector_jedec, |
| 11449 | }, { |
| 11450 | .eraseblocks = { {512 * 1024, 1} }, |
| 11451 | .block_erase = erase_chip_block_jedec, |
| 11452 | }, |
| 11453 | }, |
| 11454 | .write = write_jedec_1, |
| 11455 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11456 | .voltage = {3000, 3600}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11457 | }, |
| 11458 | |
| 11459 | { |
| 11460 | .vendor = "SyncMOS/MoselVitelic", |
| 11461 | .name = "{S,V}29C31004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11462 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11463 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11464 | .model_id = SM_MVC_29C31004T, |
| 11465 | .total_size = 512, |
| 11466 | .page_size = 1024, |
| 11467 | .feature_bits = FEATURE_EITHER_RESET, |
| 11468 | .tested = TEST_UNTESTED, |
| 11469 | .probe = probe_jedec, |
| 11470 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11471 | .block_erasers = |
| 11472 | { |
| 11473 | { |
| 11474 | .eraseblocks = { {1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11475 | .block_erase = erase_sector_jedec, |
| 11476 | }, { |
| 11477 | .eraseblocks = { {512 * 1024, 1} }, |
| 11478 | .block_erase = erase_chip_block_jedec, |
| 11479 | }, |
| 11480 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11481 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11482 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11483 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11484 | }, |
| 11485 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11486 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 11487 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11488 | .name = "TMS29F002RB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11489 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11490 | .manufacture_id = TI_OLD_ID, |
| 11491 | .model_id = TI_TMS29F002RB, |
| 11492 | .total_size = 256, |
| 11493 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11494 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11495 | .tested = TEST_UNTESTED, |
| 11496 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11497 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11498 | .block_erasers = |
| 11499 | { |
| 11500 | { |
| 11501 | .eraseblocks = { |
| 11502 | {16 * 1024, 1}, |
| 11503 | {8 * 1024, 2}, |
| 11504 | {32 * 1024, 1}, |
| 11505 | {64 * 1024, 3}, |
| 11506 | }, |
| 11507 | .block_erase = erase_sector_jedec, |
| 11508 | }, { |
| 11509 | .eraseblocks = { {256 * 1024, 1} }, |
| 11510 | .block_erase = erase_chip_block_jedec, |
| 11511 | }, |
| 11512 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11513 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11514 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11515 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11516 | }, |
| 11517 | |
| 11518 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 11519 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11520 | .name = "TMS29F002RT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11521 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11522 | .manufacture_id = TI_OLD_ID, |
| 11523 | .model_id = TI_TMS29F002RT, |
| 11524 | .total_size = 256, |
| 11525 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11526 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11527 | .tested = TEST_UNTESTED, |
| 11528 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11529 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11530 | .block_erasers = |
| 11531 | { |
| 11532 | { |
| 11533 | .eraseblocks = { |
| 11534 | {64 * 1024, 3}, |
| 11535 | {32 * 1024, 1}, |
| 11536 | {8 * 1024, 2}, |
| 11537 | {16 * 1024, 1}, |
| 11538 | }, |
| 11539 | .block_erase = erase_sector_jedec, |
| 11540 | }, { |
| 11541 | .eraseblocks = { {256 * 1024, 1} }, |
| 11542 | .block_erase = erase_chip_block_jedec, |
| 11543 | }, |
| 11544 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11545 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11546 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11547 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11548 | }, |
| 11549 | |
| 11550 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11551 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11552 | .name = "W25Q80.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11553 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11554 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11555 | .model_id = WINBOND_NEX_W25Q80_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11556 | .total_size = 1024, |
| 11557 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11558 | /* supports SFDP */ |
| 11559 | /* 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] | 11560 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 11561 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11562 | .probe = probe_spi_rdid, |
| 11563 | .probe_timing = TIMING_ZERO, |
| 11564 | .block_erasers = |
| 11565 | { |
| 11566 | { |
| 11567 | .eraseblocks = { {4 * 1024, 256} }, |
| 11568 | .block_erase = spi_block_erase_20, |
| 11569 | }, { |
| 11570 | .eraseblocks = { {32 * 1024, 32} }, |
| 11571 | .block_erase = spi_block_erase_52, |
| 11572 | }, { |
| 11573 | .eraseblocks = { {64 * 1024, 16} }, |
| 11574 | .block_erase = spi_block_erase_d8, |
| 11575 | }, { |
| 11576 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11577 | .block_erase = spi_block_erase_60, |
| 11578 | }, { |
| 11579 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11580 | .block_erase = spi_block_erase_c7, |
| 11581 | } |
| 11582 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11583 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11584 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11585 | .write = spi_chip_write_256, |
| 11586 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11587 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11588 | }, |
| 11589 | |
| 11590 | { |
| 11591 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11592 | .name = "W25Q16.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11593 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11594 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11595 | .model_id = WINBOND_NEX_W25Q16_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11596 | .total_size = 2048, |
| 11597 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11598 | /* supports SFDP */ |
| 11599 | /* 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] | 11600 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 11601 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11602 | .probe = probe_spi_rdid, |
| 11603 | .probe_timing = TIMING_ZERO, |
| 11604 | .block_erasers = |
| 11605 | { |
| 11606 | { |
| 11607 | .eraseblocks = { {4 * 1024, 512} }, |
| 11608 | .block_erase = spi_block_erase_20, |
| 11609 | }, { |
| 11610 | .eraseblocks = { {32 * 1024, 64} }, |
| 11611 | .block_erase = spi_block_erase_52, |
| 11612 | }, { |
| 11613 | .eraseblocks = { {64 * 1024, 32} }, |
| 11614 | .block_erase = spi_block_erase_d8, |
| 11615 | }, { |
| 11616 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11617 | .block_erase = spi_block_erase_60, |
| 11618 | }, { |
| 11619 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11620 | .block_erase = spi_block_erase_c7, |
| 11621 | } |
| 11622 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11623 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11624 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11625 | .write = spi_chip_write_256, |
| 11626 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11627 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11628 | }, |
| 11629 | |
| 11630 | { |
| 11631 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11632 | .name = "W25Q32.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11633 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11634 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11635 | .model_id = WINBOND_NEX_W25Q32_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11636 | .total_size = 4096, |
| 11637 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11638 | /* supports SFDP */ |
| 11639 | /* 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] | 11640 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 11641 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11642 | .probe = probe_spi_rdid, |
| 11643 | .probe_timing = TIMING_ZERO, |
| 11644 | .block_erasers = |
| 11645 | { |
| 11646 | { |
| 11647 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11648 | .block_erase = spi_block_erase_20, |
| 11649 | }, { |
| 11650 | .eraseblocks = { {32 * 1024, 128} }, |
| 11651 | .block_erase = spi_block_erase_52, |
| 11652 | }, { |
| 11653 | .eraseblocks = { {64 * 1024, 64} }, |
| 11654 | .block_erase = spi_block_erase_d8, |
| 11655 | }, { |
| 11656 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11657 | .block_erase = spi_block_erase_60, |
| 11658 | }, { |
| 11659 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11660 | .block_erase = spi_block_erase_c7, |
| 11661 | } |
| 11662 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11663 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11664 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11665 | .write = spi_chip_write_256, |
| 11666 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11667 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11668 | }, |
| 11669 | |
| 11670 | { |
| 11671 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11672 | .name = "W25Q64.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11673 | .bustype = BUS_SPI, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 11674 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11675 | .model_id = WINBOND_NEX_W25Q64_V, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 11676 | .total_size = 8192, |
| 11677 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11678 | /* supports SFDP */ |
| 11679 | /* 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] | 11680 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 11681 | .tested = TEST_OK_PREW, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 11682 | .probe = probe_spi_rdid, |
| 11683 | .probe_timing = TIMING_ZERO, |
| 11684 | .block_erasers = |
| 11685 | { |
| 11686 | { |
| 11687 | .eraseblocks = { {4 * 1024, 2048} }, |
| 11688 | .block_erase = spi_block_erase_20, |
| 11689 | }, { |
| 11690 | .eraseblocks = { {32 * 1024, 256} }, |
| 11691 | .block_erase = spi_block_erase_52, |
| 11692 | }, { |
| 11693 | .eraseblocks = { {64 * 1024, 128} }, |
| 11694 | .block_erase = spi_block_erase_d8, |
| 11695 | }, { |
| 11696 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11697 | .block_erase = spi_block_erase_60, |
| 11698 | }, { |
| 11699 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11700 | .block_erase = spi_block_erase_c7, |
| 11701 | } |
| 11702 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11703 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11704 | .unlock = spi_disable_blockprotect, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 11705 | .write = spi_chip_write_256, |
| 11706 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11707 | .voltage = {2700, 3600}, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 11708 | }, |
| 11709 | |
| 11710 | { |
| 11711 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11712 | .name = "W25Q128.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11713 | .bustype = BUS_SPI, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 11714 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11715 | .model_id = WINBOND_NEX_W25Q128_V, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 11716 | .total_size = 16384, |
| 11717 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11718 | /* supports SFDP */ |
| 11719 | /* 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] | 11720 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 11721 | .tested = TEST_OK_PREW, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 11722 | .probe = probe_spi_rdid, |
| 11723 | .probe_timing = TIMING_ZERO, |
| 11724 | .block_erasers = |
| 11725 | { |
| 11726 | { |
| 11727 | .eraseblocks = { {4 * 1024, 4096} }, |
| 11728 | .block_erase = spi_block_erase_20, |
| 11729 | }, { |
| 11730 | .eraseblocks = { {32 * 1024, 512} }, |
| 11731 | .block_erase = spi_block_erase_52, |
| 11732 | }, { |
| 11733 | .eraseblocks = { {64 * 1024, 256} }, |
| 11734 | .block_erase = spi_block_erase_d8, |
| 11735 | }, { |
| 11736 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 11737 | .block_erase = spi_block_erase_60, |
| 11738 | }, { |
| 11739 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 11740 | .block_erase = spi_block_erase_c7, |
| 11741 | } |
| 11742 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11743 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 11744 | .unlock = spi_disable_blockprotect, |
| 11745 | .write = spi_chip_write_256, |
| 11746 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11747 | .voltage = {2700, 3600}, |
| 11748 | }, |
| 11749 | |
| 11750 | { |
| 11751 | .vendor = "Winbond", |
| 11752 | .name = "W25Q20.W", |
| 11753 | .bustype = BUS_SPI, |
| 11754 | .manufacture_id = WINBOND_NEX_ID, |
| 11755 | .model_id = WINBOND_NEX_W25Q20_W, |
| 11756 | .total_size = 256, |
| 11757 | .page_size = 256, |
| 11758 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 11759 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11760 | .tested = TEST_UNTESTED, |
| 11761 | .probe = probe_spi_rdid, |
| 11762 | .probe_timing = TIMING_ZERO, |
| 11763 | .block_erasers = |
| 11764 | { |
| 11765 | { |
| 11766 | .eraseblocks = { {4 * 1024, 64} }, |
| 11767 | .block_erase = spi_block_erase_20, |
| 11768 | }, { |
| 11769 | .eraseblocks = { {32 * 1024, 8} }, |
| 11770 | .block_erase = spi_block_erase_52, |
| 11771 | }, { |
| 11772 | .eraseblocks = { {64 * 1024, 4} }, |
| 11773 | .block_erase = spi_block_erase_d8, |
| 11774 | }, { |
| 11775 | .eraseblocks = { {256 * 1024, 1} }, |
| 11776 | .block_erase = spi_block_erase_60, |
| 11777 | }, { |
| 11778 | .eraseblocks = { {256 * 1024, 1} }, |
| 11779 | .block_erase = spi_block_erase_c7, |
| 11780 | } |
| 11781 | }, |
| 11782 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11783 | .unlock = spi_disable_blockprotect, |
| 11784 | .write = spi_chip_write_256, |
| 11785 | .read = spi_chip_read, |
| 11786 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 11787 | }, |
| 11788 | |
| 11789 | { |
| 11790 | .vendor = "Winbond", |
| 11791 | .name = "W25Q40.W", |
| 11792 | .bustype = BUS_SPI, |
| 11793 | .manufacture_id = WINBOND_NEX_ID, |
| 11794 | .model_id = WINBOND_NEX_W25Q40_W, |
| 11795 | .total_size = 512, |
| 11796 | .page_size = 256, |
| 11797 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 11798 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11799 | .tested = TEST_UNTESTED, |
| 11800 | .probe = probe_spi_rdid, |
| 11801 | .probe_timing = TIMING_ZERO, |
| 11802 | .block_erasers = |
| 11803 | { |
| 11804 | { |
| 11805 | .eraseblocks = { {4 * 1024, 128} }, |
| 11806 | .block_erase = spi_block_erase_20, |
| 11807 | }, { |
| 11808 | .eraseblocks = { {32 * 1024, 16} }, |
| 11809 | .block_erase = spi_block_erase_52, |
| 11810 | }, { |
| 11811 | .eraseblocks = { {64 * 1024, 8} }, |
| 11812 | .block_erase = spi_block_erase_d8, |
| 11813 | }, { |
| 11814 | .eraseblocks = { {512 * 1024, 1} }, |
| 11815 | .block_erase = spi_block_erase_60, |
| 11816 | }, { |
| 11817 | .eraseblocks = { {512 * 1024, 1} }, |
| 11818 | .block_erase = spi_block_erase_c7, |
| 11819 | } |
| 11820 | }, |
| 11821 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11822 | .unlock = spi_disable_blockprotect, |
| 11823 | .write = spi_chip_write_256, |
| 11824 | .read = spi_chip_read, |
| 11825 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 11826 | }, |
| 11827 | |
| 11828 | { |
| 11829 | .vendor = "Winbond", |
| 11830 | .name = "W25Q80.W", |
| 11831 | .bustype = BUS_SPI, |
| 11832 | .manufacture_id = WINBOND_NEX_ID, |
| 11833 | .model_id = WINBOND_NEX_W25Q80_W, |
| 11834 | .total_size = 1024, |
| 11835 | .page_size = 256, |
| 11836 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 11837 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11838 | .tested = TEST_UNTESTED, |
| 11839 | .probe = probe_spi_rdid, |
| 11840 | .probe_timing = TIMING_ZERO, |
| 11841 | .block_erasers = |
| 11842 | { |
| 11843 | { |
| 11844 | .eraseblocks = { {4 * 1024, 256} }, |
| 11845 | .block_erase = spi_block_erase_20, |
| 11846 | }, { |
| 11847 | .eraseblocks = { {32 * 1024, 32} }, |
| 11848 | .block_erase = spi_block_erase_52, |
| 11849 | }, { |
| 11850 | .eraseblocks = { {64 * 1024, 16} }, |
| 11851 | .block_erase = spi_block_erase_d8, |
| 11852 | }, { |
| 11853 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 11854 | .block_erase = spi_block_erase_60, |
| 11855 | }, { |
| 11856 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 11857 | .block_erase = spi_block_erase_c7, |
| 11858 | } |
| 11859 | }, |
| 11860 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11861 | .unlock = spi_disable_blockprotect, |
| 11862 | .write = spi_chip_write_256, |
| 11863 | .read = spi_chip_read, |
| 11864 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 11865 | }, |
| 11866 | |
| 11867 | { |
| 11868 | .vendor = "Winbond", |
| 11869 | .name = "W25Q16.W", |
| 11870 | .bustype = BUS_SPI, |
| 11871 | .manufacture_id = WINBOND_NEX_ID, |
| 11872 | .model_id = WINBOND_NEX_W25Q16_W, |
| 11873 | .total_size = 2048, |
| 11874 | .page_size = 256, |
| 11875 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 11876 | /* QPI enable 0x38, disable 0xFF */ |
| 11877 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 11878 | .tested = TEST_UNTESTED, |
| 11879 | .probe = probe_spi_rdid, |
| 11880 | .probe_timing = TIMING_ZERO, |
| 11881 | .block_erasers = |
| 11882 | { |
| 11883 | { |
| 11884 | .eraseblocks = { {4 * 1024, 512} }, |
| 11885 | .block_erase = spi_block_erase_20, |
| 11886 | }, { |
| 11887 | .eraseblocks = { {32 * 1024, 64} }, |
| 11888 | .block_erase = spi_block_erase_52, |
| 11889 | }, { |
| 11890 | .eraseblocks = { {64 * 1024, 32} }, |
| 11891 | .block_erase = spi_block_erase_d8, |
| 11892 | }, { |
| 11893 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11894 | .block_erase = spi_block_erase_60, |
| 11895 | }, { |
| 11896 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11897 | .block_erase = spi_block_erase_c7, |
| 11898 | } |
| 11899 | }, |
| 11900 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11901 | .unlock = spi_disable_blockprotect, |
| 11902 | .write = spi_chip_write_256, |
| 11903 | .read = spi_chip_read, |
| 11904 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 11905 | }, |
| 11906 | |
| 11907 | { |
| 11908 | .vendor = "Winbond", |
| 11909 | .name = "W25Q32.W", |
| 11910 | .bustype = BUS_SPI, |
| 11911 | .manufacture_id = WINBOND_NEX_ID, |
| 11912 | .model_id = WINBOND_NEX_W25Q32_W, |
| 11913 | .total_size = 4096, |
| 11914 | .page_size = 256, |
| 11915 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 11916 | /* QPI enable 0x38, disable 0xFF */ |
| 11917 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 11918 | .tested = TEST_OK_PREW, |
| 11919 | .probe = probe_spi_rdid, |
| 11920 | .probe_timing = TIMING_ZERO, |
| 11921 | .block_erasers = |
| 11922 | { |
| 11923 | { |
| 11924 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11925 | .block_erase = spi_block_erase_20, |
| 11926 | }, { |
| 11927 | .eraseblocks = { {32 * 1024, 128} }, |
| 11928 | .block_erase = spi_block_erase_52, |
| 11929 | }, { |
| 11930 | .eraseblocks = { {64 * 1024, 64} }, |
| 11931 | .block_erase = spi_block_erase_d8, |
| 11932 | }, { |
| 11933 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11934 | .block_erase = spi_block_erase_60, |
| 11935 | }, { |
| 11936 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11937 | .block_erase = spi_block_erase_c7, |
| 11938 | } |
| 11939 | }, |
| 11940 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11941 | .unlock = spi_disable_blockprotect, |
| 11942 | .write = spi_chip_write_256, |
| 11943 | .read = spi_chip_read, |
| 11944 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 11945 | }, |
| 11946 | |
| 11947 | { |
| 11948 | .vendor = "Winbond", |
| 11949 | .name = "W25Q64.W", |
| 11950 | .bustype = BUS_SPI, |
| 11951 | .manufacture_id = WINBOND_NEX_ID, |
| 11952 | .model_id = WINBOND_NEX_W25Q64_W, |
| 11953 | .total_size = 8192, |
| 11954 | .page_size = 256, |
| 11955 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 11956 | /* QPI enable 0x38, disable 0xFF */ |
| 11957 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 11958 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11959 | .probe = probe_spi_rdid, |
| 11960 | .probe_timing = TIMING_ZERO, |
| 11961 | .block_erasers = |
| 11962 | { |
| 11963 | { |
| 11964 | .eraseblocks = { {4 * 1024, 2048} }, |
| 11965 | .block_erase = spi_block_erase_20, |
| 11966 | }, { |
| 11967 | .eraseblocks = { {32 * 1024, 256} }, |
| 11968 | .block_erase = spi_block_erase_52, |
| 11969 | }, { |
| 11970 | .eraseblocks = { {64 * 1024, 128} }, |
| 11971 | .block_erase = spi_block_erase_d8, |
| 11972 | }, { |
| 11973 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11974 | .block_erase = spi_block_erase_60, |
| 11975 | }, { |
| 11976 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11977 | .block_erase = spi_block_erase_c7, |
| 11978 | } |
| 11979 | }, |
| 11980 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11981 | .unlock = spi_disable_blockprotect, |
| 11982 | .write = spi_chip_write_256, |
| 11983 | .read = spi_chip_read, |
| 11984 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 11985 | }, |
| 11986 | |
| 11987 | { |
| 11988 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 11989 | .name = "W25X10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11990 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11991 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11992 | .model_id = WINBOND_NEX_W25X10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11993 | .total_size = 128, |
| 11994 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 11995 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 11996 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11997 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11998 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11999 | .block_erasers = |
| 12000 | { |
| 12001 | { |
| 12002 | .eraseblocks = { {4 * 1024, 32} }, |
| 12003 | .block_erase = spi_block_erase_20, |
| 12004 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12005 | .eraseblocks = { {64 * 1024, 2} }, |
| 12006 | .block_erase = spi_block_erase_d8, |
| 12007 | }, { |
| 12008 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12009 | .block_erase = spi_block_erase_c7, |
| 12010 | } |
| 12011 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12012 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12013 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12014 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12015 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12016 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12017 | }, |
| 12018 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12019 | { |
| 12020 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12021 | .name = "W25X20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12022 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12023 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12024 | .model_id = WINBOND_NEX_W25X20, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12025 | .total_size = 256, |
| 12026 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12027 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12028 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12029 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12030 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12031 | .block_erasers = |
| 12032 | { |
| 12033 | { |
| 12034 | .eraseblocks = { {4 * 1024, 64} }, |
| 12035 | .block_erase = spi_block_erase_20, |
| 12036 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12037 | .eraseblocks = { {64 * 1024, 4} }, |
| 12038 | .block_erase = spi_block_erase_d8, |
| 12039 | }, { |
| 12040 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12041 | .block_erase = spi_block_erase_c7, |
| 12042 | } |
| 12043 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12044 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12045 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12046 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12047 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12048 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12049 | }, |
| 12050 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12051 | { |
| 12052 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12053 | .name = "W25X40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12054 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12055 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12056 | .model_id = WINBOND_NEX_W25X40, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12057 | .total_size = 512, |
| 12058 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12059 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 12060 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12061 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12062 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12063 | .block_erasers = |
| 12064 | { |
| 12065 | { |
| 12066 | .eraseblocks = { {4 * 1024, 128} }, |
| 12067 | .block_erase = spi_block_erase_20, |
| 12068 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12069 | .eraseblocks = { {64 * 1024, 8} }, |
| 12070 | .block_erase = spi_block_erase_d8, |
| 12071 | }, { |
| 12072 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12073 | .block_erase = spi_block_erase_c7, |
| 12074 | } |
| 12075 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12076 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12077 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12078 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12079 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12080 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12081 | }, |
| 12082 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12083 | { |
| 12084 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12085 | .name = "W25X80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12086 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12087 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12088 | .model_id = WINBOND_NEX_W25X80, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12089 | .total_size = 1024, |
| 12090 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12091 | .feature_bits = FEATURE_WRSR_WREN, |
Yul Rottmann | 6d6ab74 | 2011-03-05 16:31:57 +0000 | [diff] [blame] | 12092 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12093 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12094 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12095 | .block_erasers = |
| 12096 | { |
| 12097 | { |
| 12098 | .eraseblocks = { {4 * 1024, 256} }, |
| 12099 | .block_erase = spi_block_erase_20, |
| 12100 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12101 | .eraseblocks = { {64 * 1024, 16} }, |
| 12102 | .block_erase = spi_block_erase_d8, |
| 12103 | }, { |
| 12104 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12105 | .block_erase = spi_block_erase_c7, |
| 12106 | } |
| 12107 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12108 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12109 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12110 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12111 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12112 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12113 | }, |
| 12114 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12115 | { |
| 12116 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12117 | .name = "W25X16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12118 | .bustype = BUS_SPI, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12119 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12120 | .model_id = WINBOND_NEX_W25X16, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12121 | .total_size = 2048, |
| 12122 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12123 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 12124 | .tested = TEST_OK_PREW, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12125 | .probe = probe_spi_rdid, |
| 12126 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12127 | .block_erasers = |
| 12128 | { |
| 12129 | { |
| 12130 | .eraseblocks = { {4 * 1024, 512} }, |
| 12131 | .block_erase = spi_block_erase_20, |
| 12132 | }, { |
| 12133 | .eraseblocks = { {32 * 1024, 64} }, |
| 12134 | .block_erase = spi_block_erase_52, |
| 12135 | }, { |
| 12136 | .eraseblocks = { {64 * 1024, 32} }, |
| 12137 | .block_erase = spi_block_erase_d8, |
| 12138 | }, { |
| 12139 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12140 | .block_erase = spi_block_erase_60, |
| 12141 | }, { |
| 12142 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12143 | .block_erase = spi_block_erase_c7, |
| 12144 | } |
| 12145 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12146 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12147 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12148 | .write = spi_chip_write_256, |
| 12149 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12150 | .voltage = {2700, 3600}, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12151 | }, |
| 12152 | |
| 12153 | { |
| 12154 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12155 | .name = "W25X32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12156 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12157 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12158 | .model_id = WINBOND_NEX_W25X32, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12159 | .total_size = 4096, |
| 12160 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12161 | .feature_bits = FEATURE_WRSR_WREN, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12162 | .tested = TEST_OK_PROBE, |
| 12163 | .probe = probe_spi_rdid, |
| 12164 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12165 | .block_erasers = |
| 12166 | { |
| 12167 | { |
| 12168 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12169 | .block_erase = spi_block_erase_20, |
| 12170 | }, { |
| 12171 | .eraseblocks = { {32 * 1024, 128} }, |
| 12172 | .block_erase = spi_block_erase_52, |
| 12173 | }, { |
| 12174 | .eraseblocks = { {64 * 1024, 64} }, |
| 12175 | .block_erase = spi_block_erase_d8, |
| 12176 | }, { |
| 12177 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12178 | .block_erase = spi_block_erase_60, |
| 12179 | }, { |
| 12180 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12181 | .block_erase = spi_block_erase_c7, |
| 12182 | } |
| 12183 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12184 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12185 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12186 | .write = spi_chip_write_256, |
| 12187 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12188 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12189 | }, |
| 12190 | |
| 12191 | { |
| 12192 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12193 | .name = "W25X64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12194 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12195 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12196 | .model_id = WINBOND_NEX_W25X64, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12197 | .total_size = 8192, |
| 12198 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12199 | .feature_bits = FEATURE_WRSR_WREN, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12200 | .tested = TEST_OK_PROBE, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12201 | .probe = probe_spi_rdid, |
| 12202 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12203 | .block_erasers = |
| 12204 | { |
| 12205 | { |
| 12206 | .eraseblocks = { {4 * 1024, 2048} }, |
| 12207 | .block_erase = spi_block_erase_20, |
| 12208 | }, { |
| 12209 | .eraseblocks = { {32 * 1024, 256} }, |
| 12210 | .block_erase = spi_block_erase_52, |
| 12211 | }, { |
| 12212 | .eraseblocks = { {64 * 1024, 128} }, |
| 12213 | .block_erase = spi_block_erase_d8, |
| 12214 | }, { |
| 12215 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12216 | .block_erase = spi_block_erase_60, |
| 12217 | }, { |
| 12218 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12219 | .block_erase = spi_block_erase_c7, |
| 12220 | } |
| 12221 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12222 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12223 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12224 | .write = spi_chip_write_256, |
| 12225 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12226 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12227 | }, |
| 12228 | |
| 12229 | { |
| 12230 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 12231 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12232 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 12233 | .manufacture_id = WINBOND_ID, |
| 12234 | .model_id = WINBOND_W29C010, |
| 12235 | .total_size = 128, |
| 12236 | .page_size = 128, |
| 12237 | .feature_bits = FEATURE_LONG_RESET, |
| 12238 | .tested = TEST_OK_PRE, |
| 12239 | .probe = probe_w29ee011, |
| 12240 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */ |
| 12241 | .block_erasers = |
| 12242 | { |
| 12243 | { |
| 12244 | .eraseblocks = { {128 * 1024, 1} }, |
| 12245 | .block_erase = erase_chip_block_jedec, |
| 12246 | } |
| 12247 | }, |
| 12248 | .write = write_jedec, |
| 12249 | .read = read_memmapped, |
| 12250 | }, |
| 12251 | |
| 12252 | {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */ |
| 12253 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12254 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12255 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12256 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12257 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12258 | .total_size = 128, |
| 12259 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12260 | .feature_bits = FEATURE_LONG_RESET, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 12261 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12262 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12263 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12264 | .block_erasers = |
| 12265 | { |
| 12266 | { |
| 12267 | .eraseblocks = { {128 * 1024, 1} }, |
| 12268 | .block_erase = erase_chip_block_jedec, |
| 12269 | } |
| 12270 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12271 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12272 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12273 | }, |
| 12274 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12275 | { |
| 12276 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12277 | .name = "W29C020(C)/W29C022", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12278 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12279 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12280 | .model_id = WINBOND_W29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12281 | .total_size = 256, |
| 12282 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12283 | .feature_bits = FEATURE_LONG_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12284 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12285 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12286 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12287 | .block_erasers = |
| 12288 | { |
| 12289 | { |
| 12290 | .eraseblocks = { {256 * 1024, 1} }, |
| 12291 | .block_erase = erase_chip_block_jedec, |
| 12292 | } |
| 12293 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12294 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12295 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12296 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12297 | }, |
| 12298 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12299 | { |
| 12300 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12301 | .name = "W29C040/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12302 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12303 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12304 | .model_id = WINBOND_W29C040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12305 | .total_size = 512, |
| 12306 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12307 | .feature_bits = FEATURE_LONG_RESET, |
| 12308 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12309 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12310 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12311 | .block_erasers = |
| 12312 | { |
| 12313 | { |
| 12314 | .eraseblocks = { {512 * 1024, 1} }, |
| 12315 | .block_erase = erase_chip_block_jedec, |
| 12316 | } |
| 12317 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12318 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12319 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12320 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12321 | }, |
| 12322 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12323 | { |
| 12324 | .vendor = "Winbond", |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 12325 | .name = "W39F010", |
| 12326 | .bustype = BUS_PARALLEL, |
| 12327 | .manufacture_id = WINBOND_ID, |
| 12328 | .model_id = WINBOND_W39F010, |
| 12329 | .total_size = 128, |
| 12330 | .page_size = 4 * 1024, |
| 12331 | .feature_bits = FEATURE_EITHER_RESET, |
| 12332 | .tested = TEST_OK_PREW, |
| 12333 | .probe = probe_jedec, |
| 12334 | .probe_timing = 10, |
| 12335 | .block_erasers = |
| 12336 | { |
| 12337 | { |
| 12338 | .eraseblocks = { {4 * 1024, 32} }, |
| 12339 | .block_erase = erase_block_jedec, |
| 12340 | }, { |
| 12341 | .eraseblocks = { {128 * 1024, 1} }, |
| 12342 | .block_erase = erase_chip_block_jedec, |
| 12343 | } |
| 12344 | }, |
| 12345 | .printlock = printlock_w39f010, |
| 12346 | .write = write_jedec_1, |
| 12347 | .read = read_memmapped, |
| 12348 | .voltage = {4500, 5500}, |
| 12349 | }, |
| 12350 | |
| 12351 | { |
| 12352 | .vendor = "Winbond", |
| 12353 | .name = "W39L010", |
| 12354 | .bustype = BUS_PARALLEL, |
| 12355 | .manufacture_id = WINBOND_ID, |
| 12356 | .model_id = WINBOND_W39L010, |
| 12357 | .total_size = 128, |
| 12358 | .page_size = 4 * 1024, |
| 12359 | .feature_bits = FEATURE_EITHER_RESET, |
| 12360 | .tested = TEST_UNTESTED, |
| 12361 | .probe = probe_jedec, |
| 12362 | .probe_timing = 10, |
| 12363 | .block_erasers = |
| 12364 | { |
| 12365 | { |
| 12366 | .eraseblocks = { {4 * 1024, 32} }, |
| 12367 | .block_erase = erase_block_jedec, |
| 12368 | }, { |
| 12369 | .eraseblocks = { {128 * 1024, 1} }, |
| 12370 | .block_erase = erase_chip_block_jedec, |
| 12371 | } |
| 12372 | }, |
| 12373 | .printlock = printlock_w39l010, |
| 12374 | .write = write_jedec_1, |
| 12375 | .read = read_memmapped, |
| 12376 | .voltage = {3000, 3600}, |
| 12377 | }, |
| 12378 | |
| 12379 | { |
| 12380 | .vendor = "Winbond", |
| 12381 | .name = "W39L020", |
| 12382 | .bustype = BUS_PARALLEL, |
| 12383 | .manufacture_id = WINBOND_ID, |
| 12384 | .model_id = WINBOND_W39L020, |
| 12385 | .total_size = 256, |
| 12386 | .page_size = 4 * 1024, |
| 12387 | .feature_bits = FEATURE_EITHER_RESET, |
| 12388 | .tested = TEST_UNTESTED, |
| 12389 | .probe = probe_jedec, |
| 12390 | .probe_timing = 10, |
| 12391 | .block_erasers = |
| 12392 | { |
| 12393 | { |
| 12394 | .eraseblocks = { {4 * 1024, 64} }, |
| 12395 | .block_erase = erase_block_jedec, |
| 12396 | }, { |
| 12397 | .eraseblocks = { {64 * 1024, 4} }, |
| 12398 | .block_erase = erase_sector_jedec, |
| 12399 | }, { |
| 12400 | .eraseblocks = { {256 * 1024, 1} }, |
| 12401 | .block_erase = erase_chip_block_jedec, |
| 12402 | } |
| 12403 | }, |
| 12404 | .printlock = printlock_w39l020, |
| 12405 | .write = write_jedec_1, |
| 12406 | .read = read_memmapped, |
| 12407 | .voltage = {3000, 3600}, |
| 12408 | }, |
| 12409 | |
| 12410 | { |
| 12411 | .vendor = "Winbond", |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 12412 | .name = "W39L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12413 | .bustype = BUS_PARALLEL, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 12414 | .manufacture_id = WINBOND_ID, |
| 12415 | .model_id = WINBOND_W39L040, |
| 12416 | .total_size = 512, |
| 12417 | .page_size = 64 * 1024, |
| 12418 | .feature_bits = FEATURE_EITHER_RESET, |
| 12419 | .tested = TEST_OK_PR, |
| 12420 | .probe = probe_jedec, |
| 12421 | .probe_timing = 10, |
| 12422 | .block_erasers = |
| 12423 | { |
| 12424 | { |
| 12425 | .eraseblocks = { {4 * 1024, 128} }, |
| 12426 | .block_erase = erase_block_jedec, |
| 12427 | }, { |
| 12428 | .eraseblocks = { {64 * 1024, 8} }, |
| 12429 | .block_erase = erase_sector_jedec, |
| 12430 | }, { |
| 12431 | .eraseblocks = { {512 * 1024, 1} }, |
| 12432 | .block_erase = erase_chip_block_jedec, |
| 12433 | } |
| 12434 | }, |
| 12435 | .printlock = printlock_w39l040, |
| 12436 | .write = write_jedec_1, |
| 12437 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12438 | .voltage = {3000, 3600}, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 12439 | }, |
| 12440 | |
| 12441 | { |
| 12442 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12443 | .name = "W39V040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12444 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12445 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12446 | .model_id = WINBOND_W39V040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12447 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12448 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12449 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12450 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12451 | .probe = probe_jedec, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12452 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12453 | .block_erasers = |
| 12454 | { |
| 12455 | { |
| 12456 | .eraseblocks = { {64 * 1024, 8} }, |
| 12457 | .block_erase = erase_sector_jedec, |
| 12458 | }, { |
| 12459 | .eraseblocks = { {512 * 1024, 1} }, |
| 12460 | .block_erase = erase_chip_block_jedec, |
| 12461 | } |
| 12462 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12463 | .printlock = printlock_w39v040a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12464 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12465 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12466 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12467 | }, |
| 12468 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12469 | { |
| 12470 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12471 | .name = "W39V040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12472 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12473 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12474 | .model_id = WINBOND_W39V040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12475 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12476 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12477 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12478 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12479 | .probe = probe_jedec, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12480 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12481 | .block_erasers = |
| 12482 | { |
| 12483 | { |
| 12484 | .eraseblocks = { {64 * 1024, 8} }, |
| 12485 | .block_erase = erase_sector_jedec, |
| 12486 | }, { |
| 12487 | .eraseblocks = { {512 * 1024, 1} }, |
| 12488 | .block_erase = erase_chip_block_jedec, |
| 12489 | } |
| 12490 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12491 | .printlock = printlock_w39v040b, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12492 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12493 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12494 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12495 | }, |
| 12496 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12497 | { |
| 12498 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12499 | .name = "W39V040C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12500 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12501 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12502 | .model_id = WINBOND_W39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12503 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12504 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12505 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12506 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12507 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12508 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12509 | .block_erasers = |
| 12510 | { |
| 12511 | { |
| 12512 | .eraseblocks = { {64 * 1024, 8} }, |
| 12513 | .block_erase = erase_sector_jedec, |
| 12514 | }, { |
| 12515 | .eraseblocks = { {512 * 1024, 1} }, |
| 12516 | .block_erase = erase_chip_block_jedec, |
| 12517 | } |
| 12518 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 12519 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12520 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12521 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12522 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12523 | }, |
| 12524 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12525 | { |
| 12526 | .vendor = "Winbond", |
| 12527 | .name = "W39V040FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12528 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12529 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12530 | .model_id = WINBOND_W39V040FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12531 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12532 | .page_size = 64 * 1024, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 12533 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12534 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12535 | .probe = probe_jedec, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12536 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12537 | .block_erasers = |
| 12538 | { |
| 12539 | { |
| 12540 | .eraseblocks = { {4 * 1024, 128} }, |
| 12541 | .block_erase = erase_block_jedec, |
| 12542 | }, { |
| 12543 | .eraseblocks = { {64 * 1024, 8} }, |
| 12544 | .block_erase = erase_sector_jedec, |
| 12545 | }, { |
| 12546 | .eraseblocks = { {512 * 1024, 1} }, |
| 12547 | .block_erase = erase_chip_block_jedec, |
| 12548 | } |
| 12549 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12550 | .printlock = printlock_w39v040fa, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 12551 | .unlock = unlock_sst_fwhub, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12552 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12553 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12554 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12555 | }, |
| 12556 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12557 | { |
| 12558 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12559 | .name = "W39V040FB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12560 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12561 | .manufacture_id = WINBOND_ID, |
| 12562 | .model_id = WINBOND_W39V040B, |
| 12563 | .total_size = 512, |
| 12564 | .page_size = 64 * 1024, |
| 12565 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 12566 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12567 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12568 | .probe_timing = 10, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12569 | .block_erasers = |
| 12570 | { |
| 12571 | { |
| 12572 | .eraseblocks = { {64 * 1024, 8} }, |
| 12573 | .block_erase = erase_sector_jedec, |
| 12574 | }, { |
| 12575 | .eraseblocks = { {512 * 1024, 1} }, |
| 12576 | .block_erase = erase_chip_block_jedec, |
| 12577 | } |
| 12578 | }, |
| 12579 | .printlock = printlock_w39v040fb, |
Idwer Vollering | ecc6707 | 2010-12-26 23:55:12 +0000 | [diff] [blame] | 12580 | .unlock = unlock_w39v040fb, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12581 | .write = write_jedec_1, |
| 12582 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12583 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12584 | }, |
| 12585 | |
| 12586 | { |
| 12587 | .vendor = "Winbond", |
| 12588 | .name = "W39V040FC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12589 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12590 | .manufacture_id = WINBOND_ID, |
| 12591 | .model_id = WINBOND_W39V040C, |
| 12592 | .total_size = 512, |
| 12593 | .page_size = 64 * 1024, |
| 12594 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 12595 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12596 | .probe = probe_jedec, |
| 12597 | .probe_timing = 10, |
| 12598 | .block_erasers = |
| 12599 | { |
| 12600 | { |
| 12601 | .eraseblocks = { {64 * 1024, 8} }, |
| 12602 | .block_erase = erase_sector_jedec, |
| 12603 | }, { |
| 12604 | .eraseblocks = { {512 * 1024, 1} }, |
| 12605 | .block_erase = erase_chip_block_jedec, |
| 12606 | } |
| 12607 | }, |
| 12608 | .printlock = printlock_w39v040fc, |
| 12609 | .write = write_jedec_1, |
| 12610 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12611 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12612 | }, |
| 12613 | |
| 12614 | { |
| 12615 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12616 | .name = "W39V080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12617 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12618 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12619 | .model_id = WINBOND_W39V080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12620 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12621 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12622 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 12623 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12624 | .probe = probe_jedec, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 12625 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12626 | .block_erasers = |
| 12627 | { |
| 12628 | { |
| 12629 | .eraseblocks = { {64 * 1024, 16} }, |
| 12630 | .block_erase = erase_sector_jedec, |
| 12631 | }, { |
| 12632 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12633 | .block_erase = erase_chip_block_jedec, |
| 12634 | } |
| 12635 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12636 | .printlock = printlock_w39v080a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12637 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12638 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12639 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12640 | }, |
| 12641 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12642 | { |
| 12643 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12644 | .name = "W49F002U/N", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12645 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12646 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12647 | .model_id = WINBOND_W49F002U, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12648 | .total_size = 256, |
| 12649 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12650 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12651 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12652 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12653 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12654 | .block_erasers = |
| 12655 | { |
| 12656 | { |
| 12657 | .eraseblocks = { |
| 12658 | {128 * 1024, 1}, |
| 12659 | {96 * 1024, 1}, |
| 12660 | {8 * 1024, 2}, |
| 12661 | {16 * 1024, 1}, |
| 12662 | }, |
| 12663 | .block_erase = erase_sector_jedec, |
| 12664 | }, { |
| 12665 | .eraseblocks = { {256 * 1024, 1} }, |
| 12666 | .block_erase = erase_chip_block_jedec, |
| 12667 | } |
| 12668 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12669 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12670 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12671 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12672 | }, |
| 12673 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12674 | { |
| 12675 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 12676 | .name = "W49F020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12677 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 12678 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12679 | .model_id = WINBOND_W49F020, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 12680 | .total_size = 256, |
| 12681 | .page_size = 128, |
| 12682 | .feature_bits = FEATURE_EITHER_RESET, |
| 12683 | .tested = TEST_OK_PROBE, |
| 12684 | .probe = probe_jedec, |
| 12685 | .probe_timing = 10, |
| 12686 | .block_erasers = |
| 12687 | { |
| 12688 | { |
| 12689 | .eraseblocks = { {256 * 1024, 1} }, |
| 12690 | .block_erase = erase_chip_block_jedec, |
| 12691 | } |
| 12692 | }, |
| 12693 | .write = write_jedec_1, |
| 12694 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12695 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 12696 | }, |
| 12697 | |
| 12698 | { |
| 12699 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12700 | .name = "W49V002A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12701 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12702 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12703 | .model_id = WINBOND_W49V002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12704 | .total_size = 256, |
| 12705 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12706 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12707 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12708 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12709 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12710 | .block_erasers = |
| 12711 | { |
| 12712 | { |
| 12713 | .eraseblocks = { |
| 12714 | {64 * 1024, 3}, |
| 12715 | {32 * 1024, 1}, |
| 12716 | {8 * 1024, 2}, |
| 12717 | {16 * 1024, 1}, |
| 12718 | }, |
| 12719 | .block_erase = erase_sector_jedec, |
| 12720 | }, { |
| 12721 | .eraseblocks = { {256 * 1024, 1} }, |
| 12722 | .block_erase = erase_chip_block_jedec, |
| 12723 | } |
| 12724 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12725 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12726 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12727 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12728 | }, |
| 12729 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12730 | { |
| 12731 | .vendor = "Winbond", |
| 12732 | .name = "W49V002FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12733 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12734 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12735 | .model_id = WINBOND_W49V002FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12736 | .total_size = 256, |
| 12737 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12738 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 12739 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12740 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12741 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12742 | .block_erasers = |
| 12743 | { |
| 12744 | { |
| 12745 | .eraseblocks = { |
| 12746 | {64 * 1024, 3}, |
| 12747 | {32 * 1024, 1}, |
| 12748 | {8 * 1024, 2}, |
| 12749 | {16 * 1024, 1}, |
| 12750 | }, |
| 12751 | .block_erase = erase_sector_jedec, |
| 12752 | }, { |
| 12753 | .eraseblocks = { {256 * 1024, 1} }, |
| 12754 | .block_erase = erase_chip_block_jedec, |
| 12755 | } |
| 12756 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12757 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12758 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12759 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12760 | }, |
| 12761 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12762 | { |
| 12763 | .vendor = "Winbond", |
| 12764 | .name = "W39V080FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12765 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12766 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12767 | .model_id = WINBOND_W39V080FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12768 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12769 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12770 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12771 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 12772 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12773 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12774 | .block_erasers = |
| 12775 | { |
| 12776 | { |
| 12777 | .eraseblocks = { {64 * 1024, 16}, }, |
| 12778 | .block_erase = erase_sector_jedec, |
| 12779 | }, { |
| 12780 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12781 | .block_erase = erase_chip_block_jedec, |
| 12782 | } |
| 12783 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12784 | .printlock = printlock_w39v080fa, |
| 12785 | .unlock = unlock_w39v080fa, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12786 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12787 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12788 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12789 | }, |
| 12790 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12791 | { |
| 12792 | .vendor = "Winbond", |
| 12793 | .name = "W39V080FA (dual mode)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12794 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12795 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12796 | .model_id = WINBOND_W39V080FA_DM, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12797 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12798 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12799 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12800 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 12801 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12802 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12803 | .block_erasers = |
| 12804 | { |
| 12805 | { |
| 12806 | .eraseblocks = { {64 * 1024, 8}, }, |
| 12807 | .block_erase = erase_sector_jedec, |
| 12808 | }, { |
| 12809 | .eraseblocks = { {512 * 1024, 1} }, |
| 12810 | .block_erase = erase_chip_block_jedec, |
| 12811 | } |
| 12812 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12813 | .printlock = printlock_w39v080fa_dual, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12814 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12815 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12816 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12817 | }, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 12818 | |
| 12819 | { |
| 12820 | .vendor = "Unknown", |
| 12821 | .name = "SFDP-capable chip", |
| 12822 | .bustype = BUS_SPI, |
| 12823 | .manufacture_id = GENERIC_MANUF_ID, |
| 12824 | .model_id = SFDP_DEVICE_ID, |
| 12825 | /* We present our own "report this" text hence we do not |
| 12826 | * want the default "This flash part has status UNTESTED..." |
| 12827 | * text to be printed. */ |
| 12828 | .tested = TEST_OK_PREW, |
| 12829 | .probe = probe_spi_sfdp, |
| 12830 | .unlock = spi_disable_blockprotect, /* is this safe? */ |
| 12831 | .read = spi_chip_read, |
| 12832 | /* FIXME: some vendor extensions define this */ |
Carl-Daniel Hailfinger | 1c6d2ff | 2012-08-27 00:44:42 +0000 | [diff] [blame] | 12833 | .voltage = {0}, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 12834 | /* Everything below will be set by the probing function. */ |
| 12835 | .write = NULL, |
| 12836 | .total_size = 0, |
| 12837 | .page_size = 0, |
| 12838 | .feature_bits = 0, |
| 12839 | .block_erasers = {}, |
| 12840 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12841 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12842 | { |
Carl-Daniel Hailfinger | 532c717 | 2011-11-04 21:35:26 +0000 | [diff] [blame] | 12843 | .vendor = "Programmer", |
| 12844 | .name = "Opaque flash chip", |
| 12845 | .bustype = BUS_PROG, |
| 12846 | .manufacture_id = PROGMANUF_ID, |
| 12847 | .model_id = PROGDEV_ID, |
| 12848 | .total_size = 0, |
| 12849 | .page_size = 256, |
| 12850 | /* probe is assumed to work, rest will be filled in by probe */ |
| 12851 | .tested = TEST_OK_PROBE, |
| 12852 | .probe = probe_opaque, |
| 12853 | /* eraseblock sizes will be set by the probing function */ |
| 12854 | .block_erasers = |
| 12855 | { |
| 12856 | { |
| 12857 | .block_erase = erase_opaque, |
| 12858 | } |
| 12859 | }, |
| 12860 | .write = write_opaque, |
| 12861 | .read = read_opaque, |
| 12862 | }, |
| 12863 | |
| 12864 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 12865 | .vendor = "AMIC", |
| 12866 | .name = "unknown AMIC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12867 | .bustype = BUS_SPI, |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 12868 | .manufacture_id = AMIC_ID, |
| 12869 | .model_id = GENERIC_DEVICE_ID, |
| 12870 | .total_size = 0, |
| 12871 | .page_size = 256, |
| 12872 | .tested = TEST_BAD_PREW, |
| 12873 | .probe = probe_spi_rdid4, |
| 12874 | .probe_timing = TIMING_ZERO, |
| 12875 | .write = NULL, |
| 12876 | .read = NULL, |
| 12877 | }, |
| 12878 | |
| 12879 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12880 | .vendor = "Atmel", |
| 12881 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12882 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12883 | .manufacture_id = ATMEL_ID, |
| 12884 | .model_id = GENERIC_DEVICE_ID, |
| 12885 | .total_size = 0, |
| 12886 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 12887 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12888 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12889 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12890 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12891 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12892 | }, |
| 12893 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12894 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 12895 | .vendor = "Eon", |
| 12896 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12897 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12898 | .manufacture_id = EON_ID_NOPREFIX, |
| 12899 | .model_id = GENERIC_DEVICE_ID, |
| 12900 | .total_size = 0, |
| 12901 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 12902 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12903 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12904 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12905 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12906 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12907 | }, |
| 12908 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12909 | { |
| 12910 | .vendor = "Macronix", |
| 12911 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12912 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12913 | .manufacture_id = MACRONIX_ID, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12914 | .model_id = GENERIC_DEVICE_ID, |
| 12915 | .total_size = 0, |
| 12916 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 12917 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12918 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12919 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12920 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12921 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12922 | }, |
| 12923 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12924 | { |
| 12925 | .vendor = "PMC", |
| 12926 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12927 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12928 | .manufacture_id = PMC_ID, |
| 12929 | .model_id = GENERIC_DEVICE_ID, |
| 12930 | .total_size = 0, |
| 12931 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 12932 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12933 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12934 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12935 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12936 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12937 | }, |
| 12938 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12939 | { |
| 12940 | .vendor = "SST", |
| 12941 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12942 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12943 | .manufacture_id = SST_ID, |
| 12944 | .model_id = GENERIC_DEVICE_ID, |
| 12945 | .total_size = 0, |
| 12946 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 12947 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12948 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12949 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12950 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12951 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12952 | }, |
| 12953 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12954 | { |
| 12955 | .vendor = "ST", |
| 12956 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12957 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12958 | .manufacture_id = ST_ID, |
| 12959 | .model_id = GENERIC_DEVICE_ID, |
| 12960 | .total_size = 0, |
| 12961 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 12962 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12963 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12964 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12965 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12966 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12967 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 12968 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 12969 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 12970 | .vendor = "Sanyo", |
| 12971 | .name = "unknown Sanyo SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12972 | .bustype = BUS_SPI, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 12973 | .manufacture_id = SANYO_ID, |
| 12974 | .model_id = GENERIC_DEVICE_ID, |
| 12975 | .total_size = 0, |
| 12976 | .page_size = 256, |
| 12977 | .tested = TEST_BAD_PREW, |
| 12978 | .probe = probe_spi_rdid, |
| 12979 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 12980 | .write = NULL, |
| 12981 | .read = NULL, |
| 12982 | }, |
| 12983 | |
| 12984 | { |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 12985 | .vendor = "Winbond", |
| 12986 | .name = "unknown Winbond (ex Nexcom) SPI chip", |
| 12987 | .bustype = BUS_SPI, |
| 12988 | .manufacture_id = WINBOND_NEX_ID, |
| 12989 | .model_id = GENERIC_DEVICE_ID, |
| 12990 | .total_size = 0, |
| 12991 | .page_size = 256, |
| 12992 | .tested = TEST_BAD_PREW, |
| 12993 | .probe = probe_spi_rdid, |
| 12994 | .probe_timing = TIMING_ZERO, |
| 12995 | .write = NULL, |
| 12996 | .read = NULL, |
| 12997 | }, |
| 12998 | |
| 12999 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13000 | .vendor = "Generic", |
| 13001 | .name = "unknown SPI chip (RDID)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13002 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13003 | .manufacture_id = GENERIC_MANUF_ID, |
| 13004 | .model_id = GENERIC_DEVICE_ID, |
| 13005 | .total_size = 0, |
| 13006 | .page_size = 256, |
| 13007 | .tested = TEST_BAD_PREW, |
| 13008 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13009 | .write = NULL, |
| 13010 | }, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 13011 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13012 | { |
| 13013 | .vendor = "Generic", |
| 13014 | .name = "unknown SPI chip (REMS)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13015 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13016 | .manufacture_id = GENERIC_MANUF_ID, |
| 13017 | .model_id = GENERIC_DEVICE_ID, |
| 13018 | .total_size = 0, |
| 13019 | .page_size = 256, |
| 13020 | .tested = TEST_BAD_PREW, |
| 13021 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13022 | .write = NULL, |
| 13023 | }, |
| 13024 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13025 | { NULL } |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 13026 | }; |