Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 1 | /* |
Uwe Hermann | d110764 | 2007-08-29 17:52:32 +0000 | [diff] [blame] | 2 | * This file is part of the flashrom project. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 3 | * |
Uwe Hermann | d22a1d4 | 2007-09-09 20:21:05 +0000 | [diff] [blame] | 4 | * Copyright (C) 2000 Silicon Integrated System Corporation |
| 5 | * Copyright (C) 2004 Tyan Corp |
Stefan Reinauer | 4c390c8 | 2008-07-02 13:33:09 +0000 | [diff] [blame] | 6 | * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org> |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 7 | * Copyright (C) 2006-2009 Carl-Daniel Hailfinger |
Sean Nelson | c57a920 | 2010-01-04 17:15:23 +0000 | [diff] [blame] | 8 | * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com> |
Uwe Hermann | d110764 | 2007-08-29 17:52:32 +0000 | [diff] [blame] | 9 | * |
Stefan Reinauer | ce53297 | 2007-05-23 17:20:56 +0000 | [diff] [blame] | 10 | * This program is free software; you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License as published by |
| 12 | * the Free Software Foundation; either version 2 of the License, or |
| 13 | * (at your option) any later version. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 14 | * |
Stefan Reinauer | ce53297 | 2007-05-23 17:20:56 +0000 | [diff] [blame] | 15 | * This program is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU General Public License for more details. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 19 | * |
Stefan Reinauer | ce53297 | 2007-05-23 17:20:56 +0000 | [diff] [blame] | 20 | * You should have received a copy of the GNU General Public License |
| 21 | * along with this program; if not, write to the Free Software |
Uwe Hermann | d110764 | 2007-08-29 17:52:32 +0000 | [diff] [blame] | 22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 23 | */ |
| 24 | |
| 25 | #include "flash.h" |
Carl-Daniel Hailfinger | 0845464 | 2009-06-15 14:14:48 +0000 | [diff] [blame] | 26 | #include "flashchips.h" |
Sean Nelson | 14ba668 | 2010-02-26 05:48:29 +0000 | [diff] [blame] | 27 | #include "chipdrivers.h" |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 28 | |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 29 | /** |
Uwe Hermann | a972040 | 2009-05-21 15:55:46 +0000 | [diff] [blame] | 30 | * List of supported flash chips. |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 31 | * |
| 32 | * Please keep the list sorted by vendor name and chip name, so that |
| 33 | * the output of 'flashrom -L' is alphabetically sorted. |
| 34 | */ |
Carl-Daniel Hailfinger | 4c82318 | 2011-05-04 00:39:50 +0000 | [diff] [blame] | 35 | const struct flashchip flashchips[] = { |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 36 | |
Carl-Daniel Hailfinger | 21eedec | 2009-07-23 12:42:01 +0000 | [diff] [blame] | 37 | /* |
| 38 | * .vendor = Vendor name |
| 39 | * .name = Chip name |
| 40 | * .bustype = Supported flash bus types (Parallel, LPC...) |
| 41 | * .manufacture_id = Manufacturer chip ID |
| 42 | * .model_id = Model chip ID |
| 43 | * .total_size = Total size in (binary) kbytes |
| 44 | * .page_size = Page or eraseblock(?) size in bytes |
| 45 | * .tested = Test status |
| 46 | * .probe = Probe function |
| 47 | * .probe_timing = Probe function delay |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 48 | * .block_erasers[] = Array of erase layouts and erase functions |
| 49 | * { |
| 50 | * .eraseblocks[] = Array of { blocksize, blockcount } |
| 51 | * .block_erase = Block erase function |
| 52 | * } |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 53 | * .printlock = Chip lock status function |
| 54 | * .unlock = Chip unlock function |
Carl-Daniel Hailfinger | 21eedec | 2009-07-23 12:42:01 +0000 | [diff] [blame] | 55 | * .write = Chip write function |
| 56 | * .read = Chip read function |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 57 | * .voltage = Voltage range in millivolt |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 58 | */ |
| 59 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 60 | { |
| 61 | .vendor = "AMD", |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 62 | .name = "Am29F010A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 63 | .bustype = BUS_PARALLEL, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 64 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 65 | .model_id = AMD_AM29F010B, /* Same as Am29F010A */ |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 66 | .total_size = 128, |
| 67 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 68 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 69 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 70 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 71 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 72 | .block_erasers = |
| 73 | { |
| 74 | { |
| 75 | .eraseblocks = { {16 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 76 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 77 | }, { |
| 78 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 79 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 80 | }, |
| 81 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 82 | .write = write_jedec_1, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 83 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 84 | .voltage = {4500, 5500}, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 85 | }, |
| 86 | |
| 87 | { |
| 88 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 89 | .name = "Am29F002(N)BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 90 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 91 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 92 | .model_id = AMD_AM29F002BB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 93 | .total_size = 256, |
| 94 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 95 | .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 96 | .tested = TEST_UNTESTED, |
| 97 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 98 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 99 | .block_erasers = |
| 100 | { |
| 101 | { |
| 102 | .eraseblocks = { |
| 103 | {16 * 1024, 1}, |
| 104 | {8 * 1024, 2}, |
| 105 | {32 * 1024, 1}, |
| 106 | {64 * 1024, 3}, |
| 107 | }, |
| 108 | .block_erase = erase_sector_jedec, |
| 109 | }, { |
| 110 | .eraseblocks = { {256 * 1024, 1} }, |
| 111 | .block_erase = erase_chip_block_jedec, |
| 112 | }, |
| 113 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 114 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 115 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 116 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 117 | }, |
| 118 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 119 | { |
| 120 | .vendor = "AMD", |
| 121 | .name = "Am29F002(N)BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 122 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 123 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 124 | .model_id = AMD_AM29F002BT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 125 | .total_size = 256, |
| 126 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 127 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA, |
| 128 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 129 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 130 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 131 | .block_erasers = |
| 132 | { |
| 133 | { |
| 134 | .eraseblocks = { |
| 135 | {64 * 1024, 3}, |
| 136 | {32 * 1024, 1}, |
| 137 | {8 * 1024, 2}, |
| 138 | {16 * 1024, 1}, |
| 139 | }, |
| 140 | .block_erase = erase_sector_jedec, |
| 141 | }, { |
| 142 | .eraseblocks = { {256 * 1024, 1} }, |
| 143 | .block_erase = erase_chip_block_jedec, |
| 144 | }, |
| 145 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 146 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 147 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 148 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 149 | }, |
| 150 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 151 | { |
| 152 | .vendor = "AMD", |
| 153 | .name = "Am29F016D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 154 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 155 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 156 | .model_id = AMD_AM29F016D, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 157 | .total_size = 2 * 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 158 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 159 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 160 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 161 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 162 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 163 | .block_erasers = |
| 164 | { |
| 165 | { |
| 166 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 167 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 168 | }, { |
| 169 | .eraseblocks = { {2048 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 170 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 171 | }, |
| 172 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 173 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 174 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 175 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 176 | }, |
| 177 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 178 | { |
| 179 | .vendor = "AMD", |
| 180 | .name = "Am29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 181 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 182 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 183 | .model_id = AMD_AM29F040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 184 | .total_size = 512, |
| 185 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 186 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 187 | .tested = TEST_UNTESTED, |
| 188 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 189 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 190 | .block_erasers = |
| 191 | { |
| 192 | { |
| 193 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 194 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 195 | }, { |
| 196 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 197 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 198 | }, |
| 199 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 200 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 201 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 202 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 203 | }, |
| 204 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 205 | { |
| 206 | .vendor = "AMD", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 207 | .name = "Am29F080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 208 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 209 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 210 | .model_id = AMD_AM29F080B, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 211 | .total_size = 1024, |
| 212 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 213 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 214 | .tested = TEST_UNTESTED, |
| 215 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 216 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 217 | .block_erasers = |
| 218 | { |
| 219 | { |
| 220 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 221 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 222 | }, { |
| 223 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 224 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 225 | }, |
| 226 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 227 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 228 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 229 | .voltage = {4500, 5500}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 230 | }, |
| 231 | |
| 232 | { |
| 233 | .vendor = "AMD", |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 234 | .name = "Am29LV001BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 235 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 236 | .manufacture_id = AMD_ID, |
| 237 | .model_id = AMD_AM29LV001BB, |
| 238 | .total_size = 128, |
| 239 | .page_size = 64 * 1024, /* unused */ |
| 240 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 241 | .tested = TEST_OK_PREW, |
| 242 | .probe = probe_jedec, |
| 243 | .probe_timing = TIMING_ZERO, |
| 244 | .block_erasers = |
| 245 | { |
| 246 | { |
| 247 | .eraseblocks = { |
| 248 | {8 * 1024, 1}, |
| 249 | {4 * 1024, 2}, |
| 250 | {16 * 1024, 7}, |
| 251 | }, |
| 252 | .block_erase = erase_sector_jedec, |
| 253 | }, { |
| 254 | .eraseblocks = { {128 * 1024, 1} }, |
| 255 | .block_erase = erase_chip_block_jedec, |
| 256 | }, |
| 257 | }, |
| 258 | .write = write_jedec_1, |
| 259 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 260 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 261 | }, |
| 262 | |
| 263 | { |
| 264 | .vendor = "AMD", |
| 265 | .name = "Am29LV001BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 266 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 267 | .manufacture_id = AMD_ID, |
| 268 | .model_id = AMD_AM29LV001BT, |
| 269 | .total_size = 128, |
| 270 | .page_size = 64 * 1024, /* unused */ |
| 271 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 272 | .tested = TEST_UNTESTED, |
| 273 | .probe = probe_jedec, |
| 274 | .probe_timing = TIMING_ZERO, |
| 275 | .block_erasers = |
| 276 | { |
| 277 | { |
| 278 | .eraseblocks = { |
| 279 | {16 * 1024, 7}, |
| 280 | {4 * 1024, 2}, |
| 281 | {8 * 1024, 1}, |
| 282 | }, |
| 283 | .block_erase = erase_sector_jedec, |
| 284 | }, { |
| 285 | .eraseblocks = { {128 * 1024, 1} }, |
| 286 | .block_erase = erase_chip_block_jedec, |
| 287 | }, |
| 288 | }, |
| 289 | .write = write_jedec_1, |
| 290 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 291 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 292 | }, |
| 293 | |
| 294 | { |
| 295 | .vendor = "AMD", |
| 296 | .name = "Am29LV002BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 297 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 298 | .manufacture_id = AMD_ID, |
| 299 | .model_id = AMD_AM29LV002BB, |
| 300 | .total_size = 256, |
| 301 | .page_size = 64 * 1024, /* unused */ |
| 302 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 303 | .tested = TEST_UNTESTED, |
| 304 | .probe = probe_jedec, |
| 305 | .probe_timing = TIMING_ZERO, |
| 306 | .block_erasers = |
| 307 | { |
| 308 | { |
| 309 | .eraseblocks = { |
| 310 | {16 * 1024, 1}, |
| 311 | {8 * 1024, 2}, |
| 312 | {32 * 1024, 1}, |
| 313 | {64 * 1024, 3}, |
| 314 | }, |
| 315 | .block_erase = erase_sector_jedec, |
| 316 | }, { |
| 317 | .eraseblocks = { {256 * 1024, 1} }, |
| 318 | .block_erase = erase_chip_block_jedec, |
| 319 | }, |
| 320 | }, |
| 321 | .write = write_jedec_1, |
| 322 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 323 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 324 | }, |
| 325 | |
| 326 | { |
| 327 | .vendor = "AMD", |
| 328 | .name = "Am29LV002BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 329 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 330 | .manufacture_id = AMD_ID, |
| 331 | .model_id = AMD_AM29LV002BT, |
| 332 | .total_size = 256, |
| 333 | .page_size = 64 * 1024, /* unused */ |
| 334 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 335 | .tested = TEST_UNTESTED, |
| 336 | .probe = probe_jedec, |
| 337 | .probe_timing = TIMING_ZERO, |
| 338 | .block_erasers = |
| 339 | { |
| 340 | { |
| 341 | .eraseblocks = { |
| 342 | {64 * 1024, 3}, |
| 343 | {32 * 1024, 1}, |
| 344 | {8 * 1024, 2}, |
| 345 | {16 * 1024, 1}, |
| 346 | }, |
| 347 | .block_erase = erase_sector_jedec, |
| 348 | }, { |
| 349 | .eraseblocks = { {256 * 1024, 1} }, |
| 350 | .block_erase = erase_chip_block_jedec, |
| 351 | }, |
| 352 | }, |
| 353 | .write = write_jedec_1, |
| 354 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 355 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 356 | }, |
| 357 | |
| 358 | { |
| 359 | .vendor = "AMD", |
| 360 | .name = "Am29LV004BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 361 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 362 | .manufacture_id = AMD_ID, |
| 363 | .model_id = AMD_AM29LV004BB, |
| 364 | .total_size = 512, |
| 365 | .page_size = 64 * 1024, /* unused */ |
| 366 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 367 | .tested = TEST_UNTESTED, |
| 368 | .probe = probe_jedec, |
| 369 | .probe_timing = TIMING_ZERO, |
| 370 | .block_erasers = |
| 371 | { |
| 372 | { |
| 373 | .eraseblocks = { |
| 374 | {16 * 1024, 1}, |
| 375 | {8 * 1024, 2}, |
| 376 | {32 * 1024, 1}, |
| 377 | {64 * 1024, 7}, |
| 378 | }, |
| 379 | .block_erase = erase_sector_jedec, |
| 380 | }, { |
| 381 | .eraseblocks = { {512 * 1024, 1} }, |
| 382 | .block_erase = erase_chip_block_jedec, |
| 383 | }, |
| 384 | }, |
| 385 | .write = write_jedec_1, |
| 386 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 387 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 388 | }, |
| 389 | |
| 390 | { |
| 391 | .vendor = "AMD", |
| 392 | .name = "Am29LV004BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 393 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 394 | .manufacture_id = AMD_ID, |
| 395 | .model_id = AMD_AM29LV004BT, |
| 396 | .total_size = 512, |
| 397 | .page_size = 64 * 1024, /* unused */ |
| 398 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 399 | .tested = TEST_UNTESTED, |
| 400 | .probe = probe_jedec, |
| 401 | .probe_timing = TIMING_ZERO, |
| 402 | .block_erasers = |
| 403 | { |
| 404 | { |
| 405 | .eraseblocks = { |
| 406 | {64 * 1024, 7}, |
| 407 | {32 * 1024, 1}, |
| 408 | {8 * 1024, 2}, |
| 409 | {16 * 1024, 1}, |
| 410 | }, |
| 411 | .block_erase = erase_sector_jedec, |
| 412 | }, { |
| 413 | .eraseblocks = { {512 * 1024, 1} }, |
| 414 | .block_erase = erase_chip_block_jedec, |
| 415 | }, |
| 416 | }, |
| 417 | .write = write_jedec_1, |
| 418 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 419 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 420 | }, |
| 421 | |
| 422 | { |
| 423 | .vendor = "AMD", |
| 424 | .name = "Am29LV008BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 425 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 426 | .manufacture_id = AMD_ID, |
| 427 | .model_id = AMD_AM29LV008BB, |
| 428 | .total_size = 1024, |
| 429 | .page_size = 64 * 1024, /* unused */ |
| 430 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Uwe Hermann | 09ebd52 | 2011-08-25 22:54:23 +0000 | [diff] [blame] | 431 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 432 | .probe = probe_jedec, |
| 433 | .probe_timing = TIMING_ZERO, |
| 434 | .block_erasers = |
| 435 | { |
| 436 | { |
| 437 | .eraseblocks = { |
| 438 | {16 * 1024, 1}, |
| 439 | {8 * 1024, 2}, |
| 440 | {32 * 1024, 1}, |
| 441 | {64 * 1024, 15}, |
| 442 | }, |
| 443 | .block_erase = erase_sector_jedec, |
| 444 | }, { |
| 445 | .eraseblocks = { {1024 * 1024, 1} }, |
| 446 | .block_erase = erase_chip_block_jedec, |
| 447 | }, |
| 448 | }, |
| 449 | .write = write_jedec_1, |
| 450 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 451 | .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 452 | }, |
| 453 | |
| 454 | { |
| 455 | .vendor = "AMD", |
| 456 | .name = "Am29LV008BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 457 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 458 | .manufacture_id = AMD_ID, |
| 459 | .model_id = AMD_AM29LV008BT, |
| 460 | .total_size = 1024, |
| 461 | .page_size = 64 * 1024, /* unused */ |
| 462 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 463 | .tested = TEST_UNTESTED, |
| 464 | .probe = probe_jedec, |
| 465 | .probe_timing = TIMING_ZERO, |
| 466 | .block_erasers = |
| 467 | { |
| 468 | { |
| 469 | .eraseblocks = { |
| 470 | {64 * 1024, 15}, |
| 471 | {32 * 1024, 1}, |
| 472 | {8 * 1024, 2}, |
| 473 | {16 * 1024, 1}, |
| 474 | }, |
| 475 | .block_erase = erase_sector_jedec, |
| 476 | }, { |
| 477 | .eraseblocks = { {1024 * 1024, 1} }, |
| 478 | .block_erase = erase_chip_block_jedec, |
| 479 | }, |
| 480 | }, |
| 481 | .write = write_jedec_1, |
| 482 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 483 | .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 484 | }, |
| 485 | |
| 486 | { |
| 487 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 488 | .name = "Am29LV040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 489 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 490 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 491 | .model_id = AMD_AM29LV040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 492 | .total_size = 512, |
| 493 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 494 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 495 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 496 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 497 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 498 | .block_erasers = |
| 499 | { |
| 500 | { |
| 501 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 502 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 503 | }, { |
| 504 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 505 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 506 | }, |
| 507 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 508 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 509 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 510 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 511 | }, |
| 512 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 513 | { |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 514 | .vendor = "AMD", |
| 515 | .name = "Am29LV081B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 516 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 517 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 518 | .model_id = AMD_AM29LV080B, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 519 | .total_size = 1024, |
| 520 | .page_size = 64 * 1024, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 521 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */ |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 522 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 523 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 524 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 525 | .block_erasers = |
| 526 | { |
| 527 | { |
| 528 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 529 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 530 | }, { |
| 531 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 532 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 533 | }, |
| 534 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 535 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 536 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 537 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 538 | }, |
| 539 | |
| 540 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 541 | .vendor = "AMIC", |
| 542 | .name = "A25L05PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 543 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 544 | .manufacture_id = AMIC_ID, |
| 545 | .model_id = AMIC_A25L05PT, |
| 546 | .total_size = 64, |
| 547 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 548 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 549 | .tested = TEST_UNTESTED, |
| 550 | .probe = probe_spi_rdid4, |
| 551 | .probe_timing = TIMING_ZERO, |
| 552 | .block_erasers = |
| 553 | { |
| 554 | { |
| 555 | .eraseblocks = { |
| 556 | {32 * 1024, 1}, |
| 557 | {16 * 1024, 1}, |
| 558 | {8 * 1024, 1}, |
| 559 | {4 * 1024, 2}, |
| 560 | }, |
| 561 | .block_erase = spi_block_erase_d8, |
| 562 | }, { |
| 563 | .eraseblocks = { {64 * 1024, 1} }, |
| 564 | .block_erase = spi_block_erase_c7, |
| 565 | } |
| 566 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 567 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 568 | .unlock = spi_disable_blockprotect, |
| 569 | .write = spi_chip_write_256, |
| 570 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 571 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 572 | }, |
| 573 | |
| 574 | { |
| 575 | .vendor = "AMIC", |
| 576 | .name = "A25L05PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 577 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 578 | .manufacture_id = AMIC_ID, |
| 579 | .model_id = AMIC_A25L05PU, |
| 580 | .total_size = 64, |
| 581 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 582 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 583 | .tested = TEST_UNTESTED, |
| 584 | .probe = probe_spi_rdid4, |
| 585 | .probe_timing = TIMING_ZERO, |
| 586 | .block_erasers = |
| 587 | { |
| 588 | { |
| 589 | .eraseblocks = { |
| 590 | {4 * 1024, 2}, |
| 591 | {8 * 1024, 1}, |
| 592 | {16 * 1024, 1}, |
| 593 | {32 * 1024, 1}, |
| 594 | }, |
| 595 | .block_erase = spi_block_erase_d8, |
| 596 | }, { |
| 597 | .eraseblocks = { {64 * 1024, 1} }, |
| 598 | .block_erase = spi_block_erase_c7, |
| 599 | } |
| 600 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 601 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 602 | .unlock = spi_disable_blockprotect, |
| 603 | .write = spi_chip_write_256, |
| 604 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 605 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 606 | }, |
| 607 | |
| 608 | { |
| 609 | .vendor = "AMIC", |
| 610 | .name = "A25L10PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 611 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 612 | .manufacture_id = AMIC_ID, |
| 613 | .model_id = AMIC_A25L10PT, |
| 614 | .total_size = 128, |
| 615 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 616 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 617 | .tested = TEST_UNTESTED, |
| 618 | .probe = probe_spi_rdid4, |
| 619 | .probe_timing = TIMING_ZERO, |
| 620 | .block_erasers = |
| 621 | { |
| 622 | { |
| 623 | .eraseblocks = { |
| 624 | {64 * 1024, 1}, |
| 625 | {32 * 1024, 1}, |
| 626 | {16 * 1024, 1}, |
| 627 | {8 * 1024, 1}, |
| 628 | {4 * 1024, 2}, |
| 629 | }, |
| 630 | .block_erase = spi_block_erase_d8, |
| 631 | }, { |
| 632 | .eraseblocks = { {128 * 1024, 1} }, |
| 633 | .block_erase = spi_block_erase_c7, |
| 634 | } |
| 635 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 636 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 637 | .unlock = spi_disable_blockprotect, |
| 638 | .write = spi_chip_write_256, |
| 639 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 640 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 641 | }, |
| 642 | |
| 643 | { |
| 644 | .vendor = "AMIC", |
| 645 | .name = "A25L10PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 646 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 647 | .manufacture_id = AMIC_ID, |
| 648 | .model_id = AMIC_A25L10PU, |
| 649 | .total_size = 128, |
| 650 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 651 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 652 | .tested = TEST_UNTESTED, |
| 653 | .probe = probe_spi_rdid4, |
| 654 | .probe_timing = TIMING_ZERO, |
| 655 | .block_erasers = |
| 656 | { |
| 657 | { |
| 658 | .eraseblocks = { |
| 659 | {4 * 1024, 2}, |
| 660 | {8 * 1024, 1}, |
| 661 | {16 * 1024, 1}, |
| 662 | {32 * 1024, 1}, |
| 663 | {64 * 1024, 1}, |
| 664 | }, |
| 665 | .block_erase = spi_block_erase_d8, |
| 666 | }, { |
| 667 | .eraseblocks = { {128 * 1024, 1} }, |
| 668 | .block_erase = spi_block_erase_c7, |
| 669 | } |
| 670 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 671 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 672 | .unlock = spi_disable_blockprotect, |
| 673 | .write = spi_chip_write_256, |
| 674 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 675 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 676 | }, |
| 677 | |
| 678 | { |
| 679 | .vendor = "AMIC", |
| 680 | .name = "A25L20PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 681 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 682 | .manufacture_id = AMIC_ID, |
| 683 | .model_id = AMIC_A25L20PT, |
| 684 | .total_size = 256, |
| 685 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 686 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 687 | .tested = TEST_UNTESTED, |
| 688 | .probe = probe_spi_rdid4, |
| 689 | .probe_timing = TIMING_ZERO, |
| 690 | .block_erasers = |
| 691 | { |
| 692 | { |
| 693 | .eraseblocks = { |
| 694 | {64 * 1024, 3}, |
| 695 | {32 * 1024, 1}, |
| 696 | {16 * 1024, 1}, |
| 697 | {8 * 1024, 1}, |
| 698 | {4 * 1024, 2}, |
| 699 | }, |
| 700 | .block_erase = spi_block_erase_d8, |
| 701 | }, { |
| 702 | .eraseblocks = { {256 * 1024, 1} }, |
| 703 | .block_erase = spi_block_erase_c7, |
| 704 | } |
| 705 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 706 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 707 | .unlock = spi_disable_blockprotect, |
| 708 | .write = spi_chip_write_256, |
| 709 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 710 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 711 | }, |
| 712 | |
| 713 | { |
| 714 | .vendor = "AMIC", |
| 715 | .name = "A25L20PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 716 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 717 | .manufacture_id = AMIC_ID, |
| 718 | .model_id = AMIC_A25L20PU, |
| 719 | .total_size = 256, |
| 720 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 721 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 722 | .tested = TEST_UNTESTED, |
| 723 | .probe = probe_spi_rdid4, |
| 724 | .probe_timing = TIMING_ZERO, |
| 725 | .block_erasers = |
| 726 | { |
| 727 | { |
| 728 | .eraseblocks = { |
| 729 | {4 * 1024, 2}, |
| 730 | {8 * 1024, 1}, |
| 731 | {16 * 1024, 1}, |
| 732 | {32 * 1024, 1}, |
| 733 | {64 * 1024, 3}, |
| 734 | }, |
| 735 | .block_erase = spi_block_erase_d8, |
| 736 | }, { |
| 737 | .eraseblocks = { {256 * 1024, 1} }, |
| 738 | .block_erase = spi_block_erase_c7, |
| 739 | } |
| 740 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 741 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 742 | .unlock = spi_disable_blockprotect, |
| 743 | .write = spi_chip_write_256, |
| 744 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 745 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 746 | }, |
| 747 | |
| 748 | /* The A25L40P{T,U} chips are distinguished by their |
| 749 | * erase block layouts, but without any distinction in RDID. |
| 750 | * This inexplicable quirk was verified by Rudolf Marek |
| 751 | * and discussed on the flashrom mailing list on 2010-07-12. |
| 752 | */ |
| 753 | { |
| 754 | .vendor = "AMIC", |
| 755 | .name = "A25L40PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 756 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 757 | .manufacture_id = AMIC_ID, |
| 758 | .model_id = AMIC_A25L40PT, |
| 759 | .total_size = 512, |
| 760 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 761 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 762 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 763 | .probe = probe_spi_rdid4, |
| 764 | .probe_timing = TIMING_ZERO, |
| 765 | .block_erasers = |
| 766 | { |
| 767 | { |
| 768 | .eraseblocks = { |
| 769 | {64 * 1024, 7}, |
| 770 | {32 * 1024, 1}, |
| 771 | {16 * 1024, 1}, |
| 772 | {8 * 1024, 1}, |
| 773 | {4 * 1024, 2}, |
| 774 | }, |
| 775 | .block_erase = spi_block_erase_d8, |
| 776 | }, { |
| 777 | .eraseblocks = { {512 * 1024, 1} }, |
| 778 | .block_erase = spi_block_erase_c7, |
| 779 | } |
| 780 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 781 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 782 | .unlock = spi_disable_blockprotect, |
| 783 | .write = spi_chip_write_256, |
| 784 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 785 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 786 | }, |
| 787 | |
| 788 | { |
| 789 | .vendor = "AMIC", |
| 790 | .name = "A25L40PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 791 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 792 | .manufacture_id = AMIC_ID, |
| 793 | .model_id = AMIC_A25L40PU, |
| 794 | .total_size = 512, |
| 795 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 796 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 797 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 798 | .probe = probe_spi_rdid4, |
| 799 | .probe_timing = TIMING_ZERO, |
| 800 | .block_erasers = |
| 801 | { |
| 802 | { |
| 803 | .eraseblocks = { |
| 804 | {4 * 1024, 2}, |
| 805 | {8 * 1024, 1}, |
| 806 | {16 * 1024, 1}, |
| 807 | {32 * 1024, 1}, |
| 808 | {64 * 1024, 7}, |
| 809 | }, |
| 810 | .block_erase = spi_block_erase_d8, |
| 811 | }, { |
| 812 | .eraseblocks = { {512 * 1024, 1} }, |
| 813 | .block_erase = spi_block_erase_c7, |
| 814 | } |
| 815 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 816 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 817 | .unlock = spi_disable_blockprotect, |
| 818 | .write = spi_chip_write_256, |
| 819 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 820 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 821 | }, |
| 822 | |
| 823 | { |
| 824 | .vendor = "AMIC", |
| 825 | .name = "A25L80P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 826 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 827 | .manufacture_id = AMIC_ID, |
| 828 | .model_id = AMIC_A25L80P, |
| 829 | .total_size = 1024, |
| 830 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 831 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 832 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 833 | .probe = probe_spi_rdid4, |
| 834 | .probe_timing = TIMING_ZERO, |
| 835 | .block_erasers = |
| 836 | { |
| 837 | { |
| 838 | .eraseblocks = { |
| 839 | {4 * 1024, 2}, |
| 840 | {8 * 1024, 1}, |
| 841 | {16 * 1024, 1}, |
| 842 | {32 * 1024, 1}, |
| 843 | {64 * 1024, 15}, |
| 844 | }, |
| 845 | .block_erase = spi_block_erase_d8, |
| 846 | }, { |
| 847 | .eraseblocks = { {1024 * 1024, 1} }, |
| 848 | .block_erase = spi_block_erase_c7, |
| 849 | } |
| 850 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 851 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 852 | .unlock = spi_disable_blockprotect, |
| 853 | .write = spi_chip_write_256, |
| 854 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 855 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 856 | }, |
| 857 | |
| 858 | { |
| 859 | .vendor = "AMIC", |
| 860 | .name = "A25L16PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 861 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 862 | .manufacture_id = AMIC_ID, |
| 863 | .model_id = AMIC_A25L16PT, |
| 864 | .total_size = 2048, |
| 865 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 866 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 867 | .tested = TEST_UNTESTED, |
| 868 | .probe = probe_spi_rdid4, |
| 869 | .probe_timing = TIMING_ZERO, |
| 870 | .block_erasers = |
| 871 | { |
| 872 | { |
| 873 | .eraseblocks = { |
| 874 | {64 * 1024, 31}, |
| 875 | {32 * 1024, 1}, |
| 876 | {16 * 1024, 1}, |
| 877 | {8 * 1024, 1}, |
| 878 | {4 * 1024, 2}, |
| 879 | }, |
| 880 | .block_erase = spi_block_erase_d8, |
| 881 | }, { |
| 882 | .eraseblocks = { {2048 * 1024, 1} }, |
| 883 | .block_erase = spi_block_erase_60, |
| 884 | }, { |
| 885 | .eraseblocks = { {2048 * 1024, 1} }, |
| 886 | .block_erase = spi_block_erase_c7, |
| 887 | } |
| 888 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 889 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 890 | .unlock = spi_disable_blockprotect, |
| 891 | .write = spi_chip_write_256, |
| 892 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 893 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 894 | }, |
| 895 | |
| 896 | { |
| 897 | .vendor = "AMIC", |
| 898 | .name = "A25L16PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 899 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 900 | .manufacture_id = AMIC_ID, |
| 901 | .model_id = AMIC_A25L16PU, |
| 902 | .total_size = 2048, |
| 903 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 904 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 905 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 906 | .probe = probe_spi_rdid4, |
| 907 | .probe_timing = TIMING_ZERO, |
| 908 | .block_erasers = |
| 909 | { |
| 910 | { |
| 911 | .eraseblocks = { |
| 912 | {4 * 1024, 2}, |
| 913 | {8 * 1024, 1}, |
| 914 | {16 * 1024, 1}, |
| 915 | {32 * 1024, 1}, |
| 916 | {64 * 1024, 31}, |
| 917 | }, |
| 918 | .block_erase = spi_block_erase_d8, |
| 919 | }, { |
| 920 | .eraseblocks = { {2048 * 1024, 1} }, |
| 921 | .block_erase = spi_block_erase_60, |
| 922 | }, { |
| 923 | .eraseblocks = { {2048 * 1024, 1} }, |
| 924 | .block_erase = spi_block_erase_c7, |
| 925 | } |
| 926 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 927 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 928 | .unlock = spi_disable_blockprotect, |
| 929 | .write = spi_chip_write_256, |
| 930 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 931 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 932 | }, |
| 933 | |
| 934 | { |
| 935 | .vendor = "AMIC", |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 936 | .name = "A25L512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 937 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 938 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 939 | .model_id = AMIC_A25L512, |
| 940 | .total_size = 64, |
| 941 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 942 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 943 | .tested = TEST_UNTESTED, |
| 944 | .probe = probe_spi_rdid, |
| 945 | .probe_timing = TIMING_ZERO, |
| 946 | .block_erasers = |
| 947 | { |
| 948 | { |
| 949 | .eraseblocks = { { 4 * 1024, 16 } }, |
| 950 | .block_erase = spi_block_erase_20, |
| 951 | }, { |
| 952 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 953 | .block_erase = spi_block_erase_d8, |
| 954 | }, { |
| 955 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 956 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 957 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 958 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 959 | .printlock = spi_prettyprint_status_register_default_bp2, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 960 | .unlock = spi_disable_blockprotect, |
| 961 | .write = spi_chip_write_256, |
| 962 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 963 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 964 | }, |
| 965 | |
| 966 | { |
| 967 | .vendor = "AMIC", |
| 968 | .name = "A25L010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 969 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 970 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 971 | .model_id = AMIC_A25L010, |
| 972 | .total_size = 128, |
| 973 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 974 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 975 | .tested = TEST_UNTESTED, |
| 976 | .probe = probe_spi_rdid, |
| 977 | .probe_timing = TIMING_ZERO, |
| 978 | .block_erasers = |
| 979 | { |
| 980 | { |
| 981 | .eraseblocks = { { 4 * 1024, 32 } }, |
| 982 | .block_erase = spi_block_erase_20, |
| 983 | }, { |
| 984 | .eraseblocks = { { 64 * 1024, 2 } }, |
| 985 | .block_erase = spi_block_erase_d8, |
| 986 | }, { |
| 987 | .eraseblocks = { { 128 * 1024, 1 } }, |
| 988 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 989 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 990 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 991 | .printlock = spi_prettyprint_status_register_default_bp2, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 992 | .unlock = spi_disable_blockprotect, |
| 993 | .write = spi_chip_write_256, |
| 994 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 995 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 996 | }, |
| 997 | |
| 998 | { |
| 999 | .vendor = "AMIC", |
| 1000 | .name = "A25L020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1001 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1002 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1003 | .model_id = AMIC_A25L020, |
| 1004 | .total_size = 256, |
| 1005 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1006 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1007 | .tested = TEST_UNTESTED, |
| 1008 | .probe = probe_spi_rdid, |
| 1009 | .probe_timing = TIMING_ZERO, |
| 1010 | .block_erasers = |
| 1011 | { |
| 1012 | { |
| 1013 | .eraseblocks = { { 4 * 1024, 64 } }, |
| 1014 | .block_erase = spi_block_erase_20, |
| 1015 | }, { |
| 1016 | .eraseblocks = { { 64 * 1024, 4 } }, |
| 1017 | .block_erase = spi_block_erase_d8, |
| 1018 | }, { |
| 1019 | .eraseblocks = { { 256 * 1024, 1 } }, |
| 1020 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1021 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1022 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 1023 | .printlock = spi_prettyprint_status_register_default_bp2, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1024 | .unlock = spi_disable_blockprotect, |
| 1025 | .write = spi_chip_write_256, |
| 1026 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1027 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1028 | }, |
| 1029 | |
| 1030 | { |
| 1031 | .vendor = "AMIC", |
| 1032 | .name = "A25L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1033 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1034 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1035 | .model_id = AMIC_A25L040, |
| 1036 | .total_size = 512, |
| 1037 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1038 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1039 | .tested = TEST_UNTESTED, |
| 1040 | .probe = probe_spi_rdid, |
| 1041 | .probe_timing = TIMING_ZERO, |
| 1042 | .block_erasers = |
| 1043 | { |
| 1044 | { |
| 1045 | .eraseblocks = { { 4 * 1024, 128 } }, |
| 1046 | .block_erase = spi_block_erase_20, |
| 1047 | }, { |
| 1048 | .eraseblocks = { { 64 * 1024, 8 } }, |
| 1049 | .block_erase = spi_block_erase_d8, |
| 1050 | }, { |
| 1051 | .eraseblocks = { { 512 * 1024, 1 } }, |
| 1052 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1053 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1054 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 1055 | .printlock = spi_prettyprint_status_register_default_bp2, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1056 | .unlock = spi_disable_blockprotect, |
| 1057 | .write = spi_chip_write_256, |
| 1058 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1059 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1060 | }, |
| 1061 | |
| 1062 | { |
| 1063 | .vendor = "AMIC", |
| 1064 | .name = "A25L080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1065 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1066 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1067 | .model_id = AMIC_A25L080, |
| 1068 | .total_size = 1024, |
| 1069 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1070 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1071 | .tested = TEST_UNTESTED, |
| 1072 | .probe = probe_spi_rdid, |
| 1073 | .probe_timing = TIMING_ZERO, |
| 1074 | .block_erasers = |
| 1075 | { |
| 1076 | { |
| 1077 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 1078 | .block_erase = spi_block_erase_20, |
| 1079 | }, { |
| 1080 | .eraseblocks = { { 64 * 1024, 16 } }, |
| 1081 | .block_erase = spi_block_erase_d8, |
| 1082 | }, { |
| 1083 | .eraseblocks = { { 1024 * 1024, 1 } }, |
| 1084 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1085 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1086 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 1087 | .printlock = spi_prettyprint_status_register_default_bp2, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1088 | .unlock = spi_disable_blockprotect, |
| 1089 | .write = spi_chip_write_256, |
| 1090 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1091 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1092 | }, |
| 1093 | |
| 1094 | { |
| 1095 | .vendor = "AMIC", |
| 1096 | .name = "A25L016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1097 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1098 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1099 | .model_id = AMIC_A25L016, |
| 1100 | .total_size = 2048, |
| 1101 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1102 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1103 | .tested = TEST_UNTESTED, |
| 1104 | .probe = probe_spi_rdid, |
| 1105 | .probe_timing = TIMING_ZERO, |
| 1106 | .block_erasers = |
| 1107 | { |
| 1108 | { |
| 1109 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 1110 | .block_erase = spi_block_erase_20, |
| 1111 | }, { |
| 1112 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1113 | .block_erase = spi_block_erase_d8, |
| 1114 | }, { |
| 1115 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1116 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1117 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1118 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 1119 | .printlock = spi_prettyprint_status_register_default_bp2, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1120 | .unlock = spi_disable_blockprotect, |
| 1121 | .write = spi_chip_write_256, |
| 1122 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1123 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1124 | }, |
| 1125 | |
| 1126 | { |
| 1127 | .vendor = "AMIC", |
| 1128 | .name = "A25L032", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1129 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1130 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1131 | .model_id = AMIC_A25L032, |
| 1132 | .total_size = 4096, |
| 1133 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1134 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1135 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 1136 | .tested = TEST_OK_PREW, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1137 | .probe = probe_spi_rdid, |
| 1138 | .probe_timing = TIMING_ZERO, |
| 1139 | .block_erasers = |
| 1140 | { |
| 1141 | { |
| 1142 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 1143 | .block_erase = spi_block_erase_20, |
| 1144 | }, { |
| 1145 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1146 | .block_erase = spi_block_erase_52, |
| 1147 | }, { |
| 1148 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1149 | .block_erase = spi_block_erase_d8, |
| 1150 | }, { |
| 1151 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1152 | .block_erase = spi_block_erase_60, |
| 1153 | }, { |
| 1154 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1155 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1156 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1157 | }, |
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 | { |
| 1300 | .eraseblocks = { |
| 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 | { |
| 1332 | .eraseblocks = { |
| 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, |
| 1358 | .tested = TEST_UNTESTED, |
| 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, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1681 | .tested = TEST_UNTESTED, |
| 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, |
| 1758 | .tested = TEST_UNTESTED, |
| 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, |
| 1787 | .tested = TEST_UNTESTED, |
| 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 | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2326 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2327 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2328 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2329 | .write = NULL /* Incompatible Page write */, |
| 2330 | .read = NULL /* Incompatible read */, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2331 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2332 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2333 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2334 | { |
| 2335 | .vendor = "Atmel", |
| 2336 | .name = "AT45DB011D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2337 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2338 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2339 | .model_id = ATMEL_AT45DB011D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2340 | .total_size = 128 /* Size can only be determined from status register */, |
| 2341 | .page_size = 256 /* Size can only be determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2342 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2343 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2344 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2345 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2346 | .write = NULL, |
| 2347 | .read = NULL, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2348 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2349 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2350 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2351 | { |
| 2352 | .vendor = "Atmel", |
| 2353 | .name = "AT45DB021D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2354 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2355 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2356 | .model_id = ATMEL_AT45DB021D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2357 | .total_size = 256 /* Size can only be determined from status register */, |
| 2358 | .page_size = 256 /* Size can only be determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2359 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2360 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2361 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2362 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2363 | .write = NULL, |
| 2364 | .read = NULL, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2365 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2366 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2367 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2368 | { |
| 2369 | .vendor = "Atmel", |
| 2370 | .name = "AT45DB041D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2371 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2372 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2373 | .model_id = ATMEL_AT45DB041D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2374 | .total_size = 512 /* Size can only be determined from status register */, |
| 2375 | .page_size = 256 /* Size can only be determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2376 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2377 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2378 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2379 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2380 | .write = NULL, |
| 2381 | .read = NULL, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2382 | .voltage = {2500, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2383 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2384 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2385 | { |
| 2386 | .vendor = "Atmel", |
| 2387 | .name = "AT45DB081D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2388 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2389 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2390 | .model_id = ATMEL_AT45DB081D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2391 | .total_size = 1024 /* Size can only be determined from status register */, |
| 2392 | .page_size = 256 /* Size can only be determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2393 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2394 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2395 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2396 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2397 | .write = NULL, |
| 2398 | .read = NULL, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2399 | .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] | 2400 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2401 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2402 | { |
| 2403 | .vendor = "Atmel", |
| 2404 | .name = "AT45DB161D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2405 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2406 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2407 | .model_id = ATMEL_AT45DB161D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2408 | .total_size = 2048 /* Size can only be determined from status register */, |
| 2409 | .page_size = 512 /* Size can only be determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2410 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2411 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2412 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2413 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2414 | .write = NULL, |
| 2415 | .read = NULL, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2416 | .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] | 2417 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2418 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2419 | { |
| 2420 | .vendor = "Atmel", |
| 2421 | .name = "AT45DB321C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2422 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2423 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2424 | .model_id = ATMEL_AT45DB321C, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2425 | .total_size = 4224 /* No power of two sizes */, |
| 2426 | .page_size = 528 /* No power of two sizes */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2427 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2428 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2429 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2430 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2431 | .write = NULL, |
| 2432 | .read = NULL /* Incompatible read */, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2433 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2434 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2435 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2436 | { |
| 2437 | .vendor = "Atmel", |
| 2438 | .name = "AT45DB321D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2439 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2440 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2441 | .model_id = ATMEL_AT45DB321D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2442 | .total_size = 4096 /* Size can only be determined from status register */, |
| 2443 | .page_size = 512 /* Size can only be determined from status register */, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 2444 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2445 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 2446 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2447 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2448 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2449 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2450 | .write = NULL, |
| 2451 | .read = NULL, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2452 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2453 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2454 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2455 | { |
| 2456 | .vendor = "Atmel", |
| 2457 | .name = "AT45DB642D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2458 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2459 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2460 | .model_id = ATMEL_AT45DB642D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2461 | .total_size = 8192 /* Size can only be determined from status register */, |
| 2462 | .page_size = 1024 /* Size can only be determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2463 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2464 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2465 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2466 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2467 | .write = NULL, |
| 2468 | .read = NULL, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2469 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2470 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2471 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2472 | { |
| 2473 | .vendor = "Atmel", |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2474 | .name = "AT49BV512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2475 | .bustype = BUS_PARALLEL, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2476 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2477 | .model_id = ATMEL_AT49BV512, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2478 | .total_size = 64, |
| 2479 | .page_size = 64, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2480 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 2481 | .tested = TEST_OK_PREW, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2482 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2483 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2484 | .block_erasers = |
| 2485 | { |
| 2486 | { |
| 2487 | .eraseblocks = { {64 * 1024, 1} }, |
| 2488 | .block_erase = erase_chip_block_jedec, |
| 2489 | } |
| 2490 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2491 | .write = write_jedec_1, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2492 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2493 | .voltage = {2700, 3600}, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2494 | }, |
| 2495 | |
| 2496 | { |
| 2497 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2498 | .name = "AT49F002(N)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2499 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2500 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2501 | .model_id = ATMEL_AT49F002N, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2502 | .total_size = 256, |
| 2503 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2504 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2505 | .tested = TEST_UNTESTED, |
| 2506 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2507 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2508 | .block_erasers = |
| 2509 | { |
| 2510 | { |
| 2511 | .eraseblocks = { |
| 2512 | {16 * 1024, 1}, |
| 2513 | {8 * 1024, 2}, |
| 2514 | {96 * 1024, 1}, |
| 2515 | {128 * 1024, 1}, |
| 2516 | }, |
| 2517 | .block_erase = erase_sector_jedec, |
| 2518 | }, { |
| 2519 | .eraseblocks = { {256 * 1024, 1} }, |
| 2520 | .block_erase = erase_chip_block_jedec, |
| 2521 | } |
| 2522 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2523 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2524 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2525 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2526 | }, |
| 2527 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2528 | { |
| 2529 | .vendor = "Atmel", |
| 2530 | .name = "AT49F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2531 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2532 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2533 | .model_id = ATMEL_AT49F002NT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2534 | .total_size = 256, |
| 2535 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2536 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2537 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2538 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2539 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2540 | .block_erasers = |
| 2541 | { |
| 2542 | { |
| 2543 | .eraseblocks = { |
| 2544 | {128 * 1024, 1}, |
| 2545 | {96 * 1024, 1}, |
| 2546 | {8 * 1024, 2}, |
| 2547 | {16 * 1024, 1}, |
| 2548 | }, |
| 2549 | .block_erase = erase_sector_jedec, |
| 2550 | }, { |
| 2551 | .eraseblocks = { {256 * 1024, 1} }, |
| 2552 | .block_erase = erase_chip_block_jedec, |
| 2553 | } |
| 2554 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2555 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2556 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2557 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2558 | }, |
| 2559 | |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 2560 | { |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 2561 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2562 | .name = "AT49(H)F010", |
| 2563 | .bustype = BUS_PARALLEL, |
| 2564 | .manufacture_id = ATMEL_ID, |
| 2565 | .model_id = ATMEL_AT49F010, |
| 2566 | .total_size = 128, |
| 2567 | .page_size = 0, /* unused */ |
| 2568 | .feature_bits = FEATURE_EITHER_RESET, |
| 2569 | .tested = TEST_OK_PREW, |
| 2570 | .probe = probe_jedec, |
| 2571 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2572 | .block_erasers = |
| 2573 | { |
| 2574 | { |
| 2575 | .eraseblocks = { {128 * 1024, 1} }, |
| 2576 | .block_erase = erase_chip_block_jedec, |
| 2577 | } |
| 2578 | }, |
| 2579 | .printlock = printlock_at49f, |
| 2580 | .write = write_jedec_1, |
| 2581 | .read = read_memmapped, |
| 2582 | .voltage = {4500, 5500}, |
| 2583 | }, |
| 2584 | |
| 2585 | { |
| 2586 | .vendor = "Atmel", |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 2587 | .name = "AT49F020", |
| 2588 | .bustype = BUS_PARALLEL, |
| 2589 | .manufacture_id = ATMEL_ID, |
| 2590 | .model_id = ATMEL_AT49F020, |
| 2591 | .total_size = 256, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2592 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 2593 | .feature_bits = FEATURE_EITHER_RESET, |
| 2594 | .tested = TEST_OK_PRE, |
| 2595 | .probe = probe_jedec, |
| 2596 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2597 | .block_erasers = |
| 2598 | { |
| 2599 | { |
| 2600 | .eraseblocks = { {256 * 1024, 1} }, |
| 2601 | .block_erase = erase_chip_block_jedec, |
| 2602 | } |
| 2603 | /* Chip features an optional permanent write protection |
| 2604 | * of the first 8 kB. The erase function is the same as |
| 2605 | * above, but 00000H to 01FFFH will not be erased. |
| 2606 | * FIXME: add another eraser when partial erasers are |
| 2607 | * supported. |
| 2608 | */ |
| 2609 | }, |
| 2610 | .printlock = printlock_at49f, |
| 2611 | .write = write_jedec_1, |
| 2612 | .read = read_memmapped, |
| 2613 | .voltage = {4500, 5500}, |
| 2614 | }, |
| 2615 | |
| 2616 | { |
| 2617 | .vendor = "Atmel", |
| 2618 | .name = "AT49F040", |
| 2619 | .bustype = BUS_PARALLEL, |
| 2620 | .manufacture_id = ATMEL_ID, |
| 2621 | .model_id = ATMEL_AT49F040, |
| 2622 | .total_size = 512, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2623 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 2624 | .feature_bits = FEATURE_EITHER_RESET, |
| 2625 | .tested = TEST_UNTESTED, |
| 2626 | .probe = probe_jedec, |
| 2627 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2628 | .block_erasers = |
| 2629 | { |
| 2630 | { |
| 2631 | .eraseblocks = { {512 * 1024, 1} }, |
| 2632 | .block_erase = erase_chip_block_jedec, |
| 2633 | } |
| 2634 | /* Chip features an optional permanent write protection |
| 2635 | * of the first 16 kB. The erase function is the same as |
| 2636 | * above, but 00000H to 03FFFH will not be erased. |
| 2637 | * FIXME: add another eraser when partial erasers are |
| 2638 | * supported. |
| 2639 | */ |
| 2640 | }, |
| 2641 | .printlock = printlock_at49f, |
| 2642 | .write = write_jedec_1, |
| 2643 | .read = read_memmapped, |
| 2644 | .voltage = {4500, 5500}, |
| 2645 | }, |
| 2646 | |
| 2647 | { |
| 2648 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2649 | .name = "AT49F080", |
| 2650 | .bustype = BUS_PARALLEL, |
| 2651 | .manufacture_id = ATMEL_ID, |
| 2652 | .model_id = ATMEL_AT49F080, |
| 2653 | .total_size = 1024, |
| 2654 | .page_size = 0, /* unused */ |
| 2655 | .feature_bits = FEATURE_EITHER_RESET, |
| 2656 | .tested = TEST_UNTESTED, |
| 2657 | .probe = probe_jedec, |
| 2658 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2659 | .block_erasers = |
| 2660 | { |
| 2661 | { |
| 2662 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2663 | .block_erase = erase_chip_block_jedec, |
| 2664 | } |
| 2665 | /* Chip features an optional permanent write protection |
| 2666 | * of the first 16 kB. The erase function is the same as |
| 2667 | * above, but 00000H to 03FFFH will not be erased. |
| 2668 | * FIXME: add another eraser when partial erasers are |
| 2669 | * supported. |
| 2670 | */ |
| 2671 | }, |
| 2672 | .printlock = printlock_at49f, |
| 2673 | .write = write_jedec_1, |
| 2674 | .read = read_memmapped, |
| 2675 | .voltage = {4500, 5500}, |
| 2676 | }, |
| 2677 | |
| 2678 | { |
| 2679 | /* 'top' version of AT49F080. equal in all aspects but the boot block address */ |
| 2680 | .vendor = "Atmel", |
| 2681 | .name = "AT49F080T", |
| 2682 | .bustype = BUS_PARALLEL, |
| 2683 | .manufacture_id = ATMEL_ID, |
| 2684 | .model_id = ATMEL_AT49F080T, |
| 2685 | .total_size = 1024, |
| 2686 | .page_size = 0, /* unused */ |
| 2687 | .feature_bits = FEATURE_EITHER_RESET, |
| 2688 | .tested = TEST_UNTESTED, |
| 2689 | .probe = probe_jedec, |
| 2690 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2691 | .block_erasers = |
| 2692 | { |
| 2693 | { |
| 2694 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2695 | .block_erase = erase_chip_block_jedec, |
| 2696 | } |
| 2697 | /* Chip features an optional permanent write protection |
| 2698 | * of the first 16 kB. The erase function is the same as |
| 2699 | * above, but FC000H to FFFFFH will not be erased. |
| 2700 | * FIXME: add another eraser when partial erasers are |
| 2701 | * supported. |
| 2702 | */ |
| 2703 | }, |
| 2704 | .printlock = printlock_at49f, |
| 2705 | .write = write_jedec_1, |
| 2706 | .read = read_memmapped, |
| 2707 | .voltage = {4500, 5500}, |
| 2708 | }, |
| 2709 | |
| 2710 | { |
| 2711 | .vendor = "Atmel", |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 2712 | .name = "AT49LH002", |
| 2713 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 2714 | .manufacture_id = ATMEL_ID, |
| 2715 | .model_id = ATMEL_AT49LH002, |
| 2716 | .total_size = 256, |
| 2717 | .page_size = 0, /* unused */ |
| 2718 | .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */ |
| 2719 | .tested = TEST_UNTESTED, |
| 2720 | .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */ |
| 2721 | .probe_timing = TIMING_FIXME, |
| 2722 | .block_erasers = |
| 2723 | { |
| 2724 | { |
| 2725 | .eraseblocks = { |
| 2726 | {64 * 1024, 3}, |
| 2727 | {32 * 1024, 1}, |
| 2728 | {8 * 1024, 2}, |
| 2729 | {16 * 1024, 1}, |
| 2730 | }, |
| 2731 | .block_erase = erase_block_82802ab, |
| 2732 | }, { |
| 2733 | .eraseblocks = { |
| 2734 | {64 * 1024, 4}, |
| 2735 | }, |
| 2736 | .block_erase = NULL, /* TODO: Implement. */ |
| 2737 | }, |
| 2738 | }, |
| 2739 | .printlock = NULL, /* TODO */ |
| 2740 | .unlock = NULL, /* unlock_82802ab() not correct(?) */ |
| 2741 | .write = write_82802ab, |
| 2742 | .read = read_memmapped, |
| 2743 | .voltage = {3000, 3600}, |
| 2744 | }, |
| 2745 | |
| 2746 | { |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 2747 | .vendor = "Catalyst", |
| 2748 | .name = "CAT28F512", |
| 2749 | .bustype = BUS_PARALLEL, |
| 2750 | .manufacture_id = CATALYST_ID, |
| 2751 | .model_id = CATALYST_CAT28F512, |
| 2752 | .total_size = 64, |
| 2753 | .page_size = 0, /* unused */ |
| 2754 | .feature_bits = 0, |
| 2755 | .tested = TEST_OK_PR, |
| 2756 | .probe = probe_jedec, /* FIXME! */ |
| 2757 | .probe_timing = TIMING_ZERO, |
| 2758 | .block_erasers = |
| 2759 | { |
| 2760 | { |
| 2761 | .eraseblocks = { {64 * 1024, 1} }, |
| 2762 | .block_erase = NULL, /* TODO */ |
| 2763 | }, |
| 2764 | }, |
| 2765 | .write = NULL, /* TODO */ |
| 2766 | .read = read_memmapped, |
| 2767 | .voltage = {4500, 5500}, |
| 2768 | }, |
| 2769 | |
| 2770 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 2771 | .vendor = "Bright", |
| 2772 | .name = "BM29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2773 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 2774 | .manufacture_id = BRIGHT_ID, |
| 2775 | .model_id = BRIGHT_BM29F040, |
| 2776 | .total_size = 512, |
| 2777 | .page_size = 64 * 1024, |
| 2778 | .feature_bits = FEATURE_EITHER_RESET, |
| 2779 | .tested = TEST_OK_PR, |
| 2780 | .probe = probe_jedec, |
| 2781 | .probe_timing = TIMING_ZERO, |
| 2782 | .block_erasers = |
| 2783 | { |
| 2784 | { |
| 2785 | .eraseblocks = { {64 * 1024, 8} }, |
| 2786 | .block_erase = erase_sector_jedec, |
| 2787 | }, { |
| 2788 | .eraseblocks = { {512 * 1024, 1} }, |
| 2789 | .block_erase = erase_chip_block_jedec, |
| 2790 | }, |
| 2791 | }, |
| 2792 | .write = write_jedec_1, |
| 2793 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2794 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 2795 | }, |
| 2796 | |
| 2797 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 2798 | .vendor = "ESMT", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2799 | .name = "F49B002UA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2800 | .bustype = BUS_PARALLEL, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 2801 | .manufacture_id = ESMT_ID, |
| 2802 | .model_id = ESMT_F49B002UA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2803 | .total_size = 256, |
| 2804 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2805 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2806 | .tested = TEST_UNTESTED, |
| 2807 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2808 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2809 | .block_erasers = |
| 2810 | { |
| 2811 | { |
| 2812 | .eraseblocks = { |
| 2813 | {128 * 1024, 1}, |
| 2814 | {96 * 1024, 1}, |
| 2815 | {8 * 1024, 2}, |
| 2816 | {16 * 1024, 1}, |
| 2817 | }, |
| 2818 | .block_erase = erase_sector_jedec, |
| 2819 | }, { |
| 2820 | .eraseblocks = { {256 * 1024, 1} }, |
| 2821 | .block_erase = erase_chip_block_jedec, |
| 2822 | } |
| 2823 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2824 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2825 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2826 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2827 | }, |
| 2828 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2829 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 2830 | .vendor = "ESMT", |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 2831 | .name = "F25L008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2832 | .bustype = BUS_SPI, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 2833 | .manufacture_id = ESMT_ID, |
| 2834 | .model_id = ESMT_F25L008A, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 2835 | .total_size = 1024, |
| 2836 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2837 | .feature_bits = FEATURE_WRSR_EITHER, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 2838 | .tested = TEST_OK_PREW, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 2839 | .probe = probe_spi_rdid, |
| 2840 | .probe_timing = TIMING_ZERO, |
| 2841 | .block_erasers = |
| 2842 | { |
| 2843 | { |
| 2844 | .eraseblocks = { {4 * 1024, 256} }, |
| 2845 | .block_erase = spi_block_erase_20, |
| 2846 | }, { |
| 2847 | .eraseblocks = { {64 * 1024, 16} }, |
| 2848 | .block_erase = spi_block_erase_d8, |
| 2849 | }, { |
| 2850 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2851 | .block_erase = spi_block_erase_60, |
| 2852 | }, { |
| 2853 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2854 | .block_erase = spi_block_erase_c7, |
| 2855 | } |
| 2856 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2857 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2858 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 9a795d8 | 2010-07-14 16:19:05 +0000 | [diff] [blame] | 2859 | .write = spi_chip_write_1, |
Michael Karcher | 4497e86 | 2010-07-10 19:34:15 +0000 | [diff] [blame] | 2860 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2861 | .voltage = {2700, 3600}, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 2862 | }, |
| 2863 | |
| 2864 | { |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2865 | .vendor = "Eon", |
| 2866 | .name = "EN25B05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2867 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2868 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2869 | .model_id = EON_EN25B05, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2870 | .total_size = 64, |
| 2871 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2872 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2873 | .tested = TEST_UNTESTED, |
| 2874 | .probe = probe_spi_rdid, |
| 2875 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2876 | .block_erasers = |
| 2877 | { |
| 2878 | { |
| 2879 | .eraseblocks = { |
| 2880 | {4 * 1024, 2}, |
| 2881 | {8 * 1024, 1}, |
| 2882 | {16 * 1024, 1}, |
| 2883 | {32 * 1024, 1}, |
| 2884 | }, |
| 2885 | .block_erase = spi_block_erase_d8, |
| 2886 | }, { |
| 2887 | .eraseblocks = { {64 * 1024, 1} }, |
| 2888 | .block_erase = spi_block_erase_c7, |
| 2889 | } |
| 2890 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2891 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2892 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2893 | .write = spi_chip_write_256, |
| 2894 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2895 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2896 | }, |
| 2897 | |
| 2898 | { |
| 2899 | .vendor = "Eon", |
| 2900 | .name = "EN25B05T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2901 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2902 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2903 | .model_id = EON_EN25B05, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2904 | .total_size = 64, |
| 2905 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2906 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2907 | .tested = TEST_UNTESTED, |
| 2908 | .probe = probe_spi_rdid, |
| 2909 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2910 | .block_erasers = |
| 2911 | { |
| 2912 | { |
| 2913 | .eraseblocks = { |
| 2914 | {32 * 1024, 1}, |
| 2915 | {16 * 1024, 1}, |
| 2916 | {8 * 1024, 1}, |
| 2917 | {4 * 1024, 2}, |
| 2918 | }, |
| 2919 | .block_erase = spi_block_erase_d8, |
| 2920 | }, { |
| 2921 | .eraseblocks = { {64 * 1024, 1} }, |
| 2922 | .block_erase = spi_block_erase_c7, |
| 2923 | } |
| 2924 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2925 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2926 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2927 | .write = spi_chip_write_256, |
| 2928 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2929 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2930 | }, |
| 2931 | |
| 2932 | { |
| 2933 | .vendor = "Eon", |
| 2934 | .name = "EN25B10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2935 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2936 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2937 | .model_id = EON_EN25B10, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2938 | .total_size = 128, |
| 2939 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2940 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2941 | .tested = TEST_UNTESTED, |
| 2942 | .probe = probe_spi_rdid, |
| 2943 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2944 | .block_erasers = |
| 2945 | { |
| 2946 | { |
| 2947 | .eraseblocks = { |
| 2948 | {4 * 1024, 2}, |
| 2949 | {8 * 1024, 1}, |
| 2950 | {16 * 1024, 1}, |
| 2951 | {32 * 1024, 3}, |
| 2952 | }, |
| 2953 | .block_erase = spi_block_erase_d8, |
| 2954 | }, { |
| 2955 | .eraseblocks = { {128 * 1024, 1} }, |
| 2956 | .block_erase = spi_block_erase_c7, |
| 2957 | } |
| 2958 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2959 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2960 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2961 | .write = spi_chip_write_256, |
| 2962 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2963 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2964 | }, |
| 2965 | |
| 2966 | { |
| 2967 | .vendor = "Eon", |
| 2968 | .name = "EN25B10T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2969 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2970 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2971 | .model_id = EON_EN25B10, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2972 | .total_size = 128, |
| 2973 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2974 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2975 | .tested = TEST_UNTESTED, |
| 2976 | .probe = probe_spi_rdid, |
| 2977 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2978 | .block_erasers = |
| 2979 | { |
| 2980 | { |
| 2981 | .eraseblocks = { |
| 2982 | {32 * 1024, 3}, |
| 2983 | {16 * 1024, 1}, |
| 2984 | {8 * 1024, 1}, |
| 2985 | {4 * 1024, 2}, |
| 2986 | }, |
| 2987 | .block_erase = spi_block_erase_d8, |
| 2988 | }, { |
| 2989 | .eraseblocks = { {128 * 1024, 1} }, |
| 2990 | .block_erase = spi_block_erase_c7, |
| 2991 | } |
| 2992 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2993 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2994 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2995 | .write = spi_chip_write_256, |
| 2996 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2997 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2998 | }, |
| 2999 | |
| 3000 | { |
| 3001 | .vendor = "Eon", |
| 3002 | .name = "EN25B20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3003 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3004 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3005 | .model_id = EON_EN25B20, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3006 | .total_size = 256, |
| 3007 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3008 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3009 | .tested = TEST_UNTESTED, |
| 3010 | .probe = probe_spi_rdid, |
| 3011 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3012 | .block_erasers = |
| 3013 | { |
| 3014 | { |
| 3015 | .eraseblocks = { |
| 3016 | {4 * 1024, 2}, |
| 3017 | {8 * 1024, 1}, |
| 3018 | {16 * 1024, 1}, |
| 3019 | {32 * 1024, 1}, |
| 3020 | {64 * 1024, 3} |
| 3021 | }, |
| 3022 | .block_erase = spi_block_erase_d8, |
| 3023 | }, { |
| 3024 | .eraseblocks = { {256 * 1024, 1} }, |
| 3025 | .block_erase = spi_block_erase_c7, |
| 3026 | } |
| 3027 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3028 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3029 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3030 | .write = spi_chip_write_256, |
| 3031 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3032 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3033 | }, |
| 3034 | |
| 3035 | { |
| 3036 | .vendor = "Eon", |
| 3037 | .name = "EN25B20T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3038 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3039 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3040 | .model_id = EON_EN25B20, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3041 | .total_size = 256, |
| 3042 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3043 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3044 | .tested = TEST_UNTESTED, |
| 3045 | .probe = probe_spi_rdid, |
| 3046 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3047 | .block_erasers = |
| 3048 | { |
| 3049 | { |
| 3050 | .eraseblocks = { |
| 3051 | {64 * 1024, 3}, |
| 3052 | {32 * 1024, 1}, |
| 3053 | {16 * 1024, 1}, |
| 3054 | {8 * 1024, 1}, |
| 3055 | {4 * 1024, 2}, |
| 3056 | }, |
| 3057 | .block_erase = spi_block_erase_d8, |
| 3058 | }, { |
| 3059 | .eraseblocks = { {256 * 1024, 1} }, |
| 3060 | .block_erase = spi_block_erase_c7, |
| 3061 | } |
| 3062 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3063 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3064 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3065 | .write = spi_chip_write_256, |
| 3066 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3067 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3068 | }, |
| 3069 | |
| 3070 | { |
| 3071 | .vendor = "Eon", |
| 3072 | .name = "EN25B40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3073 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3074 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3075 | .model_id = EON_EN25B40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3076 | .total_size = 512, |
| 3077 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3078 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3079 | .tested = TEST_UNTESTED, |
| 3080 | .probe = probe_spi_rdid, |
| 3081 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3082 | .block_erasers = |
| 3083 | { |
| 3084 | { |
| 3085 | .eraseblocks = { |
| 3086 | {4 * 1024, 2}, |
| 3087 | {8 * 1024, 1}, |
| 3088 | {16 * 1024, 1}, |
| 3089 | {32 * 1024, 1}, |
| 3090 | {64 * 1024, 7} |
| 3091 | }, |
| 3092 | .block_erase = spi_block_erase_d8, |
| 3093 | }, { |
| 3094 | .eraseblocks = { {512 * 1024, 1} }, |
| 3095 | .block_erase = spi_block_erase_c7, |
| 3096 | } |
| 3097 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3098 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3099 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3100 | .write = spi_chip_write_256, |
| 3101 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3102 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3103 | }, |
| 3104 | |
| 3105 | { |
| 3106 | .vendor = "Eon", |
| 3107 | .name = "EN25B40T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3108 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3109 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3110 | .model_id = EON_EN25B40, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3111 | .total_size = 512, |
| 3112 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3113 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3114 | .tested = TEST_UNTESTED, |
| 3115 | .probe = probe_spi_rdid, |
| 3116 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3117 | .block_erasers = |
| 3118 | { |
| 3119 | { |
| 3120 | .eraseblocks = { |
| 3121 | {64 * 1024, 7}, |
| 3122 | {32 * 1024, 1}, |
| 3123 | {16 * 1024, 1}, |
| 3124 | {8 * 1024, 1}, |
| 3125 | {4 * 1024, 2}, |
| 3126 | }, |
| 3127 | .block_erase = spi_block_erase_d8, |
| 3128 | }, { |
| 3129 | .eraseblocks = { {512 * 1024, 1} }, |
| 3130 | .block_erase = spi_block_erase_c7, |
| 3131 | } |
| 3132 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3133 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3134 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3135 | .write = spi_chip_write_256, |
| 3136 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3137 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3138 | }, |
| 3139 | |
| 3140 | { |
| 3141 | .vendor = "Eon", |
| 3142 | .name = "EN25B80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3143 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3144 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3145 | .model_id = EON_EN25B80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3146 | .total_size = 1024, |
| 3147 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3148 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3149 | .tested = TEST_UNTESTED, |
| 3150 | .probe = probe_spi_rdid, |
| 3151 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3152 | .block_erasers = |
| 3153 | { |
| 3154 | { |
| 3155 | .eraseblocks = { |
| 3156 | {4 * 1024, 2}, |
| 3157 | {8 * 1024, 1}, |
| 3158 | {16 * 1024, 1}, |
| 3159 | {32 * 1024, 1}, |
| 3160 | {64 * 1024, 15} |
| 3161 | }, |
| 3162 | .block_erase = spi_block_erase_d8, |
| 3163 | }, { |
| 3164 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3165 | .block_erase = spi_block_erase_c7, |
| 3166 | } |
| 3167 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3168 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3169 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3170 | .write = spi_chip_write_256, |
| 3171 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3172 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3173 | }, |
| 3174 | |
| 3175 | { |
| 3176 | .vendor = "Eon", |
| 3177 | .name = "EN25B80T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3178 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3179 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3180 | .model_id = EON_EN25B80, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3181 | .total_size = 1024, |
| 3182 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3183 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3184 | .tested = TEST_UNTESTED, |
| 3185 | .probe = probe_spi_rdid, |
| 3186 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3187 | .block_erasers = |
| 3188 | { |
| 3189 | { |
| 3190 | .eraseblocks = { |
| 3191 | {64 * 1024, 15}, |
| 3192 | {32 * 1024, 1}, |
| 3193 | {16 * 1024, 1}, |
| 3194 | {8 * 1024, 1}, |
| 3195 | {4 * 1024, 2}, |
| 3196 | }, |
| 3197 | .block_erase = spi_block_erase_d8, |
| 3198 | }, { |
| 3199 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3200 | .block_erase = spi_block_erase_c7, |
| 3201 | } |
| 3202 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3203 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3204 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3205 | .write = spi_chip_write_256, |
| 3206 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3207 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3208 | }, |
| 3209 | |
| 3210 | { |
| 3211 | .vendor = "Eon", |
| 3212 | .name = "EN25B16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3213 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3214 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3215 | .model_id = EON_EN25B16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3216 | .total_size = 2048, |
| 3217 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3218 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3219 | .tested = TEST_UNTESTED, |
| 3220 | .probe = probe_spi_rdid, |
| 3221 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3222 | .block_erasers = |
| 3223 | { |
| 3224 | { |
| 3225 | .eraseblocks = { |
| 3226 | {4 * 1024, 2}, |
| 3227 | {8 * 1024, 1}, |
| 3228 | {16 * 1024, 1}, |
| 3229 | {32 * 1024, 1}, |
| 3230 | {64 * 1024, 31}, |
| 3231 | }, |
| 3232 | .block_erase = spi_block_erase_d8, |
| 3233 | }, { |
| 3234 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3235 | .block_erase = spi_block_erase_c7, |
| 3236 | } |
| 3237 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3238 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3239 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3240 | .write = spi_chip_write_256, |
| 3241 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3242 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3243 | }, |
| 3244 | |
| 3245 | { |
| 3246 | .vendor = "Eon", |
| 3247 | .name = "EN25B16T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3248 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3249 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3250 | .model_id = EON_EN25B16, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3251 | .total_size = 2048, |
| 3252 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3253 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3254 | .tested = TEST_UNTESTED, |
| 3255 | .probe = probe_spi_rdid, |
| 3256 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3257 | .block_erasers = |
| 3258 | { |
| 3259 | { |
| 3260 | .eraseblocks = { |
| 3261 | {64 * 1024, 31}, |
| 3262 | {32 * 1024, 1}, |
| 3263 | {16 * 1024, 1}, |
| 3264 | {8 * 1024, 1}, |
| 3265 | {4 * 1024, 2}, |
| 3266 | }, |
| 3267 | .block_erase = spi_block_erase_d8, |
| 3268 | }, { |
| 3269 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3270 | .block_erase = spi_block_erase_c7, |
| 3271 | } |
| 3272 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3273 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3274 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3275 | .write = spi_chip_write_256, |
| 3276 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3277 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3278 | }, |
| 3279 | |
| 3280 | { |
| 3281 | .vendor = "Eon", |
| 3282 | .name = "EN25B32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3283 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3284 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3285 | .model_id = EON_EN25B32, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3286 | .total_size = 4096, |
| 3287 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3288 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3289 | .tested = TEST_UNTESTED, |
| 3290 | .probe = probe_spi_rdid, |
| 3291 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3292 | .block_erasers = |
| 3293 | { |
| 3294 | { |
| 3295 | .eraseblocks = { |
| 3296 | {4 * 1024, 2}, |
| 3297 | {8 * 1024, 1}, |
| 3298 | {16 * 1024, 1}, |
| 3299 | {32 * 1024, 1}, |
| 3300 | {64 * 1024, 63}, |
| 3301 | }, |
| 3302 | .block_erase = spi_block_erase_d8, |
| 3303 | }, { |
| 3304 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3305 | .block_erase = spi_block_erase_c7, |
| 3306 | } |
| 3307 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3308 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3309 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3310 | .write = spi_chip_write_256, |
| 3311 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3312 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3313 | }, |
| 3314 | |
| 3315 | { |
| 3316 | .vendor = "Eon", |
| 3317 | .name = "EN25B32T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3318 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3319 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3320 | .model_id = EON_EN25B32, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3321 | .total_size = 4096, |
| 3322 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3323 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3324 | .tested = TEST_UNTESTED, |
| 3325 | .probe = probe_spi_rdid, |
| 3326 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3327 | .block_erasers = |
| 3328 | { |
| 3329 | { |
| 3330 | .eraseblocks = { |
| 3331 | {64 * 1024, 63}, |
| 3332 | {32 * 1024, 1}, |
| 3333 | {16 * 1024, 1}, |
| 3334 | {8 * 1024, 1}, |
| 3335 | {4 * 1024, 2}, |
| 3336 | }, |
| 3337 | .block_erase = spi_block_erase_d8, |
| 3338 | }, { |
| 3339 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3340 | .block_erase = spi_block_erase_c7, |
| 3341 | } |
| 3342 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3343 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3344 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3345 | .write = spi_chip_write_256, |
| 3346 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3347 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3348 | }, |
| 3349 | |
| 3350 | { |
| 3351 | .vendor = "Eon", |
| 3352 | .name = "EN25B64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3353 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3354 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3355 | .model_id = EON_EN25B64, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3356 | .total_size = 8192, |
| 3357 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3358 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3359 | .tested = TEST_UNTESTED, |
| 3360 | .probe = probe_spi_rdid, |
| 3361 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3362 | .block_erasers = |
| 3363 | { |
| 3364 | { |
| 3365 | .eraseblocks = { |
| 3366 | {4 * 1024, 2}, |
| 3367 | {8 * 1024, 1}, |
| 3368 | {16 * 1024, 1}, |
| 3369 | {32 * 1024, 1}, |
| 3370 | {64 * 1024, 127}, |
| 3371 | }, |
| 3372 | .block_erase = spi_block_erase_d8, |
| 3373 | }, { |
| 3374 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3375 | .block_erase = spi_block_erase_c7, |
| 3376 | } |
| 3377 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3378 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3379 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3380 | .write = spi_chip_write_256, |
| 3381 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3382 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3383 | }, |
| 3384 | |
| 3385 | { |
| 3386 | .vendor = "Eon", |
| 3387 | .name = "EN25B64T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3388 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3389 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3390 | .model_id = EON_EN25B64, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3391 | .total_size = 8192, |
| 3392 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3393 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3394 | .tested = TEST_UNTESTED, |
| 3395 | .probe = probe_spi_rdid, |
| 3396 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3397 | .block_erasers = |
| 3398 | { |
| 3399 | { |
| 3400 | .eraseblocks = { |
| 3401 | {64 * 1024, 127}, |
| 3402 | {32 * 1024, 1}, |
| 3403 | {16 * 1024, 1}, |
| 3404 | {8 * 1024, 1}, |
| 3405 | {4 * 1024, 2}, |
| 3406 | }, |
| 3407 | .block_erase = spi_block_erase_d8, |
| 3408 | }, { |
| 3409 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3410 | .block_erase = spi_block_erase_c7, |
| 3411 | } |
| 3412 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3413 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3414 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3415 | .write = spi_chip_write_256, |
| 3416 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3417 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3418 | }, |
| 3419 | |
| 3420 | { |
| 3421 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3422 | .name = "EN25F05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3423 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3424 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3425 | .model_id = EON_EN25F05, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3426 | .total_size = 64, |
| 3427 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3428 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3429 | .tested = TEST_UNTESTED, |
| 3430 | .probe = probe_spi_rdid, |
| 3431 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3432 | .block_erasers = |
| 3433 | { |
| 3434 | { |
| 3435 | .eraseblocks = { {4 * 1024, 16} }, |
| 3436 | .block_erase = spi_block_erase_20, |
| 3437 | }, { |
| 3438 | .eraseblocks = { {32 * 1024, 2} }, |
| 3439 | .block_erase = spi_block_erase_d8, |
| 3440 | }, { |
| 3441 | .eraseblocks = { {32 * 1024, 2} }, |
| 3442 | .block_erase = spi_block_erase_52, |
| 3443 | }, { |
| 3444 | .eraseblocks = { {64 * 1024, 1} }, |
| 3445 | .block_erase = spi_block_erase_60, |
| 3446 | }, { |
| 3447 | .eraseblocks = { {64 * 1024, 1} }, |
| 3448 | .block_erase = spi_block_erase_c7, |
| 3449 | } |
| 3450 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3451 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3452 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3453 | .write = spi_chip_write_256, |
| 3454 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3455 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3456 | }, |
| 3457 | |
| 3458 | { |
| 3459 | .vendor = "Eon", |
| 3460 | .name = "EN25F10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3461 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3462 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3463 | .model_id = EON_EN25F10, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3464 | .total_size = 128, |
| 3465 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3466 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3467 | .tested = TEST_UNTESTED, |
| 3468 | .probe = probe_spi_rdid, |
| 3469 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3470 | .block_erasers = |
| 3471 | { |
| 3472 | { |
| 3473 | .eraseblocks = { {4 * 1024, 32} }, |
| 3474 | .block_erase = spi_block_erase_20, |
| 3475 | }, { |
| 3476 | .eraseblocks = { {32 * 1024, 4} }, |
| 3477 | .block_erase = spi_block_erase_d8, |
| 3478 | }, { |
| 3479 | .eraseblocks = { {32 * 1024, 4} }, |
| 3480 | .block_erase = spi_block_erase_52, |
| 3481 | }, { |
| 3482 | .eraseblocks = { {128 * 1024, 1} }, |
| 3483 | .block_erase = spi_block_erase_60, |
| 3484 | }, { |
| 3485 | .eraseblocks = { {128 * 1024, 1} }, |
| 3486 | .block_erase = spi_block_erase_c7, |
| 3487 | } |
| 3488 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3489 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3490 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3491 | .write = spi_chip_write_256, |
| 3492 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3493 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3494 | }, |
| 3495 | |
| 3496 | { |
| 3497 | .vendor = "Eon", |
| 3498 | .name = "EN25F20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3499 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3500 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3501 | .model_id = EON_EN25F20, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3502 | .total_size = 256, |
| 3503 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3504 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3505 | .tested = TEST_UNTESTED, |
| 3506 | .probe = probe_spi_rdid, |
| 3507 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3508 | .block_erasers = |
| 3509 | { |
| 3510 | { |
| 3511 | .eraseblocks = { {4 * 1024, 64} }, |
| 3512 | .block_erase = spi_block_erase_20, |
| 3513 | }, { |
| 3514 | .eraseblocks = { {64 * 1024, 4} }, |
| 3515 | .block_erase = spi_block_erase_d8, |
| 3516 | }, { |
| 3517 | .eraseblocks = { {64 * 1024, 4} }, |
| 3518 | .block_erase = spi_block_erase_52, |
| 3519 | }, { |
| 3520 | .eraseblocks = { {256 * 1024, 1} }, |
| 3521 | .block_erase = spi_block_erase_60, |
| 3522 | }, { |
| 3523 | .eraseblocks = { {256 * 1024, 1} }, |
| 3524 | .block_erase = spi_block_erase_c7, |
| 3525 | } |
| 3526 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3527 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3528 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3529 | .write = spi_chip_write_256, |
| 3530 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3531 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3532 | }, |
| 3533 | |
| 3534 | { |
| 3535 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3536 | .name = "EN25F40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3537 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3538 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3539 | .model_id = EON_EN25F40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3540 | .total_size = 512, |
| 3541 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3542 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | faaa2b2 | 2009-06-22 10:06:28 +0000 | [diff] [blame] | 3543 | .tested = TEST_OK_PROBE, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3544 | .probe = probe_spi_rdid, |
| 3545 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3546 | .block_erasers = |
| 3547 | { |
| 3548 | { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3549 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3550 | .block_erase = spi_block_erase_20, |
| 3551 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3552 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3553 | .block_erase = spi_block_erase_d8, |
| 3554 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3555 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3556 | .block_erase = spi_block_erase_60, |
| 3557 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3558 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3559 | .block_erase = spi_block_erase_c7, |
| 3560 | }, |
| 3561 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3562 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3563 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3564 | .write = spi_chip_write_256, |
| 3565 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3566 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3567 | }, |
| 3568 | |
| 3569 | { |
| 3570 | .vendor = "Eon", |
| 3571 | .name = "EN25F80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3572 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3573 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3574 | .model_id = EON_EN25F80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3575 | .total_size = 1024, |
| 3576 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3577 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 3578 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3579 | .probe = probe_spi_rdid, |
| 3580 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3581 | .block_erasers = |
| 3582 | { |
| 3583 | { |
| 3584 | .eraseblocks = { {4 * 1024, 256} }, |
| 3585 | .block_erase = spi_block_erase_20, |
| 3586 | }, { |
| 3587 | .eraseblocks = { {64 * 1024, 16} }, |
| 3588 | .block_erase = spi_block_erase_d8, |
| 3589 | }, { |
| 3590 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3591 | .block_erase = spi_block_erase_60, |
| 3592 | }, { |
| 3593 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3594 | .block_erase = spi_block_erase_c7, |
| 3595 | } |
| 3596 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3597 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3598 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3599 | .write = spi_chip_write_256, |
| 3600 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3601 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3602 | }, |
| 3603 | |
| 3604 | { |
| 3605 | .vendor = "Eon", |
| 3606 | .name = "EN25F16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3607 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3608 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3609 | .model_id = EON_EN25F16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3610 | .total_size = 2048, |
| 3611 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3612 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 3613 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3614 | .probe = probe_spi_rdid, |
| 3615 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3616 | .block_erasers = |
| 3617 | { |
| 3618 | { |
| 3619 | .eraseblocks = { {4 * 1024, 512} }, |
| 3620 | .block_erase = spi_block_erase_20, |
| 3621 | }, { |
| 3622 | .eraseblocks = { {64 * 1024, 32} }, |
| 3623 | .block_erase = spi_block_erase_d8, |
| 3624 | }, { |
| 3625 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3626 | .block_erase = spi_block_erase_60, |
| 3627 | }, { |
| 3628 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3629 | .block_erase = spi_block_erase_c7, |
| 3630 | } |
| 3631 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3632 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3633 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3634 | .write = spi_chip_write_256, |
| 3635 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3636 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3637 | }, |
| 3638 | |
| 3639 | { |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3640 | .vendor = "Eon", |
| 3641 | .name = "EN25F32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3642 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3643 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3644 | .model_id = EON_EN25F32, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3645 | .total_size = 4096, |
| 3646 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3647 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3648 | .tested = TEST_UNTESTED, |
| 3649 | .probe = probe_spi_rdid, |
| 3650 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3651 | .block_erasers = |
| 3652 | { |
| 3653 | { |
| 3654 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3655 | .block_erase = spi_block_erase_20, |
| 3656 | }, { |
| 3657 | .eraseblocks = { {64 * 1024, 64} }, |
| 3658 | .block_erase = spi_block_erase_d8, |
| 3659 | }, { |
| 3660 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3661 | .block_erase = spi_block_erase_60, |
| 3662 | }, { |
| 3663 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3664 | .block_erase = spi_block_erase_c7, |
| 3665 | } |
| 3666 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3667 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3668 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3669 | .write = spi_chip_write_256, |
| 3670 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3671 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3672 | }, |
| 3673 | |
| 3674 | { |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 3675 | .vendor = "Eon", |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 3676 | .name = "EN25F64", |
| 3677 | .bustype = BUS_SPI, |
| 3678 | .manufacture_id = EON_ID_NOPREFIX, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 3679 | .model_id = EON_EN25F64, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 3680 | .total_size = 8192, |
| 3681 | .page_size = 256, |
| 3682 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 3683 | .tested = TEST_OK_PREW, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 3684 | .probe = probe_spi_rdid, |
| 3685 | .probe_timing = TIMING_ZERO, |
| 3686 | .block_erasers = |
| 3687 | { |
| 3688 | { |
| 3689 | .eraseblocks = { {4 * 1024, 2048} }, |
| 3690 | .block_erase = spi_block_erase_20, |
| 3691 | }, { |
| 3692 | .eraseblocks = { {64 * 1024, 128} }, |
| 3693 | .block_erase = spi_block_erase_d8, |
| 3694 | }, { |
| 3695 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3696 | .block_erase = spi_block_erase_60, |
| 3697 | }, { |
| 3698 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3699 | .block_erase = spi_block_erase_c7, |
| 3700 | } |
| 3701 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3702 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 3703 | .unlock = spi_disable_blockprotect, |
| 3704 | .write = spi_chip_write_256, |
| 3705 | .read = spi_chip_read, |
| 3706 | .voltage = {2700, 3600}, |
| 3707 | }, |
| 3708 | |
| 3709 | { |
| 3710 | .vendor = "Eon", |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3711 | .name = "EN25Q40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3712 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3713 | .manufacture_id = EON_ID_NOPREFIX, |
| 3714 | .model_id = EON_EN25Q40, |
| 3715 | .total_size = 512, |
| 3716 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3717 | /* OTP: 256B total; enter 0x3A */ |
| 3718 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3719 | .tested = TEST_UNTESTED, |
| 3720 | .probe = probe_spi_rdid, |
| 3721 | .probe_timing = TIMING_ZERO, |
| 3722 | .block_erasers = |
| 3723 | { |
| 3724 | { |
| 3725 | .eraseblocks = { {4 * 1024, 128} }, |
| 3726 | .block_erase = spi_block_erase_20, |
| 3727 | }, { |
| 3728 | .eraseblocks = { {64 * 1024, 8} }, |
| 3729 | .block_erase = spi_block_erase_d8, |
| 3730 | }, { |
| 3731 | .eraseblocks = { {512 * 1024, 1} }, |
| 3732 | .block_erase = spi_block_erase_60, |
| 3733 | }, { |
| 3734 | .eraseblocks = { {512 * 1024, 1} }, |
| 3735 | .block_erase = spi_block_erase_c7, |
| 3736 | } |
| 3737 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3738 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3739 | .unlock = spi_disable_blockprotect, |
| 3740 | .write = spi_chip_write_256, |
| 3741 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3742 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3743 | }, |
| 3744 | |
| 3745 | { |
| 3746 | .vendor = "Eon", |
| 3747 | .name = "EN25Q80(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3748 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3749 | .manufacture_id = EON_ID_NOPREFIX, |
| 3750 | .model_id = EON_EN25Q80, |
| 3751 | .total_size = 1024, |
| 3752 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3753 | /* OTP: 256B total; enter 0x3A */ |
| 3754 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3755 | .tested = TEST_UNTESTED, |
| 3756 | .probe = probe_spi_rdid, |
| 3757 | .probe_timing = TIMING_ZERO, |
| 3758 | .block_erasers = |
| 3759 | { |
| 3760 | { |
| 3761 | .eraseblocks = { {4 * 1024, 256} }, |
| 3762 | .block_erase = spi_block_erase_20, |
| 3763 | }, { |
| 3764 | .eraseblocks = { {64 * 1024, 16} }, |
| 3765 | .block_erase = spi_block_erase_d8, |
| 3766 | }, { |
| 3767 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3768 | .block_erase = spi_block_erase_60, |
| 3769 | }, { |
| 3770 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3771 | .block_erase = spi_block_erase_c7, |
| 3772 | } |
| 3773 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3774 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3775 | .unlock = spi_disable_blockprotect, |
| 3776 | .write = spi_chip_write_256, |
| 3777 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3778 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3779 | }, |
| 3780 | |
| 3781 | { |
| 3782 | /* Note: EN25D16 is an evil twin which shares the model ID |
| 3783 | but has different write protection capabilities */ |
| 3784 | .vendor = "Eon", |
| 3785 | .name = "EN25Q16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3786 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3787 | .manufacture_id = EON_ID_NOPREFIX, |
| 3788 | .model_id = EON_EN25Q16, |
| 3789 | .total_size = 2048, |
| 3790 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3791 | /* OTP: D16 512B/Q16 128B total; enter 0x3A */ |
| 3792 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3793 | .tested = TEST_UNTESTED, |
| 3794 | .probe = probe_spi_rdid, |
| 3795 | .probe_timing = TIMING_ZERO, |
| 3796 | .block_erasers = |
| 3797 | { |
| 3798 | { |
| 3799 | .eraseblocks = { {4 * 1024, 512} }, |
| 3800 | .block_erase = spi_block_erase_20, |
| 3801 | }, { |
| 3802 | .eraseblocks = { {64 * 1024, 32} }, |
| 3803 | .block_erase = spi_block_erase_d8, |
| 3804 | }, { |
| 3805 | /* not supported by Q16 version */ |
| 3806 | .eraseblocks = { {64 * 1024, 32} }, |
| 3807 | .block_erase = spi_block_erase_52, |
| 3808 | }, { |
| 3809 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3810 | .block_erase = spi_block_erase_60, |
| 3811 | }, { |
| 3812 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3813 | .block_erase = spi_block_erase_c7, |
| 3814 | } |
| 3815 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3816 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3817 | .unlock = spi_disable_blockprotect, |
| 3818 | .write = spi_chip_write_256, |
| 3819 | .read = spi_chip_read, |
| 3820 | .voltage = {2700, 3600}, |
| 3821 | }, |
| 3822 | |
| 3823 | { |
| 3824 | .vendor = "Eon", |
| 3825 | .name = "EN25Q32(A/B)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3826 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3827 | .manufacture_id = EON_ID_NOPREFIX, |
| 3828 | .model_id = EON_EN25Q32, |
| 3829 | .total_size = 4096, |
| 3830 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3831 | /* OTP: 512B total; enter 0x3A */ |
| 3832 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3833 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3834 | .probe = probe_spi_rdid, |
| 3835 | .probe_timing = TIMING_ZERO, |
| 3836 | .block_erasers = |
| 3837 | { |
| 3838 | { |
| 3839 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3840 | .block_erase = spi_block_erase_20, |
| 3841 | }, { |
| 3842 | .eraseblocks = { {64 * 1024, 64} }, |
| 3843 | .block_erase = spi_block_erase_d8, |
| 3844 | }, { |
| 3845 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3846 | .block_erase = spi_block_erase_60, |
| 3847 | }, { |
| 3848 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3849 | .block_erase = spi_block_erase_c7, |
| 3850 | } |
| 3851 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3852 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3853 | .unlock = spi_disable_blockprotect, |
| 3854 | .write = spi_chip_write_256, |
| 3855 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3856 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3857 | }, |
| 3858 | |
| 3859 | { |
| 3860 | .vendor = "Eon", |
| 3861 | .name = "EN25Q64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3862 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3863 | .manufacture_id = EON_ID_NOPREFIX, |
| 3864 | .model_id = EON_EN25Q64, |
| 3865 | .total_size = 8192, |
| 3866 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3867 | /* OTP: 512B total; enter 0x3A */ |
| 3868 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3869 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3870 | .probe = probe_spi_rdid, |
| 3871 | .probe_timing = TIMING_ZERO, |
| 3872 | .block_erasers = |
| 3873 | { |
| 3874 | { |
| 3875 | .eraseblocks = { {4 * 1024, 2048} }, |
| 3876 | .block_erase = spi_block_erase_20, |
| 3877 | }, { |
| 3878 | .eraseblocks = { {64 * 1024, 128} }, |
| 3879 | .block_erase = spi_block_erase_d8, |
| 3880 | }, { |
| 3881 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3882 | .block_erase = spi_block_erase_60, |
| 3883 | }, { |
| 3884 | .eraseblocks = { {8 * 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 */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3889 | .unlock = spi_disable_blockprotect, |
| 3890 | .write = spi_chip_write_256, |
| 3891 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3892 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3893 | }, |
| 3894 | |
| 3895 | { |
| 3896 | .vendor = "Eon", |
| 3897 | .name = "EN25Q128", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3898 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3899 | .manufacture_id = EON_ID_NOPREFIX, |
| 3900 | .model_id = EON_EN25Q128, |
| 3901 | .total_size = 16384, |
| 3902 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3903 | /* OTP: 512B total; enter 0x3A */ |
| 3904 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3905 | .tested = TEST_UNTESTED, |
| 3906 | .probe = probe_spi_rdid, |
| 3907 | .probe_timing = TIMING_ZERO, |
| 3908 | .block_erasers = |
| 3909 | { |
| 3910 | { |
| 3911 | .eraseblocks = { {4 * 1024, 4096} }, |
| 3912 | .block_erase = spi_block_erase_20, |
| 3913 | }, { |
| 3914 | .eraseblocks = { {64 * 1024, 256} }, |
| 3915 | .block_erase = spi_block_erase_d8, |
| 3916 | }, { |
| 3917 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 3918 | .block_erase = spi_block_erase_60, |
| 3919 | }, { |
| 3920 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 3921 | .block_erase = spi_block_erase_c7, |
| 3922 | } |
| 3923 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3924 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3925 | .unlock = spi_disable_blockprotect, |
| 3926 | .write = spi_chip_write_256, |
| 3927 | .read = spi_chip_read, |
| 3928 | }, |
| 3929 | |
| 3930 | { |
| 3931 | .vendor = "Eon", |
| 3932 | .name = "EN25QH16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3933 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3934 | .manufacture_id = EON_ID_NOPREFIX, |
| 3935 | .model_id = EON_EN25QH16, |
| 3936 | .total_size = 2048, |
| 3937 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3938 | /* supports SFDP */ |
| 3939 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 3940 | /* QPI enable 0x38, disable 0xFF */ |
| 3941 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 3942 | .tested = TEST_OK_PR, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3943 | .probe = probe_spi_rdid, |
| 3944 | .probe_timing = TIMING_ZERO, |
| 3945 | .block_erasers = |
| 3946 | { |
| 3947 | { |
| 3948 | .eraseblocks = { {4 * 1024, 512} }, |
| 3949 | .block_erase = spi_block_erase_20, |
| 3950 | }, { |
| 3951 | .eraseblocks = { {64 * 1024, 32} }, |
| 3952 | .block_erase = spi_block_erase_d8, |
| 3953 | }, { |
| 3954 | .eraseblocks = { {1024 * 2048, 1} }, |
| 3955 | .block_erase = spi_block_erase_60, |
| 3956 | }, { |
| 3957 | .eraseblocks = { {1024 * 2048, 1} }, |
| 3958 | .block_erase = spi_block_erase_c7, |
| 3959 | } |
| 3960 | }, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 3961 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 3962 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3963 | .write = spi_chip_write_256, |
| 3964 | .read = spi_chip_read, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 3965 | .voltage = {2700, 3600}, |
| 3966 | }, |
| 3967 | |
| 3968 | { |
| 3969 | .vendor = "Eon", |
| 3970 | .name = "EN25QH32", |
| 3971 | .bustype = BUS_SPI, |
| 3972 | .manufacture_id = EON_ID_NOPREFIX, |
| 3973 | .model_id = EON_EN25QH32, |
| 3974 | .total_size = 4096, |
| 3975 | .page_size = 256, |
| 3976 | /* supports SFDP */ |
| 3977 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 3978 | /* QPI enable 0x38, disable 0xFF */ |
| 3979 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 3980 | .tested = TEST_UNTESTED, |
| 3981 | .probe = probe_spi_rdid, |
| 3982 | .probe_timing = TIMING_ZERO, |
| 3983 | .block_erasers = |
| 3984 | { |
| 3985 | { |
| 3986 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3987 | .block_erase = spi_block_erase_20, |
| 3988 | }, { |
| 3989 | .eraseblocks = { {64 * 1024, 64} }, |
| 3990 | .block_erase = spi_block_erase_d8, |
| 3991 | }, { |
| 3992 | .eraseblocks = { {1024 * 4096, 1} }, |
| 3993 | .block_erase = spi_block_erase_60, |
| 3994 | }, { |
| 3995 | .eraseblocks = { {1024 * 4096, 1} }, |
| 3996 | .block_erase = spi_block_erase_c7, |
| 3997 | } |
| 3998 | }, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 3999 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 4000 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4001 | .write = spi_chip_write_256, |
| 4002 | .read = spi_chip_read, |
| 4003 | .voltage = {2700, 3600}, |
| 4004 | }, |
| 4005 | |
| 4006 | { |
| 4007 | .vendor = "Eon", |
| 4008 | .name = "EN25QH64", |
| 4009 | .bustype = BUS_SPI, |
| 4010 | .manufacture_id = EON_ID_NOPREFIX, |
| 4011 | .model_id = EON_EN25QH64, |
| 4012 | .total_size = 8192, |
| 4013 | .page_size = 256, |
| 4014 | /* supports SFDP */ |
| 4015 | /* OTP: 512B total; enter 0x3A */ |
| 4016 | /* QPI enable 0x38, disable 0xFF */ |
| 4017 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4018 | .tested = TEST_UNTESTED, |
| 4019 | .probe = probe_spi_rdid, |
| 4020 | .probe_timing = TIMING_ZERO, |
| 4021 | .block_erasers = { |
| 4022 | { |
| 4023 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4024 | .block_erase = spi_block_erase_20, |
| 4025 | }, { |
| 4026 | .eraseblocks = { {64 * 1024, 128} }, |
| 4027 | .block_erase = spi_block_erase_d8, |
| 4028 | }, { |
| 4029 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 4030 | .block_erase = spi_block_erase_60, |
| 4031 | }, { |
| 4032 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 4033 | .block_erase = spi_block_erase_c7, |
| 4034 | } |
| 4035 | }, |
| 4036 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 4037 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4038 | .write = spi_chip_write_256, |
| 4039 | .read = spi_chip_read, |
| 4040 | .voltage = {2700, 3600}, |
| 4041 | }, |
| 4042 | |
| 4043 | { |
| 4044 | .vendor = "Eon", |
| 4045 | .name = "EN25QH128", |
| 4046 | .bustype = BUS_SPI, |
| 4047 | .manufacture_id = EON_ID_NOPREFIX, |
| 4048 | .model_id = EON_EN25QH128, |
| 4049 | .total_size = 16384, |
| 4050 | .page_size = 256, |
| 4051 | /* supports SFDP */ |
| 4052 | /* OTP: 512B total; enter 0x3A */ |
| 4053 | /* QPI enable 0x38, disable 0xFF */ |
| 4054 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4055 | .tested = TEST_UNTESTED, |
| 4056 | .probe = probe_spi_rdid, |
| 4057 | .probe_timing = TIMING_ZERO, |
| 4058 | .block_erasers = { |
| 4059 | { |
| 4060 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4061 | .block_erase = spi_block_erase_20, |
| 4062 | }, { |
| 4063 | .eraseblocks = { {64 * 1024, 256} }, |
| 4064 | .block_erase = spi_block_erase_d8, |
| 4065 | }, { |
| 4066 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 4067 | .block_erase = spi_block_erase_60, |
| 4068 | }, { |
| 4069 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 4070 | .block_erase = spi_block_erase_c7, |
| 4071 | } |
| 4072 | }, |
| 4073 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 4074 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4075 | .write = spi_chip_write_256, |
| 4076 | .read = spi_chip_read, |
| 4077 | .voltage = {2700, 3600}, |
| 4078 | }, |
| 4079 | |
| 4080 | { |
| 4081 | .vendor = "Eon", |
| 4082 | .name = "EN25QH256", |
| 4083 | .bustype = BUS_SPI, |
| 4084 | .manufacture_id = EON_ID_NOPREFIX, |
| 4085 | .model_id = EON_EN25QH256, |
| 4086 | .total_size = 32768, |
| 4087 | .page_size = 256, |
| 4088 | /* supports SFDP */ |
| 4089 | /* OTP: 512B total; enter 0x3A */ |
| 4090 | /* QPI enable 0x38, disable 0xFF */ |
| 4091 | /* EN4B: 0xB7, EX4B: 0xE9 */ |
| 4092 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4093 | .tested = TEST_BAD_REW, |
| 4094 | .probe = probe_spi_rdid, |
| 4095 | .probe_timing = TIMING_ZERO, |
| 4096 | .block_erasers = { |
| 4097 | { |
| 4098 | .eraseblocks = { {4 * 1024, 8192} }, |
| 4099 | .block_erase = spi_block_erase_20, |
| 4100 | }, { |
| 4101 | .eraseblocks = { {64 * 1024, 512} }, |
| 4102 | .block_erase = spi_block_erase_d8, |
| 4103 | }, { |
| 4104 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 4105 | .block_erase = spi_block_erase_60, |
| 4106 | }, { |
| 4107 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 4108 | .block_erase = spi_block_erase_c7, |
| 4109 | } |
| 4110 | }, |
| 4111 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 4112 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 4113 | .write = spi_chip_write_256, |
| 4114 | .read = spi_chip_read, |
| 4115 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4116 | }, |
| 4117 | |
| 4118 | { |
| 4119 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4120 | .name = "EN25S10", |
| 4121 | .bustype = BUS_SPI, |
| 4122 | .manufacture_id = EON_ID_NOPREFIX, |
| 4123 | .model_id = EON_EN25S10, |
| 4124 | .total_size = 128, |
| 4125 | .page_size = 256, |
| 4126 | /* OTP: 256B total; enter 0x3A */ |
| 4127 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4128 | .tested = TEST_UNTESTED, |
| 4129 | .probe = probe_spi_rdid, |
| 4130 | .probe_timing = TIMING_ZERO, |
| 4131 | .block_erasers = { |
| 4132 | { |
| 4133 | .eraseblocks = { {4 * 1024, 32} }, |
| 4134 | .block_erase = spi_block_erase_20, |
| 4135 | }, { |
| 4136 | .eraseblocks = { {32 * 1024, 4} }, |
| 4137 | .block_erase = spi_block_erase_52, |
| 4138 | }, { |
| 4139 | .eraseblocks = { {128 * 1024, 1} }, |
| 4140 | .block_erase = spi_block_erase_60, |
| 4141 | }, { |
| 4142 | .eraseblocks = { {128 * 1024, 1} }, |
| 4143 | .block_erase = spi_block_erase_c7, |
| 4144 | } |
| 4145 | }, |
| 4146 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 4147 | .unlock = spi_disable_blockprotect, |
| 4148 | .write = spi_chip_write_256, |
| 4149 | .read = spi_chip_read, |
| 4150 | .voltage = {1650, 1950}, |
| 4151 | }, |
| 4152 | |
| 4153 | { |
| 4154 | .vendor = "Eon", |
| 4155 | .name = "EN25S20", |
| 4156 | .bustype = BUS_SPI, |
| 4157 | .manufacture_id = EON_ID_NOPREFIX, |
| 4158 | .model_id = EON_EN25S20, |
| 4159 | .total_size = 256, |
| 4160 | .page_size = 256, |
| 4161 | /* OTP: 256B total; enter 0x3A */ |
| 4162 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4163 | .tested = TEST_UNTESTED, |
| 4164 | .probe = probe_spi_rdid, |
| 4165 | .probe_timing = TIMING_ZERO, |
| 4166 | .block_erasers = { |
| 4167 | { |
| 4168 | .eraseblocks = { {4 * 1024, 64} }, |
| 4169 | .block_erase = spi_block_erase_20, |
| 4170 | }, { |
| 4171 | .eraseblocks = { {64 * 1024, 4} }, |
| 4172 | .block_erase = spi_block_erase_d8, |
| 4173 | }, { |
| 4174 | .eraseblocks = { {256 * 1024, 1} }, |
| 4175 | .block_erase = spi_block_erase_60, |
| 4176 | }, { |
| 4177 | .eraseblocks = { {256 * 1024, 1} }, |
| 4178 | .block_erase = spi_block_erase_c7, |
| 4179 | } |
| 4180 | }, |
| 4181 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 4182 | .unlock = spi_disable_blockprotect, |
| 4183 | .write = spi_chip_write_256, |
| 4184 | .read = spi_chip_read, |
| 4185 | .voltage = {1650, 1950}, |
| 4186 | }, |
| 4187 | |
| 4188 | { |
| 4189 | .vendor = "Eon", |
| 4190 | .name = "EN25S40", |
| 4191 | .bustype = BUS_SPI, |
| 4192 | .manufacture_id = EON_ID_NOPREFIX, |
| 4193 | .model_id = EON_EN25S40, |
| 4194 | .total_size = 512, |
| 4195 | .page_size = 256, |
| 4196 | /* OTP: 256B total; enter 0x3A */ |
| 4197 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4198 | .tested = TEST_UNTESTED, |
| 4199 | .probe = probe_spi_rdid, |
| 4200 | .probe_timing = TIMING_ZERO, |
| 4201 | .block_erasers = { |
| 4202 | { |
| 4203 | .eraseblocks = { {4 * 1024, 128} }, |
| 4204 | .block_erase = spi_block_erase_20, |
| 4205 | }, { |
| 4206 | .eraseblocks = { {64 * 1024, 8} }, |
| 4207 | .block_erase = spi_block_erase_d8, |
| 4208 | }, { |
| 4209 | .eraseblocks = { {512 * 1024, 1} }, |
| 4210 | .block_erase = spi_block_erase_60, |
| 4211 | }, { |
| 4212 | .eraseblocks = { {512 * 1024, 1} }, |
| 4213 | .block_erase = spi_block_erase_c7, |
| 4214 | } |
| 4215 | }, |
| 4216 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 4217 | .unlock = spi_disable_blockprotect, |
| 4218 | .write = spi_chip_write_256, |
| 4219 | .read = spi_chip_read, |
| 4220 | .voltage = {1650, 1950}, |
| 4221 | }, |
| 4222 | |
| 4223 | { |
| 4224 | .vendor = "Eon", |
| 4225 | .name = "EN25S80", |
| 4226 | .bustype = BUS_SPI, |
| 4227 | .manufacture_id = EON_ID_NOPREFIX, |
| 4228 | .model_id = EON_EN25S80, |
| 4229 | .total_size = 1024, |
| 4230 | .page_size = 256, |
| 4231 | /* OTP: 256B total; enter 0x3A */ |
| 4232 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4233 | .tested = TEST_UNTESTED, |
| 4234 | .probe = probe_spi_rdid, |
| 4235 | .probe_timing = TIMING_ZERO, |
| 4236 | .block_erasers = { |
| 4237 | { |
| 4238 | .eraseblocks = { {4 * 1024, 256} }, |
| 4239 | .block_erase = spi_block_erase_20, |
| 4240 | }, { |
| 4241 | .eraseblocks = { {64 * 1024, 16} }, |
| 4242 | .block_erase = spi_block_erase_d8, |
| 4243 | }, { |
| 4244 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4245 | .block_erase = spi_block_erase_60, |
| 4246 | }, { |
| 4247 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4248 | .block_erase = spi_block_erase_c7, |
| 4249 | } |
| 4250 | }, |
| 4251 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 4252 | .unlock = spi_disable_blockprotect, |
| 4253 | .write = spi_chip_write_256, |
| 4254 | .read = spi_chip_read, |
| 4255 | .voltage = {1650, 1950}, |
| 4256 | }, |
| 4257 | |
| 4258 | { |
| 4259 | .vendor = "Eon", |
| 4260 | .name = "EN25S16", |
| 4261 | .bustype = BUS_SPI, |
| 4262 | .manufacture_id = EON_ID_NOPREFIX, |
| 4263 | .model_id = EON_EN25S16, |
| 4264 | .total_size = 2048, |
| 4265 | .page_size = 256, |
| 4266 | /* OTP: 512B total; enter 0x3A */ |
| 4267 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4268 | .tested = TEST_UNTESTED, |
| 4269 | .probe = probe_spi_rdid, |
| 4270 | .probe_timing = TIMING_ZERO, |
| 4271 | .block_erasers = { |
| 4272 | { |
| 4273 | .eraseblocks = { {4 * 1024, 512} }, |
| 4274 | .block_erase = spi_block_erase_20, |
| 4275 | }, { |
| 4276 | .eraseblocks = { {64 * 1024, 32} }, |
| 4277 | .block_erase = spi_block_erase_52, |
| 4278 | }, { |
| 4279 | .eraseblocks = { {32 * 1024, 64} }, |
| 4280 | .block_erase = spi_block_erase_d8, |
| 4281 | }, { |
| 4282 | .eraseblocks = { {2048 * 1024, 1} }, |
| 4283 | .block_erase = spi_block_erase_60, |
| 4284 | }, { |
| 4285 | .eraseblocks = { {2048 * 1024, 1} }, |
| 4286 | .block_erase = spi_block_erase_c7, |
| 4287 | } |
| 4288 | }, |
| 4289 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 4290 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4291 | .write = spi_chip_write_256, |
| 4292 | .read = spi_chip_read, |
| 4293 | .voltage = {1650, 1950}, |
| 4294 | }, |
| 4295 | |
| 4296 | { |
| 4297 | .vendor = "Eon", |
| 4298 | .name = "EN25S32", |
| 4299 | .bustype = BUS_SPI, |
| 4300 | .manufacture_id = EON_ID_NOPREFIX, |
| 4301 | .model_id = EON_EN25S32, |
| 4302 | .total_size = 4096, |
| 4303 | .page_size = 256, |
| 4304 | /* OTP: 512B total; enter 0x3A */ |
| 4305 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4306 | .tested = TEST_UNTESTED, |
| 4307 | .probe = probe_spi_rdid, |
| 4308 | .probe_timing = TIMING_ZERO, |
| 4309 | .block_erasers = { |
| 4310 | { |
| 4311 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4312 | .block_erase = spi_block_erase_20, |
| 4313 | }, { |
| 4314 | .eraseblocks = { {32 * 1024, 128} }, |
| 4315 | .block_erase = spi_block_erase_52, |
| 4316 | }, { |
| 4317 | .eraseblocks = { {64 * 1024, 64} }, |
| 4318 | .block_erase = spi_block_erase_d8, |
| 4319 | }, { |
| 4320 | .eraseblocks = { {4096 * 1024, 1} }, |
| 4321 | .block_erase = spi_block_erase_60, |
| 4322 | }, { |
| 4323 | .eraseblocks = { {4096 * 1024, 1} }, |
| 4324 | .block_erase = spi_block_erase_c7, |
| 4325 | } |
| 4326 | }, |
| 4327 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 4328 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4329 | .write = spi_chip_write_256, |
| 4330 | .read = spi_chip_read, |
| 4331 | .voltage = {1650, 1950}, |
| 4332 | }, |
| 4333 | |
| 4334 | { |
| 4335 | .vendor = "Eon", |
| 4336 | .name = "EN25S64", |
| 4337 | .bustype = BUS_SPI, |
| 4338 | .manufacture_id = EON_ID_NOPREFIX, |
| 4339 | .model_id = EON_EN25S64, |
| 4340 | .total_size = 8192, |
| 4341 | .page_size = 256, |
| 4342 | /* OTP: 512B total; enter 0x3A */ |
| 4343 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4344 | .tested = TEST_UNTESTED, |
| 4345 | .probe = probe_spi_rdid, |
| 4346 | .probe_timing = TIMING_ZERO, |
| 4347 | .block_erasers = { |
| 4348 | { |
| 4349 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4350 | .block_erase = spi_block_erase_20, |
| 4351 | }, { |
| 4352 | .eraseblocks = { {64 * 1024, 128} }, |
| 4353 | .block_erase = spi_block_erase_d8, |
| 4354 | }, { |
| 4355 | .eraseblocks = { {8192 * 1024, 1} }, |
| 4356 | .block_erase = spi_block_erase_60, |
| 4357 | }, { |
| 4358 | .eraseblocks = { {8192 * 1024, 1} }, |
| 4359 | .block_erase = spi_block_erase_c7, |
| 4360 | } |
| 4361 | }, |
| 4362 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 4363 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4364 | .write = spi_chip_write_256, |
| 4365 | .read = spi_chip_read, |
| 4366 | .voltage = {1650, 1950}, |
| 4367 | }, |
| 4368 | |
| 4369 | { |
| 4370 | .vendor = "Eon", |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4371 | .name = "EN29F010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4372 | .bustype = BUS_PARALLEL, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4373 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4374 | .model_id = EON_EN29F010, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4375 | .total_size = 128, |
| 4376 | .page_size = 128, |
| 4377 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 4378 | .tested = TEST_OK_PRE, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4379 | .probe = probe_jedec, |
| 4380 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4381 | .block_erasers = |
| 4382 | { |
| 4383 | { |
| 4384 | .eraseblocks = { {16 * 1024, 8} }, |
| 4385 | .block_erase = erase_sector_jedec, |
| 4386 | }, |
| 4387 | { |
| 4388 | .eraseblocks = { {128 * 1024, 1} }, |
| 4389 | .block_erase = erase_chip_block_jedec, |
| 4390 | }, |
| 4391 | }, |
| 4392 | .write = write_jedec_1, |
| 4393 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4394 | .voltage = {4500, 5500}, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4395 | }, |
| 4396 | |
| 4397 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 4398 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4399 | .name = "EN29F002(A)(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4400 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4401 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4402 | .model_id = EON_EN29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4403 | .total_size = 256, |
| 4404 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4405 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 4406 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4407 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4408 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4409 | .block_erasers = |
| 4410 | { |
| 4411 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 4412 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4413 | {16 * 1024, 1}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 4414 | {8 * 1024, 2}, |
| 4415 | {32 * 1024, 1}, |
| 4416 | {64 * 1024, 3}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4417 | }, |
| 4418 | .block_erase = erase_sector_jedec, |
| 4419 | }, { |
| 4420 | .eraseblocks = { {256 * 1024, 1} }, |
| 4421 | .block_erase = erase_chip_block_jedec, |
| 4422 | }, |
| 4423 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 4424 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4425 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4426 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4427 | }, |
| 4428 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4429 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 4430 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4431 | .name = "EN29F002(A)(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4432 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4433 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4434 | .model_id = EON_EN29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4435 | .total_size = 256, |
| 4436 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4437 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 4438 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4439 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4440 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4441 | .block_erasers = |
| 4442 | { |
| 4443 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 4444 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4445 | {64 * 1024, 3}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 4446 | {32 * 1024, 1}, |
| 4447 | {8 * 1024, 2}, |
| 4448 | {16 * 1024, 1}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4449 | }, |
| 4450 | .block_erase = erase_sector_jedec, |
| 4451 | }, { |
| 4452 | .eraseblocks = { {256 * 1024, 1} }, |
| 4453 | .block_erase = erase_chip_block_jedec, |
| 4454 | }, |
| 4455 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 4456 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4457 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4458 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4459 | }, |
| 4460 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4461 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 4462 | .vendor = "Eon", |
| 4463 | .name = "EN29LV640B", |
| 4464 | .bustype = BUS_PARALLEL, |
| 4465 | .manufacture_id = EON_ID, |
| 4466 | .model_id = EON_EN29LV640B, |
| 4467 | .total_size = 8192, |
| 4468 | .page_size = 8192, |
| 4469 | .feature_bits = 0, |
| 4470 | .tested = TEST_OK_PREW, |
| 4471 | .probe = probe_en29lv640b, |
| 4472 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4473 | .block_erasers = |
| 4474 | { |
| 4475 | { |
| 4476 | .eraseblocks = { |
| 4477 | {8 * 1024, 8}, |
| 4478 | {64 * 1024, 127}, |
| 4479 | }, |
| 4480 | .block_erase = block_erase_en29lv640b, |
| 4481 | }, { |
| 4482 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4483 | .block_erase = block_erase_chip_en29lv640b, |
| 4484 | }, |
| 4485 | }, |
| 4486 | .write = write_en29lv640b, |
| 4487 | .read = read_memmapped, |
| 4488 | .voltage = {2700, 3600}, |
| 4489 | }, |
| 4490 | |
| 4491 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4492 | .vendor = "Fujitsu", |
| 4493 | .name = "MBM29F004BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4494 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4495 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4496 | .model_id = FUJITSU_MBM29F004BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4497 | .total_size = 512, |
| 4498 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4499 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4500 | .tested = TEST_UNTESTED, |
| 4501 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4502 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4503 | .block_erasers = |
| 4504 | { |
| 4505 | { |
| 4506 | .eraseblocks = { |
| 4507 | {16 * 1024, 1}, |
| 4508 | {8 * 1024, 2}, |
| 4509 | {32 * 1024, 1}, |
| 4510 | {64 * 1024, 7}, |
| 4511 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4512 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4513 | }, { |
| 4514 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4515 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4516 | }, |
| 4517 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4518 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4519 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4520 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4521 | }, |
| 4522 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4523 | { |
| 4524 | .vendor = "Fujitsu", |
| 4525 | .name = "MBM29F004TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4526 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4527 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4528 | .model_id = FUJITSU_MBM29F004TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4529 | .total_size = 512, |
| 4530 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4531 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4532 | .tested = TEST_UNTESTED, |
| 4533 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4534 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4535 | .block_erasers = |
| 4536 | { |
| 4537 | { |
| 4538 | .eraseblocks = { |
| 4539 | {64 * 1024, 7}, |
| 4540 | {32 * 1024, 1}, |
| 4541 | {8 * 1024, 2}, |
| 4542 | {16 * 1024, 1}, |
| 4543 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4544 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4545 | }, { |
| 4546 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4547 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4548 | }, |
| 4549 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4550 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4551 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4552 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4553 | }, |
| 4554 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4555 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4556 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4557 | .vendor = "Fujitsu", |
| 4558 | .name = "MBM29F400BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4559 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4560 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4561 | .model_id = FUJITSU_MBM29F400BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4562 | .total_size = 512, |
| 4563 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4564 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 4565 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4566 | .probe = probe_m29f400bt, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 4567 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4568 | .block_erasers = |
| 4569 | { |
| 4570 | { |
| 4571 | .eraseblocks = { |
| 4572 | {16 * 1024, 1}, |
| 4573 | {8 * 1024, 2}, |
| 4574 | {32 * 1024, 1}, |
| 4575 | {64 * 1024, 7}, |
| 4576 | }, |
| 4577 | .block_erase = block_erase_m29f400bt, |
| 4578 | }, { |
| 4579 | .eraseblocks = { {512 * 1024, 1} }, |
| 4580 | .block_erase = block_erase_chip_m29f400bt, |
| 4581 | }, |
| 4582 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 4583 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4584 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 4585 | .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] | 4586 | }, |
| 4587 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4588 | { |
| 4589 | .vendor = "Fujitsu", |
| 4590 | .name = "MBM29F400TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4591 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4592 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4593 | .model_id = FUJITSU_MBM29F400TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4594 | .total_size = 512, |
| 4595 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4596 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4597 | .tested = TEST_UNTESTED, |
| 4598 | .probe = probe_m29f400bt, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 4599 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4600 | .block_erasers = |
| 4601 | { |
| 4602 | { |
| 4603 | .eraseblocks = { |
| 4604 | {64 * 1024, 7}, |
| 4605 | {32 * 1024, 1}, |
| 4606 | {8 * 1024, 2}, |
| 4607 | {16 * 1024, 1}, |
| 4608 | }, |
| 4609 | .block_erase = block_erase_m29f400bt, |
| 4610 | }, { |
| 4611 | .eraseblocks = { {512 * 1024, 1} }, |
| 4612 | .block_erase = block_erase_chip_m29f400bt, |
| 4613 | }, |
| 4614 | }, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 4615 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4616 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 4617 | .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] | 4618 | }, |
| 4619 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4620 | { |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4621 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4622 | .name = "GD25LQ32", |
| 4623 | .bustype = BUS_SPI, |
| 4624 | .manufacture_id = GIGADEVICE_ID, |
| 4625 | .model_id = GIGADEVICE_GD25LQ32, |
| 4626 | .total_size = 4096, |
| 4627 | .page_size = 256, |
| 4628 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 4629 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4630 | .tested = TEST_OK_PREW, |
| 4631 | .probe = probe_spi_rdid, |
| 4632 | .probe_timing = TIMING_ZERO, |
| 4633 | .block_erasers = |
| 4634 | { |
| 4635 | { |
| 4636 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4637 | .block_erase = spi_block_erase_20, |
| 4638 | }, { |
| 4639 | .eraseblocks = { {32 * 1024, 128} }, |
| 4640 | .block_erase = spi_block_erase_52, |
| 4641 | }, { |
| 4642 | .eraseblocks = { {64 * 1024, 64} }, |
| 4643 | .block_erase = spi_block_erase_d8, |
| 4644 | }, { |
| 4645 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4646 | .block_erase = spi_block_erase_60, |
| 4647 | }, { |
| 4648 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4649 | .block_erase = spi_block_erase_c7, |
| 4650 | } |
| 4651 | }, |
| 4652 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 4653 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 4654 | .write = spi_chip_write_256, |
| 4655 | .read = spi_chip_read, |
| 4656 | .voltage = {1700, 1950}, |
| 4657 | }, |
| 4658 | |
| 4659 | { |
| 4660 | .vendor = "GigaDevice", |
| 4661 | .name = "GD25Q512", |
| 4662 | .bustype = BUS_SPI, |
| 4663 | .manufacture_id = GIGADEVICE_ID, |
| 4664 | .model_id = GIGADEVICE_GD25Q512, |
| 4665 | .total_size = 64, |
| 4666 | .page_size = 256, |
| 4667 | .feature_bits = FEATURE_WRSR_WREN, |
| 4668 | .tested = TEST_UNTESTED, |
| 4669 | .probe = probe_spi_rdid, |
| 4670 | .probe_timing = TIMING_ZERO, |
| 4671 | .block_erasers = { |
| 4672 | { |
| 4673 | .eraseblocks = { {4 * 1024, 16} }, |
| 4674 | .block_erase = spi_block_erase_20, |
| 4675 | }, { |
| 4676 | .eraseblocks = { {32 * 1024, 2} }, |
| 4677 | .block_erase = spi_block_erase_52, |
| 4678 | }, { |
| 4679 | .eraseblocks = { {64 * 1024, 1} }, |
| 4680 | .block_erase = spi_block_erase_60, |
| 4681 | }, { |
| 4682 | .eraseblocks = { {64 * 1024, 1} }, |
| 4683 | .block_erase = spi_block_erase_c7, |
| 4684 | } |
| 4685 | }, |
| 4686 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 4687 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 4688 | .write = spi_chip_write_256, |
| 4689 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 4690 | .voltage = {2700, 3600}, |
| 4691 | }, |
| 4692 | |
| 4693 | { |
| 4694 | .vendor = "GigaDevice", |
| 4695 | .name = "GD25Q10", |
| 4696 | .bustype = BUS_SPI, |
| 4697 | .manufacture_id = GIGADEVICE_ID, |
| 4698 | .model_id = GIGADEVICE_GD25Q10, |
| 4699 | .total_size = 128, |
| 4700 | .page_size = 256, |
| 4701 | .feature_bits = FEATURE_WRSR_WREN, |
| 4702 | .tested = TEST_UNTESTED, |
| 4703 | .probe = probe_spi_rdid, |
| 4704 | .probe_timing = TIMING_ZERO, |
| 4705 | .block_erasers = { |
| 4706 | { |
| 4707 | .eraseblocks = { {4 * 1024, 32} }, |
| 4708 | .block_erase = spi_block_erase_20, |
| 4709 | }, { |
| 4710 | .eraseblocks = { {32 * 1024, 4} }, |
| 4711 | .block_erase = spi_block_erase_52, |
| 4712 | }, { |
| 4713 | .eraseblocks = { {64 * 1024, 2} }, |
| 4714 | .block_erase = spi_block_erase_d8, |
| 4715 | }, { |
| 4716 | .eraseblocks = { {128 * 1024, 1} }, |
| 4717 | .block_erase = spi_block_erase_60, |
| 4718 | }, { |
| 4719 | .eraseblocks = { {128 * 1024, 1} }, |
| 4720 | .block_erase = spi_block_erase_c7, |
| 4721 | } |
| 4722 | }, |
| 4723 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 4724 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 4725 | .write = spi_chip_write_256, |
| 4726 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 4727 | .voltage = {2700, 3600}, |
| 4728 | }, |
| 4729 | |
| 4730 | { |
| 4731 | .vendor = "GigaDevice", |
| 4732 | .name = "GD25Q20(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4733 | .bustype = BUS_SPI, |
| 4734 | .manufacture_id = GIGADEVICE_ID, |
| 4735 | .model_id = GIGADEVICE_GD25Q20, |
| 4736 | .total_size = 256, |
| 4737 | .page_size = 256, |
| 4738 | .feature_bits = FEATURE_WRSR_WREN, |
| 4739 | .tested = TEST_UNTESTED, |
| 4740 | .probe = probe_spi_rdid, |
| 4741 | .probe_timing = TIMING_ZERO, |
| 4742 | .block_erasers = |
| 4743 | { |
| 4744 | { |
| 4745 | .eraseblocks = { {4 * 1024, 64} }, |
| 4746 | .block_erase = spi_block_erase_20, |
| 4747 | }, { |
| 4748 | .eraseblocks = { {32 * 1024, 8} }, |
| 4749 | .block_erase = spi_block_erase_52, |
| 4750 | }, { |
| 4751 | .eraseblocks = { {64 * 1024, 4} }, |
| 4752 | .block_erase = spi_block_erase_d8, |
| 4753 | }, { |
| 4754 | .eraseblocks = { {256 * 1024, 1} }, |
| 4755 | .block_erase = spi_block_erase_60, |
| 4756 | }, { |
| 4757 | .eraseblocks = { {256 * 1024, 1} }, |
| 4758 | .block_erase = spi_block_erase_c7, |
| 4759 | } |
| 4760 | }, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4761 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 4762 | .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] | 4763 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4764 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4765 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4766 | }, |
| 4767 | |
| 4768 | { |
| 4769 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4770 | .name = "GD25Q40(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4771 | .bustype = BUS_SPI, |
| 4772 | .manufacture_id = GIGADEVICE_ID, |
| 4773 | .model_id = GIGADEVICE_GD25Q40, |
| 4774 | .total_size = 512, |
| 4775 | .page_size = 256, |
| 4776 | .feature_bits = FEATURE_WRSR_WREN, |
| 4777 | .tested = TEST_UNTESTED, |
| 4778 | .probe = probe_spi_rdid, |
| 4779 | .probe_timing = TIMING_ZERO, |
| 4780 | .block_erasers = |
| 4781 | { |
| 4782 | { |
| 4783 | .eraseblocks = { {4 * 1024, 128} }, |
| 4784 | .block_erase = spi_block_erase_20, |
| 4785 | }, { |
| 4786 | .eraseblocks = { {32 * 1024, 16} }, |
| 4787 | .block_erase = spi_block_erase_52, |
| 4788 | }, { |
| 4789 | .eraseblocks = { {64 * 1024, 8} }, |
| 4790 | .block_erase = spi_block_erase_d8, |
| 4791 | }, { |
| 4792 | .eraseblocks = { {512 * 1024, 1} }, |
| 4793 | .block_erase = spi_block_erase_60, |
| 4794 | }, { |
| 4795 | .eraseblocks = { {512 * 1024, 1} }, |
| 4796 | .block_erase = spi_block_erase_c7, |
| 4797 | } |
| 4798 | }, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4799 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 4800 | .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] | 4801 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4802 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4803 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4804 | }, |
| 4805 | |
| 4806 | { |
| 4807 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4808 | .name = "GD25Q80(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4809 | .bustype = BUS_SPI, |
| 4810 | .manufacture_id = GIGADEVICE_ID, |
| 4811 | .model_id = GIGADEVICE_GD25Q80, |
| 4812 | .total_size = 1024, |
| 4813 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4814 | /* 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] | 4815 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4816 | .tested = TEST_OK_PREW, |
| 4817 | .probe = probe_spi_rdid, |
| 4818 | .probe_timing = TIMING_ZERO, |
| 4819 | .block_erasers = |
| 4820 | { |
| 4821 | { |
| 4822 | .eraseblocks = { {4 * 1024, 256} }, |
| 4823 | .block_erase = spi_block_erase_20, |
| 4824 | }, { |
| 4825 | .eraseblocks = { {32 * 1024, 32} }, |
| 4826 | .block_erase = spi_block_erase_52, |
| 4827 | }, { |
| 4828 | .eraseblocks = { {64 * 1024, 16} }, |
| 4829 | .block_erase = spi_block_erase_d8, |
| 4830 | }, { |
| 4831 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4832 | .block_erase = spi_block_erase_60, |
| 4833 | }, { |
| 4834 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4835 | .block_erase = spi_block_erase_c7, |
| 4836 | } |
| 4837 | }, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4838 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 4839 | .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] | 4840 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4841 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4842 | .voltage = {2700, 3600}, |
| 4843 | }, |
| 4844 | |
| 4845 | { |
| 4846 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4847 | .name = "GD25Q16(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4848 | .bustype = BUS_SPI, |
| 4849 | .manufacture_id = GIGADEVICE_ID, |
| 4850 | .model_id = GIGADEVICE_GD25Q16, |
| 4851 | .total_size = 2048, |
| 4852 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4853 | /* 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] | 4854 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4855 | .tested = TEST_UNTESTED, |
| 4856 | .probe = probe_spi_rdid, |
| 4857 | .probe_timing = TIMING_ZERO, |
| 4858 | .block_erasers = |
| 4859 | { |
| 4860 | { |
| 4861 | .eraseblocks = { {4 * 1024, 512} }, |
| 4862 | .block_erase = spi_block_erase_20, |
| 4863 | }, { |
| 4864 | .eraseblocks = { {32 * 1024, 64} }, |
| 4865 | .block_erase = spi_block_erase_52, |
| 4866 | }, { |
| 4867 | .eraseblocks = { {64 * 1024, 32} }, |
| 4868 | .block_erase = spi_block_erase_d8, |
| 4869 | }, { |
| 4870 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4871 | .block_erase = spi_block_erase_60, |
| 4872 | }, { |
| 4873 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4874 | .block_erase = spi_block_erase_c7, |
| 4875 | } |
| 4876 | }, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4877 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 4878 | .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] | 4879 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4880 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4881 | .voltage = {2700, 3600}, |
| 4882 | }, |
| 4883 | |
| 4884 | { |
| 4885 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4886 | .name = "GD25Q32(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4887 | .bustype = BUS_SPI, |
| 4888 | .manufacture_id = GIGADEVICE_ID, |
| 4889 | .model_id = GIGADEVICE_GD25Q32, |
| 4890 | .total_size = 4096, |
| 4891 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4892 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4893 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4894 | .tested = TEST_UNTESTED, |
| 4895 | .probe = probe_spi_rdid, |
| 4896 | .probe_timing = TIMING_ZERO, |
| 4897 | .block_erasers = |
| 4898 | { |
| 4899 | { |
| 4900 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4901 | .block_erase = spi_block_erase_20, |
| 4902 | }, { |
| 4903 | .eraseblocks = { {32 * 1024, 128} }, |
| 4904 | .block_erase = spi_block_erase_52, |
| 4905 | }, { |
| 4906 | .eraseblocks = { {64 * 1024, 64} }, |
| 4907 | .block_erase = spi_block_erase_d8, |
| 4908 | }, { |
| 4909 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4910 | .block_erase = spi_block_erase_60, |
| 4911 | }, { |
| 4912 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4913 | .block_erase = spi_block_erase_c7, |
| 4914 | } |
| 4915 | }, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4916 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 4917 | .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] | 4918 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4919 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4920 | .voltage = {2700, 3600}, |
| 4921 | }, |
| 4922 | |
| 4923 | { |
| 4924 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4925 | .name = "GD25Q64(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4926 | .bustype = BUS_SPI, |
| 4927 | .manufacture_id = GIGADEVICE_ID, |
| 4928 | .model_id = GIGADEVICE_GD25Q64, |
| 4929 | .total_size = 8192, |
| 4930 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4931 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4932 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4933 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4934 | .probe = probe_spi_rdid, |
| 4935 | .probe_timing = TIMING_ZERO, |
| 4936 | .block_erasers = |
| 4937 | { |
| 4938 | { |
| 4939 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4940 | .block_erase = spi_block_erase_20, |
| 4941 | }, { |
| 4942 | .eraseblocks = { {32 * 1024, 256} }, |
| 4943 | .block_erase = spi_block_erase_52, |
| 4944 | }, { |
| 4945 | .eraseblocks = { {64 * 1024, 128} }, |
| 4946 | .block_erase = spi_block_erase_d8, |
| 4947 | }, { |
| 4948 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4949 | .block_erase = spi_block_erase_60, |
| 4950 | }, { |
| 4951 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4952 | .block_erase = spi_block_erase_c7, |
| 4953 | } |
| 4954 | }, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4955 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 4956 | .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] | 4957 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4958 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4959 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4960 | }, |
| 4961 | |
| 4962 | { |
| 4963 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4964 | .name = "GD25Q128B", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4965 | .bustype = BUS_SPI, |
| 4966 | .manufacture_id = GIGADEVICE_ID, |
| 4967 | .model_id = GIGADEVICE_GD25Q128, |
| 4968 | .total_size = 16384, |
| 4969 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4970 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4971 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4972 | .tested = TEST_UNTESTED, |
| 4973 | .probe = probe_spi_rdid, |
| 4974 | .probe_timing = TIMING_ZERO, |
| 4975 | .block_erasers = |
| 4976 | { |
| 4977 | { |
| 4978 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4979 | .block_erase = spi_block_erase_20, |
| 4980 | }, { |
| 4981 | .eraseblocks = { {32 * 1024, 512} }, |
| 4982 | .block_erase = spi_block_erase_52, |
| 4983 | }, { |
| 4984 | .eraseblocks = { {64 * 1024, 256} }, |
| 4985 | .block_erase = spi_block_erase_d8, |
| 4986 | }, { |
| 4987 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4988 | .block_erase = spi_block_erase_60, |
| 4989 | }, { |
| 4990 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4991 | .block_erase = spi_block_erase_c7, |
| 4992 | } |
| 4993 | }, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4994 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 4995 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 4996 | .write = spi_chip_write_256, |
| 4997 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 4998 | .voltage = {2700, 3600}, |
| 4999 | }, |
| 5000 | |
| 5001 | { |
| 5002 | .vendor = "GigaDevice", |
| 5003 | .name = "GD25T80", |
| 5004 | .bustype = BUS_SPI, |
| 5005 | .manufacture_id = GIGADEVICE_ID, |
| 5006 | .model_id = GIGADEVICE_GD25T80, |
| 5007 | .total_size = 1024, |
| 5008 | .page_size = 256, |
| 5009 | /* OTP: 256B total; enter 0x3A */ |
| 5010 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5011 | .tested = TEST_UNTESTED, |
| 5012 | .probe = probe_spi_rdid, |
| 5013 | .probe_timing = TIMING_ZERO, |
| 5014 | .block_erasers = { |
| 5015 | { |
| 5016 | .eraseblocks = { {4 * 1024, 256} }, |
| 5017 | .block_erase = spi_block_erase_20, |
| 5018 | }, { |
| 5019 | .eraseblocks = { {64 * 1024, 16} }, |
| 5020 | .block_erase = spi_block_erase_52, |
| 5021 | }, { |
| 5022 | .eraseblocks = { {64 * 1024, 16} }, |
| 5023 | .block_erase = spi_block_erase_d8, |
| 5024 | }, { |
| 5025 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5026 | .block_erase = spi_block_erase_60, |
| 5027 | }, { |
| 5028 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5029 | .block_erase = spi_block_erase_c7, |
| 5030 | } |
| 5031 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5032 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5033 | .unlock = spi_disable_blockprotect, |
| 5034 | .write = spi_chip_write_256, |
| 5035 | .read = spi_chip_read, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5036 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5037 | }, |
| 5038 | |
| 5039 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5040 | .vendor = "Hyundai", |
| 5041 | .name = "HY29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5042 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5043 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5044 | .model_id = HYUNDAI_HY29F002T, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5045 | .total_size = 256, |
| 5046 | .page_size = 256 * 1024, |
| 5047 | .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] | 5048 | .tested = TEST_OK_PRE, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5049 | .probe = probe_jedec, |
| 5050 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5051 | .block_erasers = |
| 5052 | { |
| 5053 | { |
| 5054 | .eraseblocks = { |
| 5055 | {64 * 1024, 3}, |
| 5056 | {32 * 1024, 1}, |
| 5057 | {8 * 1024, 2}, |
| 5058 | {16 * 1024, 1}, |
| 5059 | }, |
| 5060 | .block_erase = erase_sector_jedec, |
| 5061 | }, { |
| 5062 | .eraseblocks = { {256 * 1024, 1} }, |
| 5063 | .block_erase = erase_chip_block_jedec, |
| 5064 | }, |
| 5065 | }, |
| 5066 | .write = write_jedec_1, |
| 5067 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5068 | .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] | 5069 | }, |
| 5070 | |
| 5071 | { |
| 5072 | .vendor = "Hyundai", |
| 5073 | .name = "HY29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5074 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5075 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5076 | .model_id = HYUNDAI_HY29F002B, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5077 | .total_size = 256, |
| 5078 | .page_size = 256 * 1024, |
| 5079 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
| 5080 | .tested = TEST_UNTESTED, |
| 5081 | .probe = probe_jedec, |
| 5082 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5083 | .block_erasers = |
| 5084 | { |
| 5085 | { |
| 5086 | .eraseblocks = { |
| 5087 | {16 * 1024, 1}, |
| 5088 | {8 * 1024, 2}, |
| 5089 | {32 * 1024, 1}, |
| 5090 | {64 * 1024, 3}, |
| 5091 | }, |
| 5092 | .block_erase = erase_sector_jedec, |
| 5093 | }, { |
| 5094 | .eraseblocks = { {256 * 1024, 1} }, |
| 5095 | .block_erase = erase_chip_block_jedec, |
| 5096 | }, |
| 5097 | }, |
| 5098 | .write = write_jedec_1, |
| 5099 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5100 | .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] | 5101 | }, |
| 5102 | |
| 5103 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 5104 | .vendor = "Hyundai", |
| 5105 | .name = "HY29F040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5106 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 5107 | .manufacture_id = HYUNDAI_ID, |
| 5108 | .model_id = HYUNDAI_HY29F040A, |
| 5109 | .total_size = 512, |
| 5110 | .page_size = 64 * 1024, |
| 5111 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 5112 | .tested = TEST_UNTESTED, |
| 5113 | .probe = probe_jedec, |
| 5114 | .probe_timing = TIMING_ZERO, |
| 5115 | .block_erasers = |
| 5116 | { |
| 5117 | { |
| 5118 | .eraseblocks = { {64 * 1024, 8} }, |
| 5119 | .block_erase = erase_sector_jedec, |
| 5120 | }, { |
| 5121 | .eraseblocks = { {512 * 1024, 1} }, |
| 5122 | .block_erase = erase_chip_block_jedec, |
| 5123 | }, |
| 5124 | }, |
| 5125 | .write = write_jedec_1, |
| 5126 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5127 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 5128 | }, |
| 5129 | |
| 5130 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5131 | .vendor = "Intel", |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5132 | .name = "25F160S33B8", |
| 5133 | .bustype = BUS_SPI, |
| 5134 | .manufacture_id = INTEL_ID, |
| 5135 | .model_id = INTEL_25F160S33B8, |
| 5136 | .total_size = 2048, |
| 5137 | .page_size = 256, |
| 5138 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5139 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5140 | .tested = TEST_UNTESTED, |
| 5141 | .probe = probe_spi_rdid, |
| 5142 | .probe_timing = TIMING_ZERO, |
| 5143 | .block_erasers = |
| 5144 | { |
| 5145 | { |
| 5146 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5147 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5148 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5149 | .eraseblocks = { |
| 5150 | {8 * 1024, 8}, |
| 5151 | {64 * 1024, 31} // inaccessible |
| 5152 | }, |
| 5153 | .block_erase = spi_block_erase_40, |
| 5154 | }, { */ |
| 5155 | .eraseblocks = { {64 * 1024, 32} }, |
| 5156 | .block_erase = spi_block_erase_d8, |
| 5157 | }, { |
| 5158 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5159 | .block_erase = spi_block_erase_c7, |
| 5160 | } |
| 5161 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5162 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5163 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5164 | .write = spi_chip_write_256, |
| 5165 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5166 | .voltage = {2700, 3600}, |
| 5167 | }, |
| 5168 | |
| 5169 | { |
| 5170 | .vendor = "Intel", |
| 5171 | .name = "25F160S33T8", |
| 5172 | .bustype = BUS_SPI, |
| 5173 | .manufacture_id = INTEL_ID, |
| 5174 | .model_id = INTEL_25F160S33T8, |
| 5175 | .total_size = 2048, |
| 5176 | .page_size = 256, |
| 5177 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5178 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5179 | .tested = TEST_UNTESTED, |
| 5180 | .probe = probe_spi_rdid, |
| 5181 | .probe_timing = TIMING_ZERO, |
| 5182 | .block_erasers = |
| 5183 | { |
| 5184 | { |
| 5185 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5186 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5187 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5188 | .eraseblocks = { |
| 5189 | {64 * 1024, 31}, // inaccessible |
| 5190 | {8 * 1024, 8} |
| 5191 | }, |
| 5192 | .block_erase = spi_block_erase_40, |
| 5193 | }, { */ |
| 5194 | .eraseblocks = { {64 * 1024, 32} }, |
| 5195 | .block_erase = spi_block_erase_d8, |
| 5196 | }, { |
| 5197 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5198 | .block_erase = spi_block_erase_c7, |
| 5199 | } |
| 5200 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5201 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5202 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5203 | .write = spi_chip_write_256, |
| 5204 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5205 | .voltage = {2700, 3600}, |
| 5206 | }, |
| 5207 | |
| 5208 | { |
| 5209 | .vendor = "Intel", |
| 5210 | .name = "25F320S33B8", |
| 5211 | .bustype = BUS_SPI, |
| 5212 | .manufacture_id = INTEL_ID, |
| 5213 | .model_id = INTEL_25F320S33B8, |
| 5214 | .total_size = 4096, |
| 5215 | .page_size = 256, |
| 5216 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5217 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5218 | .tested = TEST_UNTESTED, |
| 5219 | .probe = probe_spi_rdid, |
| 5220 | .probe_timing = TIMING_ZERO, |
| 5221 | .block_erasers = |
| 5222 | { |
| 5223 | { |
| 5224 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5225 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5226 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5227 | .eraseblocks = { |
| 5228 | {8 * 1024, 8}, |
| 5229 | {64 * 1024, 63} // inaccessible |
| 5230 | }, |
| 5231 | .block_erase = spi_block_erase_40, |
| 5232 | }, { */ |
| 5233 | .eraseblocks = { {64 * 1024, 64} }, |
| 5234 | .block_erase = spi_block_erase_d8, |
| 5235 | }, { |
| 5236 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5237 | .block_erase = spi_block_erase_c7, |
| 5238 | } |
| 5239 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5240 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5241 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5242 | .write = spi_chip_write_256, |
| 5243 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5244 | .voltage = {2700, 3600}, |
| 5245 | }, |
| 5246 | |
| 5247 | { |
| 5248 | .vendor = "Intel", |
| 5249 | .name = "25F320S33T8", |
| 5250 | .bustype = BUS_SPI, |
| 5251 | .manufacture_id = INTEL_ID, |
| 5252 | .model_id = INTEL_25F320S33T8, |
| 5253 | .total_size = 4096, |
| 5254 | .page_size = 256, |
| 5255 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5256 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5257 | .tested = TEST_UNTESTED, |
| 5258 | .probe = probe_spi_rdid, |
| 5259 | .probe_timing = TIMING_ZERO, |
| 5260 | .block_erasers = |
| 5261 | { |
| 5262 | { |
| 5263 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5264 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5265 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5266 | .eraseblocks = { |
| 5267 | {64 * 1024, 63}, // inaccessible |
| 5268 | {8 * 1024, 8} |
| 5269 | }, |
| 5270 | .block_erase = spi_block_erase_40, |
| 5271 | }, { */ |
| 5272 | .eraseblocks = { {64 * 1024, 64} }, |
| 5273 | .block_erase = spi_block_erase_d8, |
| 5274 | }, { |
| 5275 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5276 | .block_erase = spi_block_erase_c7, |
| 5277 | } |
| 5278 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5279 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5280 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5281 | .write = spi_chip_write_256, |
| 5282 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5283 | .voltage = {2700, 3600}, |
| 5284 | }, |
| 5285 | |
| 5286 | { |
| 5287 | .vendor = "Intel", |
| 5288 | .name = "25F640S33B8", |
| 5289 | .bustype = BUS_SPI, |
| 5290 | .manufacture_id = INTEL_ID, |
| 5291 | .model_id = INTEL_25F640S33B8, |
| 5292 | .total_size = 8192, |
| 5293 | .page_size = 256, |
| 5294 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5295 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5296 | .tested = TEST_UNTESTED, |
| 5297 | .probe = probe_spi_rdid, |
| 5298 | .probe_timing = TIMING_ZERO, |
| 5299 | .block_erasers = |
| 5300 | { |
| 5301 | { |
| 5302 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5303 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5304 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5305 | .eraseblocks = { |
| 5306 | {8 * 1024, 8}, |
| 5307 | {64 * 1024, 127} // inaccessible |
| 5308 | }, |
| 5309 | .block_erase = spi_block_erase_40, |
| 5310 | }, { */ |
| 5311 | .eraseblocks = { {64 * 1024, 128} }, |
| 5312 | .block_erase = spi_block_erase_d8, |
| 5313 | }, { |
| 5314 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5315 | .block_erase = spi_block_erase_c7, |
| 5316 | } |
| 5317 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5318 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5319 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5320 | .write = spi_chip_write_256, |
| 5321 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5322 | .voltage = {2700, 3600}, |
| 5323 | }, |
| 5324 | |
| 5325 | { |
| 5326 | .vendor = "Intel", |
| 5327 | .name = "25F640S33T8", |
| 5328 | .bustype = BUS_SPI, |
| 5329 | .manufacture_id = INTEL_ID, |
| 5330 | .model_id = INTEL_25F640S33T8, |
| 5331 | .total_size = 8192, |
| 5332 | .page_size = 256, |
| 5333 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5334 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5335 | .tested = TEST_UNTESTED, |
| 5336 | .probe = probe_spi_rdid, |
| 5337 | .probe_timing = TIMING_ZERO, |
| 5338 | .block_erasers = |
| 5339 | { |
| 5340 | { |
| 5341 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5342 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5343 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5344 | .eraseblocks = { |
| 5345 | {64 * 1024, 127}, // inaccessible |
| 5346 | {8 * 1024, 8} |
| 5347 | }, |
| 5348 | .block_erase = spi_block_erase_40, |
| 5349 | }, { */ |
| 5350 | .eraseblocks = { {64 * 1024, 128} }, |
| 5351 | .block_erase = spi_block_erase_d8, |
| 5352 | }, { |
| 5353 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5354 | .block_erase = spi_block_erase_c7, |
| 5355 | } |
| 5356 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5357 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5358 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5359 | .write = spi_chip_write_256, |
| 5360 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5361 | .voltage = {2700, 3600}, |
| 5362 | }, |
| 5363 | |
| 5364 | { |
| 5365 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5366 | .name = "28F001BN/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5367 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5368 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5369 | .model_id = INTEL_28F001B, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5370 | .total_size = 128, |
| 5371 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 5372 | .tested = TEST_UNTESTED, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5373 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5374 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5375 | .block_erasers = |
| 5376 | { |
| 5377 | { |
| 5378 | .eraseblocks = { |
| 5379 | {8 * 1024, 1}, |
| 5380 | {4 * 1024, 2}, |
| 5381 | {112 * 1024, 1}, |
| 5382 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5383 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5384 | }, |
| 5385 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 5386 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5387 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5388 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5389 | }, |
| 5390 | |
| 5391 | { |
| 5392 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5393 | .name = "28F001BN/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5394 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5395 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5396 | .model_id = INTEL_28F001T, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5397 | .total_size = 128, |
| 5398 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 5399 | .tested = TEST_OK_PR, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5400 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5401 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5402 | .block_erasers = |
| 5403 | { |
| 5404 | { |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 5405 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5406 | {112 * 1024, 1}, |
| 5407 | {4 * 1024, 2}, |
| 5408 | {8 * 1024, 1}, |
| 5409 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5410 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5411 | }, |
| 5412 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 5413 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5414 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5415 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5416 | }, |
| 5417 | |
| 5418 | { |
| 5419 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5420 | .name = "28F002BC/BL/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5421 | .bustype = BUS_PARALLEL, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 5422 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5423 | .model_id = INTEL_28F002T, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 5424 | .total_size = 256, |
| 5425 | .page_size = 256 * 1024, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5426 | .tested = TEST_OK_PRE, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 5427 | .probe = probe_82802ab, |
| 5428 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5429 | .block_erasers = |
| 5430 | { |
| 5431 | { |
| 5432 | .eraseblocks = { |
| 5433 | {128 * 1024, 1}, |
| 5434 | {96 * 1024, 1}, |
| 5435 | {8 * 1024, 2}, |
| 5436 | {16 * 1024, 1}, |
| 5437 | }, |
| 5438 | .block_erase = erase_block_82802ab, |
| 5439 | }, |
| 5440 | }, |
| 5441 | .write = write_82802ab, |
| 5442 | .read = read_memmapped, |
| 5443 | }, |
| 5444 | |
| 5445 | { |
| 5446 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5447 | .name = "28F008S3/S5/SC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5448 | .bustype = BUS_PARALLEL, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5449 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5450 | .model_id = INTEL_28F004S3, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5451 | .total_size = 512, |
| 5452 | .page_size = 256, |
| 5453 | .tested = TEST_UNTESTED, |
| 5454 | .probe = probe_82802ab, |
| 5455 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5456 | .block_erasers = |
| 5457 | { |
| 5458 | { |
| 5459 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5460 | .block_erase = erase_block_82802ab, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5461 | }, |
| 5462 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 5463 | .unlock = unlock_28f004s5, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5464 | .write = write_82802ab, |
| 5465 | .read = read_memmapped, |
| 5466 | }, |
| 5467 | |
| 5468 | { |
| 5469 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5470 | .name = "28F004B5/BE/BV/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5471 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5472 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5473 | .model_id = INTEL_28F004B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5474 | .total_size = 512, |
| 5475 | .page_size = 128 * 1024, /* maximal block size */ |
| 5476 | .tested = TEST_UNTESTED, |
| 5477 | .probe = probe_82802ab, |
| 5478 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5479 | .block_erasers = |
| 5480 | { |
| 5481 | { |
| 5482 | .eraseblocks = { |
| 5483 | {16 * 1024, 1}, |
| 5484 | {8 * 1024, 2}, |
| 5485 | {96 * 1024, 1}, |
| 5486 | {128 * 1024, 3}, |
| 5487 | }, |
| 5488 | .block_erase = erase_block_82802ab, |
| 5489 | }, |
| 5490 | }, |
| 5491 | .write = write_82802ab, |
| 5492 | .read = read_memmapped, |
| 5493 | }, |
| 5494 | |
| 5495 | { |
| 5496 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5497 | .name = "28F004B5/BE/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5498 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5499 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5500 | .model_id = INTEL_28F004T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5501 | .total_size = 512, |
| 5502 | .page_size = 128 * 1024, /* maximal block size */ |
| 5503 | .tested = TEST_UNTESTED, |
| 5504 | .probe = probe_82802ab, |
| 5505 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5506 | .block_erasers = |
| 5507 | { |
| 5508 | { |
| 5509 | .eraseblocks = { |
| 5510 | {128 * 1024, 3}, |
| 5511 | {96 * 1024, 1}, |
| 5512 | {8 * 1024, 2}, |
| 5513 | {16 * 1024, 1}, |
| 5514 | }, |
| 5515 | .block_erase = erase_block_82802ab, |
| 5516 | }, |
| 5517 | }, |
| 5518 | .write = write_82802ab, |
| 5519 | .read = read_memmapped, |
| 5520 | }, |
| 5521 | |
| 5522 | { |
| 5523 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5524 | .name = "28F400BV/BX/CE/CV-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5525 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5526 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5527 | .model_id = INTEL_28F400B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5528 | .total_size = 512, |
| 5529 | .page_size = 128 * 1024, /* maximal block size */ |
| 5530 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 5531 | .tested = TEST_UNTESTED, |
| 5532 | .probe = probe_82802ab, |
| 5533 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5534 | .block_erasers = |
| 5535 | { |
| 5536 | { |
| 5537 | .eraseblocks = { |
| 5538 | {16 * 1024, 1}, |
| 5539 | {8 * 1024, 2}, |
| 5540 | {96 * 1024, 1}, |
| 5541 | {128 * 1024, 3}, |
| 5542 | }, |
| 5543 | .block_erase = erase_block_82802ab, |
| 5544 | }, |
| 5545 | }, |
| 5546 | .write = write_82802ab, |
| 5547 | .read = read_memmapped, |
| 5548 | }, |
| 5549 | |
| 5550 | { |
| 5551 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5552 | .name = "28F400BV/BX/CE/CV-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5553 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5554 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5555 | .model_id = INTEL_28F400T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5556 | .total_size = 512, |
| 5557 | .page_size = 128 * 1024, /* maximal block size */ |
| 5558 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 5559 | .tested = TEST_UNTESTED, |
| 5560 | .probe = probe_82802ab, |
| 5561 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5562 | .block_erasers = |
| 5563 | { |
| 5564 | { |
| 5565 | .eraseblocks = { |
| 5566 | {128 * 1024, 3}, |
| 5567 | {96 * 1024, 1}, |
| 5568 | {8 * 1024, 2}, |
| 5569 | {16 * 1024, 1}, |
| 5570 | }, |
| 5571 | .block_erase = erase_block_82802ab, |
| 5572 | }, |
| 5573 | }, |
| 5574 | .write = write_82802ab, |
| 5575 | .read = read_memmapped, |
| 5576 | }, |
| 5577 | |
| 5578 | { |
| 5579 | .vendor = "Intel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5580 | .name = "82802AB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5581 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5582 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5583 | .model_id = INTEL_82802AB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5584 | .total_size = 512, |
| 5585 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5586 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 5587 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5588 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5589 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5590 | .block_erasers = |
| 5591 | { |
| 5592 | { |
| 5593 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5594 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5595 | }, |
| 5596 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5597 | .unlock = unlock_82802ab, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5598 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5599 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5600 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5601 | }, |
| 5602 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5603 | { |
| 5604 | .vendor = "Intel", |
| 5605 | .name = "82802AC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5606 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5607 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5608 | .model_id = INTEL_82802AC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5609 | .total_size = 1024, |
| 5610 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5611 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5612 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5613 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5614 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5615 | .block_erasers = |
| 5616 | { |
| 5617 | { |
| 5618 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5619 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5620 | }, |
| 5621 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5622 | .unlock = unlock_82802ab, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5623 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5624 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5625 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5626 | }, |
| 5627 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5628 | { |
| 5629 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5630 | .name = "MX25L512(E)/MX25V512(C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5631 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5632 | .manufacture_id = MACRONIX_ID, |
| 5633 | .model_id = MACRONIX_MX25L512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5634 | .total_size = 64, |
| 5635 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5636 | /* MX25L512E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5637 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5638 | .tested = TEST_UNTESTED, |
| 5639 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5640 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5641 | .block_erasers = |
| 5642 | { |
| 5643 | { |
| 5644 | .eraseblocks = { {4 * 1024, 16} }, |
| 5645 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5646 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5647 | .eraseblocks = { {64 * 1024, 1} }, |
| 5648 | .block_erase = spi_block_erase_52, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5649 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5650 | .eraseblocks = { {64 * 1024, 1} }, |
| 5651 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5652 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5653 | .eraseblocks = { {64 * 1024, 1} }, |
| 5654 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5655 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5656 | .eraseblocks = { {64 * 1024, 1} }, |
| 5657 | .block_erase = spi_block_erase_c7, |
| 5658 | }, |
| 5659 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5660 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5661 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5662 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5663 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */ |
| 5664 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5665 | }, |
| 5666 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5667 | { |
| 5668 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5669 | .name = "MX25L1005(C)/MX25L1006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5670 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5671 | .manufacture_id = MACRONIX_ID, |
| 5672 | .model_id = MACRONIX_MX25L1005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5673 | .total_size = 128, |
| 5674 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5675 | /* MX25L1006E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5676 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 5677 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5678 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5679 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5680 | .block_erasers = |
| 5681 | { |
| 5682 | { |
| 5683 | .eraseblocks = { {4 * 1024, 32} }, |
| 5684 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5685 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5686 | .eraseblocks = { {64 * 1024, 2} }, |
| 5687 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5688 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5689 | .eraseblocks = { {128 * 1024, 1} }, |
| 5690 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5691 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5692 | .eraseblocks = { {128 * 1024, 1} }, |
| 5693 | .block_erase = spi_block_erase_c7, |
| 5694 | }, |
| 5695 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5696 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5697 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5698 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5699 | .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] | 5700 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5701 | }, |
| 5702 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5703 | { |
| 5704 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5705 | .name = "MX25L2005(C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5706 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5707 | .manufacture_id = MACRONIX_ID, |
| 5708 | .model_id = MACRONIX_MX25L2005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5709 | .total_size = 256, |
| 5710 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5711 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5712 | .tested = TEST_UNTESTED, |
| 5713 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5714 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5715 | .block_erasers = |
| 5716 | { |
| 5717 | { |
| 5718 | .eraseblocks = { {4 * 1024, 64} }, |
| 5719 | .block_erase = spi_block_erase_20, |
| 5720 | }, { |
| 5721 | .eraseblocks = { {64 * 1024, 4} }, |
| 5722 | .block_erase = spi_block_erase_52, |
| 5723 | }, { |
| 5724 | .eraseblocks = { {64 * 1024, 4} }, |
| 5725 | .block_erase = spi_block_erase_d8, |
| 5726 | }, { |
| 5727 | .eraseblocks = { {256 * 1024, 1} }, |
| 5728 | .block_erase = spi_block_erase_60, |
| 5729 | }, { |
| 5730 | .eraseblocks = { {256 * 1024, 1} }, |
| 5731 | .block_erase = spi_block_erase_c7, |
| 5732 | }, |
| 5733 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5734 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5735 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5736 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5737 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5738 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5739 | }, |
| 5740 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5741 | { |
| 5742 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5743 | .name = "MX25L4005(A/C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5744 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5745 | .manufacture_id = MACRONIX_ID, |
| 5746 | .model_id = MACRONIX_MX25L4005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5747 | .total_size = 512, |
| 5748 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5749 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 5750 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5751 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5752 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5753 | .block_erasers = |
| 5754 | { |
| 5755 | { |
| 5756 | .eraseblocks = { {4 * 1024, 128} }, |
| 5757 | .block_erase = spi_block_erase_20, |
| 5758 | }, { |
| 5759 | .eraseblocks = { {64 * 1024, 8} }, |
| 5760 | .block_erase = spi_block_erase_52, |
| 5761 | }, { |
| 5762 | .eraseblocks = { {64 * 1024, 8} }, |
| 5763 | .block_erase = spi_block_erase_d8, |
| 5764 | }, { |
| 5765 | .eraseblocks = { {512 * 1024, 1} }, |
| 5766 | .block_erase = spi_block_erase_60, |
| 5767 | }, { |
| 5768 | .eraseblocks = { {512 * 1024, 1} }, |
| 5769 | .block_erase = spi_block_erase_c7, |
| 5770 | }, |
| 5771 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5772 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5773 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5774 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5775 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5776 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5777 | }, |
| 5778 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5779 | { |
| 5780 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5781 | .name = "MX25L8005/MX25V8005", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5782 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5783 | .manufacture_id = MACRONIX_ID, |
| 5784 | .model_id = MACRONIX_MX25L8005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5785 | .total_size = 1024, |
| 5786 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5787 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 5788 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5789 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5790 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5791 | .block_erasers = |
| 5792 | { |
| 5793 | { |
| 5794 | .eraseblocks = { {4 * 1024, 256} }, |
| 5795 | .block_erase = spi_block_erase_20, |
| 5796 | }, { |
| 5797 | .eraseblocks = { {64 * 1024, 16} }, |
| 5798 | .block_erase = spi_block_erase_52, |
| 5799 | }, { |
| 5800 | .eraseblocks = { {64 * 1024, 16} }, |
| 5801 | .block_erase = spi_block_erase_d8, |
| 5802 | }, { |
| 5803 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5804 | .block_erase = spi_block_erase_60, |
| 5805 | }, { |
| 5806 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5807 | .block_erase = spi_block_erase_c7, |
| 5808 | }, |
| 5809 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5810 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5811 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5812 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5813 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 5814 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5815 | }, |
| 5816 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5817 | { |
| 5818 | .vendor = "Macronix", |
| 5819 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5820 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5821 | .manufacture_id = MACRONIX_ID, |
| 5822 | .model_id = MACRONIX_MX25L1605, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5823 | .total_size = 2048, |
| 5824 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5825 | .feature_bits = FEATURE_WRSR_WREN, |
Sven Schnelle | 4bd8a40 | 2011-03-07 10:59:06 +0000 | [diff] [blame] | 5826 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5827 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5828 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5829 | .block_erasers = |
| 5830 | { |
| 5831 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5832 | .eraseblocks = { {64 * 1024, 32} }, |
| 5833 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5834 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5835 | .eraseblocks = { {64 * 1024, 32} }, |
| 5836 | .block_erase = spi_block_erase_d8, |
| 5837 | }, { |
| 5838 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5839 | .block_erase = spi_block_erase_60, |
| 5840 | }, { |
| 5841 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5842 | .block_erase = spi_block_erase_c7, |
| 5843 | }, |
| 5844 | }, |
| 5845 | .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */ |
| 5846 | .unlock = spi_disable_blockprotect, |
| 5847 | .write = spi_chip_write_256, |
| 5848 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 5849 | .voltage = {2700, 3600}, |
| 5850 | }, |
| 5851 | |
| 5852 | { |
| 5853 | .vendor = "Macronix", |
| 5854 | .name = "MX25L1605A/MX25L1606E", |
| 5855 | .bustype = BUS_SPI, |
| 5856 | .manufacture_id = MACRONIX_ID, |
| 5857 | .model_id = MACRONIX_MX25L1605, |
| 5858 | .total_size = 2048, |
| 5859 | .page_size = 256, |
| 5860 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */ |
| 5861 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5862 | .tested = TEST_OK_PREW, |
| 5863 | .probe = probe_spi_rdid, |
| 5864 | .probe_timing = TIMING_ZERO, |
| 5865 | .block_erasers = |
| 5866 | { |
| 5867 | { |
| 5868 | .eraseblocks = { {4 * 1024, 512} }, |
| 5869 | .block_erase = spi_block_erase_20, |
| 5870 | }, { |
| 5871 | .eraseblocks = { {64 * 1024, 32} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5872 | .block_erase = spi_block_erase_52, |
| 5873 | }, { |
| 5874 | .eraseblocks = { {64 * 1024, 32} }, |
| 5875 | .block_erase = spi_block_erase_d8, |
| 5876 | }, { |
| 5877 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5878 | .block_erase = spi_block_erase_60, |
| 5879 | }, { |
| 5880 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5881 | .block_erase = spi_block_erase_c7, |
| 5882 | }, |
| 5883 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5884 | .printlock = spi_prettyprint_status_register_default_bp3, /* MX25L1605A bp2 only */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5885 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5886 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5887 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 5888 | .voltage = {2700, 3600}, |
| 5889 | }, |
| 5890 | |
| 5891 | { |
| 5892 | .vendor = "Macronix", |
| 5893 | .name = "MX25L1605D/MX25L1608D", |
| 5894 | .bustype = BUS_SPI, |
| 5895 | .manufacture_id = MACRONIX_ID, |
| 5896 | .model_id = MACRONIX_MX25L1605, |
| 5897 | .total_size = 2048, |
| 5898 | .page_size = 256, |
| 5899 | .feature_bits = FEATURE_WRSR_WREN, |
| 5900 | .tested = TEST_OK_PREW, |
| 5901 | .probe = probe_spi_rdid, |
| 5902 | .probe_timing = TIMING_ZERO, |
| 5903 | .block_erasers = |
| 5904 | { |
| 5905 | { |
| 5906 | .eraseblocks = { {4 * 1024, 512} }, |
| 5907 | .block_erase = spi_block_erase_20, |
| 5908 | }, { |
| 5909 | .eraseblocks = { {64 * 1024, 32} }, |
| 5910 | .block_erase = spi_block_erase_d8, |
| 5911 | }, { |
| 5912 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5913 | .block_erase = spi_block_erase_60, |
| 5914 | }, { |
| 5915 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5916 | .block_erase = spi_block_erase_c7, |
| 5917 | }, |
| 5918 | }, |
| 5919 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: Continously Program (CP) mode */ |
| 5920 | .unlock = spi_disable_blockprotect, |
| 5921 | .write = spi_chip_write_256, |
| 5922 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5923 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5924 | }, |
| 5925 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5926 | { |
| 5927 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 5928 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5929 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5930 | .manufacture_id = MACRONIX_ID, |
| 5931 | .model_id = MACRONIX_MX25L1635D, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 5932 | .total_size = 2048, |
| 5933 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5934 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 5935 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 5936 | .tested = TEST_UNTESTED, |
| 5937 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5938 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5939 | .block_erasers = |
| 5940 | { |
| 5941 | { |
| 5942 | .eraseblocks = { {4 * 1024, 512} }, |
| 5943 | .block_erase = spi_block_erase_20, |
| 5944 | }, { |
| 5945 | .eraseblocks = { {64 * 1024, 32} }, |
| 5946 | .block_erase = spi_block_erase_d8, |
| 5947 | }, { |
| 5948 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5949 | .block_erase = spi_block_erase_60, |
| 5950 | }, { |
| 5951 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5952 | .block_erase = spi_block_erase_c7, |
| 5953 | } |
| 5954 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5955 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5956 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5957 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5958 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5959 | .voltage = {2700, 3600}, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 5960 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 5961 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 5962 | { |
| 5963 | .vendor = "Macronix", |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 5964 | .name = "MX25L1635E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5965 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5966 | .manufacture_id = MACRONIX_ID, |
| 5967 | .model_id = MACRONIX_MX25L1635E, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 5968 | .total_size = 2048, |
| 5969 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5970 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 5971 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 5972 | .tested = TEST_UNTESTED, |
| 5973 | .probe = probe_spi_rdid, |
| 5974 | .probe_timing = TIMING_ZERO, |
| 5975 | .block_erasers = |
| 5976 | { |
| 5977 | { |
| 5978 | .eraseblocks = { {4 * 1024, 512} }, |
| 5979 | .block_erase = spi_block_erase_20, |
| 5980 | }, { |
| 5981 | .eraseblocks = { {64 * 1024, 32} }, |
| 5982 | .block_erase = spi_block_erase_d8, |
| 5983 | }, { |
| 5984 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5985 | .block_erase = spi_block_erase_60, |
| 5986 | }, { |
| 5987 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5988 | .block_erase = spi_block_erase_c7, |
| 5989 | } |
| 5990 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5991 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 5992 | .unlock = spi_disable_blockprotect, |
| 5993 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5994 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5995 | .voltage = {2700, 3600}, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 5996 | }, |
| 5997 | |
| 5998 | { |
| 5999 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6000 | .name = "MX25L3205(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6001 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6002 | .manufacture_id = MACRONIX_ID, |
| 6003 | .model_id = MACRONIX_MX25L3205, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6004 | .total_size = 4096, |
| 6005 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6006 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 6007 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6008 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6009 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6010 | .block_erasers = |
| 6011 | { |
| 6012 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6013 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6014 | .block_erase = spi_block_erase_20, |
| 6015 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6016 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6017 | .block_erase = spi_block_erase_d8, |
| 6018 | }, { |
| 6019 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6020 | .block_erase = spi_block_erase_60, |
| 6021 | }, { |
| 6022 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6023 | .block_erase = spi_block_erase_c7, |
| 6024 | }, |
| 6025 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6026 | .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6027 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6028 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6029 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6030 | .voltage = {2700, 3600}, |
| 6031 | }, |
| 6032 | |
| 6033 | { |
| 6034 | .vendor = "Macronix", |
| 6035 | .name = "MX25L3205D/MX25L3208D", |
| 6036 | .bustype = BUS_SPI, |
| 6037 | .manufacture_id = MACRONIX_ID, |
| 6038 | .model_id = MACRONIX_MX25L3205, |
| 6039 | .total_size = 4096, |
| 6040 | .page_size = 256, |
| 6041 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 6042 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6043 | .tested = TEST_OK_PREW, |
| 6044 | .probe = probe_spi_rdid, |
| 6045 | .probe_timing = TIMING_ZERO, |
| 6046 | .block_erasers = |
| 6047 | { |
| 6048 | { |
| 6049 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6050 | .block_erase = spi_block_erase_20, |
| 6051 | }, { |
| 6052 | .eraseblocks = { {64 * 1024, 64} }, |
| 6053 | .block_erase = spi_block_erase_d8, |
| 6054 | }, { |
| 6055 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6056 | .block_erase = spi_block_erase_60, |
| 6057 | }, { |
| 6058 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6059 | .block_erase = spi_block_erase_c7, |
| 6060 | }, |
| 6061 | }, |
| 6062 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: CP mode */ |
| 6063 | .unlock = spi_disable_blockprotect, |
| 6064 | .write = spi_chip_write_256, |
| 6065 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 6066 | .voltage = {2700, 3600}, |
| 6067 | }, |
| 6068 | |
| 6069 | { |
| 6070 | .vendor = "Macronix", |
| 6071 | .name = "MX25L3206E", |
| 6072 | .bustype = BUS_SPI, |
| 6073 | .manufacture_id = MACRONIX_ID, |
| 6074 | .model_id = MACRONIX_MX25L3205, |
| 6075 | .total_size = 4096, |
| 6076 | .page_size = 256, |
| 6077 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 6078 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6079 | .tested = TEST_OK_PREW, |
| 6080 | .probe = probe_spi_rdid, |
| 6081 | .probe_timing = TIMING_ZERO, |
| 6082 | .block_erasers = |
| 6083 | { |
| 6084 | { |
| 6085 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6086 | .block_erase = spi_block_erase_20, |
| 6087 | }, { |
| 6088 | .eraseblocks = { {64 * 1024, 64} }, |
| 6089 | .block_erase = spi_block_erase_d8, |
| 6090 | }, { |
| 6091 | .eraseblocks = { {64 * 1024, 64} }, |
| 6092 | .block_erase = spi_block_erase_52, |
| 6093 | }, { |
| 6094 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6095 | .block_erase = spi_block_erase_60, |
| 6096 | }, { |
| 6097 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6098 | .block_erase = spi_block_erase_c7, |
| 6099 | }, |
| 6100 | }, |
| 6101 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 6102 | .unlock = spi_disable_blockprotect, |
| 6103 | .write = spi_chip_write_256, |
| 6104 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6105 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6106 | }, |
| 6107 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6108 | { |
| 6109 | .vendor = "Macronix", |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6110 | .name = "MX25L3235D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6111 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6112 | .manufacture_id = MACRONIX_ID, |
| 6113 | .model_id = MACRONIX_MX25L3235D, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6114 | .total_size = 4096, |
| 6115 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6116 | /* OTP: 256B total; enter 0xB1, exit 0xC1 */ |
| 6117 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6118 | .tested = TEST_UNTESTED, |
| 6119 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6120 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6121 | .block_erasers = |
| 6122 | { |
| 6123 | { |
| 6124 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6125 | .block_erase = spi_block_erase_20, |
| 6126 | }, { |
| 6127 | .eraseblocks = { {64 * 1024, 64} }, |
| 6128 | .block_erase = spi_block_erase_d8, |
| 6129 | }, { |
| 6130 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6131 | .block_erase = spi_block_erase_60, |
| 6132 | }, { |
| 6133 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6134 | .block_erase = spi_block_erase_c7, |
| 6135 | } |
| 6136 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6137 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6138 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6139 | .write = spi_chip_write_256, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6140 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6141 | .voltage = {2700, 3600}, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6142 | }, |
| 6143 | |
| 6144 | { |
| 6145 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6146 | .name = "MX25L6405(D)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6147 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6148 | .manufacture_id = MACRONIX_ID, |
| 6149 | .model_id = MACRONIX_MX25L6405, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6150 | .total_size = 8192, |
| 6151 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6152 | /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */ |
| 6153 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 6154 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6155 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6156 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6157 | .block_erasers = |
| 6158 | { |
| 6159 | { |
| 6160 | .eraseblocks = { {64 * 1024, 128} }, |
| 6161 | .block_erase = spi_block_erase_20, |
| 6162 | }, { |
| 6163 | .eraseblocks = { {64 * 1024, 128} }, |
| 6164 | .block_erase = spi_block_erase_d8, |
| 6165 | }, { |
| 6166 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6167 | .block_erase = spi_block_erase_60, |
| 6168 | }, { |
| 6169 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6170 | .block_erase = spi_block_erase_c7, |
| 6171 | } |
| 6172 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6173 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 has different meanings */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6174 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6175 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6176 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6177 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6178 | }, |
| 6179 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6180 | { |
| 6181 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6182 | .name = "MX25L6406E/MX25L6436E", |
| 6183 | .bustype = BUS_SPI, |
| 6184 | .manufacture_id = MACRONIX_ID, |
| 6185 | .model_id = MACRONIX_MX25L6405, |
| 6186 | .total_size = 8192, |
| 6187 | .page_size = 256, |
| 6188 | /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */ |
| 6189 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6190 | .tested = TEST_OK_PREW, |
| 6191 | .probe = probe_spi_rdid, |
| 6192 | .probe_timing = TIMING_ZERO, |
| 6193 | .block_erasers = |
| 6194 | { |
| 6195 | { |
| 6196 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6197 | .block_erase = spi_block_erase_20, |
| 6198 | }, { |
| 6199 | .eraseblocks = { {64 * 1024, 128} }, |
| 6200 | .block_erase = spi_block_erase_d8, |
| 6201 | }, { |
| 6202 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6203 | .block_erase = spi_block_erase_60, |
| 6204 | }, { |
| 6205 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6206 | .block_erase = spi_block_erase_c7, |
| 6207 | } |
| 6208 | }, |
| 6209 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 for 36E is quad enable */ |
| 6210 | .unlock = spi_disable_blockprotect, |
| 6211 | .write = spi_chip_write_256, |
| 6212 | .read = spi_chip_read, |
| 6213 | .voltage = {2700, 3600}, |
| 6214 | }, |
| 6215 | |
| 6216 | { |
| 6217 | .vendor = "Macronix", |
| 6218 | .name = "MX25L6445E", |
| 6219 | .bustype = BUS_SPI, |
| 6220 | .manufacture_id = MACRONIX_ID, |
| 6221 | .model_id = MACRONIX_MX25L6405, |
| 6222 | .total_size = 8192, |
| 6223 | .page_size = 256, |
| 6224 | /* supports SFDP */ |
| 6225 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6226 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6227 | .tested = TEST_OK_PREW, |
| 6228 | .probe = probe_spi_rdid, |
| 6229 | .probe_timing = TIMING_ZERO, |
| 6230 | .block_erasers = |
| 6231 | { |
| 6232 | { |
| 6233 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6234 | .block_erase = spi_block_erase_20, |
| 6235 | }, { |
| 6236 | .eraseblocks = { {32 * 1024, 256} }, |
| 6237 | .block_erase = spi_block_erase_52, |
| 6238 | }, { |
| 6239 | .eraseblocks = { {64 * 1024, 128} }, |
| 6240 | .block_erase = spi_block_erase_d8, |
| 6241 | }, { |
| 6242 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6243 | .block_erase = spi_block_erase_60, |
| 6244 | }, { |
| 6245 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6246 | .block_erase = spi_block_erase_c7, |
| 6247 | } |
| 6248 | }, |
| 6249 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 6250 | .unlock = spi_disable_blockprotect, |
| 6251 | .write = spi_chip_write_256, |
| 6252 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6253 | .voltage = {2700, 3600}, |
| 6254 | }, |
| 6255 | |
| 6256 | { |
| 6257 | .vendor = "Macronix", |
| 6258 | .name = "MX25L12805(D)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6259 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6260 | .manufacture_id = MACRONIX_ID, |
| 6261 | .model_id = MACRONIX_MX25L12805, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 6262 | .total_size = 16384, |
| 6263 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6264 | /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */ |
| 6265 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 6266 | .tested = TEST_OK_PROBE, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 6267 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6268 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6269 | .block_erasers = |
| 6270 | { |
| 6271 | { |
| 6272 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6273 | .block_erase = spi_block_erase_20, |
| 6274 | }, { |
| 6275 | .eraseblocks = { {64 * 1024, 256} }, |
| 6276 | .block_erase = spi_block_erase_d8, |
| 6277 | }, { |
| 6278 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6279 | .block_erase = spi_block_erase_60, |
| 6280 | }, { |
| 6281 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6282 | .block_erase = spi_block_erase_c7, |
| 6283 | } |
| 6284 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6285 | .printlock = spi_prettyprint_status_register_default_bp3, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6286 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6287 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6288 | .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6289 | .voltage = {2700, 3600}, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 6290 | }, |
| 6291 | |
| 6292 | { |
| 6293 | .vendor = "Macronix", |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 6294 | .name = "MX25U1635E", |
| 6295 | .bustype = BUS_SPI, |
| 6296 | .manufacture_id = MACRONIX_ID, |
| 6297 | .model_id = MACRONIX_MX25U1635E, |
| 6298 | .total_size = 2048, |
| 6299 | .page_size = 256, |
| 6300 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6301 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 6302 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6303 | .tested = TEST_UNTESTED, |
| 6304 | .probe = probe_spi_rdid, |
| 6305 | .probe_timing = TIMING_ZERO, |
| 6306 | .block_erasers = |
| 6307 | { |
| 6308 | { |
| 6309 | .eraseblocks = { {4 * 1024, 512} }, |
| 6310 | .block_erase = spi_block_erase_20, |
| 6311 | }, { |
| 6312 | .eraseblocks = { {32 * 1024, 64} }, |
| 6313 | .block_erase = spi_block_erase_52, |
| 6314 | }, { |
| 6315 | .eraseblocks = { {64 * 1024, 32} }, |
| 6316 | .block_erase = spi_block_erase_d8, |
| 6317 | }, { |
| 6318 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6319 | .block_erase = spi_block_erase_60, |
| 6320 | }, { |
| 6321 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6322 | .block_erase = spi_block_erase_c7, |
| 6323 | } |
| 6324 | }, |
| 6325 | /* TODO: security register */ |
| 6326 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 6327 | .unlock = spi_disable_blockprotect, |
| 6328 | .write = spi_chip_write_256, |
| 6329 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6330 | .voltage = {1650, 2000}, |
| 6331 | }, |
| 6332 | |
| 6333 | { |
| 6334 | .vendor = "Macronix", |
| 6335 | .name = "MX25U3235E/F", |
| 6336 | .bustype = BUS_SPI, |
| 6337 | .manufacture_id = MACRONIX_ID, |
| 6338 | .model_id = MACRONIX_MX25U3235E, |
| 6339 | .total_size = 4096, |
| 6340 | .page_size = 256, |
| 6341 | /* F model supports SFDP */ |
| 6342 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6343 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 6344 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6345 | .tested = TEST_OK_PREW, |
| 6346 | .probe = probe_spi_rdid, |
| 6347 | .probe_timing = TIMING_ZERO, |
| 6348 | .block_erasers = |
| 6349 | { |
| 6350 | { |
| 6351 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6352 | .block_erase = spi_block_erase_20, |
| 6353 | }, { |
| 6354 | .eraseblocks = { {32 * 1024, 128} }, |
| 6355 | .block_erase = spi_block_erase_52, |
| 6356 | }, { |
| 6357 | .eraseblocks = { {64 * 1024, 64} }, |
| 6358 | .block_erase = spi_block_erase_d8, |
| 6359 | }, { |
| 6360 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6361 | .block_erase = spi_block_erase_60, |
| 6362 | }, { |
| 6363 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6364 | .block_erase = spi_block_erase_c7, |
| 6365 | } |
| 6366 | }, |
| 6367 | /* TODO: security register */ |
| 6368 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 6369 | .unlock = spi_disable_blockprotect, |
| 6370 | .write = spi_chip_write_256, |
| 6371 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6372 | .voltage = {1650, 2000}, |
| 6373 | }, |
| 6374 | |
| 6375 | { |
| 6376 | .vendor = "Macronix", |
| 6377 | .name = "MX25U6435E/F", |
| 6378 | .bustype = BUS_SPI, |
| 6379 | .manufacture_id = MACRONIX_ID, |
| 6380 | .model_id = MACRONIX_MX25U6435E, |
| 6381 | .total_size = 8192, |
| 6382 | .page_size = 256, |
| 6383 | /* F model supports SFDP */ |
| 6384 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6385 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 6386 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6387 | .tested = TEST_UNTESTED, |
| 6388 | .probe = probe_spi_rdid, |
| 6389 | .probe_timing = TIMING_ZERO, |
| 6390 | .block_erasers = |
| 6391 | { |
| 6392 | { |
| 6393 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6394 | .block_erase = spi_block_erase_20, |
| 6395 | }, { |
| 6396 | .eraseblocks = { {32 * 1024, 256} }, |
| 6397 | .block_erase = spi_block_erase_52, |
| 6398 | }, { |
| 6399 | .eraseblocks = { {64 * 1024, 128} }, |
| 6400 | .block_erase = spi_block_erase_d8, |
| 6401 | }, { |
| 6402 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6403 | .block_erase = spi_block_erase_60, |
| 6404 | }, { |
| 6405 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6406 | .block_erase = spi_block_erase_c7, |
| 6407 | } |
| 6408 | }, |
| 6409 | /* TODO: security register */ |
| 6410 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 6411 | .unlock = spi_disable_blockprotect, |
| 6412 | .write = spi_chip_write_256, |
| 6413 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6414 | .voltage = {1650, 2000}, |
| 6415 | }, |
| 6416 | |
| 6417 | { |
| 6418 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6419 | .name = "MX29F001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6420 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6421 | .manufacture_id = MACRONIX_ID, |
| 6422 | .model_id = MACRONIX_MX29F001B, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6423 | .total_size = 128, |
| 6424 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6425 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6426 | .tested = TEST_UNTESTED, |
| 6427 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6428 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6429 | .block_erasers = |
| 6430 | { |
| 6431 | { |
| 6432 | .eraseblocks = { |
| 6433 | {8 * 1024, 1}, |
| 6434 | {4 * 1024, 2}, |
| 6435 | {8 * 1024, 2}, |
| 6436 | {32 * 1024, 1}, |
| 6437 | {64 * 1024, 1}, |
| 6438 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6439 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6440 | }, { |
| 6441 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6442 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6443 | } |
| 6444 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6445 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6446 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6447 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6448 | }, |
| 6449 | |
| 6450 | { |
| 6451 | .vendor = "Macronix", |
| 6452 | .name = "MX29F001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6453 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6454 | .manufacture_id = MACRONIX_ID, |
| 6455 | .model_id = MACRONIX_MX29F001T, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6456 | .total_size = 128, |
| 6457 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6458 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stefan Tauner | 74c6ec6 | 2011-05-18 01:31:46 +0000 | [diff] [blame] | 6459 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6460 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6461 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6462 | .block_erasers = |
| 6463 | { |
| 6464 | { |
| 6465 | .eraseblocks = { |
| 6466 | {64 * 1024, 1}, |
| 6467 | {32 * 1024, 1}, |
| 6468 | {8 * 1024, 2}, |
| 6469 | {4 * 1024, 2}, |
| 6470 | {8 * 1024, 1}, |
| 6471 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6472 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6473 | }, { |
| 6474 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6475 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6476 | } |
| 6477 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6478 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6479 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6480 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6481 | }, |
| 6482 | |
| 6483 | { |
| 6484 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 6485 | .name = "MX29F002(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6486 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6487 | .manufacture_id = MACRONIX_ID, |
| 6488 | .model_id = MACRONIX_MX29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6489 | .total_size = 256, |
| 6490 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6491 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6492 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6493 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6494 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6495 | .block_erasers = |
| 6496 | { |
| 6497 | { |
| 6498 | .eraseblocks = { |
| 6499 | {16 * 1024, 1}, |
| 6500 | {8 * 1024, 2}, |
| 6501 | {32 * 1024, 1}, |
| 6502 | {64 * 1024, 3}, |
| 6503 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6504 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6505 | }, { |
| 6506 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6507 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6508 | }, |
| 6509 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6510 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6511 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6512 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6513 | }, |
| 6514 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6515 | { |
| 6516 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 6517 | .name = "MX29F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6518 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6519 | .manufacture_id = MACRONIX_ID, |
| 6520 | .model_id = MACRONIX_MX29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6521 | .total_size = 256, |
| 6522 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6523 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 6524 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6525 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6526 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6527 | .block_erasers = |
| 6528 | { |
| 6529 | { |
| 6530 | .eraseblocks = { |
| 6531 | {64 * 1024, 3}, |
| 6532 | {32 * 1024, 1}, |
| 6533 | {8 * 1024, 2}, |
| 6534 | {16 * 1024, 1}, |
| 6535 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6536 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6537 | }, { |
| 6538 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6539 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6540 | }, |
| 6541 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6542 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6543 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6544 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6545 | }, |
| 6546 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6547 | { |
| 6548 | .vendor = "Macronix", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6549 | .name = "MX29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6550 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6551 | .manufacture_id = MACRONIX_ID, |
| 6552 | .model_id = MACRONIX_MX29F040, |
| 6553 | .total_size = 512, |
| 6554 | .page_size = 64 * 1024, |
| 6555 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6556 | .tested = TEST_UNTESTED, |
| 6557 | .probe = probe_jedec, |
| 6558 | .probe_timing = TIMING_ZERO, |
| 6559 | .block_erasers = |
| 6560 | { |
| 6561 | { |
| 6562 | .eraseblocks = { {64 * 1024, 8} }, |
| 6563 | .block_erase = erase_sector_jedec, |
| 6564 | }, { |
| 6565 | .eraseblocks = { {512 * 1024, 1} }, |
| 6566 | .block_erase = erase_chip_block_jedec, |
| 6567 | }, |
| 6568 | }, |
| 6569 | .write = write_jedec_1, |
| 6570 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6571 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6572 | }, |
| 6573 | |
| 6574 | { |
| 6575 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 6576 | .name = "MX29LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6577 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6578 | .manufacture_id = MACRONIX_ID, |
| 6579 | .model_id = MACRONIX_MX29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6580 | .total_size = 512, |
| 6581 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6582 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6583 | .tested = TEST_UNTESTED, |
| 6584 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6585 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6586 | .block_erasers = |
| 6587 | { |
| 6588 | { |
| 6589 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6590 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6591 | }, { |
| 6592 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6593 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6594 | }, |
| 6595 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6596 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6597 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6598 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 6599 | }, |
| 6600 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6601 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6602 | .vendor = "MoselVitelic", |
| 6603 | .name = "V29C51000B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6604 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6605 | .manufacture_id = SYNCMOS_MVC_ID, |
| 6606 | .model_id = MVC_V29C51000B, |
| 6607 | .total_size = 64, |
| 6608 | .page_size = 512, |
| 6609 | .feature_bits = FEATURE_EITHER_RESET, |
| 6610 | .tested = TEST_UNTESTED, |
| 6611 | .probe = probe_jedec, |
| 6612 | .probe_timing = TIMING_ZERO, |
| 6613 | .block_erasers = |
| 6614 | { |
| 6615 | { |
| 6616 | .eraseblocks = { {512, 128} }, |
| 6617 | .block_erase = erase_sector_jedec, |
| 6618 | }, { |
| 6619 | .eraseblocks = { {64 * 1024, 1} }, |
| 6620 | .block_erase = erase_chip_block_jedec, |
| 6621 | }, |
| 6622 | }, |
| 6623 | .write = write_jedec_1, |
| 6624 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6625 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6626 | }, |
| 6627 | |
| 6628 | { |
| 6629 | .vendor = "MoselVitelic", |
| 6630 | .name = "V29C51000T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6631 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6632 | .manufacture_id = SYNCMOS_MVC_ID, |
| 6633 | .model_id = MVC_V29C51000T, |
| 6634 | .total_size = 64, |
| 6635 | .page_size = 512, |
| 6636 | .feature_bits = FEATURE_EITHER_RESET, |
| 6637 | .tested = TEST_UNTESTED, |
| 6638 | .probe = probe_jedec, |
| 6639 | .probe_timing = TIMING_ZERO, |
| 6640 | .block_erasers = |
| 6641 | { |
| 6642 | { |
| 6643 | .eraseblocks = { {512, 128} }, |
| 6644 | .block_erase = erase_sector_jedec, |
| 6645 | }, { |
| 6646 | .eraseblocks = { {64 * 1024, 1} }, |
| 6647 | .block_erase = erase_chip_block_jedec, |
| 6648 | }, |
| 6649 | }, |
| 6650 | .write = write_jedec_1, |
| 6651 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6652 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6653 | }, |
| 6654 | |
| 6655 | { |
| 6656 | .vendor = "MoselVitelic", |
| 6657 | .name = "V29C51400B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6658 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6659 | .manufacture_id = SYNCMOS_MVC_ID, |
| 6660 | .model_id = MVC_V29C51400B, |
| 6661 | .total_size = 512, |
| 6662 | .page_size = 1024, |
| 6663 | .feature_bits = FEATURE_EITHER_RESET, |
| 6664 | .tested = TEST_UNTESTED, |
| 6665 | .probe = probe_jedec, |
| 6666 | .probe_timing = TIMING_ZERO, |
| 6667 | .block_erasers = |
| 6668 | { |
| 6669 | { |
| 6670 | .eraseblocks = { {1024, 512} }, |
| 6671 | .block_erase = erase_sector_jedec, |
| 6672 | }, { |
| 6673 | .eraseblocks = { {512 * 1024, 1} }, |
| 6674 | .block_erase = erase_chip_block_jedec, |
| 6675 | }, |
| 6676 | }, |
| 6677 | .write = write_jedec_1, |
| 6678 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6679 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6680 | }, |
| 6681 | |
| 6682 | { |
| 6683 | .vendor = "MoselVitelic", |
| 6684 | .name = "V29C51400T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6685 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6686 | .manufacture_id = SYNCMOS_MVC_ID, |
| 6687 | .model_id = MVC_V29C51400T, |
| 6688 | .total_size = 512, |
| 6689 | .page_size = 1024, |
| 6690 | .feature_bits = FEATURE_EITHER_RESET, |
| 6691 | .tested = TEST_UNTESTED, |
| 6692 | .probe = probe_jedec, |
| 6693 | .probe_timing = TIMING_ZERO, |
| 6694 | .block_erasers = |
| 6695 | { |
| 6696 | { |
| 6697 | .eraseblocks = { {1024, 512} }, |
| 6698 | .block_erase = erase_sector_jedec, |
| 6699 | }, { |
| 6700 | .eraseblocks = { {512 * 1024, 1} }, |
| 6701 | .block_erase = erase_chip_block_jedec, |
| 6702 | }, |
| 6703 | }, |
| 6704 | .write = write_jedec_1, |
| 6705 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6706 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6707 | }, |
| 6708 | |
| 6709 | { |
| 6710 | .vendor = "MoselVitelic", |
| 6711 | .name = "V29LC51000", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6712 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6713 | .manufacture_id = SYNCMOS_MVC_ID, |
| 6714 | .model_id = MVC_V29LC51000, |
| 6715 | .total_size = 64, |
| 6716 | .page_size = 512, |
| 6717 | .feature_bits = FEATURE_EITHER_RESET, |
| 6718 | .tested = TEST_UNTESTED, |
| 6719 | .probe = probe_jedec, |
| 6720 | .probe_timing = TIMING_ZERO, |
| 6721 | .block_erasers = |
| 6722 | { |
| 6723 | { |
| 6724 | .eraseblocks = { {512, 128} }, |
| 6725 | .block_erase = erase_sector_jedec, |
| 6726 | }, { |
| 6727 | .eraseblocks = { {64 * 1024, 1} }, |
| 6728 | .block_erase = erase_chip_block_jedec, |
| 6729 | }, |
| 6730 | }, |
| 6731 | .write = write_jedec_1, |
| 6732 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6733 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6734 | }, |
| 6735 | |
| 6736 | { |
| 6737 | .vendor = "MoselVitelic", |
| 6738 | .name = "V29LC51001", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6739 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6740 | .manufacture_id = SYNCMOS_MVC_ID, |
| 6741 | .model_id = MVC_V29LC51001, |
| 6742 | .total_size = 128, |
| 6743 | .page_size = 512, |
| 6744 | .feature_bits = FEATURE_EITHER_RESET, |
| 6745 | .tested = TEST_UNTESTED, |
| 6746 | .probe = probe_jedec, |
| 6747 | .probe_timing = TIMING_ZERO, |
| 6748 | .block_erasers = |
| 6749 | { |
| 6750 | { |
| 6751 | .eraseblocks = { {512, 256} }, |
| 6752 | .block_erase = erase_sector_jedec, |
| 6753 | }, { |
| 6754 | .eraseblocks = { {128 * 1024, 1} }, |
| 6755 | .block_erase = erase_chip_block_jedec, |
| 6756 | }, |
| 6757 | }, |
| 6758 | .write = write_jedec_1, |
| 6759 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6760 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6761 | }, |
| 6762 | |
| 6763 | { |
| 6764 | .vendor = "MoselVitelic", |
| 6765 | .name = "V29LC51002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6766 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6767 | .manufacture_id = SYNCMOS_MVC_ID, |
| 6768 | .model_id = MVC_V29LC51002, |
| 6769 | .total_size = 256, |
| 6770 | .page_size = 512, |
| 6771 | .feature_bits = FEATURE_EITHER_RESET, |
| 6772 | .tested = TEST_UNTESTED, |
| 6773 | .probe = probe_jedec, |
| 6774 | .probe_timing = TIMING_ZERO, |
| 6775 | .block_erasers = |
| 6776 | { |
| 6777 | { |
| 6778 | .eraseblocks = { {512, 512} }, |
| 6779 | .block_erase = erase_sector_jedec, |
| 6780 | }, { |
| 6781 | .eraseblocks = { {256 * 1024, 1} }, |
| 6782 | .block_erase = erase_chip_block_jedec, |
| 6783 | }, |
| 6784 | }, |
| 6785 | .write = write_jedec_1, |
| 6786 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6787 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6788 | }, |
| 6789 | |
| 6790 | { |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 6791 | .vendor = "Nantronics", |
| 6792 | .name = "N25S10", |
| 6793 | .bustype = BUS_SPI, |
| 6794 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 6795 | .model_id = NANTRONICS_N25S10, |
| 6796 | .total_size = 128, |
| 6797 | .page_size = 256, |
| 6798 | .feature_bits = FEATURE_WRSR_WREN, |
| 6799 | .tested = TEST_UNTESTED, |
| 6800 | .probe = probe_spi_rdid, |
| 6801 | .probe_timing = TIMING_ZERO, |
| 6802 | .block_erasers = |
| 6803 | { |
| 6804 | { |
| 6805 | .eraseblocks = { {4 * 1024, 32} }, |
| 6806 | .block_erase = spi_block_erase_20, |
| 6807 | }, { |
| 6808 | .eraseblocks = { {4 * 1024, 32} }, |
| 6809 | .block_erase = spi_block_erase_d7, |
| 6810 | }, { |
| 6811 | .eraseblocks = { {32 * 1024, 4} }, |
| 6812 | .block_erase = spi_block_erase_52, |
| 6813 | }, { |
| 6814 | .eraseblocks = { {64 * 1024, 2} }, |
| 6815 | .block_erase = spi_block_erase_d8, |
| 6816 | }, { |
| 6817 | .eraseblocks = { {128 * 1024, 1} }, |
| 6818 | .block_erase = spi_block_erase_60, |
| 6819 | }, { |
| 6820 | .eraseblocks = { {128 * 1024, 1} }, |
| 6821 | .block_erase = spi_block_erase_c7, |
| 6822 | } |
| 6823 | }, |
| 6824 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 6825 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 6826 | .write = spi_chip_write_256, |
| 6827 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 6828 | .voltage = {2700, 3600}, |
| 6829 | }, |
| 6830 | |
| 6831 | { |
| 6832 | .vendor = "Nantronics", |
| 6833 | .name = "N25S20", |
| 6834 | .bustype = BUS_SPI, |
| 6835 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 6836 | .model_id = NANTRONICS_N25S20, |
| 6837 | .total_size = 256, |
| 6838 | .page_size = 256, |
| 6839 | .feature_bits = FEATURE_WRSR_WREN, |
| 6840 | .tested = TEST_UNTESTED, |
| 6841 | .probe = probe_spi_rdid, |
| 6842 | .probe_timing = TIMING_ZERO, |
| 6843 | .block_erasers = |
| 6844 | { |
| 6845 | { |
| 6846 | .eraseblocks = { {4 * 1024, 64} }, |
| 6847 | .block_erase = spi_block_erase_20, |
| 6848 | }, { |
| 6849 | .eraseblocks = { {4 * 1024, 64} }, |
| 6850 | .block_erase = spi_block_erase_d7, |
| 6851 | }, { |
| 6852 | .eraseblocks = { {32 * 1024, 8} }, |
| 6853 | .block_erase = spi_block_erase_52, |
| 6854 | }, { |
| 6855 | .eraseblocks = { {64 * 1024, 4} }, |
| 6856 | .block_erase = spi_block_erase_d8, |
| 6857 | }, { |
| 6858 | .eraseblocks = { {256 * 1024, 1} }, |
| 6859 | .block_erase = spi_block_erase_60, |
| 6860 | }, { |
| 6861 | .eraseblocks = { {256 * 1024, 1} }, |
| 6862 | .block_erase = spi_block_erase_c7, |
| 6863 | } |
| 6864 | }, |
| 6865 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 6866 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 6867 | .write = spi_chip_write_256, |
| 6868 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 6869 | .voltage = {2700, 3600}, |
| 6870 | }, |
| 6871 | |
| 6872 | { |
| 6873 | .vendor = "Nantronics", |
| 6874 | .name = "N25S40", |
| 6875 | .bustype = BUS_SPI, |
| 6876 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 6877 | .model_id = NANTRONICS_N25S40, |
| 6878 | .total_size = 512, |
| 6879 | .page_size = 256, |
| 6880 | .feature_bits = FEATURE_WRSR_WREN, |
| 6881 | .tested = TEST_UNTESTED, |
| 6882 | .probe = probe_spi_rdid, |
| 6883 | .probe_timing = TIMING_ZERO, |
| 6884 | .block_erasers = |
| 6885 | { |
| 6886 | { |
| 6887 | .eraseblocks = { {4 * 1024, 128} }, |
| 6888 | .block_erase = spi_block_erase_20, |
| 6889 | }, { |
| 6890 | .eraseblocks = { {4 * 1024, 128} }, |
| 6891 | .block_erase = spi_block_erase_d7, |
| 6892 | }, { |
| 6893 | .eraseblocks = { {32 * 1024, 16} }, |
| 6894 | .block_erase = spi_block_erase_52, |
| 6895 | }, { |
| 6896 | .eraseblocks = { {64 * 1024, 8} }, |
| 6897 | .block_erase = spi_block_erase_d8, |
| 6898 | }, { |
| 6899 | .eraseblocks = { {512 * 1024, 1} }, |
| 6900 | .block_erase = spi_block_erase_60, |
| 6901 | }, { |
| 6902 | .eraseblocks = { {512 * 1024, 1} }, |
| 6903 | .block_erase = spi_block_erase_c7, |
| 6904 | } |
| 6905 | }, |
| 6906 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 6907 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 6908 | .write = spi_chip_write_256, |
| 6909 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 6910 | .voltage = {2700, 3600}, |
| 6911 | }, |
| 6912 | |
| 6913 | { |
| 6914 | .vendor = "Nantronics", |
| 6915 | .name = "N25S80", |
| 6916 | .bustype = BUS_SPI, |
| 6917 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 6918 | .model_id = NANTRONICS_N25S80, |
| 6919 | .total_size = 1024, |
| 6920 | .page_size = 256, |
| 6921 | .feature_bits = FEATURE_WRSR_WREN, |
| 6922 | .tested = TEST_UNTESTED, |
| 6923 | .probe = probe_spi_rdid, |
| 6924 | .probe_timing = TIMING_ZERO, |
| 6925 | .block_erasers = |
| 6926 | { |
| 6927 | { |
| 6928 | .eraseblocks = { {4 * 1024, 256} }, |
| 6929 | .block_erase = spi_block_erase_20, |
| 6930 | }, { |
| 6931 | .eraseblocks = { {32 * 1024, 32} }, |
| 6932 | .block_erase = spi_block_erase_52, |
| 6933 | }, { |
| 6934 | .eraseblocks = { {64 * 1024, 16} }, |
| 6935 | .block_erase = spi_block_erase_d8, |
| 6936 | }, { |
| 6937 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6938 | .block_erase = spi_block_erase_60, |
| 6939 | }, { |
| 6940 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6941 | .block_erase = spi_block_erase_c7, |
| 6942 | } |
| 6943 | }, |
| 6944 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 6945 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 6946 | .write = spi_chip_write_256, |
| 6947 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 6948 | .voltage = {2700, 3600}, |
| 6949 | }, |
| 6950 | |
| 6951 | { |
| 6952 | .vendor = "Nantronics", |
| 6953 | .name = "N25S16", |
| 6954 | .bustype = BUS_SPI, |
| 6955 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 6956 | .model_id = NANTRONICS_N25S16, |
| 6957 | .total_size = 2048, |
| 6958 | .page_size = 256, |
| 6959 | .feature_bits = FEATURE_WRSR_WREN, |
| 6960 | .tested = TEST_UNTESTED, |
| 6961 | .probe = probe_spi_rdid, |
| 6962 | .probe_timing = TIMING_ZERO, |
| 6963 | .block_erasers = |
| 6964 | { |
| 6965 | { |
| 6966 | .eraseblocks = { {4 * 1024, 512} }, |
| 6967 | .block_erase = spi_block_erase_20, |
| 6968 | }, { |
| 6969 | .eraseblocks = { {64 * 1024, 32} }, |
| 6970 | .block_erase = spi_block_erase_d8, |
| 6971 | }, { |
| 6972 | .eraseblocks = { {2048 * 1024, 1} }, |
| 6973 | .block_erase = spi_block_erase_60, |
| 6974 | }, { |
| 6975 | .eraseblocks = { {2048 * 1024, 1} }, |
| 6976 | .block_erase = spi_block_erase_c7, |
| 6977 | } |
| 6978 | }, |
| 6979 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 6980 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 6981 | .write = spi_chip_write_256, |
| 6982 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 6983 | .voltage = {2700, 3600}, |
| 6984 | }, |
| 6985 | |
| 6986 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6987 | .vendor = "Numonyx", |
| 6988 | .name = "M25PE10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6989 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6990 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 6991 | .model_id = ST_M25PE10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6992 | .total_size = 128, |
| 6993 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6994 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6995 | .tested = TEST_UNTESTED, |
| 6996 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6997 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6998 | .block_erasers = |
| 6999 | { |
| 7000 | { |
| 7001 | .eraseblocks = { {4 * 1024, 32} }, |
| 7002 | .block_erase = spi_block_erase_20, |
| 7003 | }, { |
| 7004 | .eraseblocks = { {64 * 1024, 2} }, |
| 7005 | .block_erase = spi_block_erase_d8, |
| 7006 | }, { |
| 7007 | .eraseblocks = { {128 * 1024, 1} }, |
| 7008 | .block_erase = spi_block_erase_c7, |
| 7009 | } |
| 7010 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7011 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7012 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7013 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7014 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7015 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7016 | }, |
| 7017 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7018 | { |
| 7019 | .vendor = "Numonyx", |
| 7020 | .name = "M25PE20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7021 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7022 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 7023 | .model_id = ST_M25PE20, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7024 | .total_size = 256, |
| 7025 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7026 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7027 | .tested = TEST_UNTESTED, |
| 7028 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7029 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7030 | .block_erasers = |
| 7031 | { |
| 7032 | { |
| 7033 | .eraseblocks = { {4 * 1024, 64} }, |
| 7034 | .block_erase = spi_block_erase_20, |
| 7035 | }, { |
| 7036 | .eraseblocks = { {64 * 1024, 4} }, |
| 7037 | .block_erase = spi_block_erase_d8, |
| 7038 | }, { |
| 7039 | .eraseblocks = { {256 * 1024, 1} }, |
| 7040 | .block_erase = spi_block_erase_c7, |
| 7041 | } |
| 7042 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7043 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7044 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7045 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7046 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7047 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7048 | }, |
| 7049 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7050 | { |
| 7051 | .vendor = "Numonyx", |
| 7052 | .name = "M25PE40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7053 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7054 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 7055 | .model_id = ST_M25PE40, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7056 | .total_size = 512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7057 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7058 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7059 | .tested = TEST_UNTESTED, |
| 7060 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7061 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7062 | .block_erasers = |
| 7063 | { |
| 7064 | { |
| 7065 | .eraseblocks = { {4 * 1024, 128} }, |
| 7066 | .block_erase = spi_block_erase_20, |
| 7067 | }, { |
| 7068 | .eraseblocks = { {64 * 1024, 8} }, |
| 7069 | .block_erase = spi_block_erase_d8, |
| 7070 | }, { |
| 7071 | .eraseblocks = { {512 * 1024, 1} }, |
| 7072 | .block_erase = spi_block_erase_c7, |
| 7073 | } |
| 7074 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7075 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7076 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7077 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7078 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7079 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7080 | }, |
| 7081 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7082 | { |
| 7083 | .vendor = "Numonyx", |
| 7084 | .name = "M25PE80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7085 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7086 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 7087 | .model_id = ST_M25PE80, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7088 | .total_size = 1024, |
| 7089 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7090 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 7091 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7092 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7093 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7094 | .block_erasers = |
| 7095 | { |
| 7096 | { |
| 7097 | .eraseblocks = { {4 * 1024, 256} }, |
| 7098 | .block_erase = spi_block_erase_20, |
| 7099 | }, { |
| 7100 | .eraseblocks = { {64 * 1024, 16} }, |
| 7101 | .block_erase = spi_block_erase_d8, |
| 7102 | }, { |
| 7103 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7104 | .block_erase = spi_block_erase_c7, |
| 7105 | } |
| 7106 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7107 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7108 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7109 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7110 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7111 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7112 | }, |
| 7113 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7114 | { |
| 7115 | .vendor = "Numonyx", |
| 7116 | .name = "M25PE16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7117 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7118 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 7119 | .model_id = ST_M25PE16, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7120 | .total_size = 2048, |
| 7121 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7122 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7123 | .tested = TEST_UNTESTED, |
| 7124 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7125 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7126 | .block_erasers = |
| 7127 | { |
| 7128 | { |
| 7129 | .eraseblocks = { {4 * 1024, 512} }, |
| 7130 | .block_erase = spi_block_erase_20, |
| 7131 | }, { |
| 7132 | .eraseblocks = { {64 * 1024, 32} }, |
| 7133 | .block_erase = spi_block_erase_d8, |
| 7134 | }, { |
| 7135 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7136 | .block_erase = spi_block_erase_c7, |
| 7137 | } |
| 7138 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7139 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7140 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7141 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7142 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7143 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7144 | }, |
| 7145 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7146 | { |
Niklas Söderlund | ae4294f | 2012-04-14 21:04:03 +0000 | [diff] [blame] | 7147 | .vendor = "Numonyx", |
Nikolay Nikolaev | 01dac17 | 2013-06-28 21:29:03 +0000 | [diff] [blame] | 7148 | .name = "M45PE10", |
| 7149 | .bustype = BUS_SPI, |
| 7150 | .manufacture_id = ST_ID, |
| 7151 | .model_id = ST_M45PE10, |
| 7152 | .total_size = 128, |
| 7153 | .page_size = 256, |
| 7154 | .tested = TEST_UNTESTED, |
| 7155 | .probe = probe_spi_rdid, |
| 7156 | .probe_timing = TIMING_ZERO, |
| 7157 | .block_erasers = { |
| 7158 | { |
| 7159 | .eraseblocks = { {256, 512} }, |
| 7160 | .block_erase = spi_block_erase_db, |
| 7161 | }, { |
| 7162 | .eraseblocks = { {64 * 1024, 2} }, |
| 7163 | .block_erase = spi_block_erase_d8, |
| 7164 | } |
| 7165 | }, |
| 7166 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7167 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7168 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7169 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7170 | .voltage = {2700, 3600}, |
| 7171 | }, |
| 7172 | |
| 7173 | { |
| 7174 | .vendor = "Numonyx", |
| 7175 | .name = "M45PE20", |
| 7176 | .bustype = BUS_SPI, |
| 7177 | .manufacture_id = ST_ID, |
| 7178 | .model_id = ST_M45PE20, |
| 7179 | .total_size = 256, |
| 7180 | .page_size = 256, |
| 7181 | .tested = TEST_UNTESTED, |
| 7182 | .probe = probe_spi_rdid, |
| 7183 | .probe_timing = TIMING_ZERO, |
| 7184 | .block_erasers = { |
| 7185 | { |
| 7186 | .eraseblocks = { {256, 1024} }, |
| 7187 | .block_erase = spi_block_erase_db, |
| 7188 | }, { |
| 7189 | .eraseblocks = { {64 * 1024, 4} }, |
| 7190 | .block_erase = spi_block_erase_d8, |
| 7191 | } |
| 7192 | }, |
| 7193 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7194 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7195 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7196 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7197 | .voltage = {2700, 3600}, |
| 7198 | }, |
| 7199 | |
| 7200 | { |
| 7201 | .vendor = "Numonyx", |
| 7202 | .name = "M45PE40", |
| 7203 | .bustype = BUS_SPI, |
| 7204 | .manufacture_id = ST_ID, |
| 7205 | .model_id = ST_M45PE40, |
| 7206 | .total_size = 512, |
| 7207 | .page_size = 256, |
| 7208 | .tested = TEST_UNTESTED, |
| 7209 | .probe = probe_spi_rdid, |
| 7210 | .probe_timing = TIMING_ZERO, |
| 7211 | .block_erasers = { |
| 7212 | { |
| 7213 | .eraseblocks = { {256, 2048} }, |
| 7214 | .block_erase = spi_block_erase_db, |
| 7215 | }, { |
| 7216 | .eraseblocks = { {64 * 1024, 8} }, |
| 7217 | .block_erase = spi_block_erase_d8, |
| 7218 | } |
| 7219 | }, |
| 7220 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7221 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7222 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7223 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7224 | .voltage = {2700, 3600}, |
| 7225 | }, |
| 7226 | |
| 7227 | { |
| 7228 | .vendor = "Numonyx", |
| 7229 | .name = "M45PE80", |
| 7230 | .bustype = BUS_SPI, |
| 7231 | .manufacture_id = ST_ID, |
| 7232 | .model_id = ST_M45PE80, |
| 7233 | .total_size = 1024, |
| 7234 | .page_size = 256, |
| 7235 | .tested = TEST_UNTESTED, |
| 7236 | .probe = probe_spi_rdid, |
| 7237 | .probe_timing = TIMING_ZERO, |
| 7238 | .block_erasers = { |
| 7239 | { |
| 7240 | .eraseblocks = { {256, 4096} }, |
| 7241 | .block_erase = spi_block_erase_db, |
| 7242 | }, { |
| 7243 | .eraseblocks = { {64 * 1024, 16} }, |
| 7244 | .block_erase = spi_block_erase_d8, |
| 7245 | } |
| 7246 | }, |
| 7247 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7248 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7249 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7250 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7251 | .voltage = {2700, 3600}, |
| 7252 | }, |
| 7253 | |
| 7254 | { |
| 7255 | .vendor = "Numonyx", |
| 7256 | .name = "M45PE16", |
| 7257 | .bustype = BUS_SPI, |
| 7258 | .manufacture_id = ST_ID, |
| 7259 | .model_id = ST_M45PE16, |
| 7260 | .total_size = 2048, |
| 7261 | .page_size = 256, |
| 7262 | .tested = TEST_UNTESTED, |
| 7263 | .probe = probe_spi_rdid, |
| 7264 | .probe_timing = TIMING_ZERO, |
| 7265 | .block_erasers = { |
| 7266 | { |
| 7267 | .eraseblocks = { {256, 8192} }, |
| 7268 | .block_erase = spi_block_erase_db, |
| 7269 | }, { |
| 7270 | .eraseblocks = { {64 * 1024, 32} }, |
| 7271 | .block_erase = spi_block_erase_d8, |
| 7272 | } |
| 7273 | }, |
| 7274 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7275 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7276 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7277 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7278 | .voltage = {2700, 3600}, |
| 7279 | }, |
| 7280 | |
| 7281 | { |
| 7282 | .vendor = "Numonyx", |
Stefan Tauner | d956f82 | 2012-10-26 16:49:15 +0000 | [diff] [blame] | 7283 | .name = "N25Q016", |
| 7284 | .bustype = BUS_SPI, |
| 7285 | .manufacture_id = ST_ID, |
| 7286 | .model_id = ST_N25Q016__1E, |
| 7287 | .total_size = 2048, |
| 7288 | .page_size = 256, |
| 7289 | /* supports SFDP */ |
| 7290 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7291 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7292 | .tested = TEST_UNTESTED, |
| 7293 | .probe = probe_spi_rdid, |
| 7294 | .probe_timing = TIMING_ZERO, |
| 7295 | .block_erasers = |
| 7296 | { |
| 7297 | { |
| 7298 | .eraseblocks = { {4 * 1024, 512} }, |
| 7299 | .block_erase = spi_block_erase_20, |
| 7300 | }, { |
| 7301 | .eraseblocks = { {32 * 1024, 64} }, |
| 7302 | .block_erase = spi_block_erase_52, |
| 7303 | }, { |
| 7304 | .eraseblocks = { {64 * 1024, 32} }, |
| 7305 | .block_erase = spi_block_erase_d8, |
| 7306 | }, { |
| 7307 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7308 | .block_erase = spi_block_erase_c7, |
| 7309 | } |
| 7310 | }, |
Nikolay Nikolaev | 6f59b0b | 2013-06-28 21:29:51 +0000 | [diff] [blame] | 7311 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7312 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7313 | .write = spi_chip_write_256, /* Multi I/O supported */ |
Stefan Tauner | d956f82 | 2012-10-26 16:49:15 +0000 | [diff] [blame] | 7314 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7315 | .voltage = {1700, 2000}, |
| 7316 | }, |
| 7317 | |
| 7318 | { |
| 7319 | .vendor = "Numonyx", |
| 7320 | .name = "N25Q032..1E", |
| 7321 | .bustype = BUS_SPI, |
| 7322 | .manufacture_id = ST_ID, |
| 7323 | .model_id = ST_N25Q032__1E, |
| 7324 | .total_size = 4096, |
| 7325 | .page_size = 256, |
| 7326 | /* supports SFDP */ |
| 7327 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7328 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7329 | .tested = TEST_UNTESTED, |
| 7330 | .probe = probe_spi_rdid, |
| 7331 | .probe_timing = TIMING_ZERO, |
| 7332 | .block_erasers = |
| 7333 | { |
| 7334 | { |
| 7335 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7336 | .block_erase = spi_block_erase_20, |
| 7337 | }, { |
| 7338 | .eraseblocks = { {64 * 1024, 64} }, |
| 7339 | .block_erase = spi_block_erase_d8, |
| 7340 | }, { |
| 7341 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7342 | .block_erase = spi_block_erase_c7, |
| 7343 | } |
| 7344 | }, |
Nikolay Nikolaev | 6f59b0b | 2013-06-28 21:29:51 +0000 | [diff] [blame] | 7345 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7346 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7347 | .write = spi_chip_write_256, /* Multi I/O supported */ |
Stefan Tauner | d956f82 | 2012-10-26 16:49:15 +0000 | [diff] [blame] | 7348 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7349 | .voltage = {1700, 2000}, |
| 7350 | }, |
| 7351 | |
| 7352 | { |
| 7353 | .vendor = "Numonyx", |
| 7354 | .name = "N25Q032..3E", |
| 7355 | .bustype = BUS_SPI, |
| 7356 | .manufacture_id = ST_ID, |
| 7357 | .model_id = ST_N25Q032__3E, |
| 7358 | .total_size = 4096, |
| 7359 | .page_size = 256, |
| 7360 | /* supports SFDP */ |
| 7361 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7362 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7363 | .tested = TEST_UNTESTED, |
| 7364 | .probe = probe_spi_rdid, |
| 7365 | .probe_timing = TIMING_ZERO, |
| 7366 | .block_erasers = |
| 7367 | { |
| 7368 | { |
| 7369 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7370 | .block_erase = spi_block_erase_20, |
| 7371 | }, { |
| 7372 | .eraseblocks = { {64 * 1024, 64} }, |
| 7373 | .block_erase = spi_block_erase_d8, |
| 7374 | }, { |
| 7375 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7376 | .block_erase = spi_block_erase_c7, |
| 7377 | } |
| 7378 | }, |
Nikolay Nikolaev | 6f59b0b | 2013-06-28 21:29:51 +0000 | [diff] [blame] | 7379 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7380 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7381 | .write = spi_chip_write_256, /* Multi I/O supported */ |
Stefan Tauner | d956f82 | 2012-10-26 16:49:15 +0000 | [diff] [blame] | 7382 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7383 | .voltage = {2700, 3600}, |
| 7384 | }, |
| 7385 | |
| 7386 | { |
| 7387 | .vendor = "Numonyx", |
David Hendricks | 99f947d | 2012-10-04 14:41:20 +0000 | [diff] [blame] | 7388 | .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
Niklas Söderlund | ae4294f | 2012-04-14 21:04:03 +0000 | [diff] [blame] | 7389 | .bustype = BUS_SPI, |
| 7390 | .manufacture_id = ST_ID, |
David Hendricks | 99f947d | 2012-10-04 14:41:20 +0000 | [diff] [blame] | 7391 | .model_id = ST_N25Q064__1E, |
Niklas Söderlund | ae4294f | 2012-04-14 21:04:03 +0000 | [diff] [blame] | 7392 | .total_size = 8192, |
| 7393 | .page_size = 256, |
David Hendricks | 99f947d | 2012-10-04 14:41:20 +0000 | [diff] [blame] | 7394 | /* supports SFDP */ |
| 7395 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7396 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7397 | .tested = TEST_UNTESTED, |
| 7398 | .probe = probe_spi_rdid, |
| 7399 | .probe_timing = TIMING_ZERO, |
| 7400 | .block_erasers = |
| 7401 | { |
| 7402 | { |
| 7403 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 7404 | .block_erase = spi_block_erase_20, |
| 7405 | }, { |
| 7406 | .eraseblocks = { {64 * 1024, 128} }, |
| 7407 | .block_erase = spi_block_erase_d8, |
| 7408 | }, { |
| 7409 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7410 | .block_erase = spi_block_erase_c7, |
| 7411 | } |
| 7412 | }, |
Nikolay Nikolaev | 6f59b0b | 2013-06-28 21:29:51 +0000 | [diff] [blame] | 7413 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7414 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7415 | .write = spi_chip_write_256, /* Multi I/O supported */ |
Stefan Tauner | d956f82 | 2012-10-26 16:49:15 +0000 | [diff] [blame] | 7416 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
David Hendricks | 99f947d | 2012-10-04 14:41:20 +0000 | [diff] [blame] | 7417 | .voltage = {1700, 2000}, |
| 7418 | }, |
| 7419 | |
| 7420 | { |
| 7421 | .vendor = "Numonyx", |
| 7422 | .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 7423 | .bustype = BUS_SPI, |
| 7424 | .manufacture_id = ST_ID, |
| 7425 | .model_id = ST_N25Q064__3E, |
| 7426 | .total_size = 8192, |
| 7427 | .page_size = 256, |
| 7428 | /* supports SFDP */ |
| 7429 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7430 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Niklas Söderlund | ae4294f | 2012-04-14 21:04:03 +0000 | [diff] [blame] | 7431 | .tested = TEST_OK_PREW, |
| 7432 | .probe = probe_spi_rdid, |
| 7433 | .probe_timing = TIMING_ZERO, |
| 7434 | .block_erasers = |
| 7435 | { |
| 7436 | { |
| 7437 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 7438 | .block_erase = spi_block_erase_20, |
| 7439 | }, { |
| 7440 | .eraseblocks = { {64 * 1024, 128} }, |
| 7441 | .block_erase = spi_block_erase_d8, |
| 7442 | }, { |
| 7443 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7444 | .block_erase = spi_block_erase_c7, |
| 7445 | } |
| 7446 | }, |
Nikolay Nikolaev | 6f59b0b | 2013-06-28 21:29:51 +0000 | [diff] [blame] | 7447 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7448 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7449 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7450 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7451 | .voltage = {2700, 3600}, |
| 7452 | }, |
| 7453 | |
| 7454 | { |
| 7455 | .vendor = "Numonyx", |
| 7456 | .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 7457 | .bustype = BUS_SPI, |
| 7458 | .manufacture_id = ST_ID, |
| 7459 | .model_id = ST_N25Q128__1E, |
| 7460 | .total_size = 16384, |
| 7461 | .page_size = 256, |
| 7462 | /* supports SFDP */ |
| 7463 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7464 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7465 | .tested = TEST_UNTESTED, |
| 7466 | .probe = probe_spi_rdid, |
| 7467 | .probe_timing = TIMING_ZERO, |
| 7468 | .block_erasers = { |
| 7469 | { |
| 7470 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 7471 | .block_erase = spi_block_erase_20, |
| 7472 | }, { |
| 7473 | .eraseblocks = { {64 * 1024, 256} }, |
| 7474 | .block_erase = spi_block_erase_d8, |
| 7475 | }, { |
| 7476 | .eraseblocks = { {16384 * 1024, 1} }, |
| 7477 | .block_erase = spi_block_erase_c7, |
| 7478 | } |
| 7479 | }, |
| 7480 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7481 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7482 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7483 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7484 | .voltage = {1700, 2000}, |
| 7485 | }, |
| 7486 | |
| 7487 | { |
| 7488 | .vendor = "Numonyx", |
| 7489 | .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 7490 | .bustype = BUS_SPI, |
| 7491 | .manufacture_id = ST_ID, |
| 7492 | .model_id = ST_N25Q128__3E, |
| 7493 | .total_size = 16384, |
| 7494 | .page_size = 256, |
| 7495 | /* supports SFDP */ |
| 7496 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7497 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7498 | .tested = TEST_UNTESTED, |
| 7499 | .probe = probe_spi_rdid, |
| 7500 | .probe_timing = TIMING_ZERO, |
| 7501 | .block_erasers = { |
| 7502 | { |
| 7503 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 7504 | .block_erase = spi_block_erase_20, |
| 7505 | }, { |
| 7506 | .eraseblocks = { {64 * 1024, 256} }, |
| 7507 | .block_erase = spi_block_erase_d8, |
| 7508 | }, { |
| 7509 | .eraseblocks = { {16384 * 1024, 1} }, |
| 7510 | .block_erase = spi_block_erase_c7, |
| 7511 | } |
| 7512 | }, |
| 7513 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7514 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7515 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7516 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7517 | .voltage = {2700, 3600}, |
| 7518 | }, |
| 7519 | |
| 7520 | { |
| 7521 | .vendor = "Numonyx", |
| 7522 | .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 7523 | .bustype = BUS_SPI, |
| 7524 | .manufacture_id = ST_ID, |
| 7525 | .model_id = ST_N25Q256__1E, |
| 7526 | .total_size = 32768, |
| 7527 | .page_size = 256, |
| 7528 | /* supports SFDP */ |
| 7529 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7530 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7531 | .tested = TEST_BAD_REW, |
| 7532 | .probe = probe_spi_rdid, |
| 7533 | .probe_timing = TIMING_ZERO, |
| 7534 | .block_erasers = { |
| 7535 | { |
| 7536 | .eraseblocks = { {4 * 1024, 8192 } }, |
| 7537 | .block_erase = spi_block_erase_20, |
| 7538 | }, { |
| 7539 | .eraseblocks = { {64 * 1024, 512} }, |
| 7540 | .block_erase = spi_block_erase_d8, |
| 7541 | }, { |
| 7542 | .eraseblocks = { {32768 * 1024, 1} }, |
| 7543 | .block_erase = spi_block_erase_c7, |
| 7544 | } |
| 7545 | }, |
| 7546 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7547 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7548 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7549 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7550 | .voltage = {1700, 2000}, |
| 7551 | }, |
| 7552 | |
| 7553 | { |
| 7554 | .vendor = "Numonyx", |
| 7555 | .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 7556 | .bustype = BUS_SPI, |
| 7557 | .manufacture_id = ST_ID, |
| 7558 | .model_id = ST_N25Q256__3E, |
| 7559 | .total_size = 32768, |
| 7560 | .page_size = 256, |
| 7561 | /* supports SFDP */ |
| 7562 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7563 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7564 | .tested = TEST_BAD_REW, |
| 7565 | .probe = probe_spi_rdid, |
| 7566 | .probe_timing = TIMING_ZERO, |
| 7567 | .block_erasers = { |
| 7568 | { |
| 7569 | .eraseblocks = { {4 * 1024, 8192 } }, |
| 7570 | .block_erase = spi_block_erase_20, |
| 7571 | }, { |
| 7572 | .eraseblocks = { {64 * 1024, 512} }, |
| 7573 | .block_erase = spi_block_erase_d8, |
| 7574 | }, { |
| 7575 | .eraseblocks = { {32768 * 1024, 1} }, |
| 7576 | .block_erase = spi_block_erase_c7, |
| 7577 | } |
| 7578 | }, |
| 7579 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7580 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7581 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7582 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7583 | .voltage = {2700, 3600}, |
| 7584 | }, |
| 7585 | |
| 7586 | { |
| 7587 | .vendor = "Numonyx", |
| 7588 | .name = "N25Q512..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 7589 | .bustype = BUS_SPI, |
| 7590 | .manufacture_id = ST_ID, |
| 7591 | .model_id = ST_N25Q512__1E, |
| 7592 | .total_size = 65536, |
| 7593 | .page_size = 256, |
| 7594 | /* supports SFDP */ |
| 7595 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7596 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7597 | .tested = TEST_BAD_REW, |
| 7598 | .probe = probe_spi_rdid, |
| 7599 | .probe_timing = TIMING_ZERO, |
| 7600 | .block_erasers = { |
| 7601 | { |
| 7602 | .eraseblocks = { {4 * 1024, 16384 } }, |
| 7603 | .block_erase = spi_block_erase_20, |
| 7604 | }, { |
| 7605 | .eraseblocks = { {64 * 1024, 1024 } }, |
| 7606 | .block_erase = spi_block_erase_d8, |
| 7607 | }, { |
| 7608 | .eraseblocks = { {32 * 1024 * 1024, 2 } }, |
| 7609 | .block_erase = spi_block_erase_c4, |
| 7610 | }, { /* Some models have a bulk erase command too. */ |
| 7611 | .eraseblocks = { {64 * 1024 * 1024, 1 } }, |
| 7612 | .block_erase = spi_block_erase_c7, |
| 7613 | } |
| 7614 | }, |
| 7615 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7616 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7617 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7618 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7619 | .voltage = {1700, 2000}, |
| 7620 | }, |
| 7621 | |
| 7622 | { |
| 7623 | .vendor = "Numonyx", |
| 7624 | .name = "N25Q512..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 7625 | .bustype = BUS_SPI, |
| 7626 | .manufacture_id = ST_ID, |
| 7627 | .model_id = ST_N25Q512__3E, |
| 7628 | .total_size = 65536, |
| 7629 | .page_size = 256, |
| 7630 | /* supports SFDP */ |
| 7631 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7632 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7633 | .tested = TEST_BAD_REW, |
| 7634 | .probe = probe_spi_rdid, |
| 7635 | .probe_timing = TIMING_ZERO, |
| 7636 | .block_erasers = { |
| 7637 | { |
| 7638 | .eraseblocks = { {4 * 1024, 16384 } }, |
| 7639 | .block_erase = spi_block_erase_20, |
| 7640 | }, { |
| 7641 | .eraseblocks = { {64 * 1024, 1024 } }, |
| 7642 | .block_erase = spi_block_erase_d8, |
| 7643 | }, { |
| 7644 | .eraseblocks = { {32 * 1024 * 1024, 2 } }, |
| 7645 | .block_erase = spi_block_erase_c4, |
| 7646 | }, { /* Some models have a bulk erase command too. */ |
| 7647 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 7648 | .block_erase = spi_block_erase_c7, |
| 7649 | } |
| 7650 | }, |
| 7651 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7652 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7653 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7654 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7655 | .voltage = {2700, 3600}, |
| 7656 | }, |
| 7657 | |
| 7658 | { |
| 7659 | .vendor = "Numonyx", |
| 7660 | .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */ |
| 7661 | .bustype = BUS_SPI, |
| 7662 | .manufacture_id = ST_ID, |
| 7663 | .model_id = ST_N25Q00A__3E, |
| 7664 | .total_size = 131072, |
| 7665 | .page_size = 256, |
| 7666 | /* supports SFDP */ |
| 7667 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7668 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7669 | .tested = TEST_BAD_REW, |
| 7670 | .probe = probe_spi_rdid, |
| 7671 | .probe_timing = TIMING_ZERO, |
| 7672 | .block_erasers = { |
| 7673 | { |
| 7674 | .eraseblocks = { {4 * 1024, 32768 } }, |
| 7675 | .block_erase = spi_block_erase_20, |
| 7676 | }, { |
| 7677 | .eraseblocks = { {64 * 1024, 2048 } }, |
| 7678 | .block_erase = spi_block_erase_d8, |
| 7679 | }, { |
| 7680 | .eraseblocks = { {32 * 1024 * 1024, 4 } }, |
| 7681 | .block_erase = spi_block_erase_c4, |
| 7682 | } |
| 7683 | }, |
| 7684 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7685 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7686 | .write = spi_chip_write_256, /* Multi I/O supported */ |
Stefan Tauner | d956f82 | 2012-10-26 16:49:15 +0000 | [diff] [blame] | 7687 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
David Hendricks | 99f947d | 2012-10-04 14:41:20 +0000 | [diff] [blame] | 7688 | .voltage = {2700, 3600}, |
Niklas Söderlund | ae4294f | 2012-04-14 21:04:03 +0000 | [diff] [blame] | 7689 | }, |
| 7690 | |
| 7691 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7692 | .vendor = "PMC", |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 7693 | .name = "Pm25LD256C", |
| 7694 | .bustype = BUS_SPI, |
| 7695 | .manufacture_id = PMC_ID, |
| 7696 | .model_id = PMC_PM25LD256C, |
| 7697 | .total_size = 32, |
| 7698 | .page_size = 256, |
| 7699 | .feature_bits = FEATURE_WRSR_WREN, |
| 7700 | .tested = TEST_UNTESTED, |
| 7701 | .probe = probe_spi_rdid, |
| 7702 | .probe_timing = TIMING_ZERO, |
| 7703 | .block_erasers = |
| 7704 | { |
| 7705 | { |
| 7706 | .eraseblocks = { {4 * 1024, 8} }, |
| 7707 | .block_erase = spi_block_erase_20, |
| 7708 | }, { |
| 7709 | .eraseblocks = { {4 * 1024, 8} }, |
| 7710 | .block_erase = spi_block_erase_d7, |
| 7711 | }, { |
| 7712 | .eraseblocks = { {32 * 1024, 1} }, |
| 7713 | .block_erase = spi_block_erase_d8, |
| 7714 | }, { |
| 7715 | .eraseblocks = { {32 * 1024, 1} }, |
| 7716 | .block_erase = spi_block_erase_60, |
| 7717 | }, { |
| 7718 | .eraseblocks = { {32 * 1024, 1} }, |
| 7719 | .block_erase = spi_block_erase_c7, |
| 7720 | } |
| 7721 | }, |
| 7722 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 7723 | .unlock = spi_disable_blockprotect, |
| 7724 | .write = spi_chip_write_256, |
| 7725 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 7726 | .voltage = {2700, 3600}, |
| 7727 | }, |
| 7728 | { |
| 7729 | .vendor = "PMC", |
| 7730 | .name = "Pm25LD512(C)", |
| 7731 | .bustype = BUS_SPI, |
| 7732 | .manufacture_id = PMC_ID, |
| 7733 | .model_id = PMC_PM25LD512, |
| 7734 | .total_size = 64, |
| 7735 | .page_size = 256, |
| 7736 | .feature_bits = FEATURE_WRSR_WREN, |
| 7737 | .tested = TEST_OK_PREW, |
| 7738 | .probe = probe_spi_rdid, |
| 7739 | .probe_timing = TIMING_ZERO, |
| 7740 | .block_erasers = |
| 7741 | { |
| 7742 | { |
| 7743 | .eraseblocks = { {4 * 1024, 16} }, |
| 7744 | .block_erase = spi_block_erase_20, |
| 7745 | }, { |
| 7746 | .eraseblocks = { {4 * 1024, 16} }, |
| 7747 | .block_erase = spi_block_erase_d7, |
| 7748 | }, { |
| 7749 | .eraseblocks = { {32 * 1024, 2} }, |
| 7750 | .block_erase = spi_block_erase_d8, |
| 7751 | }, { |
| 7752 | .eraseblocks = { {64 * 1024, 1} }, |
| 7753 | .block_erase = spi_block_erase_60, |
| 7754 | }, { |
| 7755 | .eraseblocks = { {64 * 1024, 1} }, |
| 7756 | .block_erase = spi_block_erase_c7, |
| 7757 | } |
| 7758 | }, |
| 7759 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 7760 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 7761 | .write = spi_chip_write_256, |
| 7762 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 7763 | .voltage = {2300, 3600}, |
| 7764 | }, |
| 7765 | |
| 7766 | { |
| 7767 | .vendor = "PMC", |
| 7768 | .name = "Pm25LD010(C)", |
| 7769 | .bustype = BUS_SPI, |
| 7770 | .manufacture_id = PMC_ID, |
| 7771 | .model_id = PMC_PM25LD010, |
| 7772 | .total_size = 128, |
| 7773 | .page_size = 256, |
| 7774 | .feature_bits = FEATURE_WRSR_WREN, |
| 7775 | .tested = TEST_UNTESTED, |
| 7776 | .probe = probe_spi_rdid, |
| 7777 | .probe_timing = TIMING_ZERO, |
| 7778 | .block_erasers = |
| 7779 | { |
| 7780 | { |
| 7781 | .eraseblocks = { {4 * 1024, 32} }, |
| 7782 | .block_erase = spi_block_erase_20, |
| 7783 | }, { |
| 7784 | .eraseblocks = { {4 * 1024, 32} }, |
| 7785 | .block_erase = spi_block_erase_d7, |
| 7786 | }, { |
| 7787 | .eraseblocks = { {32 * 1024, 4} }, |
| 7788 | .block_erase = spi_block_erase_d8, |
| 7789 | }, { |
| 7790 | .eraseblocks = { {128 * 1024, 1} }, |
| 7791 | .block_erase = spi_block_erase_60, |
| 7792 | }, { |
| 7793 | .eraseblocks = { {128 * 1024, 1} }, |
| 7794 | .block_erase = spi_block_erase_c7, |
| 7795 | } |
| 7796 | }, |
| 7797 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 7798 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 7799 | .write = spi_chip_write_256, |
| 7800 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 7801 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */ |
| 7802 | }, |
| 7803 | |
| 7804 | { |
| 7805 | .vendor = "PMC", |
| 7806 | .name = "Pm25LD020(C)", |
| 7807 | .bustype = BUS_SPI, |
| 7808 | .manufacture_id = PMC_ID, |
| 7809 | .model_id = PMC_PM25LD020, |
| 7810 | .total_size = 256, |
| 7811 | .page_size = 256, |
| 7812 | .feature_bits = FEATURE_WRSR_WREN, |
| 7813 | .tested = TEST_UNTESTED, |
| 7814 | .probe = probe_spi_rdid, |
| 7815 | .probe_timing = TIMING_ZERO, |
| 7816 | .block_erasers = |
| 7817 | { |
| 7818 | { |
| 7819 | .eraseblocks = { {4 * 1024, 64} }, |
| 7820 | .block_erase = spi_block_erase_20, |
| 7821 | }, { |
| 7822 | .eraseblocks = { {4 * 1024, 64} }, |
| 7823 | .block_erase = spi_block_erase_d7, |
| 7824 | }, { |
| 7825 | .eraseblocks = { {64 * 1024, 4} }, |
| 7826 | .block_erase = spi_block_erase_d8, |
| 7827 | }, { |
| 7828 | .eraseblocks = { {256 * 1024, 1} }, |
| 7829 | .block_erase = spi_block_erase_60, |
| 7830 | }, { |
| 7831 | .eraseblocks = { {256 * 1024, 1} }, |
| 7832 | .block_erase = spi_block_erase_c7, |
| 7833 | } |
| 7834 | }, |
| 7835 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 7836 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 7837 | .write = spi_chip_write_256, |
| 7838 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 7839 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */ |
| 7840 | }, |
| 7841 | |
| 7842 | { |
| 7843 | .vendor = "PMC", |
| 7844 | .name = "Pm25LD040(C)", |
| 7845 | .bustype = BUS_SPI, |
| 7846 | .manufacture_id = PMC_ID, |
| 7847 | .model_id = PMC_PM25LV040, |
| 7848 | .total_size = 512, |
| 7849 | .page_size = 256, |
| 7850 | .feature_bits = FEATURE_WRSR_WREN, |
| 7851 | .tested = TEST_UNTESTED, |
| 7852 | .probe = probe_spi_rdid, |
| 7853 | .probe_timing = TIMING_ZERO, |
| 7854 | .block_erasers = |
| 7855 | { |
| 7856 | { |
| 7857 | .eraseblocks = { {4 * 1024, 128} }, |
| 7858 | .block_erase = spi_block_erase_20, |
| 7859 | }, { |
| 7860 | .eraseblocks = { {4 * 1024, 128} }, |
| 7861 | .block_erase = spi_block_erase_d7, |
| 7862 | }, { |
| 7863 | .eraseblocks = { {64 * 1024, 8} }, |
| 7864 | .block_erase = spi_block_erase_d8, |
| 7865 | }, { |
| 7866 | .eraseblocks = { {512 * 1024, 1} }, |
| 7867 | .block_erase = spi_block_erase_60, |
| 7868 | }, { |
| 7869 | .eraseblocks = { {512 * 1024, 1} }, |
| 7870 | .block_erase = spi_block_erase_c7, |
| 7871 | } |
| 7872 | }, |
| 7873 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 7874 | .unlock = spi_disable_blockprotect, |
| 7875 | .write = spi_chip_write_256, |
| 7876 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 7877 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */ |
| 7878 | }, |
| 7879 | |
| 7880 | { |
| 7881 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 7882 | .name = "Pm25LV512(A)", |
| 7883 | .bustype = BUS_SPI, |
| 7884 | .manufacture_id = PMC_ID, |
| 7885 | .model_id = PMC_PM25LV512, |
| 7886 | .total_size = 64, |
| 7887 | .page_size = 256, |
| 7888 | .feature_bits = FEATURE_WRSR_WREN, |
| 7889 | .tested = TEST_UNTESTED, |
| 7890 | .probe = probe_spi_res3, |
| 7891 | .probe_timing = TIMING_ZERO, |
| 7892 | .block_erasers = |
| 7893 | { |
| 7894 | { |
| 7895 | .eraseblocks = { {4 * 1024, 16} }, |
| 7896 | .block_erase = spi_block_erase_d7, |
| 7897 | }, { |
| 7898 | .eraseblocks = { {32 * 1024, 2} }, |
| 7899 | .block_erase = spi_block_erase_d8, |
| 7900 | }, { |
| 7901 | .eraseblocks = { {64 * 1024, 1} }, |
| 7902 | .block_erase = spi_block_erase_c7, |
| 7903 | } |
| 7904 | }, |
| 7905 | .printlock = spi_prettyprint_status_register_default_bp1, |
| 7906 | .unlock = spi_disable_blockprotect, |
| 7907 | .write = spi_chip_write_256, |
| 7908 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7909 | .voltage = {2700, 3600}, |
| 7910 | }, |
| 7911 | |
| 7912 | { |
| 7913 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7914 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7915 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7916 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7917 | .model_id = PMC_PM25LV010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7918 | .total_size = 128, |
| 7919 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7920 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7921 | .tested = TEST_UNTESTED, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 7922 | .probe = probe_spi_res3, |
| 7923 | .probe_timing = TIMING_ZERO, |
| 7924 | .block_erasers = |
| 7925 | { |
| 7926 | { |
| 7927 | .eraseblocks = { {4 * 1024, 32} }, |
| 7928 | .block_erase = spi_block_erase_d7, |
| 7929 | }, { |
| 7930 | .eraseblocks = { {32 * 1024, 4} }, |
| 7931 | .block_erase = spi_block_erase_d8, |
| 7932 | }, { |
| 7933 | .eraseblocks = { {128 * 1024, 1} }, |
| 7934 | .block_erase = spi_block_erase_c7, |
| 7935 | } |
| 7936 | }, |
| 7937 | .printlock = spi_prettyprint_status_register_default_bp1, |
| 7938 | .unlock = spi_disable_blockprotect, |
| 7939 | .write = spi_chip_write_256, |
| 7940 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7941 | .voltage = {2700, 3600}, |
| 7942 | }, |
| 7943 | |
| 7944 | { |
| 7945 | .vendor = "PMC", |
| 7946 | .name = "Pm25LV010A", |
| 7947 | .bustype = BUS_SPI, |
| 7948 | .manufacture_id = PMC_ID, |
| 7949 | .model_id = PMC_PM25LV010, |
| 7950 | .total_size = 128, |
| 7951 | .page_size = 256, |
| 7952 | .feature_bits = FEATURE_WRSR_WREN, |
| 7953 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7954 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7955 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7956 | .block_erasers = |
| 7957 | { |
| 7958 | { |
| 7959 | .eraseblocks = { {4 * 1024, 32} }, |
| 7960 | .block_erase = spi_block_erase_d7, |
| 7961 | }, { |
| 7962 | .eraseblocks = { {32 * 1024, 4} }, |
| 7963 | .block_erase = spi_block_erase_d8, |
| 7964 | }, { |
| 7965 | .eraseblocks = { {128 * 1024, 1} }, |
| 7966 | .block_erase = spi_block_erase_c7, |
| 7967 | } |
| 7968 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 7969 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7970 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7971 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 7972 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7973 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7974 | }, |
| 7975 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7976 | { |
| 7977 | .vendor = "PMC", |
| 7978 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7979 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7980 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7981 | .model_id = PMC_PM25LV020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7982 | .total_size = 256, |
| 7983 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7984 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7985 | .tested = TEST_UNTESTED, |
| 7986 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7987 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7988 | .block_erasers = |
| 7989 | { |
| 7990 | { |
| 7991 | .eraseblocks = { {4 * 1024, 64} }, |
| 7992 | .block_erase = spi_block_erase_d7, |
| 7993 | }, { |
| 7994 | .eraseblocks = { {64 * 1024, 4} }, |
| 7995 | .block_erase = spi_block_erase_d8, |
| 7996 | }, { |
| 7997 | .eraseblocks = { {256 * 1024, 1} }, |
| 7998 | .block_erase = spi_block_erase_c7, |
| 7999 | } |
| 8000 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8001 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8002 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8003 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8004 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8005 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8006 | }, |
| 8007 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8008 | { |
| 8009 | .vendor = "PMC", |
| 8010 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8011 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8012 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8013 | .model_id = PMC_PM25LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8014 | .total_size = 512, |
| 8015 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8016 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 8017 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8018 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8019 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8020 | .block_erasers = |
| 8021 | { |
| 8022 | { |
| 8023 | .eraseblocks = { {4 * 1024, 128} }, |
| 8024 | .block_erase = spi_block_erase_d7, |
| 8025 | }, { |
| 8026 | .eraseblocks = { {64 * 1024, 8} }, |
| 8027 | .block_erase = spi_block_erase_d8, |
| 8028 | }, { |
| 8029 | .eraseblocks = { {512 * 1024, 1} }, |
| 8030 | .block_erase = spi_block_erase_c7, |
| 8031 | } |
| 8032 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8033 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8034 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8035 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8036 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8037 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8038 | }, |
| 8039 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8040 | { |
| 8041 | .vendor = "PMC", |
| 8042 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8043 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8044 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8045 | .model_id = PMC_PM25LV080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8046 | .total_size = 1024, |
| 8047 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8048 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8049 | .tested = TEST_UNTESTED, |
| 8050 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8051 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8052 | .block_erasers = |
| 8053 | { |
| 8054 | { |
| 8055 | .eraseblocks = { {4 * 1024, 256} }, |
| 8056 | .block_erase = spi_block_erase_d7, |
| 8057 | }, { |
| 8058 | .eraseblocks = { {4 * 1024, 256} }, |
| 8059 | .block_erase = spi_block_erase_20, |
| 8060 | }, { |
| 8061 | .eraseblocks = { {64 * 1024, 16} }, |
| 8062 | .block_erase = spi_block_erase_d8, |
| 8063 | }, { |
| 8064 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8065 | .block_erase = spi_block_erase_60, |
| 8066 | }, { |
| 8067 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8068 | .block_erase = spi_block_erase_c7, |
| 8069 | } |
| 8070 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8071 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8072 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8073 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8074 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8075 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8076 | }, |
| 8077 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8078 | { |
| 8079 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8080 | .name = "Pm25LV016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8081 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8082 | .manufacture_id = PMC_ID, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8083 | .model_id = PMC_PM25LV016B, |
| 8084 | .total_size = 2048, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8085 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8086 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8087 | .tested = TEST_UNTESTED, |
| 8088 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8089 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8090 | .block_erasers = |
| 8091 | { |
| 8092 | { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8093 | .eraseblocks = { {4 * 1024, 512} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8094 | .block_erase = spi_block_erase_d7, |
| 8095 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8096 | .eraseblocks = { {4 * 1024, 512} }, |
| 8097 | .block_erase = spi_block_erase_20, |
| 8098 | }, { |
| 8099 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8100 | .block_erase = spi_block_erase_d8, |
| 8101 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8102 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8103 | .block_erase = spi_block_erase_60, |
| 8104 | }, { |
| 8105 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8106 | .block_erase = spi_block_erase_c7, |
| 8107 | } |
| 8108 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8109 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8110 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8111 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8112 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8113 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8114 | }, |
| 8115 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8116 | { |
| 8117 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8118 | .name = "Pm29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8119 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8120 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8121 | .model_id = PMC_PM29F002T, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8122 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8123 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8124 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 8125 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8126 | .probe = probe_jedec, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 8127 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8128 | .block_erasers = |
| 8129 | { |
| 8130 | { |
| 8131 | .eraseblocks = { |
| 8132 | {128 * 1024, 1}, |
| 8133 | {96 * 1024, 1}, |
| 8134 | {8 * 1024, 2}, |
| 8135 | {16 * 1024, 1}, |
| 8136 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8137 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8138 | }, { |
| 8139 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8140 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8141 | }, |
| 8142 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8143 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8144 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8145 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8146 | }, |
| 8147 | |
| 8148 | { |
| 8149 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8150 | .name = "Pm29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8151 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8152 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8153 | .model_id = PMC_PM29F002B, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8154 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8155 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8156 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8157 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8158 | .probe = probe_jedec, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8159 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8160 | .block_erasers = |
| 8161 | { |
| 8162 | { |
| 8163 | .eraseblocks = { |
| 8164 | {16 * 1024, 1}, |
| 8165 | {8 * 1024, 2}, |
| 8166 | {96 * 1024, 1}, |
| 8167 | {128 * 1024, 1}, |
| 8168 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8169 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8170 | }, { |
| 8171 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8172 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8173 | }, |
| 8174 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8175 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8176 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8177 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8178 | }, |
| 8179 | |
| 8180 | { |
| 8181 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8182 | .name = "Pm39LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8183 | .bustype = BUS_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8184 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8185 | .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] | 8186 | .total_size = 128, |
| 8187 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8188 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 8189 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8190 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8191 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8192 | .block_erasers = |
| 8193 | { |
| 8194 | { |
| 8195 | .eraseblocks = { {4 * 1024, 32} }, |
| 8196 | .block_erase = erase_sector_jedec, |
| 8197 | }, { |
| 8198 | .eraseblocks = { {64 * 1024, 2} }, |
| 8199 | .block_erase = erase_block_jedec, |
| 8200 | }, { |
| 8201 | .eraseblocks = { {128 * 1024, 1} }, |
| 8202 | .block_erase = erase_chip_block_jedec, |
| 8203 | } |
| 8204 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8205 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8206 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8207 | .voltage = {2700, 3600}, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8208 | }, |
| 8209 | |
| 8210 | { |
| 8211 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8212 | .name = "Pm39LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8213 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8214 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8215 | .model_id = PMC_PM39LV020, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8216 | .total_size = 256, |
| 8217 | .page_size = 4096, |
| 8218 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 8219 | .tested = TEST_UNTESTED, |
| 8220 | .probe = probe_jedec, |
| 8221 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8222 | .block_erasers = |
| 8223 | { |
| 8224 | { |
| 8225 | .eraseblocks = { {4 * 1024, 64} }, |
| 8226 | .block_erase = erase_sector_jedec, |
| 8227 | }, { |
| 8228 | .eraseblocks = { {64 * 1024, 4} }, |
| 8229 | .block_erase = erase_block_jedec, |
| 8230 | }, { |
| 8231 | .eraseblocks = { {256 * 1024, 1} }, |
| 8232 | .block_erase = erase_chip_block_jedec, |
| 8233 | } |
| 8234 | }, |
| 8235 | .write = write_jedec_1, |
| 8236 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8237 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8238 | }, |
| 8239 | |
| 8240 | { |
| 8241 | .vendor = "PMC", |
| 8242 | .name = "Pm39LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8243 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8244 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8245 | .model_id = PMC_PM39LV040, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8246 | .total_size = 512, |
| 8247 | .page_size = 4096, |
| 8248 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 8249 | .tested = TEST_OK_PR, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8250 | .probe = probe_jedec, |
| 8251 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8252 | .block_erasers = |
| 8253 | { |
| 8254 | { |
| 8255 | .eraseblocks = { {4 * 1024, 128} }, |
| 8256 | .block_erase = erase_sector_jedec, |
| 8257 | }, { |
| 8258 | .eraseblocks = { {64 * 1024, 8} }, |
| 8259 | .block_erase = erase_block_jedec, |
| 8260 | }, { |
| 8261 | .eraseblocks = { {512 * 1024, 1} }, |
| 8262 | .block_erase = erase_chip_block_jedec, |
| 8263 | } |
| 8264 | }, |
| 8265 | .write = write_jedec_1, |
| 8266 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8267 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8268 | }, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 8269 | |
| 8270 | { |
| 8271 | .vendor = "PMC", |
| 8272 | .name = "Pm39LV512", |
| 8273 | .bustype = BUS_PARALLEL, |
| 8274 | .manufacture_id = PMC_ID_NOPREFIX, |
| 8275 | .model_id = PMC_PM39LV512, |
| 8276 | .total_size = 64, |
| 8277 | .page_size = 4096, |
| 8278 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 8279 | .tested = TEST_OK_PREW, |
| 8280 | .probe = probe_jedec, |
| 8281 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8282 | .block_erasers = |
| 8283 | { |
| 8284 | { |
| 8285 | .eraseblocks = { {4 * 1024, 16} }, |
| 8286 | .block_erase = erase_sector_jedec, |
| 8287 | }, { |
| 8288 | .eraseblocks = { {64 * 1024, 1} }, |
| 8289 | .block_erase = erase_block_jedec, |
| 8290 | }, { |
| 8291 | .eraseblocks = { {64 * 1024, 1} }, |
| 8292 | .block_erase = erase_chip_block_jedec, |
| 8293 | } |
| 8294 | }, |
| 8295 | .write = write_jedec_1, |
| 8296 | .read = read_memmapped, |
| 8297 | .voltage = {2700, 3600}, |
| 8298 | }, |
| 8299 | |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8300 | { |
| 8301 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8302 | .name = "Pm49FL002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8303 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8304 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8305 | .model_id = PMC_PM49FL002, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8306 | .total_size = 256, |
| 8307 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8308 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 8309 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 8310 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8311 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8312 | .block_erasers = |
| 8313 | { |
| 8314 | { |
| 8315 | .eraseblocks = { {4 * 1024, 64} }, |
| 8316 | .block_erase = erase_sector_jedec, |
| 8317 | }, { |
| 8318 | .eraseblocks = { {16 * 1024, 16} }, |
| 8319 | .block_erase = erase_block_jedec, |
| 8320 | }, { |
| 8321 | .eraseblocks = { {256 * 1024, 1} }, |
| 8322 | .block_erase = erase_chip_block_jedec, |
| 8323 | } |
| 8324 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 8325 | .unlock = unlock_49fl00x, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 8326 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8327 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8328 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8329 | }, |
| 8330 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8331 | { |
| 8332 | .vendor = "PMC", |
| 8333 | .name = "Pm49FL004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8334 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8335 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8336 | .model_id = PMC_PM49FL004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8337 | .total_size = 512, |
| 8338 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8339 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 8340 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 8341 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8342 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8343 | .block_erasers = |
| 8344 | { |
| 8345 | { |
| 8346 | .eraseblocks = { {4 * 1024, 128} }, |
| 8347 | .block_erase = erase_sector_jedec, |
| 8348 | }, { |
| 8349 | .eraseblocks = { {64 * 1024, 8} }, |
| 8350 | .block_erase = erase_block_jedec, |
| 8351 | }, { |
| 8352 | .eraseblocks = { {512 * 1024, 1} }, |
| 8353 | .block_erase = erase_chip_block_jedec, |
| 8354 | } |
| 8355 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 8356 | .unlock = unlock_49fl00x, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 8357 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8358 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8359 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8360 | }, |
| 8361 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8362 | { |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 8363 | .vendor = "Sanyo", |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 8364 | .name = "LE25FW203A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8365 | .bustype = BUS_SPI, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 8366 | .manufacture_id = SANYO_ID, |
| 8367 | .model_id = SANYO_LE25FW203A, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 8368 | .total_size = 256, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 8369 | .page_size = 256, |
| 8370 | .tested = TEST_UNTESTED, |
| 8371 | .probe = probe_spi_rdid, |
| 8372 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8373 | .block_erasers = |
| 8374 | { |
| 8375 | { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 8376 | .eraseblocks = { {256, 1024} }, |
| 8377 | .block_erase = spi_block_erase_db, |
| 8378 | }, { |
| 8379 | .eraseblocks = { {64 * 1024, 4} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8380 | .block_erase = spi_block_erase_d8, |
| 8381 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 8382 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8383 | .block_erase = spi_block_erase_c7, |
| 8384 | } |
| 8385 | }, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 8386 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 8387 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 8388 | .write = spi_chip_write_256, |
| 8389 | .read = spi_chip_read, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 8390 | .voltage = {2700, 3600}, |
| 8391 | }, |
| 8392 | |
| 8393 | { |
| 8394 | .vendor = "Sanyo", |
| 8395 | .name = "LE25FW403A", |
| 8396 | .bustype = BUS_SPI, |
| 8397 | .manufacture_id = SANYO_ID, |
| 8398 | .model_id = SANYO_LE25FW403A, |
| 8399 | .total_size = 512, |
| 8400 | .page_size = 256, |
| 8401 | .tested = TEST_UNTESTED, |
| 8402 | .probe = probe_spi_rdid, |
| 8403 | .probe_timing = TIMING_ZERO, |
| 8404 | .block_erasers = { |
| 8405 | { |
| 8406 | .eraseblocks = { {256, 2 * 1024} }, |
| 8407 | .block_erase = spi_block_erase_db, |
| 8408 | }, { |
| 8409 | .eraseblocks = { {64 * 1024, 8} }, |
| 8410 | .block_erase = spi_block_erase_d8, |
| 8411 | }, { |
| 8412 | .eraseblocks = { {512 * 1024, 1} }, |
| 8413 | .block_erase = spi_block_erase_c7, |
| 8414 | } |
| 8415 | }, |
| 8416 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 8417 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 8418 | .write = spi_chip_write_256, |
| 8419 | .read = spi_chip_read, |
| 8420 | .voltage = {2700, 3600}, |
| 8421 | }, |
| 8422 | |
| 8423 | { |
| 8424 | .vendor = "Sanyo", |
| 8425 | .name = "LE25FW418A", |
| 8426 | .bustype = BUS_SPI, |
| 8427 | .manufacture_id = SANYO_ID, |
| 8428 | .model_id = SANYO_LE25FW418A, |
| 8429 | .total_size = 512, |
| 8430 | .page_size = 256, |
| 8431 | .feature_bits = FEATURE_WRSR_WREN, |
| 8432 | .tested = TEST_UNTESTED, |
| 8433 | .probe = probe_spi_res2, |
| 8434 | .probe_timing = TIMING_ZERO, |
| 8435 | .block_erasers = { |
| 8436 | { |
| 8437 | .eraseblocks = { {4 * 1024, 128} }, |
| 8438 | .block_erase = spi_block_erase_d7, |
| 8439 | }, { |
| 8440 | .eraseblocks = { {64 * 1024, 8} }, |
| 8441 | .block_erase = spi_block_erase_d8, |
| 8442 | }, { |
| 8443 | .eraseblocks = { {512 * 1024, 1} }, |
| 8444 | .block_erase = spi_block_erase_c7, |
| 8445 | } |
| 8446 | }, |
| 8447 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 8448 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 8449 | .write = spi_chip_write_256, |
| 8450 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 8451 | .voltage = {2700, 3600}, |
| 8452 | }, |
| 8453 | |
| 8454 | { |
| 8455 | .vendor = "Sanyo", |
| 8456 | .name = "LE25FW806", |
| 8457 | .bustype = BUS_SPI, |
| 8458 | .manufacture_id = SANYO_ID, |
| 8459 | .model_id = SANYO_LE25FW806, |
| 8460 | .total_size = 1024, |
| 8461 | .page_size = 256, |
| 8462 | .feature_bits = FEATURE_WRSR_WREN, |
| 8463 | .tested = TEST_UNTESTED, |
| 8464 | .probe = probe_spi_res2, |
| 8465 | .probe_timing = TIMING_ZERO, |
| 8466 | .block_erasers = { |
| 8467 | { |
| 8468 | .eraseblocks = { {4 * 1024, 256} }, |
| 8469 | .block_erase = spi_block_erase_20, |
| 8470 | }, { |
| 8471 | .eraseblocks = { {4 * 1024, 256} }, |
| 8472 | .block_erase = spi_block_erase_d7, |
| 8473 | }, { |
| 8474 | .eraseblocks = { {64 * 1024, 16} }, |
| 8475 | .block_erase = spi_block_erase_d8, |
| 8476 | }, { |
| 8477 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8478 | .block_erase = spi_block_erase_c7, |
| 8479 | } |
| 8480 | }, |
| 8481 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 8482 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 8483 | .write = spi_chip_write_256, |
| 8484 | .read = spi_chip_read, |
| 8485 | .voltage = {2700, 3600}, |
| 8486 | }, |
| 8487 | |
| 8488 | { |
| 8489 | .vendor = "Sanyo", |
| 8490 | .name = "LE25FW808", |
| 8491 | .bustype = BUS_SPI, |
| 8492 | .manufacture_id = SANYO_ID, |
| 8493 | .model_id = SANYO_LE25FW808, |
| 8494 | .total_size = 1024, |
| 8495 | .page_size = 256, |
| 8496 | .feature_bits = FEATURE_WRSR_WREN, |
| 8497 | .tested = TEST_UNTESTED, |
| 8498 | .probe = probe_spi_res2, |
| 8499 | .probe_timing = TIMING_ZERO, |
| 8500 | .block_erasers = { |
| 8501 | { |
| 8502 | .eraseblocks = { {8 * 1024, 128} }, |
| 8503 | .block_erase = spi_block_erase_d7, |
| 8504 | }, { |
| 8505 | .eraseblocks = { {64 * 1024, 16} }, |
| 8506 | .block_erase = spi_block_erase_d8, |
| 8507 | }, { |
| 8508 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8509 | .block_erase = spi_block_erase_c7, |
| 8510 | } |
| 8511 | }, |
| 8512 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 8513 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 8514 | .write = spi_chip_write_256, |
| 8515 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 8516 | .voltage = {2700, 3600}, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 8517 | }, |
| 8518 | |
| 8519 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8520 | .vendor = "Sharp", |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 8521 | .name = "LH28F008BJT-BTLZ1", |
| 8522 | .bustype = BUS_PARALLEL, |
| 8523 | .manufacture_id = SHARP_ID, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 8524 | .model_id = SHARP_LH28F008BJ__PB, |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 8525 | .total_size = 1024, |
| 8526 | .page_size = 64 * 1024, |
| 8527 | .tested = TEST_OK_PREW, |
| 8528 | .probe = probe_82802ab, |
| 8529 | .probe_timing = TIMING_ZERO, |
| 8530 | .block_erasers = |
| 8531 | { |
| 8532 | { |
| 8533 | .eraseblocks = { |
| 8534 | {8 * 1024, 8}, |
| 8535 | {64 * 1024, 15} |
| 8536 | }, |
| 8537 | .block_erase = erase_block_82802ab, |
| 8538 | }, { |
| 8539 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8540 | .block_erase = erase_sector_49lfxxxc, |
| 8541 | } |
| 8542 | }, |
| 8543 | .unlock = unlock_lh28f008bjt, |
| 8544 | .write = write_82802ab, |
| 8545 | .read = read_memmapped, |
| 8546 | .voltage = {2700, 3600}, |
| 8547 | }, |
| 8548 | |
| 8549 | { |
| 8550 | .vendor = "Sharp", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8551 | .name = "LHF00L04", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8552 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8553 | .manufacture_id = SHARP_ID, |
| 8554 | .model_id = SHARP_LHF00L04, |
| 8555 | .total_size = 1024, |
| 8556 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8557 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8558 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8559 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 8560 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 8561 | .block_erasers = |
| 8562 | { |
| 8563 | { |
| 8564 | .eraseblocks = { |
| 8565 | {64 * 1024, 15}, |
| 8566 | {8 * 1024, 8} |
| 8567 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 8568 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 8569 | }, { |
| 8570 | .eraseblocks = { |
| 8571 | {1024 * 1024, 1} |
| 8572 | }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8573 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 8574 | }, |
| 8575 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 8576 | .unlock = unlock_82802ab, |
| 8577 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8578 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8579 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8580 | }, |
| 8581 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8582 | { |
| 8583 | .vendor = "Spansion", |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8584 | .name = "S25FL004A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8585 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8586 | .manufacture_id = SPANSION_ID, |
| 8587 | .model_id = SPANSION_S25FL004A, |
| 8588 | .total_size = 512, |
| 8589 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8590 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8591 | .tested = TEST_UNTESTED, |
| 8592 | .probe = probe_spi_rdid, |
| 8593 | .probe_timing = TIMING_ZERO, |
| 8594 | .block_erasers = |
| 8595 | { |
| 8596 | { |
| 8597 | .eraseblocks = { {64 * 1024, 8} }, |
| 8598 | .block_erase = spi_block_erase_d8, |
| 8599 | }, { |
| 8600 | .eraseblocks = { {512 * 1024, 1} }, |
| 8601 | .block_erase = spi_block_erase_c7, |
| 8602 | } |
| 8603 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8604 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8605 | .unlock = spi_disable_blockprotect, |
| 8606 | .write = spi_chip_write_256, |
| 8607 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8608 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8609 | }, |
| 8610 | |
| 8611 | { |
| 8612 | .vendor = "Spansion", |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 8613 | .name = "S25FL008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8614 | .bustype = BUS_SPI, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 8615 | .manufacture_id = SPANSION_ID, |
| 8616 | .model_id = SPANSION_S25FL008A, |
| 8617 | .total_size = 1024, |
| 8618 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8619 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 8620 | .tested = TEST_OK_PRE, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 8621 | .probe = probe_spi_rdid, |
| 8622 | .probe_timing = TIMING_ZERO, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 8623 | .block_erasers = |
| 8624 | { |
| 8625 | { |
| 8626 | .eraseblocks = { {64 * 1024, 16} }, |
| 8627 | .block_erase = spi_block_erase_d8, |
| 8628 | }, { |
| 8629 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8630 | .block_erase = spi_block_erase_c7, |
| 8631 | } |
| 8632 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8633 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8634 | .unlock = spi_disable_blockprotect, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 8635 | .write = spi_chip_write_256, |
| 8636 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8637 | .voltage = {2700, 3600}, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 8638 | }, |
| 8639 | |
| 8640 | { |
| 8641 | .vendor = "Spansion", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8642 | .name = "S25FL016A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8643 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8644 | .manufacture_id = SPANSION_ID, |
| 8645 | .model_id = SPANSION_S25FL016A, |
| 8646 | .total_size = 2048, |
| 8647 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8648 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 8649 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8650 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8651 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8652 | .block_erasers = |
| 8653 | { |
| 8654 | { |
| 8655 | .eraseblocks = { {64 * 1024, 32} }, |
| 8656 | .block_erase = spi_block_erase_d8, |
| 8657 | }, { |
| 8658 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8659 | .block_erase = spi_block_erase_c7, |
| 8660 | } |
| 8661 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8662 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8663 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8664 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8665 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8666 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8667 | }, |
| 8668 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8669 | { |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8670 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 8671 | .name = "S25FL032A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8672 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8673 | .manufacture_id = SPANSION_ID, |
| 8674 | .model_id = SPANSION_S25FL032A, |
| 8675 | .total_size = 4096, |
| 8676 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8677 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 8678 | .tested = TEST_OK_PREW, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8679 | .probe = probe_spi_rdid, |
| 8680 | .probe_timing = TIMING_ZERO, |
| 8681 | .block_erasers = |
| 8682 | { |
| 8683 | { |
| 8684 | .eraseblocks = { {64 * 1024, 64} }, |
| 8685 | .block_erase = spi_block_erase_d8, |
| 8686 | }, { |
| 8687 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8688 | .block_erase = spi_block_erase_c7, |
| 8689 | } |
| 8690 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8691 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8692 | .unlock = spi_disable_blockprotect, |
| 8693 | .write = spi_chip_write_256, |
| 8694 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8695 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8696 | }, |
| 8697 | |
| 8698 | { |
| 8699 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 8700 | .name = "S25FL064A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8701 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8702 | .manufacture_id = SPANSION_ID, |
| 8703 | .model_id = SPANSION_S25FL064A, |
| 8704 | .total_size = 8192, |
| 8705 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8706 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8707 | .tested = TEST_OK_PREW, |
| 8708 | .probe = probe_spi_rdid, |
| 8709 | .probe_timing = TIMING_ZERO, |
| 8710 | .block_erasers = |
| 8711 | { |
| 8712 | { |
| 8713 | .eraseblocks = { {64 * 1024, 128} }, |
| 8714 | .block_erase = spi_block_erase_d8, |
| 8715 | }, { |
| 8716 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8717 | .block_erase = spi_block_erase_c7, |
| 8718 | } |
| 8719 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8720 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8721 | .unlock = spi_disable_blockprotect, |
| 8722 | .write = spi_chip_write_256, |
| 8723 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8724 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8725 | }, |
| 8726 | |
| 8727 | { |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 8728 | .vendor = "Spansion", |
| 8729 | .name = "S25FL204K", |
| 8730 | .bustype = BUS_SPI, |
| 8731 | .manufacture_id = SPANSION_ID, |
| 8732 | .model_id = SPANSION_S25FL204, |
| 8733 | .total_size = 512, |
| 8734 | .page_size = 256, |
| 8735 | .feature_bits = FEATURE_WRSR_WREN, |
| 8736 | .tested = TEST_UNTESTED, |
| 8737 | .probe = probe_spi_rdid, |
| 8738 | .probe_timing = TIMING_ZERO, |
| 8739 | .block_erasers = { |
| 8740 | { |
| 8741 | .eraseblocks = { {4 * 1024, 128} }, |
| 8742 | .block_erase = spi_block_erase_20, |
| 8743 | }, { |
| 8744 | .eraseblocks = { {64 * 1024, 8} }, |
| 8745 | .block_erase = spi_block_erase_d8, |
| 8746 | }, { |
| 8747 | .eraseblocks = { { 512 * 1024, 1} }, |
| 8748 | .block_erase = spi_block_erase_60, |
| 8749 | }, { |
| 8750 | .eraseblocks = { { 512 * 1024, 1} }, |
| 8751 | .block_erase = spi_block_erase_c7, |
| 8752 | } |
| 8753 | }, |
| 8754 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 8755 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 8756 | .write = spi_chip_write_256, |
| 8757 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 8758 | .voltage = {2700, 3600}, |
| 8759 | }, |
| 8760 | |
| 8761 | { |
| 8762 | .vendor = "Spansion", |
| 8763 | .name = "S25FL208K", |
| 8764 | .bustype = BUS_SPI, |
| 8765 | .manufacture_id = SPANSION_ID, |
| 8766 | .model_id = SPANSION_S25FL208, |
| 8767 | .total_size = 1024, |
| 8768 | .page_size = 256, |
| 8769 | .feature_bits = FEATURE_WRSR_WREN, |
| 8770 | .tested = TEST_UNTESTED, |
| 8771 | .probe = probe_spi_rdid, |
| 8772 | .probe_timing = TIMING_ZERO, |
| 8773 | .block_erasers = { |
| 8774 | { |
| 8775 | .eraseblocks = { {4 * 1024, 256} }, |
| 8776 | .block_erase = spi_block_erase_20, |
| 8777 | }, { |
| 8778 | .eraseblocks = { {64 * 1024, 16} }, |
| 8779 | .block_erase = spi_block_erase_d8, |
| 8780 | }, { |
| 8781 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 8782 | .block_erase = spi_block_erase_60, |
| 8783 | }, { |
| 8784 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 8785 | .block_erase = spi_block_erase_c7, |
| 8786 | } |
| 8787 | }, |
| 8788 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 8789 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 8790 | .write = spi_chip_write_256, |
| 8791 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 8792 | .voltage = {2700, 3600}, |
| 8793 | }, |
| 8794 | |
| 8795 | { |
| 8796 | .vendor = "Spansion", |
| 8797 | .name = "S25FL116K/S25FL216K", |
| 8798 | .bustype = BUS_SPI, |
| 8799 | .manufacture_id = SPANSION_ID, |
| 8800 | .model_id = SPANSION_S25FL216, |
| 8801 | .total_size = 2048, |
| 8802 | .page_size = 256, |
| 8803 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */ |
| 8804 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8805 | .tested = TEST_UNTESTED, |
| 8806 | .probe = probe_spi_rdid, |
| 8807 | .probe_timing = TIMING_ZERO, |
| 8808 | .block_erasers = { |
| 8809 | { |
| 8810 | .eraseblocks = { {4 * 1024, 512} }, |
| 8811 | .block_erase = spi_block_erase_20, |
| 8812 | }, { |
| 8813 | .eraseblocks = { {64 * 1024, 32} }, |
| 8814 | .block_erase = spi_block_erase_d8, |
| 8815 | }, { |
| 8816 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 8817 | .block_erase = spi_block_erase_60, |
| 8818 | }, { |
| 8819 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 8820 | .block_erase = spi_block_erase_c7, |
| 8821 | } |
| 8822 | }, |
| 8823 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 8824 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 8825 | .write = spi_chip_write_256, |
| 8826 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 8827 | .voltage = {2700, 3600}, |
| 8828 | }, |
| 8829 | |
| 8830 | { |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 8831 | .vendor = "Spansion", |
| 8832 | .name = "S25FL128S......0", /* uniform 256kB sectors */ |
| 8833 | .bustype = BUS_SPI, |
| 8834 | .manufacture_id = SPANSION_ID, |
| 8835 | .model_id = SPANSION_S25FL128, |
| 8836 | .total_size = 16384, |
| 8837 | .page_size = 256, |
| 8838 | /* supports 4B addressing */ |
| 8839 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 8840 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8841 | .tested = TEST_UNTESTED, |
| 8842 | .probe = probe_spi_rdid, |
| 8843 | .probe_timing = TIMING_ZERO, |
| 8844 | .block_erasers = { |
| 8845 | { |
| 8846 | .eraseblocks = { {4 * 1024, 4096} }, |
| 8847 | .block_erase = spi_block_erase_20, |
| 8848 | }, { |
| 8849 | .eraseblocks = { {256 * 1024, 64} }, |
| 8850 | .block_erase = spi_block_erase_d8, |
| 8851 | }, { |
| 8852 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 8853 | .block_erase = spi_block_erase_60, |
| 8854 | }, { |
| 8855 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 8856 | .block_erase = spi_block_erase_c7, |
| 8857 | } |
| 8858 | }, |
| 8859 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 8860 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 8861 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 8862 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8863 | .voltage = {2700, 3600}, |
| 8864 | }, |
| 8865 | |
| 8866 | { |
| 8867 | .vendor = "Spansion", |
| 8868 | .name = "S25FL256S......0", /* uniform 256kB sectors */ |
| 8869 | .bustype = BUS_SPI, |
| 8870 | .manufacture_id = SPANSION_ID, |
| 8871 | .model_id = SPANSION_S25FL256, |
| 8872 | .total_size = 32768, |
| 8873 | .page_size = 256, |
| 8874 | /* supports 4B addressing */ |
| 8875 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 8876 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8877 | .tested = TEST_BAD_REW, |
| 8878 | .probe = probe_spi_rdid, |
| 8879 | .probe_timing = TIMING_ZERO, |
| 8880 | .block_erasers = { |
| 8881 | { |
| 8882 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8883 | .block_erase = spi_block_erase_20, |
| 8884 | }, { |
| 8885 | .eraseblocks = { {256 * 1024, 128} }, |
| 8886 | .block_erase = spi_block_erase_d8, |
| 8887 | }, { |
| 8888 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 8889 | .block_erase = spi_block_erase_60, |
| 8890 | }, { |
| 8891 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 8892 | .block_erase = spi_block_erase_c7, |
| 8893 | } |
| 8894 | }, |
| 8895 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 8896 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 8897 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 8898 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8899 | .voltage = {2700, 3600}, |
| 8900 | }, |
| 8901 | |
| 8902 | { |
| 8903 | .vendor = "Spansion", |
| 8904 | .name = "S25FL512S", |
| 8905 | .bustype = BUS_SPI, |
| 8906 | .manufacture_id = SPANSION_ID, |
| 8907 | .model_id = SPANSION_S25FL512, |
| 8908 | .total_size = 65536, |
| 8909 | .page_size = 256, |
| 8910 | /* supports 4B addressing */ |
| 8911 | /* supports SFDP */ |
| 8912 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 8913 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8914 | .tested = TEST_BAD_REW, |
| 8915 | .probe = probe_spi_rdid, |
| 8916 | .probe_timing = TIMING_ZERO, |
| 8917 | .block_erasers = { |
| 8918 | { |
| 8919 | .eraseblocks = { {256 * 1024, 256} }, |
| 8920 | .block_erase = spi_block_erase_d8, |
| 8921 | }, { |
| 8922 | .eraseblocks = { { 65536 * 1024, 1} }, |
| 8923 | .block_erase = spi_block_erase_60, |
| 8924 | }, { |
| 8925 | .eraseblocks = { { 65536 * 1024, 1} }, |
| 8926 | .block_erase = spi_block_erase_c7, |
| 8927 | } |
| 8928 | }, |
| 8929 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 8930 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 8931 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 8932 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8933 | .voltage = {2700, 3600}, |
| 8934 | }, |
| 8935 | |
| 8936 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8937 | .vendor = "SST", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 8938 | .name = "SST25LF040A", |
| 8939 | .bustype = BUS_SPI, |
| 8940 | .manufacture_id = SST_ID, |
| 8941 | .model_id = SST_SST25VF040_REMS, |
| 8942 | .total_size = 512, |
| 8943 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8944 | .feature_bits = FEATURE_WRSR_EWSR, |
Uwe Hermann | 4335ec8 | 2011-09-07 20:20:25 +0000 | [diff] [blame] | 8945 | .tested = TEST_OK_PREW, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 8946 | .probe = probe_spi_res2, |
| 8947 | .probe_timing = TIMING_ZERO, |
| 8948 | .block_erasers = |
| 8949 | { |
| 8950 | { |
| 8951 | .eraseblocks = { {4 * 1024, 128} }, |
| 8952 | .block_erase = spi_block_erase_20, |
| 8953 | }, { |
| 8954 | .eraseblocks = { {32 * 1024, 16} }, |
| 8955 | .block_erase = spi_block_erase_52, |
| 8956 | }, { |
| 8957 | .eraseblocks = { {512 * 1024, 1} }, |
| 8958 | .block_erase = spi_block_erase_60, |
| 8959 | }, |
| 8960 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8961 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 8962 | .unlock = spi_disable_blockprotect, |
| 8963 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 8964 | .read = spi_chip_read, |
| 8965 | .voltage = {3000, 3600}, |
| 8966 | }, |
| 8967 | |
| 8968 | { |
| 8969 | .vendor = "SST", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 8970 | .name = "SST25LF080(A)", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 8971 | .bustype = BUS_SPI, |
| 8972 | .manufacture_id = SST_ID, |
| 8973 | .model_id = SST_SST25VF080_REMS, |
| 8974 | .total_size = 1024, |
| 8975 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 8976 | .feature_bits = FEATURE_WRSR_EITHER, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 8977 | .tested = TEST_UNTESTED, |
| 8978 | .probe = probe_spi_res2, |
| 8979 | .probe_timing = TIMING_ZERO, |
| 8980 | .block_erasers = |
| 8981 | { |
| 8982 | { |
| 8983 | .eraseblocks = { {4 * 1024, 256} }, |
| 8984 | .block_erase = spi_block_erase_20, |
| 8985 | }, { |
| 8986 | .eraseblocks = { {32 * 1024, 32} }, |
| 8987 | .block_erase = spi_block_erase_52, |
| 8988 | }, { |
| 8989 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8990 | .block_erase = spi_block_erase_60, |
| 8991 | }, |
| 8992 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8993 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 8994 | .unlock = spi_disable_blockprotect, |
| 8995 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 8996 | .read = spi_chip_read, |
| 8997 | .voltage = {3000, 3600}, |
| 8998 | }, |
| 8999 | |
| 9000 | { |
| 9001 | .vendor = "SST", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9002 | .name = "SST25VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9003 | .bustype = BUS_SPI, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9004 | .manufacture_id = SST_ID, |
| 9005 | .model_id = SST_SST25VF010_REMS, |
| 9006 | .total_size = 128, |
| 9007 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9008 | .feature_bits = FEATURE_WRSR_EWSR, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9009 | .tested = TEST_OK_PREW, |
| 9010 | .probe = probe_spi_rems, |
| 9011 | .probe_timing = TIMING_ZERO, |
| 9012 | .block_erasers = |
| 9013 | { |
| 9014 | { |
| 9015 | .eraseblocks = { {4 * 1024, 32} }, |
| 9016 | .block_erase = spi_block_erase_20, |
| 9017 | }, { |
| 9018 | .eraseblocks = { {32 * 1024, 4} }, |
| 9019 | .block_erase = spi_block_erase_52, |
| 9020 | }, { |
| 9021 | .eraseblocks = { {128 * 1024, 1} }, |
| 9022 | .block_erase = spi_block_erase_60, |
| 9023 | }, |
| 9024 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9025 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9026 | .unlock = spi_disable_blockprotect, |
| 9027 | .write = spi_chip_write_1, |
| 9028 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9029 | .voltage = {2700, 3600}, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9030 | }, |
| 9031 | |
| 9032 | { |
| 9033 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9034 | .name = "SST25VF016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9035 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9036 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9037 | .model_id = SST_SST25VF016B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9038 | .total_size = 2048, |
| 9039 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 9040 | .feature_bits = FEATURE_WRSR_EITHER, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9041 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9042 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9043 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9044 | .block_erasers = |
| 9045 | { |
| 9046 | { |
| 9047 | .eraseblocks = { {4 * 1024, 512} }, |
| 9048 | .block_erase = spi_block_erase_20, |
| 9049 | }, { |
| 9050 | .eraseblocks = { {32 * 1024, 64} }, |
| 9051 | .block_erase = spi_block_erase_52, |
| 9052 | }, { |
| 9053 | .eraseblocks = { {64 * 1024, 32} }, |
| 9054 | .block_erase = spi_block_erase_d8, |
| 9055 | }, { |
| 9056 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9057 | .block_erase = spi_block_erase_60, |
| 9058 | }, { |
| 9059 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9060 | .block_erase = spi_block_erase_c7, |
| 9061 | }, |
| 9062 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9063 | .printlock = spi_prettyprint_status_register_sst25vf016, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9064 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 9065 | .write = spi_aai_write, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9066 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9067 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9068 | }, |
| 9069 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9070 | { |
| 9071 | .vendor = "SST", |
| 9072 | .name = "SST25VF032B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9073 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9074 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9075 | .model_id = SST_SST25VF032B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9076 | .total_size = 4096, |
| 9077 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9078 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | fcf6a8c | 2011-05-18 01:32:00 +0000 | [diff] [blame] | 9079 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9080 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9081 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9082 | .block_erasers = |
| 9083 | { |
| 9084 | { |
| 9085 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9086 | .block_erase = spi_block_erase_20, |
| 9087 | }, { |
| 9088 | .eraseblocks = { {32 * 1024, 128} }, |
| 9089 | .block_erase = spi_block_erase_52, |
| 9090 | }, { |
| 9091 | .eraseblocks = { {64 * 1024, 64} }, |
| 9092 | .block_erase = spi_block_erase_d8, |
| 9093 | }, { |
| 9094 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9095 | .block_erase = spi_block_erase_60, |
| 9096 | }, { |
| 9097 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9098 | .block_erase = spi_block_erase_c7, |
| 9099 | }, |
| 9100 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9101 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9102 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 9103 | .write = spi_aai_write, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9104 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9105 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9106 | }, |
| 9107 | |
| 9108 | { |
| 9109 | .vendor = "SST", |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 9110 | .name = "SST25VF064C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9111 | .bustype = BUS_SPI, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 9112 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9113 | .model_id = SST_SST25VF064C, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 9114 | .total_size = 8192, |
| 9115 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9116 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 9117 | .tested = TEST_OK_PREW, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 9118 | .probe = probe_spi_rdid, |
| 9119 | .probe_timing = TIMING_ZERO, |
| 9120 | .block_erasers = |
| 9121 | { |
| 9122 | { |
| 9123 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9124 | .block_erase = spi_block_erase_20, |
| 9125 | }, { |
| 9126 | .eraseblocks = { {32 * 1024, 256} }, |
| 9127 | .block_erase = spi_block_erase_52, |
| 9128 | }, { |
| 9129 | .eraseblocks = { {64 * 1024, 128} }, |
| 9130 | .block_erase = spi_block_erase_d8, |
| 9131 | }, { |
| 9132 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9133 | .block_erase = spi_block_erase_60, |
| 9134 | }, { |
| 9135 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9136 | .block_erase = spi_block_erase_c7, |
| 9137 | }, |
| 9138 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9139 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 9140 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 9141 | .write = spi_chip_write_256, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 9142 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9143 | .voltage = {2700, 3600}, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 9144 | }, |
| 9145 | |
| 9146 | { |
| 9147 | .vendor = "SST", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9148 | .name = "SST25VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9149 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9150 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9151 | .model_id = SST_SST25VF040_REMS, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9152 | .total_size = 512, |
| 9153 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9154 | .feature_bits = FEATURE_WRSR_EWSR, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9155 | .tested = TEST_OK_PR, |
| 9156 | .probe = probe_spi_rems, |
| 9157 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9158 | .block_erasers = |
| 9159 | { |
| 9160 | { |
| 9161 | .eraseblocks = { {4 * 1024, 128} }, |
| 9162 | .block_erase = spi_block_erase_20, |
| 9163 | }, { |
| 9164 | .eraseblocks = { {32 * 1024, 16} }, |
| 9165 | .block_erase = spi_block_erase_52, |
| 9166 | }, { |
| 9167 | .eraseblocks = { {512 * 1024, 1} }, |
| 9168 | .block_erase = spi_block_erase_60, |
| 9169 | }, |
| 9170 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9171 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9172 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 9173 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9174 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9175 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9176 | }, |
| 9177 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9178 | { |
| 9179 | .vendor = "SST", |
| 9180 | .name = "SST25VF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9181 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9182 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9183 | .model_id = SST_SST25VF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9184 | .total_size = 512, |
| 9185 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9186 | .feature_bits = FEATURE_WRSR_EWSR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9187 | .tested = TEST_UNTESTED, |
| 9188 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9189 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9190 | .block_erasers = |
| 9191 | { |
| 9192 | { |
| 9193 | .eraseblocks = { {4 * 1024, 128} }, |
| 9194 | .block_erase = spi_block_erase_20, |
| 9195 | }, { |
| 9196 | .eraseblocks = { {32 * 1024, 16} }, |
| 9197 | .block_erase = spi_block_erase_52, |
| 9198 | }, { |
| 9199 | .eraseblocks = { {64 * 1024, 8} }, |
| 9200 | .block_erase = spi_block_erase_d8, |
| 9201 | }, { |
| 9202 | .eraseblocks = { {512 * 1024, 1} }, |
| 9203 | .block_erase = spi_block_erase_60, |
| 9204 | }, { |
| 9205 | .eraseblocks = { {512 * 1024, 1} }, |
| 9206 | .block_erase = spi_block_erase_c7, |
| 9207 | }, |
| 9208 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9209 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9210 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 9211 | .write = spi_aai_write, |
Zheng Bao | 0677dff | 2009-02-25 08:07:33 +0000 | [diff] [blame] | 9212 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9213 | .voltage = {2700, 3600}, |
Zheng Bao | 0677dff | 2009-02-25 08:07:33 +0000 | [diff] [blame] | 9214 | }, |
| 9215 | |
| 9216 | { |
| 9217 | .vendor = "SST", |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 9218 | .name = "SST25VF040B.REMS", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9219 | .bustype = BUS_SPI, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 9220 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9221 | .model_id = SST_SST25VF040B_REMS, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 9222 | .total_size = 512, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9223 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9224 | .feature_bits = FEATURE_WRSR_EWSR, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 9225 | .tested = TEST_OK_PR, |
| 9226 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9227 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9228 | .block_erasers = |
| 9229 | { |
| 9230 | { |
| 9231 | .eraseblocks = { {4 * 1024, 128} }, |
| 9232 | .block_erase = spi_block_erase_20, |
| 9233 | }, { |
| 9234 | .eraseblocks = { {32 * 1024, 16} }, |
| 9235 | .block_erase = spi_block_erase_52, |
| 9236 | }, { |
| 9237 | .eraseblocks = { {64 * 1024, 8} }, |
| 9238 | .block_erase = spi_block_erase_d8, |
| 9239 | }, { |
| 9240 | .eraseblocks = { {512 * 1024, 1} }, |
| 9241 | .block_erase = spi_block_erase_60, |
| 9242 | }, { |
| 9243 | .eraseblocks = { {512 * 1024, 1} }, |
| 9244 | .block_erase = spi_block_erase_c7, |
| 9245 | }, |
| 9246 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9247 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9248 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 9249 | .write = spi_aai_write, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 9250 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9251 | .voltage = {2700, 3600}, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 9252 | }, |
| 9253 | |
| 9254 | { |
| 9255 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9256 | .name = "SST25VF080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9257 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9258 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9259 | .model_id = SST_SST25VF080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9260 | .total_size = 1024, |
| 9261 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9262 | .feature_bits = FEATURE_WRSR_EWSR, |
John Schmerge | c965c2d | 2011-05-18 11:28:47 +0000 | [diff] [blame] | 9263 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9264 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9265 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 9266 | .block_erasers = |
| 9267 | { |
| 9268 | { |
| 9269 | .eraseblocks = { {4 * 1024, 256} }, |
| 9270 | .block_erase = spi_block_erase_20, |
| 9271 | }, { |
| 9272 | .eraseblocks = { {32 * 1024, 32} }, |
| 9273 | .block_erase = spi_block_erase_52, |
| 9274 | }, { |
| 9275 | .eraseblocks = { {64 * 1024, 16} }, |
| 9276 | .block_erase = spi_block_erase_d8, |
| 9277 | }, { |
| 9278 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9279 | .block_erase = spi_block_erase_60, |
| 9280 | }, { |
| 9281 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9282 | .block_erase = spi_block_erase_c7, |
| 9283 | }, |
| 9284 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9285 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9286 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 9287 | .write = spi_aai_write, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9288 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9289 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9290 | }, |
| 9291 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9292 | { |
| 9293 | .vendor = "SST", |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 9294 | .name = "SST25WF512", |
| 9295 | .bustype = BUS_SPI, |
| 9296 | .manufacture_id = SST_ID, |
| 9297 | .model_id = SST_SST25WF512, |
| 9298 | .total_size = 64, |
| 9299 | .page_size = 256, |
| 9300 | .feature_bits = FEATURE_WRSR_EITHER, |
| 9301 | .tested = TEST_UNTESTED, |
| 9302 | .probe = probe_spi_rdid, |
| 9303 | .probe_timing = TIMING_ZERO, |
| 9304 | .block_erasers = |
| 9305 | { |
| 9306 | { |
| 9307 | .eraseblocks = { {4 * 1024, 16} }, |
| 9308 | .block_erase = spi_block_erase_20, |
| 9309 | }, { |
| 9310 | .eraseblocks = { {32 * 1024, 2} }, |
| 9311 | .block_erase = spi_block_erase_52, |
| 9312 | }, { |
| 9313 | .eraseblocks = { {1024 * 64, 1} }, |
| 9314 | .block_erase = spi_block_erase_60, |
| 9315 | }, { |
| 9316 | .eraseblocks = { {1024 * 64, 1} }, |
| 9317 | .block_erase = spi_block_erase_c7, |
| 9318 | }, |
| 9319 | }, |
| 9320 | .unlock = spi_disable_blockprotect, |
| 9321 | .write = spi_aai_write, |
| 9322 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9323 | .voltage = {1650, 1950}, |
| 9324 | }, |
| 9325 | |
| 9326 | { |
| 9327 | .vendor = "SST", |
| 9328 | .name = "SST25WF010", |
| 9329 | .bustype = BUS_SPI, |
| 9330 | .manufacture_id = SST_ID, |
| 9331 | .model_id = SST_SST25WF010, |
| 9332 | .total_size = 128, |
| 9333 | .page_size = 256, |
| 9334 | .feature_bits = FEATURE_WRSR_EITHER, |
| 9335 | .tested = TEST_UNTESTED, |
| 9336 | .probe = probe_spi_rdid, |
| 9337 | .probe_timing = TIMING_ZERO, |
| 9338 | .block_erasers = |
| 9339 | { |
| 9340 | { |
| 9341 | .eraseblocks = { {4 * 1024, 32} }, |
| 9342 | .block_erase = spi_block_erase_20, |
| 9343 | }, { |
| 9344 | .eraseblocks = { {32 * 1024, 4} }, |
| 9345 | .block_erase = spi_block_erase_52, |
| 9346 | }, { |
| 9347 | .eraseblocks = { {1024 * 128, 1} }, |
| 9348 | .block_erase = spi_block_erase_60, |
| 9349 | }, { |
| 9350 | .eraseblocks = { {1024 * 128, 1} }, |
| 9351 | .block_erase = spi_block_erase_c7, |
| 9352 | }, |
| 9353 | }, |
| 9354 | .unlock = spi_disable_blockprotect, |
| 9355 | .write = spi_aai_write, |
| 9356 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9357 | .voltage = {1650, 1950}, |
| 9358 | }, |
| 9359 | |
| 9360 | { |
| 9361 | .vendor = "SST", |
| 9362 | .name = "SST25WF020", |
| 9363 | .bustype = BUS_SPI, |
| 9364 | .manufacture_id = SST_ID, |
| 9365 | .model_id = SST_SST25WF020, |
| 9366 | .total_size = 256, |
| 9367 | .page_size = 256, |
| 9368 | .feature_bits = FEATURE_WRSR_EITHER, |
| 9369 | .tested = TEST_UNTESTED, |
| 9370 | .probe = probe_spi_rdid, |
| 9371 | .probe_timing = TIMING_ZERO, |
| 9372 | .block_erasers = |
| 9373 | { |
| 9374 | { |
| 9375 | .eraseblocks = { {4 * 1024, 64} }, |
| 9376 | .block_erase = spi_block_erase_20, |
| 9377 | }, { |
| 9378 | .eraseblocks = { {32 * 1024, 8} }, |
| 9379 | .block_erase = spi_block_erase_52, |
| 9380 | }, { |
| 9381 | .eraseblocks = { {64 * 1024, 4} }, |
| 9382 | .block_erase = spi_block_erase_d8, |
| 9383 | }, { |
| 9384 | .eraseblocks = { {1024 * 256, 1} }, |
| 9385 | .block_erase = spi_block_erase_60, |
| 9386 | }, { |
| 9387 | .eraseblocks = { {1024 * 256, 1} }, |
| 9388 | .block_erase = spi_block_erase_c7, |
| 9389 | }, |
| 9390 | }, |
| 9391 | .unlock = spi_disable_blockprotect, |
| 9392 | .write = spi_aai_write, |
| 9393 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9394 | .voltage = {1650, 1950}, |
| 9395 | }, |
| 9396 | |
| 9397 | { |
| 9398 | .vendor = "SST", |
| 9399 | .name = "SST25WF040", |
| 9400 | .bustype = BUS_SPI, |
| 9401 | .manufacture_id = SST_ID, |
| 9402 | .model_id = SST_SST25WF040, |
| 9403 | .total_size = 512, |
| 9404 | .page_size = 256, |
| 9405 | .feature_bits = FEATURE_WRSR_EITHER, |
| 9406 | .tested = TEST_UNTESTED, |
| 9407 | .probe = probe_spi_rdid, |
| 9408 | .probe_timing = TIMING_ZERO, |
| 9409 | .block_erasers = |
| 9410 | { |
| 9411 | { |
| 9412 | .eraseblocks = { {4 * 1024, 128} }, |
| 9413 | .block_erase = spi_block_erase_20, |
| 9414 | }, { |
| 9415 | .eraseblocks = { {32 * 1024, 16} }, |
| 9416 | .block_erase = spi_block_erase_52, |
| 9417 | }, { |
| 9418 | .eraseblocks = { {64 * 1024, 8} }, |
| 9419 | .block_erase = spi_block_erase_d8, |
| 9420 | }, { |
| 9421 | .eraseblocks = { {1024 * 512, 1} }, |
| 9422 | .block_erase = spi_block_erase_60, |
| 9423 | }, { |
| 9424 | .eraseblocks = { {1024 * 512, 1} }, |
| 9425 | .block_erase = spi_block_erase_c7, |
| 9426 | }, |
| 9427 | }, |
| 9428 | .unlock = spi_disable_blockprotect, |
| 9429 | .write = spi_aai_write, |
| 9430 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9431 | .voltage = {1650, 1950}, |
| 9432 | }, |
| 9433 | |
| 9434 | { |
| 9435 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9436 | .name = "SST28SF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9437 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9438 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9439 | .model_id = SST_SST28SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9440 | .total_size = 512, |
| 9441 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9442 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9443 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9444 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 9445 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9446 | .block_erasers = |
| 9447 | { |
| 9448 | { |
| 9449 | .eraseblocks = { {128, 4096} }, |
| 9450 | .block_erase = erase_sector_28sf040, |
| 9451 | }, { |
| 9452 | .eraseblocks = { {512 * 1024, 1} }, |
| 9453 | .block_erase = erase_chip_28sf040, |
| 9454 | } |
| 9455 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 9456 | .unlock = unprotect_28sf040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9457 | .write = write_28sf040, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9458 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9459 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9460 | }, |
| 9461 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9462 | { |
| 9463 | .vendor = "SST", |
| 9464 | .name = "SST29EE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9465 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9466 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9467 | .model_id = SST_SST29EE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9468 | .total_size = 128, |
| 9469 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9470 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 9471 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9472 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 9473 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9474 | .block_erasers = |
| 9475 | { |
| 9476 | { |
| 9477 | .eraseblocks = { {128 * 1024, 1} }, |
| 9478 | .block_erase = erase_chip_block_jedec, |
| 9479 | } |
| 9480 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9481 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9482 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9483 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9484 | }, |
| 9485 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9486 | { |
| 9487 | .vendor = "SST", |
| 9488 | .name = "SST29LE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9489 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9490 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9491 | .model_id = SST_SST29LE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9492 | .total_size = 128, |
| 9493 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9494 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9495 | .tested = TEST_UNTESTED, |
| 9496 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 9497 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9498 | .block_erasers = |
| 9499 | { |
| 9500 | { |
| 9501 | .eraseblocks = { {128 * 1024, 1} }, |
| 9502 | .block_erase = erase_chip_block_jedec, |
| 9503 | } |
| 9504 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9505 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9506 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9507 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9508 | }, |
| 9509 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9510 | { |
| 9511 | .vendor = "SST", |
| 9512 | .name = "SST29EE020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9513 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9514 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9515 | .model_id = SST_SST29EE020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9516 | .total_size = 256, |
| 9517 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9518 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 9519 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9520 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 9521 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9522 | .block_erasers = |
| 9523 | { |
| 9524 | { |
| 9525 | .eraseblocks = { {256 * 1024, 1} }, |
| 9526 | .block_erase = erase_chip_block_jedec, |
| 9527 | } |
| 9528 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9529 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9530 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9531 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9532 | }, |
| 9533 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9534 | { |
| 9535 | .vendor = "SST", |
| 9536 | .name = "SST29LE020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9537 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9538 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9539 | .model_id = SST_SST29LE020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9540 | .total_size = 256, |
| 9541 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9542 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 9543 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9544 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 9545 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9546 | .block_erasers = |
| 9547 | { |
| 9548 | { |
| 9549 | .eraseblocks = { {256 * 1024, 1} }, |
| 9550 | .block_erase = erase_chip_block_jedec, |
| 9551 | } |
| 9552 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9553 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9554 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9555 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9556 | }, |
| 9557 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9558 | { |
| 9559 | .vendor = "SST", |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 9560 | .name = "SST39SF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9561 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 9562 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9563 | .model_id = SST_SST39SF512, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 9564 | .total_size = 64, |
| 9565 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9566 | .feature_bits = FEATURE_EITHER_RESET, |
Idwer Vollering | 7913fb4 | 2011-03-07 15:32:58 +0000 | [diff] [blame] | 9567 | .tested = TEST_OK_PREW, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 9568 | .probe = probe_jedec, |
| 9569 | .probe_timing = 1, /* 150 ns */ |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 9570 | .block_erasers = |
| 9571 | { |
| 9572 | { |
| 9573 | .eraseblocks = { {4 * 1024, 16} }, |
| 9574 | .block_erase = erase_sector_jedec, |
| 9575 | }, { |
| 9576 | .eraseblocks = { {64 * 1024, 1} }, |
| 9577 | .block_erase = erase_chip_block_jedec, |
| 9578 | } |
| 9579 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9580 | .write = write_jedec_1, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 9581 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9582 | .voltage = {4500, 5500}, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 9583 | }, |
| 9584 | |
| 9585 | { |
| 9586 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9587 | .name = "SST39SF010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9588 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9589 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9590 | .model_id = SST_SST39SF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9591 | .total_size = 128, |
| 9592 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9593 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 9594 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9595 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 9596 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9597 | .block_erasers = |
| 9598 | { |
| 9599 | { |
| 9600 | .eraseblocks = { {4 * 1024, 32} }, |
| 9601 | .block_erase = erase_sector_jedec, |
| 9602 | }, { |
| 9603 | .eraseblocks = { {128 * 1024, 1} }, |
| 9604 | .block_erase = erase_chip_block_jedec, |
| 9605 | } |
| 9606 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9607 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9608 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9609 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9610 | }, |
| 9611 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9612 | { |
| 9613 | .vendor = "SST", |
| 9614 | .name = "SST39SF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9615 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9616 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9617 | .model_id = SST_SST39SF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9618 | .total_size = 256, |
| 9619 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9620 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 9621 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9622 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 9623 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9624 | .block_erasers = |
| 9625 | { |
| 9626 | { |
| 9627 | .eraseblocks = { {4 * 1024, 64} }, |
| 9628 | .block_erase = erase_sector_jedec, |
| 9629 | }, { |
| 9630 | .eraseblocks = { {256 * 1024, 1} }, |
| 9631 | .block_erase = erase_chip_block_jedec, |
| 9632 | } |
| 9633 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9634 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9635 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9636 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9637 | }, |
| 9638 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9639 | { |
| 9640 | .vendor = "SST", |
| 9641 | .name = "SST39SF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9642 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9643 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9644 | .model_id = SST_SST39SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9645 | .total_size = 512, |
| 9646 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9647 | .feature_bits = FEATURE_EITHER_RESET, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9648 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9649 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 9650 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9651 | .block_erasers = |
| 9652 | { |
| 9653 | { |
| 9654 | .eraseblocks = { {4 * 1024, 128} }, |
| 9655 | .block_erase = erase_sector_jedec, |
| 9656 | }, { |
| 9657 | .eraseblocks = { {512 * 1024, 1} }, |
| 9658 | .block_erase = erase_chip_block_jedec, |
| 9659 | } |
| 9660 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9661 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9662 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9663 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9664 | }, |
| 9665 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9666 | { |
| 9667 | .vendor = "SST", |
| 9668 | .name = "SST39VF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9669 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9670 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9671 | .model_id = SST_SST39VF512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9672 | .total_size = 64, |
| 9673 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9674 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 9675 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9676 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 9677 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9678 | .block_erasers = |
| 9679 | { |
| 9680 | { |
| 9681 | .eraseblocks = { {4 * 1024, 16} }, |
| 9682 | .block_erase = erase_sector_jedec, |
| 9683 | }, { |
| 9684 | .eraseblocks = { {64 * 1024, 1} }, |
| 9685 | .block_erase = erase_chip_block_jedec, |
| 9686 | } |
| 9687 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9688 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9689 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9690 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9691 | }, |
| 9692 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9693 | { |
| 9694 | .vendor = "SST", |
| 9695 | .name = "SST39VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9696 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9697 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9698 | .model_id = SST_SST39VF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9699 | .total_size = 128, |
| 9700 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9701 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 9702 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9703 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 9704 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9705 | .block_erasers = |
| 9706 | { |
| 9707 | { |
| 9708 | .eraseblocks = { {4 * 1024, 32} }, |
| 9709 | .block_erase = erase_sector_jedec, |
| 9710 | }, { |
| 9711 | .eraseblocks = { {128 * 1024, 1} }, |
| 9712 | .block_erase = erase_chip_block_jedec, |
| 9713 | } |
| 9714 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9715 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9716 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9717 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9718 | }, |
| 9719 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9720 | { |
| 9721 | .vendor = "SST", |
| 9722 | .name = "SST39VF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9723 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9724 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9725 | .model_id = SST_SST39VF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9726 | .total_size = 256, |
| 9727 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9728 | .feature_bits = FEATURE_EITHER_RESET, |
| 9729 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9730 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 9731 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9732 | .block_erasers = |
| 9733 | { |
| 9734 | { |
| 9735 | .eraseblocks = { {4 * 1024, 64} }, |
| 9736 | .block_erase = erase_sector_jedec, |
| 9737 | }, { |
| 9738 | .eraseblocks = { {256 * 1024, 1} }, |
| 9739 | .block_erase = erase_chip_block_jedec, |
| 9740 | } |
| 9741 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9742 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9743 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9744 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9745 | }, |
| 9746 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9747 | { |
| 9748 | .vendor = "SST", |
| 9749 | .name = "SST39VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9750 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9751 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9752 | .model_id = SST_SST39VF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9753 | .total_size = 512, |
| 9754 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9755 | .feature_bits = FEATURE_EITHER_RESET, |
| 9756 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9757 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 9758 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9759 | .block_erasers = |
| 9760 | { |
| 9761 | { |
| 9762 | .eraseblocks = { {4 * 1024, 128} }, |
| 9763 | .block_erase = erase_sector_jedec, |
| 9764 | }, { |
| 9765 | .eraseblocks = { {512 * 1024, 1} }, |
| 9766 | .block_erase = erase_chip_block_jedec, |
| 9767 | } |
| 9768 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9769 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9770 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9771 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 9772 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9773 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9774 | { |
| 9775 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 9776 | .name = "SST39VF080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9777 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 9778 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9779 | .model_id = SST_SST39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 9780 | .total_size = 1024, |
| 9781 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9782 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 9783 | .tested = TEST_UNTESTED, |
| 9784 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 9785 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9786 | .block_erasers = |
| 9787 | { |
| 9788 | { |
| 9789 | .eraseblocks = { {4 * 1024, 256} }, |
| 9790 | .block_erase = erase_sector_jedec, |
| 9791 | }, { |
| 9792 | .eraseblocks = { {64 * 1024, 16} }, |
| 9793 | .block_erase = erase_block_jedec, |
| 9794 | }, { |
| 9795 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9796 | .block_erase = erase_chip_block_jedec, |
| 9797 | } |
| 9798 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9799 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9800 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9801 | .voltage = {2700, 3600}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 9802 | }, |
| 9803 | |
| 9804 | { |
| 9805 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9806 | .name = "SST49LF002A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9807 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9808 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9809 | .model_id = SST_SST49LF002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9810 | .total_size = 256, |
| 9811 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9812 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 9813 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9814 | .probe = probe_jedec, |
| 9815 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9816 | .block_erasers = |
| 9817 | { |
| 9818 | { |
| 9819 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9820 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9821 | }, { |
| 9822 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9823 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9824 | }, { |
| 9825 | .eraseblocks = { {256 * 1024, 1} }, |
| 9826 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 9827 | } |
| 9828 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9829 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9830 | .unlock = unlock_sst_fwhub, |
| 9831 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9832 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9833 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9834 | }, |
| 9835 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9836 | { |
| 9837 | .vendor = "SST", |
| 9838 | .name = "SST49LF003A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9839 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9840 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9841 | .model_id = SST_SST49LF003A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9842 | .total_size = 384, |
| 9843 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9844 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 9845 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9846 | .probe = probe_jedec, |
| 9847 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9848 | .block_erasers = |
| 9849 | { |
| 9850 | { |
| 9851 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9852 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9853 | }, { |
| 9854 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9855 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9856 | }, { |
| 9857 | .eraseblocks = { {384 * 1024, 1} }, |
| 9858 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 9859 | } |
| 9860 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9861 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9862 | .unlock = unlock_sst_fwhub, |
| 9863 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9864 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9865 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9866 | }, |
| 9867 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9868 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 9869 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 9870 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 9871 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9872 | .vendor = "SST", |
| 9873 | .name = "SST49LF004A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9874 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9875 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9876 | .model_id = SST_SST49LF004A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9877 | .total_size = 512, |
| 9878 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9879 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 9880 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9881 | .probe = probe_jedec, |
| 9882 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 9883 | .block_erasers = |
| 9884 | { |
| 9885 | { |
| 9886 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9887 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 9888 | }, { |
| 9889 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9890 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 9891 | }, { |
| 9892 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9893 | .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] | 9894 | }, |
| 9895 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9896 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9897 | .unlock = unlock_sst_fwhub, |
| 9898 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9899 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9900 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9901 | }, |
| 9902 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9903 | { |
| 9904 | .vendor = "SST", |
| 9905 | .name = "SST49LF004C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9906 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9907 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9908 | .model_id = SST_SST49LF004C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9909 | .total_size = 512, |
| 9910 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9911 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9912 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9913 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 9914 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9915 | .block_erasers = |
| 9916 | { |
| 9917 | { |
| 9918 | .eraseblocks = { {4 * 1024, 128} }, |
| 9919 | .block_erase = erase_sector_49lfxxxc, |
| 9920 | }, { |
| 9921 | .eraseblocks = { |
| 9922 | {64 * 1024, 7}, |
| 9923 | {32 * 1024, 1}, |
| 9924 | {8 * 1024, 2}, |
| 9925 | {16 * 1024, 1}, |
| 9926 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 9927 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9928 | } |
| 9929 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 9930 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 9931 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9932 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9933 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9934 | }, |
| 9935 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9936 | { |
| 9937 | .vendor = "SST", |
| 9938 | .name = "SST49LF008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9939 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9940 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9941 | .model_id = SST_SST49LF008A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9942 | .total_size = 1024, |
| 9943 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9944 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 9945 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9946 | .probe = probe_jedec, |
| 9947 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9948 | .block_erasers = |
| 9949 | { |
| 9950 | { |
| 9951 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9952 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9953 | }, { |
| 9954 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9955 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9956 | }, { |
| 9957 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9958 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 9959 | } |
| 9960 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9961 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9962 | .unlock = unlock_sst_fwhub, |
| 9963 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9964 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9965 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9966 | }, |
| 9967 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9968 | { |
| 9969 | .vendor = "SST", |
| 9970 | .name = "SST49LF008C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9971 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9972 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9973 | .model_id = SST_SST49LF008C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9974 | .total_size = 1024, |
| 9975 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9976 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9977 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9978 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 9979 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9980 | .block_erasers = |
| 9981 | { |
| 9982 | { |
| 9983 | .eraseblocks = { {4 * 1024, 256} }, |
| 9984 | .block_erase = erase_sector_49lfxxxc, |
| 9985 | }, { |
| 9986 | .eraseblocks = { |
| 9987 | {64 * 1024, 15}, |
| 9988 | {32 * 1024, 1}, |
| 9989 | {8 * 1024, 2}, |
| 9990 | {16 * 1024, 1}, |
| 9991 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 9992 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9993 | } |
| 9994 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 9995 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 9996 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9997 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9998 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9999 | }, |
| 10000 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10001 | { |
| 10002 | .vendor = "SST", |
| 10003 | .name = "SST49LF016C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10004 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10005 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10006 | .model_id = SST_SST49LF016C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10007 | .total_size = 2048, |
| 10008 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10009 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | 2abab94 | 2012-04-27 20:41:23 +0000 | [diff] [blame] | 10010 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10011 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 10012 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10013 | .block_erasers = |
| 10014 | { |
| 10015 | { |
| 10016 | .eraseblocks = { {4 * 1024, 512} }, |
| 10017 | .block_erase = erase_sector_49lfxxxc, |
| 10018 | }, { |
| 10019 | .eraseblocks = { |
| 10020 | {64 * 1024, 31}, |
| 10021 | {32 * 1024, 1}, |
| 10022 | {8 * 1024, 2}, |
| 10023 | {16 * 1024, 1}, |
| 10024 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10025 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10026 | } |
| 10027 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10028 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 10029 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10030 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10031 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10032 | }, |
| 10033 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10034 | { |
| 10035 | .vendor = "SST", |
| 10036 | .name = "SST49LF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10037 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10038 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10039 | .model_id = SST_SST49LF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10040 | .total_size = 256, |
| 10041 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10042 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 10043 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10044 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10045 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10046 | .block_erasers = |
| 10047 | { |
| 10048 | { |
| 10049 | .eraseblocks = { {4 * 1024, 64} }, |
| 10050 | .block_erase = erase_sector_jedec, |
| 10051 | }, { |
| 10052 | .eraseblocks = { {16 * 1024, 16} }, |
| 10053 | .block_erase = erase_block_jedec, |
| 10054 | }, { |
| 10055 | .eraseblocks = { {256 * 1024, 1} }, |
| 10056 | .block_erase = NULL, |
| 10057 | } |
| 10058 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10059 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10060 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10061 | .voltage = {3000, 3600}, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 10062 | }, |
| 10063 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10064 | { |
| 10065 | .vendor = "SST", |
| 10066 | .name = "SST49LF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10067 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10068 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10069 | .model_id = SST_SST49LF020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10070 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 10071 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10072 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10073 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10074 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10075 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10076 | .block_erasers = |
| 10077 | { |
| 10078 | { |
| 10079 | .eraseblocks = { {4 * 1024, 64} }, |
| 10080 | .block_erase = erase_sector_jedec, |
| 10081 | }, { |
| 10082 | .eraseblocks = { {16 * 1024, 16} }, |
| 10083 | .block_erase = erase_block_jedec, |
| 10084 | }, { |
| 10085 | .eraseblocks = { {256 * 1024, 1} }, |
| 10086 | .block_erase = NULL, |
| 10087 | } |
| 10088 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10089 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10090 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10091 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10092 | }, |
| 10093 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10094 | { |
| 10095 | .vendor = "SST", |
| 10096 | .name = "SST49LF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10097 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10098 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10099 | .model_id = SST_SST49LF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10100 | .total_size = 512, |
| 10101 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10102 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10103 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10104 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10105 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10106 | .block_erasers = |
| 10107 | { |
| 10108 | { |
| 10109 | .eraseblocks = { {4 * 1024, 128} }, |
| 10110 | .block_erase = erase_sector_jedec, |
| 10111 | }, { |
| 10112 | .eraseblocks = { {64 * 1024, 8} }, |
| 10113 | .block_erase = erase_block_jedec, |
| 10114 | }, { |
| 10115 | .eraseblocks = { {512 * 1024, 1} }, |
| 10116 | .block_erase = NULL, |
| 10117 | } |
| 10118 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10119 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10120 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10121 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10122 | }, |
| 10123 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10124 | { |
| 10125 | .vendor = "SST", |
| 10126 | .name = "SST49LF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10127 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10128 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10129 | .model_id = SST_SST49LF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10130 | .total_size = 512, |
| 10131 | .page_size = 64 * 1024, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 10132 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 10133 | .tested = TEST_OK_PREW, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10134 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10135 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10136 | .block_erasers = |
| 10137 | { |
| 10138 | { |
| 10139 | .eraseblocks = { {4 * 1024, 128} }, |
| 10140 | .block_erase = erase_sector_jedec, |
| 10141 | }, { |
| 10142 | .eraseblocks = { {64 * 1024, 8} }, |
| 10143 | .block_erase = erase_block_jedec, |
| 10144 | }, { |
| 10145 | .eraseblocks = { {512 * 1024, 1} }, |
| 10146 | .block_erase = NULL, |
| 10147 | } |
| 10148 | }, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 10149 | .unlock = unlock_82802ab, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10150 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10151 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10152 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10153 | }, |
| 10154 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10155 | { |
| 10156 | .vendor = "SST", |
| 10157 | .name = "SST49LF080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10158 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10159 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10160 | .model_id = SST_SST49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10161 | .total_size = 1024, |
| 10162 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10163 | .feature_bits = FEATURE_EITHER_RESET, |
Brandon Dowdy | f07bf32 | 2011-03-06 18:31:11 +0000 | [diff] [blame] | 10164 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10165 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 10166 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10167 | .block_erasers = |
| 10168 | { |
| 10169 | { |
| 10170 | .eraseblocks = { {4 * 1024, 256} }, |
| 10171 | .block_erase = erase_sector_jedec, |
| 10172 | }, { |
| 10173 | .eraseblocks = { {64 * 1024, 16} }, |
| 10174 | .block_erase = erase_block_jedec, |
| 10175 | }, { |
| 10176 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10177 | .block_erase = NULL, |
| 10178 | } |
| 10179 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10180 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10181 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10182 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10183 | }, |
| 10184 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10185 | { |
| 10186 | .vendor = "SST", |
| 10187 | .name = "SST49LF160C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10188 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10189 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10190 | .model_id = SST_SST49LF160C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10191 | .total_size = 2048, |
| 10192 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10193 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10194 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10195 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 10196 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10197 | .block_erasers = |
| 10198 | { |
| 10199 | { |
| 10200 | .eraseblocks = { {4 * 1024, 512} }, |
| 10201 | .block_erase = erase_sector_49lfxxxc, |
| 10202 | }, { |
| 10203 | .eraseblocks = { |
| 10204 | {64 * 1024, 31}, |
| 10205 | {32 * 1024, 1}, |
| 10206 | {8 * 1024, 2}, |
| 10207 | {16 * 1024, 1}, |
| 10208 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10209 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10210 | } |
| 10211 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 10212 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 10213 | .write = write_82802ab, |
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 = {3000, 3600}, |
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 = "ST", |
| 10220 | .name = "M25P05-A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10221 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10222 | .manufacture_id = ST_ID, |
| 10223 | .model_id = ST_M25P05A, |
| 10224 | .total_size = 64, |
| 10225 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10226 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10227 | .tested = TEST_UNTESTED, |
| 10228 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10229 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10230 | .block_erasers = |
| 10231 | { |
| 10232 | { |
| 10233 | .eraseblocks = { {32 * 1024, 2} }, |
| 10234 | .block_erase = spi_block_erase_d8, |
| 10235 | }, { |
| 10236 | .eraseblocks = { {64 * 1024, 1} }, |
| 10237 | .block_erase = spi_block_erase_c7, |
| 10238 | } |
| 10239 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10240 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10241 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10242 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10243 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10244 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10245 | }, |
| 10246 | |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 10247 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 10248 | * ST M25P05-A in RES mode, but supports only 128 byte writes instead |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 10249 | * of 256 byte writes. We rely heavily on the fact that probe_spi_res1 |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 10250 | * only is successful if RDID does not work. |
| 10251 | */ |
| 10252 | { |
| 10253 | .vendor = "ST", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 10254 | .name = "M25P05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10255 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 10256 | .manufacture_id = 0, /* Not used. */ |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 10257 | .model_id = ST_M25P05_RES, |
| 10258 | .total_size = 64, |
| 10259 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10260 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 10261 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 10262 | .probe = probe_spi_res1, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 10263 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10264 | .block_erasers = |
| 10265 | { |
| 10266 | { |
| 10267 | .eraseblocks = { {32 * 1024, 2} }, |
| 10268 | .block_erase = spi_block_erase_d8, |
| 10269 | }, { |
| 10270 | .eraseblocks = { {64 * 1024, 1} }, |
| 10271 | .block_erase = spi_block_erase_c7, |
| 10272 | } |
| 10273 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10274 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10275 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 10276 | .write = spi_chip_write_1, /* 128 */ |
| 10277 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10278 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 10279 | }, |
| 10280 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10281 | { |
| 10282 | .vendor = "ST", |
| 10283 | .name = "M25P10-A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10284 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10285 | .manufacture_id = ST_ID, |
| 10286 | .model_id = ST_M25P10A, |
| 10287 | .total_size = 128, |
| 10288 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10289 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10290 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10291 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10292 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10293 | .block_erasers = |
| 10294 | { |
| 10295 | { |
| 10296 | .eraseblocks = { {32 * 1024, 4} }, |
| 10297 | .block_erase = spi_block_erase_d8, |
| 10298 | }, { |
| 10299 | .eraseblocks = { {128 * 1024, 1} }, |
| 10300 | .block_erase = spi_block_erase_c7, |
| 10301 | } |
| 10302 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10303 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10304 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10305 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10306 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10307 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10308 | }, |
| 10309 | |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 10310 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 10311 | { |
| 10312 | .vendor = "ST", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 10313 | .name = "M25P10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10314 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 10315 | .manufacture_id = 0, /* Not used. */ |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 10316 | .model_id = ST_M25P10_RES, |
| 10317 | .total_size = 128, |
| 10318 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10319 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 10320 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 10321 | .probe = probe_spi_res1, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 10322 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10323 | .block_erasers = |
| 10324 | { |
| 10325 | { |
| 10326 | .eraseblocks = { {32 * 1024, 4} }, |
| 10327 | .block_erase = spi_block_erase_d8, |
| 10328 | }, { |
| 10329 | .eraseblocks = { {128 * 1024, 1} }, |
| 10330 | .block_erase = spi_block_erase_c7, |
| 10331 | } |
| 10332 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10333 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10334 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 10335 | .write = spi_chip_write_1, /* 128 */ |
| 10336 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10337 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 10338 | }, |
| 10339 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10340 | { |
Kyösti Mälkki | c54adc5 | 2013-03-04 01:20:28 +0000 | [diff] [blame] | 10341 | .vendor = "ST", /* Numonyx */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10342 | .name = "M25P20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10343 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10344 | .manufacture_id = ST_ID, |
| 10345 | .model_id = ST_M25P20, |
| 10346 | .total_size = 256, |
| 10347 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10348 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10349 | .tested = TEST_UNTESTED, |
| 10350 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10351 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10352 | .block_erasers = |
| 10353 | { |
| 10354 | { |
| 10355 | .eraseblocks = { {64 * 1024, 4} }, |
| 10356 | .block_erase = spi_block_erase_d8, |
| 10357 | }, { |
| 10358 | .eraseblocks = { {256 * 1024, 1} }, |
| 10359 | .block_erase = spi_block_erase_c7, |
| 10360 | } |
| 10361 | }, |
Kyösti Mälkki | c54adc5 | 2013-03-04 01:20:28 +0000 | [diff] [blame] | 10362 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10363 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10364 | .write = spi_chip_write_256, |
Kyösti Mälkki | c54adc5 | 2013-03-04 01:20:28 +0000 | [diff] [blame] | 10365 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10366 | .voltage = {2700, 3600}, |
| 10367 | }, |
| 10368 | |
| 10369 | { |
| 10370 | .vendor = "ST", |
| 10371 | .name = "M25P20-old", |
| 10372 | .bustype = BUS_SPI, |
| 10373 | .manufacture_id = 0, /* Not used. */ |
| 10374 | .model_id = ST_M25P20_RES, |
| 10375 | .total_size = 256, |
| 10376 | .page_size = 256, |
| 10377 | .feature_bits = FEATURE_WRSR_WREN, |
| 10378 | .tested = TEST_OK_PREW, |
| 10379 | .probe = probe_spi_res1, |
| 10380 | .probe_timing = TIMING_ZERO, |
| 10381 | .block_erasers = |
| 10382 | { |
| 10383 | { |
| 10384 | .eraseblocks = { {64 * 1024, 4} }, |
| 10385 | .block_erase = spi_block_erase_d8, |
| 10386 | }, { |
| 10387 | .eraseblocks = { {256 * 1024, 1} }, |
| 10388 | .block_erase = spi_block_erase_c7, |
| 10389 | } |
| 10390 | }, |
| 10391 | .printlock = spi_prettyprint_status_register_default_bp1, |
| 10392 | .unlock = spi_disable_blockprotect, |
| 10393 | .write = spi_chip_write_256, |
| 10394 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10395 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10396 | }, |
| 10397 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10398 | { |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 10399 | .vendor = "ST", /* Numonyx */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10400 | .name = "M25P40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10401 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10402 | .manufacture_id = ST_ID, |
| 10403 | .model_id = ST_M25P40, |
| 10404 | .total_size = 512, |
| 10405 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10406 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 10407 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10408 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10409 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10410 | .block_erasers = |
| 10411 | { |
| 10412 | { |
| 10413 | .eraseblocks = { {64 * 1024, 8} }, |
| 10414 | .block_erase = spi_block_erase_d8, |
| 10415 | }, { |
| 10416 | .eraseblocks = { {512 * 1024, 1} }, |
| 10417 | .block_erase = spi_block_erase_c7, |
| 10418 | } |
| 10419 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10420 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10421 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10422 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10423 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10424 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10425 | }, |
| 10426 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10427 | { |
| 10428 | .vendor = "ST", |
| 10429 | .name = "M25P40-old", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10430 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 10431 | .manufacture_id = 0, /* Not used. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10432 | .model_id = ST_M25P40_RES, |
| 10433 | .total_size = 512, |
| 10434 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10435 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10436 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 10437 | .probe = probe_spi_res1, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10438 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10439 | .block_erasers = |
| 10440 | { |
| 10441 | { |
| 10442 | .eraseblocks = { {64 * 1024, 8} }, |
| 10443 | .block_erase = spi_block_erase_d8, |
| 10444 | }, { |
| 10445 | .eraseblocks = { {512 * 1024, 1} }, |
| 10446 | .block_erase = spi_block_erase_c7, |
| 10447 | } |
| 10448 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10449 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10450 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10451 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10452 | .read = spi_chip_read, |
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 = "ST", |
| 10457 | .name = "M25P80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10458 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10459 | .manufacture_id = ST_ID, |
| 10460 | .model_id = ST_M25P80, |
| 10461 | .total_size = 1024, |
| 10462 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10463 | .feature_bits = FEATURE_WRSR_WREN, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 10464 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10465 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10466 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10467 | .block_erasers = |
| 10468 | { |
| 10469 | { |
| 10470 | .eraseblocks = { {64 * 1024, 16} }, |
| 10471 | .block_erase = spi_block_erase_d8, |
| 10472 | }, { |
| 10473 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10474 | .block_erase = spi_block_erase_c7, |
| 10475 | } |
| 10476 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10477 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10478 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10479 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10480 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10481 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10482 | }, |
| 10483 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10484 | { |
| 10485 | .vendor = "ST", |
| 10486 | .name = "M25P16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10487 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10488 | .manufacture_id = ST_ID, |
| 10489 | .model_id = ST_M25P16, |
| 10490 | .total_size = 2048, |
| 10491 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10492 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10493 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10494 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10495 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10496 | .block_erasers = |
| 10497 | { |
| 10498 | { |
| 10499 | .eraseblocks = { {64 * 1024, 32} }, |
| 10500 | .block_erase = spi_block_erase_d8, |
| 10501 | }, { |
| 10502 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10503 | .block_erase = spi_block_erase_c7, |
| 10504 | } |
| 10505 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10506 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10507 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10508 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10509 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10510 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10511 | }, |
| 10512 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10513 | { |
| 10514 | .vendor = "ST", |
| 10515 | .name = "M25P32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10516 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10517 | .manufacture_id = ST_ID, |
| 10518 | .model_id = ST_M25P32, |
| 10519 | .total_size = 4096, |
| 10520 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10521 | .feature_bits = FEATURE_WRSR_WREN, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 10522 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10523 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10524 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10525 | .block_erasers = |
| 10526 | { |
| 10527 | { |
| 10528 | .eraseblocks = { {64 * 1024, 64} }, |
| 10529 | .block_erase = spi_block_erase_d8, |
| 10530 | }, { |
| 10531 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10532 | .block_erase = spi_block_erase_c7, |
| 10533 | } |
| 10534 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10535 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10536 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10537 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10538 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10539 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10540 | }, |
| 10541 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10542 | { |
| 10543 | .vendor = "ST", |
| 10544 | .name = "M25P64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10545 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10546 | .manufacture_id = ST_ID, |
| 10547 | .model_id = ST_M25P64, |
| 10548 | .total_size = 8192, |
| 10549 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10550 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 10551 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10552 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10553 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10554 | .block_erasers = |
| 10555 | { |
| 10556 | { |
| 10557 | .eraseblocks = { {64 * 1024, 128} }, |
| 10558 | .block_erase = spi_block_erase_d8, |
| 10559 | }, { |
| 10560 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10561 | .block_erase = spi_block_erase_c7, |
| 10562 | } |
| 10563 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10564 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10565 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10566 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10567 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10568 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10569 | }, |
| 10570 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10571 | { |
| 10572 | .vendor = "ST", |
| 10573 | .name = "M25P128", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10574 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10575 | .manufacture_id = ST_ID, |
| 10576 | .model_id = ST_M25P128, |
| 10577 | .total_size = 16384, |
| 10578 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10579 | .feature_bits = FEATURE_WRSR_WREN, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 10580 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10581 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10582 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10583 | .block_erasers = |
| 10584 | { |
| 10585 | { |
| 10586 | .eraseblocks = { {256 * 1024, 64} }, |
| 10587 | .block_erase = spi_block_erase_d8, |
| 10588 | }, { |
| 10589 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 10590 | .block_erase = spi_block_erase_c7, |
| 10591 | } |
| 10592 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10593 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10594 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10595 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10596 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10597 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10598 | }, |
| 10599 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10600 | { |
| 10601 | .vendor = "ST", |
Nikolay Nikolaev | b8e212c | 2013-06-28 21:29:27 +0000 | [diff] [blame] | 10602 | .name = "M25PX80", |
| 10603 | .bustype = BUS_SPI, |
| 10604 | .manufacture_id = ST_ID, |
| 10605 | .model_id = ST_M25PX80, |
| 10606 | .total_size = 1024, |
| 10607 | .page_size = 256, |
| 10608 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10609 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10610 | .tested = TEST_UNTESTED, |
| 10611 | .probe = probe_spi_rdid, |
| 10612 | .probe_timing = TIMING_ZERO, |
| 10613 | .block_erasers = { |
| 10614 | { |
| 10615 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 10616 | .block_erase = spi_block_erase_20, |
| 10617 | }, { |
| 10618 | .eraseblocks = { {64 * 1024, 16} }, |
| 10619 | .block_erase = spi_block_erase_d8, |
| 10620 | }, { |
| 10621 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10622 | .block_erase = spi_block_erase_c7, |
| 10623 | } |
| 10624 | }, |
| 10625 | .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */ |
| 10626 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10627 | .write = spi_chip_write_256, |
| 10628 | .read = spi_chip_read, |
| 10629 | .voltage = {2700, 3600}, |
| 10630 | }, |
| 10631 | |
| 10632 | { |
| 10633 | .vendor = "ST", |
Carl Worth | d1dd72c | 2011-03-06 18:45:40 +0000 | [diff] [blame] | 10634 | .name = "M25PX16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10635 | .bustype = BUS_SPI, |
Carl Worth | d1dd72c | 2011-03-06 18:45:40 +0000 | [diff] [blame] | 10636 | .manufacture_id = ST_ID, |
| 10637 | .model_id = ST_M25PX16, |
| 10638 | .total_size = 2048, |
| 10639 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 10640 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10641 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl Worth | d1dd72c | 2011-03-06 18:45:40 +0000 | [diff] [blame] | 10642 | .tested = TEST_OK_PREW, |
| 10643 | .probe = probe_spi_rdid, |
| 10644 | .probe_timing = TIMING_ZERO, |
| 10645 | .block_erasers = |
| 10646 | { |
| 10647 | { |
| 10648 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 10649 | .block_erase = spi_block_erase_20, |
| 10650 | }, { |
| 10651 | .eraseblocks = { {64 * 1024, 32} }, |
| 10652 | .block_erase = spi_block_erase_d8, |
| 10653 | }, { |
| 10654 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10655 | .block_erase = spi_block_erase_c7, |
| 10656 | } |
| 10657 | }, |
Nikolay Nikolaev | b8e212c | 2013-06-28 21:29:27 +0000 | [diff] [blame] | 10658 | .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */ |
| 10659 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
Carl Worth | d1dd72c | 2011-03-06 18:45:40 +0000 | [diff] [blame] | 10660 | .write = spi_chip_write_256, |
| 10661 | .read = spi_chip_read, |
| 10662 | }, |
| 10663 | |
| 10664 | { |
| 10665 | .vendor = "ST", |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 10666 | .name = "M25PX32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10667 | .bustype = BUS_SPI, |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 10668 | .manufacture_id = ST_ID, |
| 10669 | .model_id = ST_M25PX32, |
| 10670 | .total_size = 4096, |
| 10671 | .page_size = 256, |
Nikolay Nikolaev | b8e212c | 2013-06-28 21:29:27 +0000 | [diff] [blame] | 10672 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 10673 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10674 | .tested = TEST_OK_PRE, |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 10675 | .probe = probe_spi_rdid, |
| 10676 | .probe_timing = TIMING_ZERO, |
| 10677 | .block_erasers = |
| 10678 | { |
| 10679 | { |
| 10680 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 10681 | .block_erase = spi_block_erase_20, |
| 10682 | }, { |
| 10683 | .eraseblocks = { {64 * 1024, 64} }, |
| 10684 | .block_erase = spi_block_erase_d8, |
| 10685 | }, { |
| 10686 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10687 | .block_erase = spi_block_erase_c7, |
| 10688 | } |
| 10689 | }, |
Nikolay Nikolaev | b8e212c | 2013-06-28 21:29:27 +0000 | [diff] [blame] | 10690 | .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */ |
| 10691 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 10692 | .write = spi_chip_write_256, |
| 10693 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10694 | .voltage = {2700, 3600}, |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 10695 | }, |
| 10696 | |
| 10697 | { |
| 10698 | .vendor = "ST", |
| 10699 | .name = "M25PX64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10700 | .bustype = BUS_SPI, |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 10701 | .manufacture_id = ST_ID, |
| 10702 | .model_id = ST_M25PX64, |
| 10703 | .total_size = 8192, |
| 10704 | .page_size = 256, |
Nikolay Nikolaev | b8e212c | 2013-06-28 21:29:27 +0000 | [diff] [blame] | 10705 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 10706 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10707 | .tested = TEST_OK_PRE, |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 10708 | .probe = probe_spi_rdid, |
| 10709 | .probe_timing = TIMING_ZERO, |
| 10710 | .block_erasers = |
| 10711 | { |
| 10712 | { |
| 10713 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 10714 | .block_erase = spi_block_erase_20, |
| 10715 | }, { |
| 10716 | .eraseblocks = { {64 * 1024, 128} }, |
| 10717 | .block_erase = spi_block_erase_d8, |
| 10718 | }, { |
| 10719 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10720 | .block_erase = spi_block_erase_c7, |
| 10721 | } |
| 10722 | }, |
Nikolay Nikolaev | b8e212c | 2013-06-28 21:29:27 +0000 | [diff] [blame] | 10723 | .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */ |
| 10724 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 10725 | .write = spi_chip_write_256, |
| 10726 | .read = spi_chip_read, |
| 10727 | }, |
| 10728 | |
| 10729 | { |
| 10730 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10731 | .name = "M29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10732 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10733 | .manufacture_id = ST_ID, |
| 10734 | .model_id = ST_M29F002B, |
| 10735 | .total_size = 256, |
| 10736 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10737 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10738 | .tested = TEST_UNTESTED, |
| 10739 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10740 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10741 | .block_erasers = |
| 10742 | { |
| 10743 | { |
| 10744 | .eraseblocks = { |
| 10745 | {16 * 1024, 1}, |
| 10746 | {8 * 1024, 2}, |
| 10747 | {32 * 1024, 1}, |
| 10748 | {64 * 1024, 3}, |
| 10749 | }, |
| 10750 | .block_erase = erase_sector_jedec, |
| 10751 | }, { |
| 10752 | .eraseblocks = { {256 * 1024, 1} }, |
| 10753 | .block_erase = erase_chip_block_jedec, |
| 10754 | } |
| 10755 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10756 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10757 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10758 | .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] | 10759 | }, |
| 10760 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10761 | { |
| 10762 | .vendor = "ST", |
| 10763 | .name = "M29F002T/NT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10764 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10765 | .manufacture_id = ST_ID, |
| 10766 | .model_id = ST_M29F002T, |
| 10767 | .total_size = 256, |
| 10768 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10769 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 10770 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10771 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10772 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10773 | .block_erasers = |
| 10774 | { |
| 10775 | { |
| 10776 | .eraseblocks = { |
| 10777 | {64 * 1024, 3}, |
| 10778 | {32 * 1024, 1}, |
| 10779 | {8 * 1024, 2}, |
| 10780 | {16 * 1024, 1}, |
| 10781 | }, |
| 10782 | .block_erase = erase_sector_jedec, |
| 10783 | }, { |
| 10784 | .eraseblocks = { {256 * 1024, 1} }, |
| 10785 | .block_erase = erase_chip_block_jedec, |
| 10786 | } |
| 10787 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10788 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10789 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10790 | .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] | 10791 | }, |
| 10792 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10793 | { |
| 10794 | .vendor = "ST", |
| 10795 | .name = "M29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10796 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10797 | .manufacture_id = ST_ID, |
| 10798 | .model_id = ST_M29F040B, |
| 10799 | .total_size = 512, |
| 10800 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10801 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 10802 | .tested = TEST_UNTESTED, |
| 10803 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 10804 | .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10805 | .block_erasers = |
| 10806 | { |
| 10807 | { |
| 10808 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10809 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10810 | }, { |
| 10811 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10812 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10813 | } |
| 10814 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10815 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10816 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10817 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10818 | }, |
| 10819 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10820 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10821 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10822 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 10823 | .name = "M29F400BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10824 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 10825 | .manufacture_id = ST_ID, |
| 10826 | .model_id = ST_M29F400BB, |
| 10827 | .total_size = 512, |
| 10828 | .page_size = 64 * 1024, |
| 10829 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 10830 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 10831 | .probe = probe_m29f400bt, |
| 10832 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
| 10833 | .block_erasers = |
| 10834 | { |
| 10835 | { |
| 10836 | .eraseblocks = { |
| 10837 | {16 * 1024, 1}, |
| 10838 | {8 * 1024, 2}, |
| 10839 | {32 * 1024, 1}, |
| 10840 | {64 * 1024, 7}, |
| 10841 | }, |
| 10842 | .block_erase = block_erase_m29f400bt, |
| 10843 | }, { |
| 10844 | .eraseblocks = { {512 * 1024, 1} }, |
| 10845 | .block_erase = block_erase_chip_m29f400bt, |
| 10846 | } |
| 10847 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 10848 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 10849 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10850 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 10851 | }, |
| 10852 | { |
| 10853 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 10854 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10855 | .name = "M29F400BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10856 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10857 | .manufacture_id = ST_ID, |
| 10858 | .model_id = ST_M29F400BT, |
| 10859 | .total_size = 512, |
| 10860 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10861 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10862 | .tested = TEST_UNTESTED, |
| 10863 | .probe = probe_m29f400bt, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 10864 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10865 | .block_erasers = |
| 10866 | { |
| 10867 | { |
| 10868 | .eraseblocks = { |
| 10869 | {64 * 1024, 7}, |
| 10870 | {32 * 1024, 1}, |
| 10871 | {8 * 1024, 2}, |
| 10872 | {16 * 1024, 1}, |
| 10873 | }, |
| 10874 | .block_erase = block_erase_m29f400bt, |
| 10875 | }, { |
| 10876 | .eraseblocks = { {512 * 1024, 1} }, |
| 10877 | .block_erase = block_erase_chip_m29f400bt, |
| 10878 | } |
| 10879 | }, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 10880 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10881 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10882 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10883 | }, |
| 10884 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10885 | { |
| 10886 | .vendor = "ST", |
| 10887 | .name = "M29W010B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10888 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10889 | .manufacture_id = ST_ID, |
| 10890 | .model_id = ST_M29W010B, |
| 10891 | .total_size = 128, |
| 10892 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10893 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10894 | .tested = TEST_UNTESTED, |
| 10895 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10896 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10897 | .block_erasers = |
| 10898 | { |
| 10899 | { |
| 10900 | .eraseblocks = { {16 * 1024, 8}, }, |
| 10901 | .block_erase = erase_sector_jedec, |
| 10902 | }, { |
| 10903 | .eraseblocks = { {128 * 1024, 1} }, |
| 10904 | .block_erase = erase_chip_block_jedec, |
| 10905 | } |
| 10906 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10907 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10908 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10909 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10910 | }, |
| 10911 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10912 | { |
| 10913 | .vendor = "ST", |
| 10914 | .name = "M29W040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10915 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10916 | .manufacture_id = ST_ID, |
| 10917 | .model_id = ST_M29W040B, |
| 10918 | .total_size = 512, |
| 10919 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10920 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10921 | .tested = TEST_UNTESTED, |
| 10922 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10923 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10924 | .block_erasers = |
| 10925 | { |
| 10926 | { |
| 10927 | .eraseblocks = { {64 * 1024, 8}, }, |
| 10928 | .block_erase = erase_sector_jedec, |
| 10929 | }, { |
| 10930 | .eraseblocks = { {512 * 1024, 1} }, |
| 10931 | .block_erase = erase_chip_block_jedec, |
| 10932 | } |
| 10933 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10934 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10935 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10936 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10937 | }, |
| 10938 | |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 10939 | { |
| 10940 | .vendor = "ST", |
| 10941 | .name = "M29W512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10942 | .bustype = BUS_PARALLEL, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 10943 | .manufacture_id = ST_ID, |
| 10944 | .model_id = ST_M29W512B, |
| 10945 | .total_size = 64, |
| 10946 | .page_size = 64 * 1024, |
| 10947 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10948 | .tested = TEST_OK_PRE, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 10949 | .probe = probe_jedec, |
| 10950 | .probe_timing = TIMING_ZERO, |
| 10951 | .block_erasers = |
| 10952 | { |
| 10953 | { |
| 10954 | .eraseblocks = { {64 * 1024, 1} }, |
| 10955 | .block_erase = erase_chip_block_jedec, |
| 10956 | } |
| 10957 | }, |
| 10958 | .write = write_jedec_1, |
| 10959 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10960 | .voltage = {2700, 3600}, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 10961 | }, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 10962 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10963 | { |
| 10964 | .vendor = "ST", |
| 10965 | .name = "M50FLW040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10966 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10967 | .manufacture_id = ST_ID, |
| 10968 | .model_id = ST_M50FLW040A, |
| 10969 | .total_size = 512, |
| 10970 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10971 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10972 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10973 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 10974 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10975 | .block_erasers = |
| 10976 | { |
| 10977 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 10978 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10979 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 10980 | {64 * 1024, 5}, /* block */ |
| 10981 | {4 * 1024, 16}, /* sector */ |
| 10982 | {4 * 1024, 16}, /* sector */ |
| 10983 | }, |
| 10984 | .block_erase = NULL, |
| 10985 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10986 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10987 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10988 | } |
| 10989 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10990 | .unlock = unlock_stm50flw0x0x, |
| 10991 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10992 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10993 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10994 | }, |
| 10995 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10996 | { |
| 10997 | .vendor = "ST", |
| 10998 | .name = "M50FLW040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10999 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11000 | .manufacture_id = ST_ID, |
| 11001 | .model_id = ST_M50FLW040B, |
| 11002 | .total_size = 512, |
| 11003 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11004 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11005 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11006 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 11007 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11008 | .block_erasers = |
| 11009 | { |
| 11010 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11011 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11012 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11013 | {4 * 1024, 16}, /* sector */ |
| 11014 | {64 * 1024, 5}, /* block */ |
| 11015 | {4 * 1024, 16}, /* sector */ |
| 11016 | }, |
| 11017 | .block_erase = NULL, |
| 11018 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11019 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11020 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11021 | } |
| 11022 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11023 | .unlock = unlock_stm50flw0x0x, |
| 11024 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11025 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11026 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11027 | }, |
| 11028 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11029 | { |
| 11030 | .vendor = "ST", |
| 11031 | .name = "M50FLW080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11032 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11033 | .manufacture_id = ST_ID, |
| 11034 | .model_id = ST_M50FLW080A, |
| 11035 | .total_size = 1024, |
| 11036 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11037 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 11038 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11039 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 11040 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11041 | .block_erasers = |
| 11042 | { |
| 11043 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11044 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11045 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11046 | {64 * 1024, 13}, /* block */ |
| 11047 | {4 * 1024, 16}, /* sector */ |
| 11048 | {4 * 1024, 16}, /* sector */ |
| 11049 | }, |
| 11050 | .block_erase = NULL, |
| 11051 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11052 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11053 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11054 | } |
| 11055 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11056 | .unlock = unlock_stm50flw0x0x, |
| 11057 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11058 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11059 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11060 | }, |
| 11061 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11062 | { |
| 11063 | .vendor = "ST", |
| 11064 | .name = "M50FLW080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11065 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11066 | .manufacture_id = ST_ID, |
| 11067 | .model_id = ST_M50FLW080B, |
| 11068 | .total_size = 1024, |
| 11069 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11070 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11071 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11072 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 11073 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11074 | .block_erasers = |
| 11075 | { |
| 11076 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11077 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11078 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11079 | {4 * 1024, 16}, /* sector */ |
| 11080 | {64 * 1024, 13}, /* block */ |
| 11081 | {4 * 1024, 16}, /* sector */ |
| 11082 | }, |
| 11083 | .block_erase = NULL, |
| 11084 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11085 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11086 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11087 | } |
| 11088 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11089 | .unlock = unlock_stm50flw0x0x, |
| 11090 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11091 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11092 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11093 | }, |
| 11094 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11095 | { |
| 11096 | .vendor = "ST", |
| 11097 | .name = "M50FW002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11098 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11099 | .manufacture_id = ST_ID, |
| 11100 | .model_id = ST_M50FW002, |
| 11101 | .total_size = 256, |
| 11102 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11103 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11104 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11105 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11106 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11107 | .block_erasers = |
| 11108 | { |
| 11109 | { |
| 11110 | .eraseblocks = { |
| 11111 | {64 * 1024, 3}, |
| 11112 | {32 * 1024, 1}, |
| 11113 | {8 * 1024, 2}, |
| 11114 | {16 * 1024, 1}, |
| 11115 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11116 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11117 | } |
| 11118 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11119 | .unlock = unlock_stm50flw0x0x, |
| 11120 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11121 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11122 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11123 | }, |
| 11124 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11125 | { |
| 11126 | .vendor = "ST", |
| 11127 | .name = "M50FW016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11128 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11129 | .manufacture_id = ST_ID, |
| 11130 | .model_id = ST_M50FW016, |
| 11131 | .total_size = 2048, |
| 11132 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11133 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11134 | .tested = TEST_UNTESTED, |
| 11135 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11136 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11137 | .block_erasers = |
| 11138 | { |
| 11139 | { |
| 11140 | .eraseblocks = { {64 * 1024, 32}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11141 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11142 | } |
| 11143 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11144 | .unlock = unlock_stm50flw0x0x, |
| 11145 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11146 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11147 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11148 | }, |
| 11149 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11150 | { |
| 11151 | .vendor = "ST", |
| 11152 | .name = "M50FW040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11153 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11154 | .manufacture_id = ST_ID, |
| 11155 | .model_id = ST_M50FW040, |
| 11156 | .total_size = 512, |
| 11157 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11158 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11159 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11160 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11161 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11162 | .block_erasers = |
| 11163 | { |
| 11164 | { |
| 11165 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11166 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11167 | } |
| 11168 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11169 | .unlock = unlock_stm50flw0x0x, |
| 11170 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11171 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11172 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11173 | }, |
| 11174 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11175 | { |
| 11176 | .vendor = "ST", |
| 11177 | .name = "M50FW080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11178 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11179 | .manufacture_id = ST_ID, |
| 11180 | .model_id = ST_M50FW080, |
| 11181 | .total_size = 1024, |
| 11182 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11183 | .feature_bits = FEATURE_REGISTERMAP, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 11184 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11185 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11186 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11187 | .block_erasers = |
| 11188 | { |
| 11189 | { |
| 11190 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11191 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11192 | } |
| 11193 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11194 | .unlock = unlock_stm50flw0x0x, |
| 11195 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11196 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11197 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11198 | }, |
| 11199 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11200 | { |
| 11201 | .vendor = "ST", |
| 11202 | .name = "M50LPW116", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11203 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11204 | .manufacture_id = ST_ID, |
| 11205 | .model_id = ST_M50LPW116, |
| 11206 | .total_size = 2048, |
| 11207 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11208 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11209 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11210 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11211 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11212 | .block_erasers = |
| 11213 | { |
| 11214 | { |
| 11215 | .eraseblocks = { |
| 11216 | {4 * 1024, 16}, |
| 11217 | {64 * 1024, 30}, |
| 11218 | {32 * 1024, 1}, |
| 11219 | {8 * 1024, 2}, |
| 11220 | {16 * 1024, 1}, |
| 11221 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11222 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11223 | } |
| 11224 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11225 | .unlock = unlock_stm50flw0x0x, |
| 11226 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11227 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11228 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11229 | }, |
| 11230 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11231 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11232 | .vendor = "SyncMOS/MoselVitelic", |
| 11233 | .name = "{F,S,V}29C51001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11234 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11235 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11236 | .model_id = SM_MVC_29C51001B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11237 | .total_size = 128, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11238 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11239 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11240 | .tested = TEST_UNTESTED, |
| 11241 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11242 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11243 | .block_erasers = |
| 11244 | { |
| 11245 | { |
| 11246 | .eraseblocks = { {512, 256} }, |
| 11247 | .block_erase = erase_sector_jedec, |
| 11248 | }, { |
| 11249 | .eraseblocks = { {128 * 1024, 1} }, |
| 11250 | .block_erase = erase_chip_block_jedec, |
| 11251 | }, |
| 11252 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11253 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11254 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11255 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11256 | }, |
| 11257 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11258 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11259 | .vendor = "SyncMOS/MoselVitelic", |
| 11260 | .name = "{F,S,V}29C51001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11261 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11262 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11263 | .model_id = SM_MVC_29C51001T, |
| 11264 | .total_size = 128, |
| 11265 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11266 | .feature_bits = FEATURE_EITHER_RESET, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11267 | .tested = TEST_UNTESTED, |
| 11268 | .probe = probe_jedec, |
| 11269 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11270 | .block_erasers = |
| 11271 | { |
| 11272 | { |
| 11273 | .eraseblocks = { {512, 256} }, |
| 11274 | .block_erase = erase_sector_jedec, |
| 11275 | }, { |
| 11276 | .eraseblocks = { {128 * 1024, 1} }, |
| 11277 | .block_erase = erase_chip_block_jedec, |
| 11278 | }, |
| 11279 | }, |
| 11280 | .write = write_jedec_1, |
| 11281 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11282 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11283 | }, |
| 11284 | |
| 11285 | { |
| 11286 | .vendor = "SyncMOS/MoselVitelic", |
| 11287 | .name = "{F,S,V}29C51002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11288 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11289 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11290 | .model_id = SM_MVC_29C51002B, |
| 11291 | .total_size = 256, |
| 11292 | .page_size = 512, |
| 11293 | .feature_bits = FEATURE_EITHER_RESET, |
| 11294 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11295 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11296 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11297 | .block_erasers = |
| 11298 | { |
| 11299 | { |
| 11300 | .eraseblocks = { {512, 512} }, |
| 11301 | .block_erase = erase_sector_jedec, |
| 11302 | }, { |
| 11303 | .eraseblocks = { {256 * 1024, 1} }, |
| 11304 | .block_erase = erase_chip_block_jedec, |
| 11305 | }, |
| 11306 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11307 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11308 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11309 | }, |
| 11310 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11311 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11312 | .vendor = "SyncMOS/MoselVitelic", |
| 11313 | .name = "{F,S,V}29C51002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11314 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11315 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11316 | .model_id = SM_MVC_29C51002T, |
| 11317 | .total_size = 256, |
| 11318 | .page_size = 512, |
| 11319 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 11320 | .tested = TEST_OK_PREW, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11321 | .probe = probe_jedec, |
| 11322 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11323 | .block_erasers = |
| 11324 | { |
| 11325 | { |
| 11326 | .eraseblocks = { {512, 512} }, |
| 11327 | .block_erase = erase_sector_jedec, |
| 11328 | }, { |
| 11329 | .eraseblocks = { {256 * 1024, 1} }, |
| 11330 | .block_erase = erase_chip_block_jedec, |
| 11331 | }, |
| 11332 | }, |
| 11333 | .write = write_jedec_1, |
| 11334 | .read = read_memmapped, |
| 11335 | }, |
| 11336 | |
| 11337 | { |
| 11338 | .vendor = "SyncMOS/MoselVitelic", |
| 11339 | .name = "{F,S,V}29C51004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11340 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11341 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11342 | .model_id = SM_MVC_29C51004B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11343 | .total_size = 512, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11344 | .page_size = 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11345 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11346 | .tested = TEST_UNTESTED, |
| 11347 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11348 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11349 | .block_erasers = |
| 11350 | { |
| 11351 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11352 | .eraseblocks = { {1024, 512} }, |
| 11353 | .block_erase = erase_sector_jedec, |
| 11354 | }, { |
| 11355 | .eraseblocks = { {512 * 1024, 1} }, |
| 11356 | .block_erase = erase_chip_block_jedec, |
| 11357 | }, |
| 11358 | }, |
| 11359 | .write = write_jedec_1, |
| 11360 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11361 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11362 | }, |
| 11363 | |
| 11364 | { |
| 11365 | .vendor = "SyncMOS/MoselVitelic", |
| 11366 | .name = "{F,S,V}29C51004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11367 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11368 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11369 | .model_id = SM_MVC_29C51004T, |
| 11370 | .total_size = 512, |
| 11371 | .page_size = 1024, |
| 11372 | .feature_bits = FEATURE_EITHER_RESET, |
| 11373 | .tested = TEST_UNTESTED, |
| 11374 | .probe = probe_jedec, |
| 11375 | .probe_timing = TIMING_ZERO, |
| 11376 | .block_erasers = |
| 11377 | { |
| 11378 | { |
| 11379 | .eraseblocks = { {1024, 512} }, |
| 11380 | .block_erase = erase_sector_jedec, |
| 11381 | }, { |
| 11382 | .eraseblocks = { {512 * 1024, 1} }, |
| 11383 | .block_erase = erase_chip_block_jedec, |
| 11384 | }, |
| 11385 | }, |
| 11386 | .write = write_jedec_1, |
| 11387 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11388 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11389 | }, |
| 11390 | |
| 11391 | { |
| 11392 | .vendor = "SyncMOS/MoselVitelic", |
| 11393 | .name = "{S,V}29C31004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11394 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11395 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11396 | .model_id = SM_MVC_29C31004B, |
| 11397 | .total_size = 512, |
| 11398 | .page_size = 1024, |
| 11399 | .feature_bits = FEATURE_EITHER_RESET, |
| 11400 | .tested = TEST_UNTESTED, |
| 11401 | .probe = probe_jedec, |
| 11402 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11403 | .block_erasers = |
| 11404 | { |
| 11405 | { |
| 11406 | .eraseblocks = { {1024, 512} }, |
| 11407 | .block_erase = erase_sector_jedec, |
| 11408 | }, { |
| 11409 | .eraseblocks = { {512 * 1024, 1} }, |
| 11410 | .block_erase = erase_chip_block_jedec, |
| 11411 | }, |
| 11412 | }, |
| 11413 | .write = write_jedec_1, |
| 11414 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11415 | .voltage = {3000, 3600}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11416 | }, |
| 11417 | |
| 11418 | { |
| 11419 | .vendor = "SyncMOS/MoselVitelic", |
| 11420 | .name = "{S,V}29C31004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11421 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11422 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11423 | .model_id = SM_MVC_29C31004T, |
| 11424 | .total_size = 512, |
| 11425 | .page_size = 1024, |
| 11426 | .feature_bits = FEATURE_EITHER_RESET, |
| 11427 | .tested = TEST_UNTESTED, |
| 11428 | .probe = probe_jedec, |
| 11429 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11430 | .block_erasers = |
| 11431 | { |
| 11432 | { |
| 11433 | .eraseblocks = { {1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11434 | .block_erase = erase_sector_jedec, |
| 11435 | }, { |
| 11436 | .eraseblocks = { {512 * 1024, 1} }, |
| 11437 | .block_erase = erase_chip_block_jedec, |
| 11438 | }, |
| 11439 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11440 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11441 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11442 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11443 | }, |
| 11444 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11445 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 11446 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11447 | .name = "TMS29F002RB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11448 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11449 | .manufacture_id = TI_OLD_ID, |
| 11450 | .model_id = TI_TMS29F002RB, |
| 11451 | .total_size = 256, |
| 11452 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11453 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11454 | .tested = TEST_UNTESTED, |
| 11455 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11456 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11457 | .block_erasers = |
| 11458 | { |
| 11459 | { |
| 11460 | .eraseblocks = { |
| 11461 | {16 * 1024, 1}, |
| 11462 | {8 * 1024, 2}, |
| 11463 | {32 * 1024, 1}, |
| 11464 | {64 * 1024, 3}, |
| 11465 | }, |
| 11466 | .block_erase = erase_sector_jedec, |
| 11467 | }, { |
| 11468 | .eraseblocks = { {256 * 1024, 1} }, |
| 11469 | .block_erase = erase_chip_block_jedec, |
| 11470 | }, |
| 11471 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11472 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11473 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11474 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11475 | }, |
| 11476 | |
| 11477 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 11478 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11479 | .name = "TMS29F002RT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11480 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11481 | .manufacture_id = TI_OLD_ID, |
| 11482 | .model_id = TI_TMS29F002RT, |
| 11483 | .total_size = 256, |
| 11484 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11485 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11486 | .tested = TEST_UNTESTED, |
| 11487 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11488 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11489 | .block_erasers = |
| 11490 | { |
| 11491 | { |
| 11492 | .eraseblocks = { |
| 11493 | {64 * 1024, 3}, |
| 11494 | {32 * 1024, 1}, |
| 11495 | {8 * 1024, 2}, |
| 11496 | {16 * 1024, 1}, |
| 11497 | }, |
| 11498 | .block_erase = erase_sector_jedec, |
| 11499 | }, { |
| 11500 | .eraseblocks = { {256 * 1024, 1} }, |
| 11501 | .block_erase = erase_chip_block_jedec, |
| 11502 | }, |
| 11503 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11504 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11505 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11506 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11507 | }, |
| 11508 | |
| 11509 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11510 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11511 | .name = "W25Q80.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11512 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11513 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11514 | .model_id = WINBOND_NEX_W25Q80_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11515 | .total_size = 1024, |
| 11516 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11517 | /* supports SFDP */ |
| 11518 | /* 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] | 11519 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 11520 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11521 | .probe = probe_spi_rdid, |
| 11522 | .probe_timing = TIMING_ZERO, |
| 11523 | .block_erasers = |
| 11524 | { |
| 11525 | { |
| 11526 | .eraseblocks = { {4 * 1024, 256} }, |
| 11527 | .block_erase = spi_block_erase_20, |
| 11528 | }, { |
| 11529 | .eraseblocks = { {32 * 1024, 32} }, |
| 11530 | .block_erase = spi_block_erase_52, |
| 11531 | }, { |
| 11532 | .eraseblocks = { {64 * 1024, 16} }, |
| 11533 | .block_erase = spi_block_erase_d8, |
| 11534 | }, { |
| 11535 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11536 | .block_erase = spi_block_erase_60, |
| 11537 | }, { |
| 11538 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11539 | .block_erase = spi_block_erase_c7, |
| 11540 | } |
| 11541 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11542 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11543 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11544 | .write = spi_chip_write_256, |
| 11545 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11546 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11547 | }, |
| 11548 | |
| 11549 | { |
| 11550 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11551 | .name = "W25Q16.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11552 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11553 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11554 | .model_id = WINBOND_NEX_W25Q16_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11555 | .total_size = 2048, |
| 11556 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11557 | /* supports SFDP */ |
| 11558 | /* 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] | 11559 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 11560 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11561 | .probe = probe_spi_rdid, |
| 11562 | .probe_timing = TIMING_ZERO, |
| 11563 | .block_erasers = |
| 11564 | { |
| 11565 | { |
| 11566 | .eraseblocks = { {4 * 1024, 512} }, |
| 11567 | .block_erase = spi_block_erase_20, |
| 11568 | }, { |
| 11569 | .eraseblocks = { {32 * 1024, 64} }, |
| 11570 | .block_erase = spi_block_erase_52, |
| 11571 | }, { |
| 11572 | .eraseblocks = { {64 * 1024, 32} }, |
| 11573 | .block_erase = spi_block_erase_d8, |
| 11574 | }, { |
| 11575 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11576 | .block_erase = spi_block_erase_60, |
| 11577 | }, { |
| 11578 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11579 | .block_erase = spi_block_erase_c7, |
| 11580 | } |
| 11581 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11582 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11583 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11584 | .write = spi_chip_write_256, |
| 11585 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11586 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11587 | }, |
| 11588 | |
| 11589 | { |
| 11590 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11591 | .name = "W25Q32.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11592 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11593 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11594 | .model_id = WINBOND_NEX_W25Q32_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11595 | .total_size = 4096, |
| 11596 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11597 | /* supports SFDP */ |
| 11598 | /* 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] | 11599 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 11600 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11601 | .probe = probe_spi_rdid, |
| 11602 | .probe_timing = TIMING_ZERO, |
| 11603 | .block_erasers = |
| 11604 | { |
| 11605 | { |
| 11606 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11607 | .block_erase = spi_block_erase_20, |
| 11608 | }, { |
| 11609 | .eraseblocks = { {32 * 1024, 128} }, |
| 11610 | .block_erase = spi_block_erase_52, |
| 11611 | }, { |
| 11612 | .eraseblocks = { {64 * 1024, 64} }, |
| 11613 | .block_erase = spi_block_erase_d8, |
| 11614 | }, { |
| 11615 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11616 | .block_erase = spi_block_erase_60, |
| 11617 | }, { |
| 11618 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11619 | .block_erase = spi_block_erase_c7, |
| 11620 | } |
| 11621 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11622 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11623 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11624 | .write = spi_chip_write_256, |
| 11625 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11626 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11627 | }, |
| 11628 | |
| 11629 | { |
| 11630 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11631 | .name = "W25Q64.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11632 | .bustype = BUS_SPI, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 11633 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11634 | .model_id = WINBOND_NEX_W25Q64_V, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 11635 | .total_size = 8192, |
| 11636 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11637 | /* supports SFDP */ |
| 11638 | /* 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] | 11639 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 11640 | .tested = TEST_OK_PREW, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 11641 | .probe = probe_spi_rdid, |
| 11642 | .probe_timing = TIMING_ZERO, |
| 11643 | .block_erasers = |
| 11644 | { |
| 11645 | { |
| 11646 | .eraseblocks = { {4 * 1024, 2048} }, |
| 11647 | .block_erase = spi_block_erase_20, |
| 11648 | }, { |
| 11649 | .eraseblocks = { {32 * 1024, 256} }, |
| 11650 | .block_erase = spi_block_erase_52, |
| 11651 | }, { |
| 11652 | .eraseblocks = { {64 * 1024, 128} }, |
| 11653 | .block_erase = spi_block_erase_d8, |
| 11654 | }, { |
| 11655 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11656 | .block_erase = spi_block_erase_60, |
| 11657 | }, { |
| 11658 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11659 | .block_erase = spi_block_erase_c7, |
| 11660 | } |
| 11661 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11662 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11663 | .unlock = spi_disable_blockprotect, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 11664 | .write = spi_chip_write_256, |
| 11665 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11666 | .voltage = {2700, 3600}, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 11667 | }, |
| 11668 | |
| 11669 | { |
| 11670 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11671 | .name = "W25Q128.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11672 | .bustype = BUS_SPI, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 11673 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11674 | .model_id = WINBOND_NEX_W25Q128_V, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 11675 | .total_size = 16384, |
| 11676 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11677 | /* supports SFDP */ |
| 11678 | /* 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] | 11679 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 11680 | .tested = TEST_OK_PROBE, |
| 11681 | .probe = probe_spi_rdid, |
| 11682 | .probe_timing = TIMING_ZERO, |
| 11683 | .block_erasers = |
| 11684 | { |
| 11685 | { |
| 11686 | .eraseblocks = { {4 * 1024, 4096} }, |
| 11687 | .block_erase = spi_block_erase_20, |
| 11688 | }, { |
| 11689 | .eraseblocks = { {32 * 1024, 512} }, |
| 11690 | .block_erase = spi_block_erase_52, |
| 11691 | }, { |
| 11692 | .eraseblocks = { {64 * 1024, 256} }, |
| 11693 | .block_erase = spi_block_erase_d8, |
| 11694 | }, { |
| 11695 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 11696 | .block_erase = spi_block_erase_60, |
| 11697 | }, { |
| 11698 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 11699 | .block_erase = spi_block_erase_c7, |
| 11700 | } |
| 11701 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11702 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 11703 | .unlock = spi_disable_blockprotect, |
| 11704 | .write = spi_chip_write_256, |
| 11705 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11706 | .voltage = {2700, 3600}, |
| 11707 | }, |
| 11708 | |
| 11709 | { |
| 11710 | .vendor = "Winbond", |
| 11711 | .name = "W25Q20.W", |
| 11712 | .bustype = BUS_SPI, |
| 11713 | .manufacture_id = WINBOND_NEX_ID, |
| 11714 | .model_id = WINBOND_NEX_W25Q20_W, |
| 11715 | .total_size = 256, |
| 11716 | .page_size = 256, |
| 11717 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 11718 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11719 | .tested = TEST_UNTESTED, |
| 11720 | .probe = probe_spi_rdid, |
| 11721 | .probe_timing = TIMING_ZERO, |
| 11722 | .block_erasers = |
| 11723 | { |
| 11724 | { |
| 11725 | .eraseblocks = { {4 * 1024, 64} }, |
| 11726 | .block_erase = spi_block_erase_20, |
| 11727 | }, { |
| 11728 | .eraseblocks = { {32 * 1024, 8} }, |
| 11729 | .block_erase = spi_block_erase_52, |
| 11730 | }, { |
| 11731 | .eraseblocks = { {64 * 1024, 4} }, |
| 11732 | .block_erase = spi_block_erase_d8, |
| 11733 | }, { |
| 11734 | .eraseblocks = { {256 * 1024, 1} }, |
| 11735 | .block_erase = spi_block_erase_60, |
| 11736 | }, { |
| 11737 | .eraseblocks = { {256 * 1024, 1} }, |
| 11738 | .block_erase = spi_block_erase_c7, |
| 11739 | } |
| 11740 | }, |
| 11741 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11742 | .unlock = spi_disable_blockprotect, |
| 11743 | .write = spi_chip_write_256, |
| 11744 | .read = spi_chip_read, |
| 11745 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 11746 | }, |
| 11747 | |
| 11748 | { |
| 11749 | .vendor = "Winbond", |
| 11750 | .name = "W25Q40.W", |
| 11751 | .bustype = BUS_SPI, |
| 11752 | .manufacture_id = WINBOND_NEX_ID, |
| 11753 | .model_id = WINBOND_NEX_W25Q40_W, |
| 11754 | .total_size = 512, |
| 11755 | .page_size = 256, |
| 11756 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 11757 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11758 | .tested = TEST_UNTESTED, |
| 11759 | .probe = probe_spi_rdid, |
| 11760 | .probe_timing = TIMING_ZERO, |
| 11761 | .block_erasers = |
| 11762 | { |
| 11763 | { |
| 11764 | .eraseblocks = { {4 * 1024, 128} }, |
| 11765 | .block_erase = spi_block_erase_20, |
| 11766 | }, { |
| 11767 | .eraseblocks = { {32 * 1024, 16} }, |
| 11768 | .block_erase = spi_block_erase_52, |
| 11769 | }, { |
| 11770 | .eraseblocks = { {64 * 1024, 8} }, |
| 11771 | .block_erase = spi_block_erase_d8, |
| 11772 | }, { |
| 11773 | .eraseblocks = { {512 * 1024, 1} }, |
| 11774 | .block_erase = spi_block_erase_60, |
| 11775 | }, { |
| 11776 | .eraseblocks = { {512 * 1024, 1} }, |
| 11777 | .block_erase = spi_block_erase_c7, |
| 11778 | } |
| 11779 | }, |
| 11780 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11781 | .unlock = spi_disable_blockprotect, |
| 11782 | .write = spi_chip_write_256, |
| 11783 | .read = spi_chip_read, |
| 11784 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 11785 | }, |
| 11786 | |
| 11787 | { |
| 11788 | .vendor = "Winbond", |
| 11789 | .name = "W25Q80.W", |
| 11790 | .bustype = BUS_SPI, |
| 11791 | .manufacture_id = WINBOND_NEX_ID, |
| 11792 | .model_id = WINBOND_NEX_W25Q80_W, |
| 11793 | .total_size = 1024, |
| 11794 | .page_size = 256, |
| 11795 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 11796 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11797 | .tested = TEST_UNTESTED, |
| 11798 | .probe = probe_spi_rdid, |
| 11799 | .probe_timing = TIMING_ZERO, |
| 11800 | .block_erasers = |
| 11801 | { |
| 11802 | { |
| 11803 | .eraseblocks = { {4 * 1024, 256} }, |
| 11804 | .block_erase = spi_block_erase_20, |
| 11805 | }, { |
| 11806 | .eraseblocks = { {32 * 1024, 32} }, |
| 11807 | .block_erase = spi_block_erase_52, |
| 11808 | }, { |
| 11809 | .eraseblocks = { {64 * 1024, 16} }, |
| 11810 | .block_erase = spi_block_erase_d8, |
| 11811 | }, { |
| 11812 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 11813 | .block_erase = spi_block_erase_60, |
| 11814 | }, { |
| 11815 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 11816 | .block_erase = spi_block_erase_c7, |
| 11817 | } |
| 11818 | }, |
| 11819 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11820 | .unlock = spi_disable_blockprotect, |
| 11821 | .write = spi_chip_write_256, |
| 11822 | .read = spi_chip_read, |
| 11823 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 11824 | }, |
| 11825 | |
| 11826 | { |
| 11827 | .vendor = "Winbond", |
| 11828 | .name = "W25Q16.W", |
| 11829 | .bustype = BUS_SPI, |
| 11830 | .manufacture_id = WINBOND_NEX_ID, |
| 11831 | .model_id = WINBOND_NEX_W25Q16_W, |
| 11832 | .total_size = 2048, |
| 11833 | .page_size = 256, |
| 11834 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 11835 | /* QPI enable 0x38, disable 0xFF */ |
| 11836 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 11837 | .tested = TEST_UNTESTED, |
| 11838 | .probe = probe_spi_rdid, |
| 11839 | .probe_timing = TIMING_ZERO, |
| 11840 | .block_erasers = |
| 11841 | { |
| 11842 | { |
| 11843 | .eraseblocks = { {4 * 1024, 512} }, |
| 11844 | .block_erase = spi_block_erase_20, |
| 11845 | }, { |
| 11846 | .eraseblocks = { {32 * 1024, 64} }, |
| 11847 | .block_erase = spi_block_erase_52, |
| 11848 | }, { |
| 11849 | .eraseblocks = { {64 * 1024, 32} }, |
| 11850 | .block_erase = spi_block_erase_d8, |
| 11851 | }, { |
| 11852 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11853 | .block_erase = spi_block_erase_60, |
| 11854 | }, { |
| 11855 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11856 | .block_erase = spi_block_erase_c7, |
| 11857 | } |
| 11858 | }, |
| 11859 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11860 | .unlock = spi_disable_blockprotect, |
| 11861 | .write = spi_chip_write_256, |
| 11862 | .read = spi_chip_read, |
| 11863 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 11864 | }, |
| 11865 | |
| 11866 | { |
| 11867 | .vendor = "Winbond", |
| 11868 | .name = "W25Q32.W", |
| 11869 | .bustype = BUS_SPI, |
| 11870 | .manufacture_id = WINBOND_NEX_ID, |
| 11871 | .model_id = WINBOND_NEX_W25Q32_W, |
| 11872 | .total_size = 4096, |
| 11873 | .page_size = 256, |
| 11874 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 11875 | /* QPI enable 0x38, disable 0xFF */ |
| 11876 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 11877 | .tested = TEST_OK_PREW, |
| 11878 | .probe = probe_spi_rdid, |
| 11879 | .probe_timing = TIMING_ZERO, |
| 11880 | .block_erasers = |
| 11881 | { |
| 11882 | { |
| 11883 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11884 | .block_erase = spi_block_erase_20, |
| 11885 | }, { |
| 11886 | .eraseblocks = { {32 * 1024, 128} }, |
| 11887 | .block_erase = spi_block_erase_52, |
| 11888 | }, { |
| 11889 | .eraseblocks = { {64 * 1024, 64} }, |
| 11890 | .block_erase = spi_block_erase_d8, |
| 11891 | }, { |
| 11892 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11893 | .block_erase = spi_block_erase_60, |
| 11894 | }, { |
| 11895 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11896 | .block_erase = spi_block_erase_c7, |
| 11897 | } |
| 11898 | }, |
| 11899 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11900 | .unlock = spi_disable_blockprotect, |
| 11901 | .write = spi_chip_write_256, |
| 11902 | .read = spi_chip_read, |
| 11903 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 11904 | }, |
| 11905 | |
| 11906 | { |
| 11907 | .vendor = "Winbond", |
| 11908 | .name = "W25Q64.W", |
| 11909 | .bustype = BUS_SPI, |
| 11910 | .manufacture_id = WINBOND_NEX_ID, |
| 11911 | .model_id = WINBOND_NEX_W25Q64_W, |
| 11912 | .total_size = 8192, |
| 11913 | .page_size = 256, |
| 11914 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 11915 | /* QPI enable 0x38, disable 0xFF */ |
| 11916 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 11917 | .tested = TEST_UNTESTED, |
| 11918 | .probe = probe_spi_rdid, |
| 11919 | .probe_timing = TIMING_ZERO, |
| 11920 | .block_erasers = |
| 11921 | { |
| 11922 | { |
| 11923 | .eraseblocks = { {4 * 1024, 2048} }, |
| 11924 | .block_erase = spi_block_erase_20, |
| 11925 | }, { |
| 11926 | .eraseblocks = { {32 * 1024, 256} }, |
| 11927 | .block_erase = spi_block_erase_52, |
| 11928 | }, { |
| 11929 | .eraseblocks = { {64 * 1024, 128} }, |
| 11930 | .block_erase = spi_block_erase_d8, |
| 11931 | }, { |
| 11932 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11933 | .block_erase = spi_block_erase_60, |
| 11934 | }, { |
| 11935 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11936 | .block_erase = spi_block_erase_c7, |
| 11937 | } |
| 11938 | }, |
| 11939 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11940 | .unlock = spi_disable_blockprotect, |
| 11941 | .write = spi_chip_write_256, |
| 11942 | .read = spi_chip_read, |
| 11943 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 11944 | }, |
| 11945 | |
| 11946 | { |
| 11947 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 11948 | .name = "W25X10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11949 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11950 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11951 | .model_id = WINBOND_NEX_W25X10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11952 | .total_size = 128, |
| 11953 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 11954 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 11955 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11956 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11957 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11958 | .block_erasers = |
| 11959 | { |
| 11960 | { |
| 11961 | .eraseblocks = { {4 * 1024, 32} }, |
| 11962 | .block_erase = spi_block_erase_20, |
| 11963 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11964 | .eraseblocks = { {64 * 1024, 2} }, |
| 11965 | .block_erase = spi_block_erase_d8, |
| 11966 | }, { |
| 11967 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11968 | .block_erase = spi_block_erase_c7, |
| 11969 | } |
| 11970 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11971 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11972 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 11973 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11974 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11975 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11976 | }, |
| 11977 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11978 | { |
| 11979 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 11980 | .name = "W25X20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11981 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11982 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11983 | .model_id = WINBOND_NEX_W25X20, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11984 | .total_size = 256, |
| 11985 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 11986 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11987 | .tested = TEST_UNTESTED, |
| 11988 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11989 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11990 | .block_erasers = |
| 11991 | { |
| 11992 | { |
| 11993 | .eraseblocks = { {4 * 1024, 64} }, |
| 11994 | .block_erase = spi_block_erase_20, |
| 11995 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11996 | .eraseblocks = { {64 * 1024, 4} }, |
| 11997 | .block_erase = spi_block_erase_d8, |
| 11998 | }, { |
| 11999 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12000 | .block_erase = spi_block_erase_c7, |
| 12001 | } |
| 12002 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12003 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12004 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12005 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12006 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12007 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12008 | }, |
| 12009 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12010 | { |
| 12011 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12012 | .name = "W25X40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12013 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12014 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12015 | .model_id = WINBOND_NEX_W25X40, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12016 | .total_size = 512, |
| 12017 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12018 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 12019 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12020 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12021 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12022 | .block_erasers = |
| 12023 | { |
| 12024 | { |
| 12025 | .eraseblocks = { {4 * 1024, 128} }, |
| 12026 | .block_erase = spi_block_erase_20, |
| 12027 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12028 | .eraseblocks = { {64 * 1024, 8} }, |
| 12029 | .block_erase = spi_block_erase_d8, |
| 12030 | }, { |
| 12031 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12032 | .block_erase = spi_block_erase_c7, |
| 12033 | } |
| 12034 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12035 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12036 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12037 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12038 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12039 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12040 | }, |
| 12041 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12042 | { |
| 12043 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12044 | .name = "W25X80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12045 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12046 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12047 | .model_id = WINBOND_NEX_W25X80, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12048 | .total_size = 1024, |
| 12049 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12050 | .feature_bits = FEATURE_WRSR_WREN, |
Yul Rottmann | 6d6ab74 | 2011-03-05 16:31:57 +0000 | [diff] [blame] | 12051 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12052 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12053 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12054 | .block_erasers = |
| 12055 | { |
| 12056 | { |
| 12057 | .eraseblocks = { {4 * 1024, 256} }, |
| 12058 | .block_erase = spi_block_erase_20, |
| 12059 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12060 | .eraseblocks = { {64 * 1024, 16} }, |
| 12061 | .block_erase = spi_block_erase_d8, |
| 12062 | }, { |
| 12063 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12064 | .block_erase = spi_block_erase_c7, |
| 12065 | } |
| 12066 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12067 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12068 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12069 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12070 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12071 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12072 | }, |
| 12073 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12074 | { |
| 12075 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12076 | .name = "W25X16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12077 | .bustype = BUS_SPI, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12078 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12079 | .model_id = WINBOND_NEX_W25X16, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12080 | .total_size = 2048, |
| 12081 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12082 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 12083 | .tested = TEST_OK_PREW, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12084 | .probe = probe_spi_rdid, |
| 12085 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12086 | .block_erasers = |
| 12087 | { |
| 12088 | { |
| 12089 | .eraseblocks = { {4 * 1024, 512} }, |
| 12090 | .block_erase = spi_block_erase_20, |
| 12091 | }, { |
| 12092 | .eraseblocks = { {32 * 1024, 64} }, |
| 12093 | .block_erase = spi_block_erase_52, |
| 12094 | }, { |
| 12095 | .eraseblocks = { {64 * 1024, 32} }, |
| 12096 | .block_erase = spi_block_erase_d8, |
| 12097 | }, { |
| 12098 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12099 | .block_erase = spi_block_erase_60, |
| 12100 | }, { |
| 12101 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12102 | .block_erase = spi_block_erase_c7, |
| 12103 | } |
| 12104 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12105 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12106 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12107 | .write = spi_chip_write_256, |
| 12108 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12109 | .voltage = {2700, 3600}, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12110 | }, |
| 12111 | |
| 12112 | { |
| 12113 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12114 | .name = "W25X32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12115 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12116 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12117 | .model_id = WINBOND_NEX_W25X32, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12118 | .total_size = 4096, |
| 12119 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12120 | .feature_bits = FEATURE_WRSR_WREN, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12121 | .tested = TEST_OK_PROBE, |
| 12122 | .probe = probe_spi_rdid, |
| 12123 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12124 | .block_erasers = |
| 12125 | { |
| 12126 | { |
| 12127 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12128 | .block_erase = spi_block_erase_20, |
| 12129 | }, { |
| 12130 | .eraseblocks = { {32 * 1024, 128} }, |
| 12131 | .block_erase = spi_block_erase_52, |
| 12132 | }, { |
| 12133 | .eraseblocks = { {64 * 1024, 64} }, |
| 12134 | .block_erase = spi_block_erase_d8, |
| 12135 | }, { |
| 12136 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12137 | .block_erase = spi_block_erase_60, |
| 12138 | }, { |
| 12139 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12140 | .block_erase = spi_block_erase_c7, |
| 12141 | } |
| 12142 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12143 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12144 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12145 | .write = spi_chip_write_256, |
| 12146 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12147 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12148 | }, |
| 12149 | |
| 12150 | { |
| 12151 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12152 | .name = "W25X64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12153 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12154 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12155 | .model_id = WINBOND_NEX_W25X64, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12156 | .total_size = 8192, |
| 12157 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12158 | .feature_bits = FEATURE_WRSR_WREN, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12159 | .tested = TEST_OK_PROBE, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12160 | .probe = probe_spi_rdid, |
| 12161 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12162 | .block_erasers = |
| 12163 | { |
| 12164 | { |
| 12165 | .eraseblocks = { {4 * 1024, 2048} }, |
| 12166 | .block_erase = spi_block_erase_20, |
| 12167 | }, { |
| 12168 | .eraseblocks = { {32 * 1024, 256} }, |
| 12169 | .block_erase = spi_block_erase_52, |
| 12170 | }, { |
| 12171 | .eraseblocks = { {64 * 1024, 128} }, |
| 12172 | .block_erase = spi_block_erase_d8, |
| 12173 | }, { |
| 12174 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12175 | .block_erase = spi_block_erase_60, |
| 12176 | }, { |
| 12177 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12178 | .block_erase = spi_block_erase_c7, |
| 12179 | } |
| 12180 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12181 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12182 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12183 | .write = spi_chip_write_256, |
| 12184 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12185 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12186 | }, |
| 12187 | |
| 12188 | { |
| 12189 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 12190 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12191 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 12192 | .manufacture_id = WINBOND_ID, |
| 12193 | .model_id = WINBOND_W29C010, |
| 12194 | .total_size = 128, |
| 12195 | .page_size = 128, |
| 12196 | .feature_bits = FEATURE_LONG_RESET, |
| 12197 | .tested = TEST_OK_PRE, |
| 12198 | .probe = probe_w29ee011, |
| 12199 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */ |
| 12200 | .block_erasers = |
| 12201 | { |
| 12202 | { |
| 12203 | .eraseblocks = { {128 * 1024, 1} }, |
| 12204 | .block_erase = erase_chip_block_jedec, |
| 12205 | } |
| 12206 | }, |
| 12207 | .write = write_jedec, |
| 12208 | .read = read_memmapped, |
| 12209 | }, |
| 12210 | |
| 12211 | {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */ |
| 12212 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12213 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12214 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12215 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12216 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12217 | .total_size = 128, |
| 12218 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12219 | .feature_bits = FEATURE_LONG_RESET, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 12220 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12221 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12222 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12223 | .block_erasers = |
| 12224 | { |
| 12225 | { |
| 12226 | .eraseblocks = { {128 * 1024, 1} }, |
| 12227 | .block_erase = erase_chip_block_jedec, |
| 12228 | } |
| 12229 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12230 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12231 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12232 | }, |
| 12233 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12234 | { |
| 12235 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12236 | .name = "W29C020(C)/W29C022", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12237 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12238 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12239 | .model_id = WINBOND_W29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12240 | .total_size = 256, |
| 12241 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12242 | .feature_bits = FEATURE_LONG_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12243 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12244 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12245 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12246 | .block_erasers = |
| 12247 | { |
| 12248 | { |
| 12249 | .eraseblocks = { {256 * 1024, 1} }, |
| 12250 | .block_erase = erase_chip_block_jedec, |
| 12251 | } |
| 12252 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12253 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12254 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12255 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12256 | }, |
| 12257 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12258 | { |
| 12259 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12260 | .name = "W29C040/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12261 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12262 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12263 | .model_id = WINBOND_W29C040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12264 | .total_size = 512, |
| 12265 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12266 | .feature_bits = FEATURE_LONG_RESET, |
| 12267 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12268 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 12269 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12270 | .block_erasers = |
| 12271 | { |
| 12272 | { |
| 12273 | .eraseblocks = { {512 * 1024, 1} }, |
| 12274 | .block_erase = erase_chip_block_jedec, |
| 12275 | } |
| 12276 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12277 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12278 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12279 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12280 | }, |
| 12281 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12282 | { |
| 12283 | .vendor = "Winbond", |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 12284 | .name = "W39F010", |
| 12285 | .bustype = BUS_PARALLEL, |
| 12286 | .manufacture_id = WINBOND_ID, |
| 12287 | .model_id = WINBOND_W39F010, |
| 12288 | .total_size = 128, |
| 12289 | .page_size = 4 * 1024, |
| 12290 | .feature_bits = FEATURE_EITHER_RESET, |
| 12291 | .tested = TEST_OK_PREW, |
| 12292 | .probe = probe_jedec, |
| 12293 | .probe_timing = 10, |
| 12294 | .block_erasers = |
| 12295 | { |
| 12296 | { |
| 12297 | .eraseblocks = { {4 * 1024, 32} }, |
| 12298 | .block_erase = erase_block_jedec, |
| 12299 | }, { |
| 12300 | .eraseblocks = { {128 * 1024, 1} }, |
| 12301 | .block_erase = erase_chip_block_jedec, |
| 12302 | } |
| 12303 | }, |
| 12304 | .printlock = printlock_w39f010, |
| 12305 | .write = write_jedec_1, |
| 12306 | .read = read_memmapped, |
| 12307 | .voltage = {4500, 5500}, |
| 12308 | }, |
| 12309 | |
| 12310 | { |
| 12311 | .vendor = "Winbond", |
| 12312 | .name = "W39L010", |
| 12313 | .bustype = BUS_PARALLEL, |
| 12314 | .manufacture_id = WINBOND_ID, |
| 12315 | .model_id = WINBOND_W39L010, |
| 12316 | .total_size = 128, |
| 12317 | .page_size = 4 * 1024, |
| 12318 | .feature_bits = FEATURE_EITHER_RESET, |
| 12319 | .tested = TEST_UNTESTED, |
| 12320 | .probe = probe_jedec, |
| 12321 | .probe_timing = 10, |
| 12322 | .block_erasers = |
| 12323 | { |
| 12324 | { |
| 12325 | .eraseblocks = { {4 * 1024, 32} }, |
| 12326 | .block_erase = erase_block_jedec, |
| 12327 | }, { |
| 12328 | .eraseblocks = { {128 * 1024, 1} }, |
| 12329 | .block_erase = erase_chip_block_jedec, |
| 12330 | } |
| 12331 | }, |
| 12332 | .printlock = printlock_w39l010, |
| 12333 | .write = write_jedec_1, |
| 12334 | .read = read_memmapped, |
| 12335 | .voltage = {3000, 3600}, |
| 12336 | }, |
| 12337 | |
| 12338 | { |
| 12339 | .vendor = "Winbond", |
| 12340 | .name = "W39L020", |
| 12341 | .bustype = BUS_PARALLEL, |
| 12342 | .manufacture_id = WINBOND_ID, |
| 12343 | .model_id = WINBOND_W39L020, |
| 12344 | .total_size = 256, |
| 12345 | .page_size = 4 * 1024, |
| 12346 | .feature_bits = FEATURE_EITHER_RESET, |
| 12347 | .tested = TEST_UNTESTED, |
| 12348 | .probe = probe_jedec, |
| 12349 | .probe_timing = 10, |
| 12350 | .block_erasers = |
| 12351 | { |
| 12352 | { |
| 12353 | .eraseblocks = { {4 * 1024, 64} }, |
| 12354 | .block_erase = erase_block_jedec, |
| 12355 | }, { |
| 12356 | .eraseblocks = { {64 * 1024, 4} }, |
| 12357 | .block_erase = erase_sector_jedec, |
| 12358 | }, { |
| 12359 | .eraseblocks = { {256 * 1024, 1} }, |
| 12360 | .block_erase = erase_chip_block_jedec, |
| 12361 | } |
| 12362 | }, |
| 12363 | .printlock = printlock_w39l020, |
| 12364 | .write = write_jedec_1, |
| 12365 | .read = read_memmapped, |
| 12366 | .voltage = {3000, 3600}, |
| 12367 | }, |
| 12368 | |
| 12369 | { |
| 12370 | .vendor = "Winbond", |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 12371 | .name = "W39L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12372 | .bustype = BUS_PARALLEL, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 12373 | .manufacture_id = WINBOND_ID, |
| 12374 | .model_id = WINBOND_W39L040, |
| 12375 | .total_size = 512, |
| 12376 | .page_size = 64 * 1024, |
| 12377 | .feature_bits = FEATURE_EITHER_RESET, |
| 12378 | .tested = TEST_OK_PR, |
| 12379 | .probe = probe_jedec, |
| 12380 | .probe_timing = 10, |
| 12381 | .block_erasers = |
| 12382 | { |
| 12383 | { |
| 12384 | .eraseblocks = { {4 * 1024, 128} }, |
| 12385 | .block_erase = erase_block_jedec, |
| 12386 | }, { |
| 12387 | .eraseblocks = { {64 * 1024, 8} }, |
| 12388 | .block_erase = erase_sector_jedec, |
| 12389 | }, { |
| 12390 | .eraseblocks = { {512 * 1024, 1} }, |
| 12391 | .block_erase = erase_chip_block_jedec, |
| 12392 | } |
| 12393 | }, |
| 12394 | .printlock = printlock_w39l040, |
| 12395 | .write = write_jedec_1, |
| 12396 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12397 | .voltage = {3000, 3600}, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 12398 | }, |
| 12399 | |
| 12400 | { |
| 12401 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12402 | .name = "W39V040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12403 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12404 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12405 | .model_id = WINBOND_W39V040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12406 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12407 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12408 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12409 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12410 | .probe = probe_jedec, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12411 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12412 | .block_erasers = |
| 12413 | { |
| 12414 | { |
| 12415 | .eraseblocks = { {64 * 1024, 8} }, |
| 12416 | .block_erase = erase_sector_jedec, |
| 12417 | }, { |
| 12418 | .eraseblocks = { {512 * 1024, 1} }, |
| 12419 | .block_erase = erase_chip_block_jedec, |
| 12420 | } |
| 12421 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12422 | .printlock = printlock_w39v040a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12423 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12424 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12425 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12426 | }, |
| 12427 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12428 | { |
| 12429 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12430 | .name = "W39V040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12431 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12432 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12433 | .model_id = WINBOND_W39V040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12434 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12435 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12436 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12437 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12438 | .probe = probe_jedec, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12439 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12440 | .block_erasers = |
| 12441 | { |
| 12442 | { |
| 12443 | .eraseblocks = { {64 * 1024, 8} }, |
| 12444 | .block_erase = erase_sector_jedec, |
| 12445 | }, { |
| 12446 | .eraseblocks = { {512 * 1024, 1} }, |
| 12447 | .block_erase = erase_chip_block_jedec, |
| 12448 | } |
| 12449 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12450 | .printlock = printlock_w39v040b, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12451 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12452 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12453 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12454 | }, |
| 12455 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12456 | { |
| 12457 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12458 | .name = "W39V040C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12459 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12460 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12461 | .model_id = WINBOND_W39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12462 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12463 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12464 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12465 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12466 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12467 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12468 | .block_erasers = |
| 12469 | { |
| 12470 | { |
| 12471 | .eraseblocks = { {64 * 1024, 8} }, |
| 12472 | .block_erase = erase_sector_jedec, |
| 12473 | }, { |
| 12474 | .eraseblocks = { {512 * 1024, 1} }, |
| 12475 | .block_erase = erase_chip_block_jedec, |
| 12476 | } |
| 12477 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 12478 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12479 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12480 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12481 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12482 | }, |
| 12483 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12484 | { |
| 12485 | .vendor = "Winbond", |
| 12486 | .name = "W39V040FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12487 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12488 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12489 | .model_id = WINBOND_W39V040FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12490 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12491 | .page_size = 64 * 1024, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 12492 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12493 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12494 | .probe = probe_jedec, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12495 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12496 | .block_erasers = |
| 12497 | { |
| 12498 | { |
| 12499 | .eraseblocks = { {4 * 1024, 128} }, |
| 12500 | .block_erase = erase_block_jedec, |
| 12501 | }, { |
| 12502 | .eraseblocks = { {64 * 1024, 8} }, |
| 12503 | .block_erase = erase_sector_jedec, |
| 12504 | }, { |
| 12505 | .eraseblocks = { {512 * 1024, 1} }, |
| 12506 | .block_erase = erase_chip_block_jedec, |
| 12507 | } |
| 12508 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12509 | .printlock = printlock_w39v040fa, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 12510 | .unlock = unlock_sst_fwhub, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12511 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12512 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12513 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12514 | }, |
| 12515 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12516 | { |
| 12517 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12518 | .name = "W39V040FB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12519 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12520 | .manufacture_id = WINBOND_ID, |
| 12521 | .model_id = WINBOND_W39V040B, |
| 12522 | .total_size = 512, |
| 12523 | .page_size = 64 * 1024, |
| 12524 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 12525 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12526 | .probe = probe_jedec, |
| 12527 | .probe_timing = 10, |
| 12528 | .block_erasers = |
| 12529 | { |
| 12530 | { |
| 12531 | .eraseblocks = { {64 * 1024, 8} }, |
| 12532 | .block_erase = erase_sector_jedec, |
| 12533 | }, { |
| 12534 | .eraseblocks = { {512 * 1024, 1} }, |
| 12535 | .block_erase = erase_chip_block_jedec, |
| 12536 | } |
| 12537 | }, |
| 12538 | .printlock = printlock_w39v040fb, |
Idwer Vollering | ecc6707 | 2010-12-26 23:55:12 +0000 | [diff] [blame] | 12539 | .unlock = unlock_w39v040fb, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12540 | .write = write_jedec_1, |
| 12541 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12542 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12543 | }, |
| 12544 | |
| 12545 | { |
| 12546 | .vendor = "Winbond", |
| 12547 | .name = "W39V040FC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12548 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12549 | .manufacture_id = WINBOND_ID, |
| 12550 | .model_id = WINBOND_W39V040C, |
| 12551 | .total_size = 512, |
| 12552 | .page_size = 64 * 1024, |
| 12553 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 12554 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12555 | .probe = probe_jedec, |
| 12556 | .probe_timing = 10, |
| 12557 | .block_erasers = |
| 12558 | { |
| 12559 | { |
| 12560 | .eraseblocks = { {64 * 1024, 8} }, |
| 12561 | .block_erase = erase_sector_jedec, |
| 12562 | }, { |
| 12563 | .eraseblocks = { {512 * 1024, 1} }, |
| 12564 | .block_erase = erase_chip_block_jedec, |
| 12565 | } |
| 12566 | }, |
| 12567 | .printlock = printlock_w39v040fc, |
| 12568 | .write = write_jedec_1, |
| 12569 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12570 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12571 | }, |
| 12572 | |
| 12573 | { |
| 12574 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12575 | .name = "W39V080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12576 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12577 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12578 | .model_id = WINBOND_W39V080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12579 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12580 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12581 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 12582 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12583 | .probe = probe_jedec, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 12584 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12585 | .block_erasers = |
| 12586 | { |
| 12587 | { |
| 12588 | .eraseblocks = { {64 * 1024, 16} }, |
| 12589 | .block_erase = erase_sector_jedec, |
| 12590 | }, { |
| 12591 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12592 | .block_erase = erase_chip_block_jedec, |
| 12593 | } |
| 12594 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12595 | .printlock = printlock_w39v080a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12596 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12597 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12598 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12599 | }, |
| 12600 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12601 | { |
| 12602 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12603 | .name = "W49F002U/N", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12604 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12605 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12606 | .model_id = WINBOND_W49F002U, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12607 | .total_size = 256, |
| 12608 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12609 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12610 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12611 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12612 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12613 | .block_erasers = |
| 12614 | { |
| 12615 | { |
| 12616 | .eraseblocks = { |
| 12617 | {128 * 1024, 1}, |
| 12618 | {96 * 1024, 1}, |
| 12619 | {8 * 1024, 2}, |
| 12620 | {16 * 1024, 1}, |
| 12621 | }, |
| 12622 | .block_erase = erase_sector_jedec, |
| 12623 | }, { |
| 12624 | .eraseblocks = { {256 * 1024, 1} }, |
| 12625 | .block_erase = erase_chip_block_jedec, |
| 12626 | } |
| 12627 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12628 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12629 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12630 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12631 | }, |
| 12632 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12633 | { |
| 12634 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 12635 | .name = "W49F020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12636 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 12637 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12638 | .model_id = WINBOND_W49F020, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 12639 | .total_size = 256, |
| 12640 | .page_size = 128, |
| 12641 | .feature_bits = FEATURE_EITHER_RESET, |
| 12642 | .tested = TEST_OK_PROBE, |
| 12643 | .probe = probe_jedec, |
| 12644 | .probe_timing = 10, |
| 12645 | .block_erasers = |
| 12646 | { |
| 12647 | { |
| 12648 | .eraseblocks = { {256 * 1024, 1} }, |
| 12649 | .block_erase = erase_chip_block_jedec, |
| 12650 | } |
| 12651 | }, |
| 12652 | .write = write_jedec_1, |
| 12653 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12654 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 12655 | }, |
| 12656 | |
| 12657 | { |
| 12658 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12659 | .name = "W49V002A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12660 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12661 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12662 | .model_id = WINBOND_W49V002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12663 | .total_size = 256, |
| 12664 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12665 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12666 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12667 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12668 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12669 | .block_erasers = |
| 12670 | { |
| 12671 | { |
| 12672 | .eraseblocks = { |
| 12673 | {64 * 1024, 3}, |
| 12674 | {32 * 1024, 1}, |
| 12675 | {8 * 1024, 2}, |
| 12676 | {16 * 1024, 1}, |
| 12677 | }, |
| 12678 | .block_erase = erase_sector_jedec, |
| 12679 | }, { |
| 12680 | .eraseblocks = { {256 * 1024, 1} }, |
| 12681 | .block_erase = erase_chip_block_jedec, |
| 12682 | } |
| 12683 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12684 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12685 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12686 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12687 | }, |
| 12688 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12689 | { |
| 12690 | .vendor = "Winbond", |
| 12691 | .name = "W49V002FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12692 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12693 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12694 | .model_id = WINBOND_W49V002FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12695 | .total_size = 256, |
| 12696 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12697 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 12698 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12699 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12700 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12701 | .block_erasers = |
| 12702 | { |
| 12703 | { |
| 12704 | .eraseblocks = { |
| 12705 | {64 * 1024, 3}, |
| 12706 | {32 * 1024, 1}, |
| 12707 | {8 * 1024, 2}, |
| 12708 | {16 * 1024, 1}, |
| 12709 | }, |
| 12710 | .block_erase = erase_sector_jedec, |
| 12711 | }, { |
| 12712 | .eraseblocks = { {256 * 1024, 1} }, |
| 12713 | .block_erase = erase_chip_block_jedec, |
| 12714 | } |
| 12715 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12716 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12717 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12718 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12719 | }, |
| 12720 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12721 | { |
| 12722 | .vendor = "Winbond", |
| 12723 | .name = "W39V080FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12724 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12725 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12726 | .model_id = WINBOND_W39V080FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12727 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12728 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12729 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12730 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 12731 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12732 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12733 | .block_erasers = |
| 12734 | { |
| 12735 | { |
| 12736 | .eraseblocks = { {64 * 1024, 16}, }, |
| 12737 | .block_erase = erase_sector_jedec, |
| 12738 | }, { |
| 12739 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12740 | .block_erase = erase_chip_block_jedec, |
| 12741 | } |
| 12742 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12743 | .printlock = printlock_w39v080fa, |
| 12744 | .unlock = unlock_w39v080fa, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12745 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12746 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12747 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12748 | }, |
| 12749 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12750 | { |
| 12751 | .vendor = "Winbond", |
| 12752 | .name = "W39V080FA (dual mode)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12753 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12754 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12755 | .model_id = WINBOND_W39V080FA_DM, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12756 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12757 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12758 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12759 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 12760 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12761 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12762 | .block_erasers = |
| 12763 | { |
| 12764 | { |
| 12765 | .eraseblocks = { {64 * 1024, 8}, }, |
| 12766 | .block_erase = erase_sector_jedec, |
| 12767 | }, { |
| 12768 | .eraseblocks = { {512 * 1024, 1} }, |
| 12769 | .block_erase = erase_chip_block_jedec, |
| 12770 | } |
| 12771 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12772 | .printlock = printlock_w39v080fa_dual, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12773 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12774 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12775 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12776 | }, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 12777 | |
| 12778 | { |
| 12779 | .vendor = "Unknown", |
| 12780 | .name = "SFDP-capable chip", |
| 12781 | .bustype = BUS_SPI, |
| 12782 | .manufacture_id = GENERIC_MANUF_ID, |
| 12783 | .model_id = SFDP_DEVICE_ID, |
| 12784 | /* We present our own "report this" text hence we do not |
| 12785 | * want the default "This flash part has status UNTESTED..." |
| 12786 | * text to be printed. */ |
| 12787 | .tested = TEST_OK_PREW, |
| 12788 | .probe = probe_spi_sfdp, |
| 12789 | .unlock = spi_disable_blockprotect, /* is this safe? */ |
| 12790 | .read = spi_chip_read, |
| 12791 | /* FIXME: some vendor extensions define this */ |
Carl-Daniel Hailfinger | 1c6d2ff | 2012-08-27 00:44:42 +0000 | [diff] [blame] | 12792 | .voltage = {0}, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 12793 | /* Everything below will be set by the probing function. */ |
| 12794 | .write = NULL, |
| 12795 | .total_size = 0, |
| 12796 | .page_size = 0, |
| 12797 | .feature_bits = 0, |
| 12798 | .block_erasers = {}, |
| 12799 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12800 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12801 | { |
Carl-Daniel Hailfinger | 532c717 | 2011-11-04 21:35:26 +0000 | [diff] [blame] | 12802 | .vendor = "Programmer", |
| 12803 | .name = "Opaque flash chip", |
| 12804 | .bustype = BUS_PROG, |
| 12805 | .manufacture_id = PROGMANUF_ID, |
| 12806 | .model_id = PROGDEV_ID, |
| 12807 | .total_size = 0, |
| 12808 | .page_size = 256, |
| 12809 | /* probe is assumed to work, rest will be filled in by probe */ |
| 12810 | .tested = TEST_OK_PROBE, |
| 12811 | .probe = probe_opaque, |
| 12812 | /* eraseblock sizes will be set by the probing function */ |
| 12813 | .block_erasers = |
| 12814 | { |
| 12815 | { |
| 12816 | .block_erase = erase_opaque, |
| 12817 | } |
| 12818 | }, |
| 12819 | .write = write_opaque, |
| 12820 | .read = read_opaque, |
| 12821 | }, |
| 12822 | |
| 12823 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 12824 | .vendor = "AMIC", |
| 12825 | .name = "unknown AMIC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12826 | .bustype = BUS_SPI, |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 12827 | .manufacture_id = AMIC_ID, |
| 12828 | .model_id = GENERIC_DEVICE_ID, |
| 12829 | .total_size = 0, |
| 12830 | .page_size = 256, |
| 12831 | .tested = TEST_BAD_PREW, |
| 12832 | .probe = probe_spi_rdid4, |
| 12833 | .probe_timing = TIMING_ZERO, |
| 12834 | .write = NULL, |
| 12835 | .read = NULL, |
| 12836 | }, |
| 12837 | |
| 12838 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12839 | .vendor = "Atmel", |
| 12840 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12841 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12842 | .manufacture_id = ATMEL_ID, |
| 12843 | .model_id = GENERIC_DEVICE_ID, |
| 12844 | .total_size = 0, |
| 12845 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 12846 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12847 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12848 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12849 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12850 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12851 | }, |
| 12852 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12853 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 12854 | .vendor = "Eon", |
| 12855 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12856 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12857 | .manufacture_id = EON_ID_NOPREFIX, |
| 12858 | .model_id = GENERIC_DEVICE_ID, |
| 12859 | .total_size = 0, |
| 12860 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 12861 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12862 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12863 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12864 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12865 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12866 | }, |
| 12867 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12868 | { |
| 12869 | .vendor = "Macronix", |
| 12870 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12871 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12872 | .manufacture_id = MACRONIX_ID, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12873 | .model_id = GENERIC_DEVICE_ID, |
| 12874 | .total_size = 0, |
| 12875 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 12876 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12877 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12878 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12879 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12880 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12881 | }, |
| 12882 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12883 | { |
| 12884 | .vendor = "PMC", |
| 12885 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12886 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12887 | .manufacture_id = PMC_ID, |
| 12888 | .model_id = GENERIC_DEVICE_ID, |
| 12889 | .total_size = 0, |
| 12890 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 12891 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12892 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12893 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12894 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12895 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12896 | }, |
| 12897 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12898 | { |
| 12899 | .vendor = "SST", |
| 12900 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12901 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12902 | .manufacture_id = SST_ID, |
| 12903 | .model_id = GENERIC_DEVICE_ID, |
| 12904 | .total_size = 0, |
| 12905 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 12906 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12907 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12908 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12909 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12910 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12911 | }, |
| 12912 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12913 | { |
| 12914 | .vendor = "ST", |
| 12915 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12916 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12917 | .manufacture_id = ST_ID, |
| 12918 | .model_id = GENERIC_DEVICE_ID, |
| 12919 | .total_size = 0, |
| 12920 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 12921 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12922 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12923 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12924 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12925 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12926 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 12927 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 12928 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 12929 | .vendor = "Sanyo", |
| 12930 | .name = "unknown Sanyo SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12931 | .bustype = BUS_SPI, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 12932 | .manufacture_id = SANYO_ID, |
| 12933 | .model_id = GENERIC_DEVICE_ID, |
| 12934 | .total_size = 0, |
| 12935 | .page_size = 256, |
| 12936 | .tested = TEST_BAD_PREW, |
| 12937 | .probe = probe_spi_rdid, |
| 12938 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 12939 | .write = NULL, |
| 12940 | .read = NULL, |
| 12941 | }, |
| 12942 | |
| 12943 | { |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 12944 | .vendor = "Winbond", |
| 12945 | .name = "unknown Winbond (ex Nexcom) SPI chip", |
| 12946 | .bustype = BUS_SPI, |
| 12947 | .manufacture_id = WINBOND_NEX_ID, |
| 12948 | .model_id = GENERIC_DEVICE_ID, |
| 12949 | .total_size = 0, |
| 12950 | .page_size = 256, |
| 12951 | .tested = TEST_BAD_PREW, |
| 12952 | .probe = probe_spi_rdid, |
| 12953 | .probe_timing = TIMING_ZERO, |
| 12954 | .write = NULL, |
| 12955 | .read = NULL, |
| 12956 | }, |
| 12957 | |
| 12958 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 12959 | .vendor = "Generic", |
| 12960 | .name = "unknown SPI chip (RDID)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12961 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 12962 | .manufacture_id = GENERIC_MANUF_ID, |
| 12963 | .model_id = GENERIC_DEVICE_ID, |
| 12964 | .total_size = 0, |
| 12965 | .page_size = 256, |
| 12966 | .tested = TEST_BAD_PREW, |
| 12967 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 12968 | .write = NULL, |
| 12969 | }, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 12970 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 12971 | { |
| 12972 | .vendor = "Generic", |
| 12973 | .name = "unknown SPI chip (REMS)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12974 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 12975 | .manufacture_id = GENERIC_MANUF_ID, |
| 12976 | .model_id = GENERIC_DEVICE_ID, |
| 12977 | .total_size = 0, |
| 12978 | .page_size = 256, |
| 12979 | .tested = TEST_BAD_PREW, |
| 12980 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 12981 | .write = NULL, |
| 12982 | }, |
| 12983 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12984 | { NULL } |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 12985 | }; |