Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 1 | /* |
Uwe Hermann | d110764 | 2007-08-29 17:52:32 +0000 | [diff] [blame] | 2 | * This file is part of the flashrom project. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 3 | * |
Uwe Hermann | d22a1d4 | 2007-09-09 20:21:05 +0000 | [diff] [blame] | 4 | * Copyright (C) 2000 Silicon Integrated System Corporation |
| 5 | * Copyright (C) 2004 Tyan Corp |
Stefan Reinauer | 4c390c8 | 2008-07-02 13:33:09 +0000 | [diff] [blame] | 6 | * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org> |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 7 | * Copyright (C) 2006-2009 Carl-Daniel Hailfinger |
Sean Nelson | c57a920 | 2010-01-04 17:15:23 +0000 | [diff] [blame] | 8 | * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com> |
Uwe Hermann | d110764 | 2007-08-29 17:52:32 +0000 | [diff] [blame] | 9 | * |
Stefan Reinauer | ce53297 | 2007-05-23 17:20:56 +0000 | [diff] [blame] | 10 | * This program is free software; you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License as published by |
| 12 | * the Free Software Foundation; either version 2 of the License, or |
| 13 | * (at your option) any later version. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 14 | * |
Stefan Reinauer | ce53297 | 2007-05-23 17:20:56 +0000 | [diff] [blame] | 15 | * This program is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU General Public License for more details. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 19 | * |
Stefan Reinauer | ce53297 | 2007-05-23 17:20:56 +0000 | [diff] [blame] | 20 | * You should have received a copy of the GNU General Public License |
| 21 | * along with this program; if not, write to the Free Software |
Uwe Hermann | d110764 | 2007-08-29 17:52:32 +0000 | [diff] [blame] | 22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 23 | */ |
| 24 | |
| 25 | #include "flash.h" |
Carl-Daniel Hailfinger | 0845464 | 2009-06-15 14:14:48 +0000 | [diff] [blame] | 26 | #include "flashchips.h" |
Sean Nelson | 14ba668 | 2010-02-26 05:48:29 +0000 | [diff] [blame] | 27 | #include "chipdrivers.h" |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 28 | |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 29 | /** |
Uwe Hermann | a972040 | 2009-05-21 15:55:46 +0000 | [diff] [blame] | 30 | * List of supported flash chips. |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 31 | * |
| 32 | * Please keep the list sorted by vendor name and chip name, so that |
| 33 | * the output of 'flashrom -L' is alphabetically sorted. |
| 34 | */ |
Carl-Daniel Hailfinger | 4c82318 | 2011-05-04 00:39:50 +0000 | [diff] [blame] | 35 | const struct flashchip flashchips[] = { |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 36 | |
Carl-Daniel Hailfinger | 21eedec | 2009-07-23 12:42:01 +0000 | [diff] [blame] | 37 | /* |
| 38 | * .vendor = Vendor name |
| 39 | * .name = Chip name |
| 40 | * .bustype = Supported flash bus types (Parallel, LPC...) |
| 41 | * .manufacture_id = Manufacturer chip ID |
| 42 | * .model_id = Model chip ID |
| 43 | * .total_size = Total size in (binary) kbytes |
| 44 | * .page_size = Page or eraseblock(?) size in bytes |
| 45 | * .tested = Test status |
| 46 | * .probe = Probe function |
| 47 | * .probe_timing = Probe function delay |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 48 | * .block_erasers[] = Array of erase layouts and erase functions |
| 49 | * { |
| 50 | * .eraseblocks[] = Array of { blocksize, blockcount } |
| 51 | * .block_erase = Block erase function |
| 52 | * } |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 53 | * .printlock = Chip lock status function |
| 54 | * .unlock = Chip unlock function |
Carl-Daniel Hailfinger | 21eedec | 2009-07-23 12:42:01 +0000 | [diff] [blame] | 55 | * .write = Chip write function |
| 56 | * .read = Chip read function |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 57 | * .voltage = Voltage range in millivolt |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 58 | */ |
| 59 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 60 | { |
| 61 | .vendor = "AMD", |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 62 | .name = "Am29F010A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 63 | .bustype = BUS_PARALLEL, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 64 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 65 | .model_id = AMD_AM29F010B, /* Same as Am29F010A */ |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 66 | .total_size = 128, |
| 67 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 68 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 69 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 70 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 71 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 72 | .block_erasers = |
| 73 | { |
| 74 | { |
| 75 | .eraseblocks = { {16 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 76 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 77 | }, { |
| 78 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 79 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 80 | }, |
| 81 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 82 | .write = write_jedec_1, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 83 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 84 | .voltage = {4500, 5500}, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 85 | }, |
| 86 | |
| 87 | { |
| 88 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 89 | .name = "Am29F002(N)BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 90 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 91 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 92 | .model_id = AMD_AM29F002BB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 93 | .total_size = 256, |
| 94 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 95 | .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 96 | .tested = TEST_UNTESTED, |
| 97 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 98 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 99 | .block_erasers = |
| 100 | { |
| 101 | { |
| 102 | .eraseblocks = { |
| 103 | {16 * 1024, 1}, |
| 104 | {8 * 1024, 2}, |
| 105 | {32 * 1024, 1}, |
| 106 | {64 * 1024, 3}, |
| 107 | }, |
| 108 | .block_erase = erase_sector_jedec, |
| 109 | }, { |
| 110 | .eraseblocks = { {256 * 1024, 1} }, |
| 111 | .block_erase = erase_chip_block_jedec, |
| 112 | }, |
| 113 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 114 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 115 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 116 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 117 | }, |
| 118 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 119 | { |
| 120 | .vendor = "AMD", |
| 121 | .name = "Am29F002(N)BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 122 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 123 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 124 | .model_id = AMD_AM29F002BT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 125 | .total_size = 256, |
| 126 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 127 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA, |
| 128 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 129 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 130 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 131 | .block_erasers = |
| 132 | { |
| 133 | { |
| 134 | .eraseblocks = { |
| 135 | {64 * 1024, 3}, |
| 136 | {32 * 1024, 1}, |
| 137 | {8 * 1024, 2}, |
| 138 | {16 * 1024, 1}, |
| 139 | }, |
| 140 | .block_erase = erase_sector_jedec, |
| 141 | }, { |
| 142 | .eraseblocks = { {256 * 1024, 1} }, |
| 143 | .block_erase = erase_chip_block_jedec, |
| 144 | }, |
| 145 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 146 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 147 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 148 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 149 | }, |
| 150 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 151 | { |
| 152 | .vendor = "AMD", |
| 153 | .name = "Am29F016D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 154 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 155 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 156 | .model_id = AMD_AM29F016D, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 157 | .total_size = 2 * 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 158 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 159 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 160 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 161 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 162 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 163 | .block_erasers = |
| 164 | { |
| 165 | { |
| 166 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 167 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 168 | }, { |
| 169 | .eraseblocks = { {2048 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 170 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 171 | }, |
| 172 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 173 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 174 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 175 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 176 | }, |
| 177 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 178 | { |
| 179 | .vendor = "AMD", |
| 180 | .name = "Am29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 181 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 182 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 183 | .model_id = AMD_AM29F040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 184 | .total_size = 512, |
| 185 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 186 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 187 | .tested = TEST_UNTESTED, |
| 188 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 189 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 190 | .block_erasers = |
| 191 | { |
| 192 | { |
| 193 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 194 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 195 | }, { |
| 196 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 197 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 198 | }, |
| 199 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 200 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 201 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 202 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 203 | }, |
| 204 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 205 | { |
| 206 | .vendor = "AMD", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 207 | .name = "Am29F080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 208 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 209 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 210 | .model_id = AMD_AM29F080B, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 211 | .total_size = 1024, |
| 212 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 213 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 214 | .tested = TEST_UNTESTED, |
| 215 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 216 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 217 | .block_erasers = |
| 218 | { |
| 219 | { |
| 220 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 221 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 222 | }, { |
| 223 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 224 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 225 | }, |
| 226 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 227 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 228 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 229 | .voltage = {4500, 5500}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 230 | }, |
| 231 | |
| 232 | { |
| 233 | .vendor = "AMD", |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 234 | .name = "Am29LV001BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 235 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 236 | .manufacture_id = AMD_ID, |
| 237 | .model_id = AMD_AM29LV001BB, |
| 238 | .total_size = 128, |
| 239 | .page_size = 64 * 1024, /* unused */ |
| 240 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 241 | .tested = TEST_OK_PREW, |
| 242 | .probe = probe_jedec, |
| 243 | .probe_timing = TIMING_ZERO, |
| 244 | .block_erasers = |
| 245 | { |
| 246 | { |
| 247 | .eraseblocks = { |
| 248 | {8 * 1024, 1}, |
| 249 | {4 * 1024, 2}, |
| 250 | {16 * 1024, 7}, |
| 251 | }, |
| 252 | .block_erase = erase_sector_jedec, |
| 253 | }, { |
| 254 | .eraseblocks = { {128 * 1024, 1} }, |
| 255 | .block_erase = erase_chip_block_jedec, |
| 256 | }, |
| 257 | }, |
| 258 | .write = write_jedec_1, |
| 259 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 260 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 261 | }, |
| 262 | |
| 263 | { |
| 264 | .vendor = "AMD", |
| 265 | .name = "Am29LV001BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 266 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 267 | .manufacture_id = AMD_ID, |
| 268 | .model_id = AMD_AM29LV001BT, |
| 269 | .total_size = 128, |
| 270 | .page_size = 64 * 1024, /* unused */ |
| 271 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 272 | .tested = TEST_UNTESTED, |
| 273 | .probe = probe_jedec, |
| 274 | .probe_timing = TIMING_ZERO, |
| 275 | .block_erasers = |
| 276 | { |
| 277 | { |
| 278 | .eraseblocks = { |
| 279 | {16 * 1024, 7}, |
| 280 | {4 * 1024, 2}, |
| 281 | {8 * 1024, 1}, |
| 282 | }, |
| 283 | .block_erase = erase_sector_jedec, |
| 284 | }, { |
| 285 | .eraseblocks = { {128 * 1024, 1} }, |
| 286 | .block_erase = erase_chip_block_jedec, |
| 287 | }, |
| 288 | }, |
| 289 | .write = write_jedec_1, |
| 290 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 291 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 292 | }, |
| 293 | |
| 294 | { |
| 295 | .vendor = "AMD", |
| 296 | .name = "Am29LV002BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 297 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 298 | .manufacture_id = AMD_ID, |
| 299 | .model_id = AMD_AM29LV002BB, |
| 300 | .total_size = 256, |
| 301 | .page_size = 64 * 1024, /* unused */ |
| 302 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 303 | .tested = TEST_UNTESTED, |
| 304 | .probe = probe_jedec, |
| 305 | .probe_timing = TIMING_ZERO, |
| 306 | .block_erasers = |
| 307 | { |
| 308 | { |
| 309 | .eraseblocks = { |
| 310 | {16 * 1024, 1}, |
| 311 | {8 * 1024, 2}, |
| 312 | {32 * 1024, 1}, |
| 313 | {64 * 1024, 3}, |
| 314 | }, |
| 315 | .block_erase = erase_sector_jedec, |
| 316 | }, { |
| 317 | .eraseblocks = { {256 * 1024, 1} }, |
| 318 | .block_erase = erase_chip_block_jedec, |
| 319 | }, |
| 320 | }, |
| 321 | .write = write_jedec_1, |
| 322 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 323 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 324 | }, |
| 325 | |
| 326 | { |
| 327 | .vendor = "AMD", |
| 328 | .name = "Am29LV002BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 329 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 330 | .manufacture_id = AMD_ID, |
| 331 | .model_id = AMD_AM29LV002BT, |
| 332 | .total_size = 256, |
| 333 | .page_size = 64 * 1024, /* unused */ |
| 334 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 335 | .tested = TEST_UNTESTED, |
| 336 | .probe = probe_jedec, |
| 337 | .probe_timing = TIMING_ZERO, |
| 338 | .block_erasers = |
| 339 | { |
| 340 | { |
| 341 | .eraseblocks = { |
| 342 | {64 * 1024, 3}, |
| 343 | {32 * 1024, 1}, |
| 344 | {8 * 1024, 2}, |
| 345 | {16 * 1024, 1}, |
| 346 | }, |
| 347 | .block_erase = erase_sector_jedec, |
| 348 | }, { |
| 349 | .eraseblocks = { {256 * 1024, 1} }, |
| 350 | .block_erase = erase_chip_block_jedec, |
| 351 | }, |
| 352 | }, |
| 353 | .write = write_jedec_1, |
| 354 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 355 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 356 | }, |
| 357 | |
| 358 | { |
| 359 | .vendor = "AMD", |
| 360 | .name = "Am29LV004BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 361 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 362 | .manufacture_id = AMD_ID, |
| 363 | .model_id = AMD_AM29LV004BB, |
| 364 | .total_size = 512, |
| 365 | .page_size = 64 * 1024, /* unused */ |
| 366 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 367 | .tested = TEST_UNTESTED, |
| 368 | .probe = probe_jedec, |
| 369 | .probe_timing = TIMING_ZERO, |
| 370 | .block_erasers = |
| 371 | { |
| 372 | { |
| 373 | .eraseblocks = { |
| 374 | {16 * 1024, 1}, |
| 375 | {8 * 1024, 2}, |
| 376 | {32 * 1024, 1}, |
| 377 | {64 * 1024, 7}, |
| 378 | }, |
| 379 | .block_erase = erase_sector_jedec, |
| 380 | }, { |
| 381 | .eraseblocks = { {512 * 1024, 1} }, |
| 382 | .block_erase = erase_chip_block_jedec, |
| 383 | }, |
| 384 | }, |
| 385 | .write = write_jedec_1, |
| 386 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 387 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 388 | }, |
| 389 | |
| 390 | { |
| 391 | .vendor = "AMD", |
| 392 | .name = "Am29LV004BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 393 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 394 | .manufacture_id = AMD_ID, |
| 395 | .model_id = AMD_AM29LV004BT, |
| 396 | .total_size = 512, |
| 397 | .page_size = 64 * 1024, /* unused */ |
| 398 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 399 | .tested = TEST_UNTESTED, |
| 400 | .probe = probe_jedec, |
| 401 | .probe_timing = TIMING_ZERO, |
| 402 | .block_erasers = |
| 403 | { |
| 404 | { |
| 405 | .eraseblocks = { |
| 406 | {64 * 1024, 7}, |
| 407 | {32 * 1024, 1}, |
| 408 | {8 * 1024, 2}, |
| 409 | {16 * 1024, 1}, |
| 410 | }, |
| 411 | .block_erase = erase_sector_jedec, |
| 412 | }, { |
| 413 | .eraseblocks = { {512 * 1024, 1} }, |
| 414 | .block_erase = erase_chip_block_jedec, |
| 415 | }, |
| 416 | }, |
| 417 | .write = write_jedec_1, |
| 418 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 419 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 420 | }, |
| 421 | |
| 422 | { |
| 423 | .vendor = "AMD", |
| 424 | .name = "Am29LV008BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 425 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 426 | .manufacture_id = AMD_ID, |
| 427 | .model_id = AMD_AM29LV008BB, |
| 428 | .total_size = 1024, |
| 429 | .page_size = 64 * 1024, /* unused */ |
| 430 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Uwe Hermann | 09ebd52 | 2011-08-25 22:54:23 +0000 | [diff] [blame] | 431 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 432 | .probe = probe_jedec, |
| 433 | .probe_timing = TIMING_ZERO, |
| 434 | .block_erasers = |
| 435 | { |
| 436 | { |
| 437 | .eraseblocks = { |
| 438 | {16 * 1024, 1}, |
| 439 | {8 * 1024, 2}, |
| 440 | {32 * 1024, 1}, |
| 441 | {64 * 1024, 15}, |
| 442 | }, |
| 443 | .block_erase = erase_sector_jedec, |
| 444 | }, { |
| 445 | .eraseblocks = { {1024 * 1024, 1} }, |
| 446 | .block_erase = erase_chip_block_jedec, |
| 447 | }, |
| 448 | }, |
| 449 | .write = write_jedec_1, |
| 450 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 451 | .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 452 | }, |
| 453 | |
| 454 | { |
| 455 | .vendor = "AMD", |
| 456 | .name = "Am29LV008BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 457 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 458 | .manufacture_id = AMD_ID, |
| 459 | .model_id = AMD_AM29LV008BT, |
| 460 | .total_size = 1024, |
| 461 | .page_size = 64 * 1024, /* unused */ |
| 462 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 463 | .tested = TEST_UNTESTED, |
| 464 | .probe = probe_jedec, |
| 465 | .probe_timing = TIMING_ZERO, |
| 466 | .block_erasers = |
| 467 | { |
| 468 | { |
| 469 | .eraseblocks = { |
| 470 | {64 * 1024, 15}, |
| 471 | {32 * 1024, 1}, |
| 472 | {8 * 1024, 2}, |
| 473 | {16 * 1024, 1}, |
| 474 | }, |
| 475 | .block_erase = erase_sector_jedec, |
| 476 | }, { |
| 477 | .eraseblocks = { {1024 * 1024, 1} }, |
| 478 | .block_erase = erase_chip_block_jedec, |
| 479 | }, |
| 480 | }, |
| 481 | .write = write_jedec_1, |
| 482 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 483 | .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 484 | }, |
| 485 | |
| 486 | { |
| 487 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 488 | .name = "Am29LV040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 489 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 490 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 491 | .model_id = AMD_AM29LV040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 492 | .total_size = 512, |
| 493 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 494 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 495 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 496 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 497 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 498 | .block_erasers = |
| 499 | { |
| 500 | { |
| 501 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 502 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 503 | }, { |
| 504 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 505 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 506 | }, |
| 507 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 508 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 509 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 510 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 511 | }, |
| 512 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 513 | { |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 514 | .vendor = "AMD", |
| 515 | .name = "Am29LV081B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 516 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 517 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 518 | .model_id = AMD_AM29LV080B, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 519 | .total_size = 1024, |
| 520 | .page_size = 64 * 1024, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 521 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */ |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 522 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 523 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 524 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 525 | .block_erasers = |
| 526 | { |
| 527 | { |
| 528 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 529 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 530 | }, { |
| 531 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 532 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 533 | }, |
| 534 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 535 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 536 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 537 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 538 | }, |
| 539 | |
| 540 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 541 | .vendor = "AMIC", |
| 542 | .name = "A25L05PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 543 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 544 | .manufacture_id = AMIC_ID, |
| 545 | .model_id = AMIC_A25L05PT, |
| 546 | .total_size = 64, |
| 547 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 548 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 549 | .tested = TEST_UNTESTED, |
| 550 | .probe = probe_spi_rdid4, |
| 551 | .probe_timing = TIMING_ZERO, |
| 552 | .block_erasers = |
| 553 | { |
| 554 | { |
| 555 | .eraseblocks = { |
| 556 | {32 * 1024, 1}, |
| 557 | {16 * 1024, 1}, |
| 558 | {8 * 1024, 1}, |
| 559 | {4 * 1024, 2}, |
| 560 | }, |
| 561 | .block_erase = spi_block_erase_d8, |
| 562 | }, { |
| 563 | .eraseblocks = { {64 * 1024, 1} }, |
| 564 | .block_erase = spi_block_erase_c7, |
| 565 | } |
| 566 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 567 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 568 | .unlock = spi_disable_blockprotect, |
| 569 | .write = spi_chip_write_256, |
| 570 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 571 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 572 | }, |
| 573 | |
| 574 | { |
| 575 | .vendor = "AMIC", |
| 576 | .name = "A25L05PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 577 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 578 | .manufacture_id = AMIC_ID, |
| 579 | .model_id = AMIC_A25L05PU, |
| 580 | .total_size = 64, |
| 581 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 582 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 583 | .tested = TEST_UNTESTED, |
| 584 | .probe = probe_spi_rdid4, |
| 585 | .probe_timing = TIMING_ZERO, |
| 586 | .block_erasers = |
| 587 | { |
| 588 | { |
| 589 | .eraseblocks = { |
| 590 | {4 * 1024, 2}, |
| 591 | {8 * 1024, 1}, |
| 592 | {16 * 1024, 1}, |
| 593 | {32 * 1024, 1}, |
| 594 | }, |
| 595 | .block_erase = spi_block_erase_d8, |
| 596 | }, { |
| 597 | .eraseblocks = { {64 * 1024, 1} }, |
| 598 | .block_erase = spi_block_erase_c7, |
| 599 | } |
| 600 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 601 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 602 | .unlock = spi_disable_blockprotect, |
| 603 | .write = spi_chip_write_256, |
| 604 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 605 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 606 | }, |
| 607 | |
| 608 | { |
| 609 | .vendor = "AMIC", |
| 610 | .name = "A25L10PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 611 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 612 | .manufacture_id = AMIC_ID, |
| 613 | .model_id = AMIC_A25L10PT, |
| 614 | .total_size = 128, |
| 615 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 616 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 617 | .tested = TEST_UNTESTED, |
| 618 | .probe = probe_spi_rdid4, |
| 619 | .probe_timing = TIMING_ZERO, |
| 620 | .block_erasers = |
| 621 | { |
| 622 | { |
| 623 | .eraseblocks = { |
| 624 | {64 * 1024, 1}, |
| 625 | {32 * 1024, 1}, |
| 626 | {16 * 1024, 1}, |
| 627 | {8 * 1024, 1}, |
| 628 | {4 * 1024, 2}, |
| 629 | }, |
| 630 | .block_erase = spi_block_erase_d8, |
| 631 | }, { |
| 632 | .eraseblocks = { {128 * 1024, 1} }, |
| 633 | .block_erase = spi_block_erase_c7, |
| 634 | } |
| 635 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 636 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 637 | .unlock = spi_disable_blockprotect, |
| 638 | .write = spi_chip_write_256, |
| 639 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 640 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 641 | }, |
| 642 | |
| 643 | { |
| 644 | .vendor = "AMIC", |
| 645 | .name = "A25L10PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 646 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 647 | .manufacture_id = AMIC_ID, |
| 648 | .model_id = AMIC_A25L10PU, |
| 649 | .total_size = 128, |
| 650 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 651 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 652 | .tested = TEST_UNTESTED, |
| 653 | .probe = probe_spi_rdid4, |
| 654 | .probe_timing = TIMING_ZERO, |
| 655 | .block_erasers = |
| 656 | { |
| 657 | { |
| 658 | .eraseblocks = { |
| 659 | {4 * 1024, 2}, |
| 660 | {8 * 1024, 1}, |
| 661 | {16 * 1024, 1}, |
| 662 | {32 * 1024, 1}, |
| 663 | {64 * 1024, 1}, |
| 664 | }, |
| 665 | .block_erase = spi_block_erase_d8, |
| 666 | }, { |
| 667 | .eraseblocks = { {128 * 1024, 1} }, |
| 668 | .block_erase = spi_block_erase_c7, |
| 669 | } |
| 670 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 671 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 672 | .unlock = spi_disable_blockprotect, |
| 673 | .write = spi_chip_write_256, |
| 674 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 675 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 676 | }, |
| 677 | |
| 678 | { |
| 679 | .vendor = "AMIC", |
| 680 | .name = "A25L20PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 681 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 682 | .manufacture_id = AMIC_ID, |
| 683 | .model_id = AMIC_A25L20PT, |
| 684 | .total_size = 256, |
| 685 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 686 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 687 | .tested = TEST_UNTESTED, |
| 688 | .probe = probe_spi_rdid4, |
| 689 | .probe_timing = TIMING_ZERO, |
| 690 | .block_erasers = |
| 691 | { |
| 692 | { |
| 693 | .eraseblocks = { |
| 694 | {64 * 1024, 3}, |
| 695 | {32 * 1024, 1}, |
| 696 | {16 * 1024, 1}, |
| 697 | {8 * 1024, 1}, |
| 698 | {4 * 1024, 2}, |
| 699 | }, |
| 700 | .block_erase = spi_block_erase_d8, |
| 701 | }, { |
| 702 | .eraseblocks = { {256 * 1024, 1} }, |
| 703 | .block_erase = spi_block_erase_c7, |
| 704 | } |
| 705 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 706 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 707 | .unlock = spi_disable_blockprotect, |
| 708 | .write = spi_chip_write_256, |
| 709 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 710 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 711 | }, |
| 712 | |
| 713 | { |
| 714 | .vendor = "AMIC", |
| 715 | .name = "A25L20PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 716 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 717 | .manufacture_id = AMIC_ID, |
| 718 | .model_id = AMIC_A25L20PU, |
| 719 | .total_size = 256, |
| 720 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 721 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 722 | .tested = TEST_UNTESTED, |
| 723 | .probe = probe_spi_rdid4, |
| 724 | .probe_timing = TIMING_ZERO, |
| 725 | .block_erasers = |
| 726 | { |
| 727 | { |
| 728 | .eraseblocks = { |
| 729 | {4 * 1024, 2}, |
| 730 | {8 * 1024, 1}, |
| 731 | {16 * 1024, 1}, |
| 732 | {32 * 1024, 1}, |
| 733 | {64 * 1024, 3}, |
| 734 | }, |
| 735 | .block_erase = spi_block_erase_d8, |
| 736 | }, { |
| 737 | .eraseblocks = { {256 * 1024, 1} }, |
| 738 | .block_erase = spi_block_erase_c7, |
| 739 | } |
| 740 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 741 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 742 | .unlock = spi_disable_blockprotect, |
| 743 | .write = spi_chip_write_256, |
| 744 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 745 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 746 | }, |
| 747 | |
| 748 | /* The A25L40P{T,U} chips are distinguished by their |
| 749 | * erase block layouts, but without any distinction in RDID. |
| 750 | * This inexplicable quirk was verified by Rudolf Marek |
| 751 | * and discussed on the flashrom mailing list on 2010-07-12. |
| 752 | */ |
| 753 | { |
| 754 | .vendor = "AMIC", |
| 755 | .name = "A25L40PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 756 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 757 | .manufacture_id = AMIC_ID, |
| 758 | .model_id = AMIC_A25L40PT, |
| 759 | .total_size = 512, |
| 760 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 761 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 762 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 763 | .probe = probe_spi_rdid4, |
| 764 | .probe_timing = TIMING_ZERO, |
| 765 | .block_erasers = |
| 766 | { |
| 767 | { |
| 768 | .eraseblocks = { |
| 769 | {64 * 1024, 7}, |
| 770 | {32 * 1024, 1}, |
| 771 | {16 * 1024, 1}, |
| 772 | {8 * 1024, 1}, |
| 773 | {4 * 1024, 2}, |
| 774 | }, |
| 775 | .block_erase = spi_block_erase_d8, |
| 776 | }, { |
| 777 | .eraseblocks = { {512 * 1024, 1} }, |
| 778 | .block_erase = spi_block_erase_c7, |
| 779 | } |
| 780 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 781 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 782 | .unlock = spi_disable_blockprotect, |
| 783 | .write = spi_chip_write_256, |
| 784 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 785 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 786 | }, |
| 787 | |
| 788 | { |
| 789 | .vendor = "AMIC", |
| 790 | .name = "A25L40PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 791 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 792 | .manufacture_id = AMIC_ID, |
| 793 | .model_id = AMIC_A25L40PU, |
| 794 | .total_size = 512, |
| 795 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 796 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 797 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 798 | .probe = probe_spi_rdid4, |
| 799 | .probe_timing = TIMING_ZERO, |
| 800 | .block_erasers = |
| 801 | { |
| 802 | { |
| 803 | .eraseblocks = { |
| 804 | {4 * 1024, 2}, |
| 805 | {8 * 1024, 1}, |
| 806 | {16 * 1024, 1}, |
| 807 | {32 * 1024, 1}, |
| 808 | {64 * 1024, 7}, |
| 809 | }, |
| 810 | .block_erase = spi_block_erase_d8, |
| 811 | }, { |
| 812 | .eraseblocks = { {512 * 1024, 1} }, |
| 813 | .block_erase = spi_block_erase_c7, |
| 814 | } |
| 815 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 816 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 817 | .unlock = spi_disable_blockprotect, |
| 818 | .write = spi_chip_write_256, |
| 819 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 820 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 821 | }, |
| 822 | |
| 823 | { |
| 824 | .vendor = "AMIC", |
| 825 | .name = "A25L80P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 826 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 827 | .manufacture_id = AMIC_ID, |
| 828 | .model_id = AMIC_A25L80P, |
| 829 | .total_size = 1024, |
| 830 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 831 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 832 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 833 | .probe = probe_spi_rdid4, |
| 834 | .probe_timing = TIMING_ZERO, |
| 835 | .block_erasers = |
| 836 | { |
| 837 | { |
| 838 | .eraseblocks = { |
| 839 | {4 * 1024, 2}, |
| 840 | {8 * 1024, 1}, |
| 841 | {16 * 1024, 1}, |
| 842 | {32 * 1024, 1}, |
| 843 | {64 * 1024, 15}, |
| 844 | }, |
| 845 | .block_erase = spi_block_erase_d8, |
| 846 | }, { |
| 847 | .eraseblocks = { {1024 * 1024, 1} }, |
| 848 | .block_erase = spi_block_erase_c7, |
| 849 | } |
| 850 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 851 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 852 | .unlock = spi_disable_blockprotect, |
| 853 | .write = spi_chip_write_256, |
| 854 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 855 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 856 | }, |
| 857 | |
| 858 | { |
| 859 | .vendor = "AMIC", |
| 860 | .name = "A25L16PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 861 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 862 | .manufacture_id = AMIC_ID, |
| 863 | .model_id = AMIC_A25L16PT, |
| 864 | .total_size = 2048, |
| 865 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 866 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 867 | .tested = TEST_UNTESTED, |
| 868 | .probe = probe_spi_rdid4, |
| 869 | .probe_timing = TIMING_ZERO, |
| 870 | .block_erasers = |
| 871 | { |
| 872 | { |
| 873 | .eraseblocks = { |
| 874 | {64 * 1024, 31}, |
| 875 | {32 * 1024, 1}, |
| 876 | {16 * 1024, 1}, |
| 877 | {8 * 1024, 1}, |
| 878 | {4 * 1024, 2}, |
| 879 | }, |
| 880 | .block_erase = spi_block_erase_d8, |
| 881 | }, { |
| 882 | .eraseblocks = { {2048 * 1024, 1} }, |
| 883 | .block_erase = spi_block_erase_60, |
| 884 | }, { |
| 885 | .eraseblocks = { {2048 * 1024, 1} }, |
| 886 | .block_erase = spi_block_erase_c7, |
| 887 | } |
| 888 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 889 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 890 | .unlock = spi_disable_blockprotect, |
| 891 | .write = spi_chip_write_256, |
| 892 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 893 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 894 | }, |
| 895 | |
| 896 | { |
| 897 | .vendor = "AMIC", |
| 898 | .name = "A25L16PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 899 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 900 | .manufacture_id = AMIC_ID, |
| 901 | .model_id = AMIC_A25L16PU, |
| 902 | .total_size = 2048, |
| 903 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 904 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 905 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 906 | .probe = probe_spi_rdid4, |
| 907 | .probe_timing = TIMING_ZERO, |
| 908 | .block_erasers = |
| 909 | { |
| 910 | { |
| 911 | .eraseblocks = { |
| 912 | {4 * 1024, 2}, |
| 913 | {8 * 1024, 1}, |
| 914 | {16 * 1024, 1}, |
| 915 | {32 * 1024, 1}, |
| 916 | {64 * 1024, 31}, |
| 917 | }, |
| 918 | .block_erase = spi_block_erase_d8, |
| 919 | }, { |
| 920 | .eraseblocks = { {2048 * 1024, 1} }, |
| 921 | .block_erase = spi_block_erase_60, |
| 922 | }, { |
| 923 | .eraseblocks = { {2048 * 1024, 1} }, |
| 924 | .block_erase = spi_block_erase_c7, |
| 925 | } |
| 926 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 927 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 928 | .unlock = spi_disable_blockprotect, |
| 929 | .write = spi_chip_write_256, |
| 930 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 931 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 932 | }, |
| 933 | |
| 934 | { |
| 935 | .vendor = "AMIC", |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 936 | .name = "A25L512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 937 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 938 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 939 | .model_id = AMIC_A25L512, |
| 940 | .total_size = 64, |
| 941 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 942 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 943 | .tested = TEST_UNTESTED, |
| 944 | .probe = probe_spi_rdid, |
| 945 | .probe_timing = TIMING_ZERO, |
| 946 | .block_erasers = |
| 947 | { |
| 948 | { |
| 949 | .eraseblocks = { { 4 * 1024, 16 } }, |
| 950 | .block_erase = spi_block_erase_20, |
| 951 | }, { |
| 952 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 953 | .block_erase = spi_block_erase_d8, |
| 954 | }, { |
| 955 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 956 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 957 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 958 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 959 | .printlock = spi_prettyprint_status_register_default_bp2, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 960 | .unlock = spi_disable_blockprotect, |
| 961 | .write = spi_chip_write_256, |
| 962 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 963 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 964 | }, |
| 965 | |
| 966 | { |
| 967 | .vendor = "AMIC", |
| 968 | .name = "A25L010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 969 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 970 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 971 | .model_id = AMIC_A25L010, |
| 972 | .total_size = 128, |
| 973 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 974 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 975 | .tested = TEST_UNTESTED, |
| 976 | .probe = probe_spi_rdid, |
| 977 | .probe_timing = TIMING_ZERO, |
| 978 | .block_erasers = |
| 979 | { |
| 980 | { |
| 981 | .eraseblocks = { { 4 * 1024, 32 } }, |
| 982 | .block_erase = spi_block_erase_20, |
| 983 | }, { |
| 984 | .eraseblocks = { { 64 * 1024, 2 } }, |
| 985 | .block_erase = spi_block_erase_d8, |
| 986 | }, { |
| 987 | .eraseblocks = { { 128 * 1024, 1 } }, |
| 988 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 989 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 990 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 991 | .printlock = spi_prettyprint_status_register_default_bp2, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 992 | .unlock = spi_disable_blockprotect, |
| 993 | .write = spi_chip_write_256, |
| 994 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 995 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 996 | }, |
| 997 | |
| 998 | { |
| 999 | .vendor = "AMIC", |
| 1000 | .name = "A25L020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1001 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1002 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1003 | .model_id = AMIC_A25L020, |
| 1004 | .total_size = 256, |
| 1005 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1006 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1007 | .tested = TEST_UNTESTED, |
| 1008 | .probe = probe_spi_rdid, |
| 1009 | .probe_timing = TIMING_ZERO, |
| 1010 | .block_erasers = |
| 1011 | { |
| 1012 | { |
| 1013 | .eraseblocks = { { 4 * 1024, 64 } }, |
| 1014 | .block_erase = spi_block_erase_20, |
| 1015 | }, { |
| 1016 | .eraseblocks = { { 64 * 1024, 4 } }, |
| 1017 | .block_erase = spi_block_erase_d8, |
| 1018 | }, { |
| 1019 | .eraseblocks = { { 256 * 1024, 1 } }, |
| 1020 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1021 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1022 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 1023 | .printlock = spi_prettyprint_status_register_default_bp2, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1024 | .unlock = spi_disable_blockprotect, |
| 1025 | .write = spi_chip_write_256, |
| 1026 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1027 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1028 | }, |
| 1029 | |
| 1030 | { |
| 1031 | .vendor = "AMIC", |
| 1032 | .name = "A25L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1033 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1034 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1035 | .model_id = AMIC_A25L040, |
| 1036 | .total_size = 512, |
| 1037 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1038 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1039 | .tested = TEST_UNTESTED, |
| 1040 | .probe = probe_spi_rdid, |
| 1041 | .probe_timing = TIMING_ZERO, |
| 1042 | .block_erasers = |
| 1043 | { |
| 1044 | { |
| 1045 | .eraseblocks = { { 4 * 1024, 128 } }, |
| 1046 | .block_erase = spi_block_erase_20, |
| 1047 | }, { |
| 1048 | .eraseblocks = { { 64 * 1024, 8 } }, |
| 1049 | .block_erase = spi_block_erase_d8, |
| 1050 | }, { |
| 1051 | .eraseblocks = { { 512 * 1024, 1 } }, |
| 1052 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1053 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1054 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 1055 | .printlock = spi_prettyprint_status_register_default_bp2, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1056 | .unlock = spi_disable_blockprotect, |
| 1057 | .write = spi_chip_write_256, |
| 1058 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1059 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1060 | }, |
| 1061 | |
| 1062 | { |
| 1063 | .vendor = "AMIC", |
| 1064 | .name = "A25L080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1065 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1066 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1067 | .model_id = AMIC_A25L080, |
| 1068 | .total_size = 1024, |
| 1069 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1070 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1071 | .tested = TEST_UNTESTED, |
| 1072 | .probe = probe_spi_rdid, |
| 1073 | .probe_timing = TIMING_ZERO, |
| 1074 | .block_erasers = |
| 1075 | { |
| 1076 | { |
| 1077 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 1078 | .block_erase = spi_block_erase_20, |
| 1079 | }, { |
| 1080 | .eraseblocks = { { 64 * 1024, 16 } }, |
| 1081 | .block_erase = spi_block_erase_d8, |
| 1082 | }, { |
| 1083 | .eraseblocks = { { 1024 * 1024, 1 } }, |
| 1084 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1085 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1086 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 1087 | .printlock = spi_prettyprint_status_register_default_bp2, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1088 | .unlock = spi_disable_blockprotect, |
| 1089 | .write = spi_chip_write_256, |
| 1090 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1091 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1092 | }, |
| 1093 | |
| 1094 | { |
| 1095 | .vendor = "AMIC", |
| 1096 | .name = "A25L016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1097 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1098 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1099 | .model_id = AMIC_A25L016, |
| 1100 | .total_size = 2048, |
| 1101 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1102 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1103 | .tested = TEST_UNTESTED, |
| 1104 | .probe = probe_spi_rdid, |
| 1105 | .probe_timing = TIMING_ZERO, |
| 1106 | .block_erasers = |
| 1107 | { |
| 1108 | { |
| 1109 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 1110 | .block_erase = spi_block_erase_20, |
| 1111 | }, { |
| 1112 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1113 | .block_erase = spi_block_erase_d8, |
| 1114 | }, { |
| 1115 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1116 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1117 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1118 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 1119 | .printlock = spi_prettyprint_status_register_default_bp2, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1120 | .unlock = spi_disable_blockprotect, |
| 1121 | .write = spi_chip_write_256, |
| 1122 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1123 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1124 | }, |
| 1125 | |
| 1126 | { |
| 1127 | .vendor = "AMIC", |
| 1128 | .name = "A25L032", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1129 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1130 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1131 | .model_id = AMIC_A25L032, |
| 1132 | .total_size = 4096, |
| 1133 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1134 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1135 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 1136 | .tested = TEST_OK_PREW, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1137 | .probe = probe_spi_rdid, |
| 1138 | .probe_timing = TIMING_ZERO, |
| 1139 | .block_erasers = |
| 1140 | { |
| 1141 | { |
| 1142 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 1143 | .block_erase = spi_block_erase_20, |
| 1144 | }, { |
| 1145 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1146 | .block_erase = spi_block_erase_52, |
| 1147 | }, { |
| 1148 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1149 | .block_erase = spi_block_erase_d8, |
| 1150 | }, { |
| 1151 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1152 | .block_erase = spi_block_erase_60, |
| 1153 | }, { |
| 1154 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1155 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1156 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1157 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 1158 | .printlock = spi_prettyprint_status_register_amic_a25l032, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1159 | .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */ |
| 1160 | .write = spi_chip_write_256, |
| 1161 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1162 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1163 | }, |
| 1164 | |
| 1165 | { |
| 1166 | .vendor = "AMIC", |
| 1167 | .name = "A25LQ032", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1168 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1169 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1170 | .model_id = AMIC_A25LQ032, |
| 1171 | .total_size = 4096, |
| 1172 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1173 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1174 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1175 | .tested = TEST_UNTESTED, |
| 1176 | .probe = probe_spi_rdid, |
| 1177 | .probe_timing = TIMING_ZERO, |
| 1178 | .block_erasers = |
| 1179 | { |
| 1180 | { |
| 1181 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 1182 | .block_erase = spi_block_erase_20, |
| 1183 | }, { |
| 1184 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1185 | .block_erase = spi_block_erase_52, |
| 1186 | }, { |
| 1187 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1188 | .block_erase = spi_block_erase_d8, |
| 1189 | }, { |
| 1190 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1191 | .block_erase = spi_block_erase_60, |
| 1192 | }, { |
| 1193 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1194 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1195 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1196 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 1197 | .printlock = spi_prettyprint_status_register_amic_a25l032, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1198 | .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */ |
| 1199 | .write = spi_chip_write_256, |
| 1200 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1201 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1202 | }, |
| 1203 | |
| 1204 | { |
| 1205 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1206 | .name = "A29002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1207 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1208 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1209 | .model_id = AMIC_A29002B, |
| 1210 | .total_size = 256, |
| 1211 | .page_size = 64 * 1024, |
| 1212 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 1213 | .tested = TEST_UNTESTED, |
| 1214 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1215 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1216 | .block_erasers = |
| 1217 | { |
| 1218 | { |
| 1219 | .eraseblocks = { |
| 1220 | {16 * 1024, 1}, |
| 1221 | {8 * 1024, 2}, |
| 1222 | {32 * 1024, 1}, |
| 1223 | {64 * 1024, 3}, |
| 1224 | }, |
| 1225 | .block_erase = erase_sector_jedec, |
| 1226 | }, { |
| 1227 | .eraseblocks = { {256 * 1024, 1} }, |
| 1228 | .block_erase = erase_chip_block_jedec, |
| 1229 | }, |
| 1230 | }, |
| 1231 | .write = write_jedec_1, |
| 1232 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1233 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1234 | }, |
| 1235 | |
| 1236 | { |
| 1237 | .vendor = "AMIC", |
| 1238 | .name = "A29002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1239 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1240 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1241 | .model_id = AMIC_A29002T, |
| 1242 | .total_size = 256, |
| 1243 | .page_size = 64 * 1024, |
| 1244 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 1245 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1246 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1247 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1248 | .block_erasers = |
| 1249 | { |
| 1250 | { |
| 1251 | .eraseblocks = { |
| 1252 | {64 * 1024, 3}, |
| 1253 | {32 * 1024, 1}, |
| 1254 | {8 * 1024, 2}, |
| 1255 | {16 * 1024, 1}, |
| 1256 | }, |
| 1257 | .block_erase = erase_sector_jedec, |
| 1258 | }, { |
| 1259 | .eraseblocks = { {256 * 1024, 1} }, |
| 1260 | .block_erase = erase_chip_block_jedec, |
| 1261 | }, |
| 1262 | }, |
| 1263 | .write = write_jedec_1, |
| 1264 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1265 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1266 | }, |
| 1267 | |
| 1268 | { |
| 1269 | .vendor = "AMIC", |
| 1270 | .name = "A29040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1271 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1272 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1273 | .model_id = AMIC_A29040B, |
| 1274 | .total_size = 512, |
| 1275 | .page_size = 64 * 1024, |
| 1276 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 1277 | .tested = TEST_UNTESTED, |
| 1278 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1279 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1280 | .block_erasers = |
| 1281 | { |
| 1282 | { |
| 1283 | .eraseblocks = { {64 * 1024, 8} }, |
| 1284 | .block_erase = erase_sector_jedec, |
| 1285 | }, { |
| 1286 | .eraseblocks = { {512 * 1024, 1} }, |
| 1287 | .block_erase = erase_chip_block_jedec, |
| 1288 | }, |
| 1289 | }, |
| 1290 | .write = write_jedec_1, |
| 1291 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1292 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1293 | }, |
| 1294 | |
| 1295 | { |
| 1296 | .vendor = "AMIC", |
| 1297 | .name = "A49LF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1298 | .bustype = BUS_LPC, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1299 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1300 | .model_id = AMIC_A49LF040A, |
| 1301 | .total_size = 512, |
| 1302 | .page_size = 64 * 1024, |
| 1303 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 1304 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1305 | .probe = probe_jedec, |
| 1306 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
| 1307 | .block_erasers = |
| 1308 | { |
| 1309 | { |
| 1310 | .eraseblocks = { {64 * 1024, 8} }, |
| 1311 | .block_erase = erase_block_jedec, |
| 1312 | }, { |
| 1313 | .eraseblocks = { {512 * 1024, 1} }, |
| 1314 | .block_erase = erase_chip_block_jedec, |
| 1315 | } |
| 1316 | }, |
| 1317 | .unlock = unlock_49fl00x, |
| 1318 | .write = write_jedec_1, |
| 1319 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1320 | .voltage = {3000, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1321 | }, |
| 1322 | |
| 1323 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1324 | .vendor = "Atmel", |
| 1325 | .name = "AT25DF021", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1326 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1327 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1328 | .model_id = ATMEL_AT25DF021, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1329 | .total_size = 256, |
| 1330 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1331 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1332 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1333 | .tested = TEST_UNTESTED, |
| 1334 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1335 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1336 | .block_erasers = |
| 1337 | { |
| 1338 | { |
| 1339 | .eraseblocks = { {4 * 1024, 64} }, |
| 1340 | .block_erase = spi_block_erase_20, |
| 1341 | }, { |
| 1342 | .eraseblocks = { {32 * 1024, 8} }, |
| 1343 | .block_erase = spi_block_erase_52, |
| 1344 | }, { |
| 1345 | .eraseblocks = { {64 * 1024, 4} }, |
| 1346 | .block_erase = spi_block_erase_d8, |
| 1347 | }, { |
| 1348 | .eraseblocks = { {256 * 1024, 1} }, |
| 1349 | .block_erase = spi_block_erase_60, |
| 1350 | }, { |
| 1351 | .eraseblocks = { {256 * 1024, 1} }, |
| 1352 | .block_erase = spi_block_erase_c7, |
| 1353 | } |
| 1354 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1355 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1356 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1357 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1358 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1359 | .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1360 | }, |
| 1361 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1362 | { |
| 1363 | .vendor = "Atmel", |
| 1364 | .name = "AT25DF041A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1365 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1366 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1367 | .model_id = ATMEL_AT25DF041A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1368 | .total_size = 512, |
| 1369 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1370 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1371 | .tested = TEST_UNTESTED, |
| 1372 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1373 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1374 | .block_erasers = |
| 1375 | { |
| 1376 | { |
| 1377 | .eraseblocks = { {4 * 1024, 128} }, |
| 1378 | .block_erase = spi_block_erase_20, |
| 1379 | }, { |
| 1380 | .eraseblocks = { {32 * 1024, 16} }, |
| 1381 | .block_erase = spi_block_erase_52, |
| 1382 | }, { |
| 1383 | .eraseblocks = { {64 * 1024, 8} }, |
| 1384 | .block_erase = spi_block_erase_d8, |
| 1385 | }, { |
| 1386 | .eraseblocks = { {512 * 1024, 1} }, |
| 1387 | .block_erase = spi_block_erase_60, |
| 1388 | }, { |
| 1389 | .eraseblocks = { {512 * 1024, 1} }, |
| 1390 | .block_erase = spi_block_erase_c7, |
| 1391 | } |
| 1392 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1393 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1394 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1395 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1396 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1397 | .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1398 | }, |
| 1399 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1400 | { |
| 1401 | .vendor = "Atmel", |
| 1402 | .name = "AT25DF081", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1403 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1404 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1405 | .model_id = ATMEL_AT25DF081, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1406 | .total_size = 1024, |
| 1407 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1408 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1409 | .tested = TEST_UNTESTED, |
| 1410 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1411 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1412 | .block_erasers = |
| 1413 | { |
| 1414 | { |
| 1415 | .eraseblocks = { {4 * 1024, 256} }, |
| 1416 | .block_erase = spi_block_erase_20, |
| 1417 | }, { |
| 1418 | .eraseblocks = { {32 * 1024, 32} }, |
| 1419 | .block_erase = spi_block_erase_52, |
| 1420 | }, { |
| 1421 | .eraseblocks = { {64 * 1024, 16} }, |
| 1422 | .block_erase = spi_block_erase_d8, |
| 1423 | }, { |
| 1424 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1425 | .block_erase = spi_block_erase_60, |
| 1426 | }, { |
| 1427 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1428 | .block_erase = spi_block_erase_c7, |
| 1429 | } |
| 1430 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1431 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1432 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1433 | .write = spi_chip_write_256, |
| 1434 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1435 | .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */ |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1436 | }, |
| 1437 | |
| 1438 | { |
| 1439 | .vendor = "Atmel", |
| 1440 | .name = "AT25DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1441 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1442 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1443 | .model_id = ATMEL_AT25DF081A, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1444 | .total_size = 1024, |
| 1445 | .page_size = 256, |
| 1446 | .feature_bits = FEATURE_WRSR_WREN, |
| 1447 | .tested = TEST_UNTESTED, |
| 1448 | .probe = probe_spi_rdid, |
| 1449 | .probe_timing = TIMING_ZERO, |
| 1450 | .block_erasers = |
| 1451 | { |
| 1452 | { |
| 1453 | .eraseblocks = { {4 * 1024, 256} }, |
| 1454 | .block_erase = spi_block_erase_20, |
| 1455 | }, { |
| 1456 | .eraseblocks = { {32 * 1024, 32} }, |
| 1457 | .block_erase = spi_block_erase_52, |
| 1458 | }, { |
| 1459 | .eraseblocks = { {64 * 1024, 16} }, |
| 1460 | .block_erase = spi_block_erase_d8, |
| 1461 | }, { |
| 1462 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1463 | .block_erase = spi_block_erase_60, |
| 1464 | }, { |
| 1465 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1466 | .block_erase = spi_block_erase_c7, |
| 1467 | } |
| 1468 | }, |
| 1469 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1470 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1471 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1472 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1473 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1474 | }, |
| 1475 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1476 | { |
| 1477 | .vendor = "Atmel", |
| 1478 | .name = "AT25DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1479 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1480 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1481 | .model_id = ATMEL_AT25DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1482 | .total_size = 2048, |
| 1483 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1484 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 2abab94 | 2012-04-27 20:41:23 +0000 | [diff] [blame] | 1485 | .tested = TEST_OK_PROBE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1486 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1487 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1488 | .block_erasers = |
| 1489 | { |
| 1490 | { |
| 1491 | .eraseblocks = { {4 * 1024, 512} }, |
| 1492 | .block_erase = spi_block_erase_20, |
| 1493 | }, { |
| 1494 | .eraseblocks = { {32 * 1024, 64} }, |
| 1495 | .block_erase = spi_block_erase_52, |
| 1496 | }, { |
| 1497 | .eraseblocks = { {64 * 1024, 32} }, |
| 1498 | .block_erase = spi_block_erase_d8, |
| 1499 | }, { |
| 1500 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1501 | .block_erase = spi_block_erase_60, |
| 1502 | }, { |
| 1503 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1504 | .block_erase = spi_block_erase_c7, |
| 1505 | } |
| 1506 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1507 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1508 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1509 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1510 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1511 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1512 | }, |
| 1513 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1514 | { |
| 1515 | .vendor = "Atmel", |
| 1516 | .name = "AT25DF321", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1517 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1518 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1519 | .model_id = ATMEL_AT25DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1520 | .total_size = 4096, |
| 1521 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1522 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 1523 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1524 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1525 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1526 | .block_erasers = |
| 1527 | { |
| 1528 | { |
| 1529 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1530 | .block_erase = spi_block_erase_20, |
| 1531 | }, { |
| 1532 | .eraseblocks = { {32 * 1024, 128} }, |
| 1533 | .block_erase = spi_block_erase_52, |
| 1534 | }, { |
| 1535 | .eraseblocks = { {64 * 1024, 64} }, |
| 1536 | .block_erase = spi_block_erase_d8, |
| 1537 | }, { |
| 1538 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1539 | .block_erase = spi_block_erase_60, |
| 1540 | }, { |
| 1541 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1542 | .block_erase = spi_block_erase_c7, |
| 1543 | } |
| 1544 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1545 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1546 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1547 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1548 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1549 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1550 | }, |
| 1551 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1552 | { |
| 1553 | .vendor = "Atmel", |
| 1554 | .name = "AT25DF321A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1555 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1556 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1557 | .model_id = ATMEL_AT25DF321A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1558 | .total_size = 4096, |
| 1559 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1560 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1561 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 1562 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1563 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1564 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1565 | .block_erasers = |
| 1566 | { |
| 1567 | { |
| 1568 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1569 | .block_erase = spi_block_erase_20, |
| 1570 | }, { |
| 1571 | .eraseblocks = { {32 * 1024, 128} }, |
| 1572 | .block_erase = spi_block_erase_52, |
| 1573 | }, { |
| 1574 | .eraseblocks = { {64 * 1024, 64} }, |
| 1575 | .block_erase = spi_block_erase_d8, |
| 1576 | }, { |
| 1577 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1578 | .block_erase = spi_block_erase_60, |
| 1579 | }, { |
| 1580 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1581 | .block_erase = spi_block_erase_c7, |
| 1582 | } |
| 1583 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1584 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1585 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1586 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1587 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1588 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1589 | }, |
| 1590 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1591 | { |
| 1592 | .vendor = "Atmel", |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 1593 | .name = "AT25DF641(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1594 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1595 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1596 | .model_id = ATMEL_AT25DF641, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1597 | .total_size = 8192, |
| 1598 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1599 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1600 | .tested = TEST_UNTESTED, |
| 1601 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1602 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1603 | .block_erasers = |
| 1604 | { |
| 1605 | { |
| 1606 | .eraseblocks = { {4 * 1024, 2048} }, |
| 1607 | .block_erase = spi_block_erase_20, |
| 1608 | }, { |
| 1609 | .eraseblocks = { {32 * 1024, 256} }, |
| 1610 | .block_erase = spi_block_erase_52, |
| 1611 | }, { |
| 1612 | .eraseblocks = { {64 * 1024, 128} }, |
| 1613 | .block_erase = spi_block_erase_d8, |
| 1614 | }, { |
| 1615 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1616 | .block_erase = spi_block_erase_60, |
| 1617 | }, { |
| 1618 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1619 | .block_erase = spi_block_erase_c7, |
| 1620 | } |
| 1621 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1622 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1623 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1624 | .write = spi_chip_write_256, |
| 1625 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1626 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1627 | }, |
| 1628 | |
| 1629 | { |
| 1630 | .vendor = "Atmel", |
| 1631 | .name = "AT25DQ161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1632 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1633 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1634 | .model_id = ATMEL_AT25DQ161, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1635 | .total_size = 2048, |
| 1636 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1637 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1638 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1639 | .tested = TEST_UNTESTED, |
| 1640 | .probe = probe_spi_rdid, |
| 1641 | .probe_timing = TIMING_ZERO, |
| 1642 | .block_erasers = |
| 1643 | { |
| 1644 | { |
| 1645 | .eraseblocks = { {4 * 1024, 512} }, |
| 1646 | .block_erase = spi_block_erase_20, |
| 1647 | }, { |
| 1648 | .eraseblocks = { {32 * 1024, 64} }, |
| 1649 | .block_erase = spi_block_erase_52, |
| 1650 | }, { |
| 1651 | .eraseblocks = { {64 * 1024, 32} }, |
| 1652 | .block_erase = spi_block_erase_d8, |
| 1653 | }, { |
| 1654 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1655 | .block_erase = spi_block_erase_60, |
| 1656 | }, { |
| 1657 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1658 | .block_erase = spi_block_erase_c7, |
| 1659 | } |
| 1660 | }, |
| 1661 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1662 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1663 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1664 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1665 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1666 | }, |
| 1667 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1668 | { |
| 1669 | .vendor = "Atmel", |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1670 | .name = "AT25F512", |
| 1671 | .bustype = BUS_SPI, |
| 1672 | .manufacture_id = ATMEL_ID, |
| 1673 | .model_id = ATMEL_AT25F512, |
| 1674 | .total_size = 64, |
| 1675 | .page_size = 256, |
| 1676 | .feature_bits = FEATURE_WRSR_WREN, |
| 1677 | .tested = TEST_UNTESTED, |
| 1678 | .probe = probe_spi_at25f, |
| 1679 | .probe_timing = TIMING_ZERO, |
| 1680 | .block_erasers = |
| 1681 | { |
| 1682 | { |
| 1683 | .eraseblocks = { {32 * 1024, 2} }, |
| 1684 | .block_erase = spi_block_erase_52, |
| 1685 | }, { |
| 1686 | .eraseblocks = { {64 * 1024, 1} }, |
| 1687 | .block_erase = spi_block_erase_62, |
| 1688 | } |
| 1689 | }, |
| 1690 | .printlock = spi_prettyprint_status_register_at25f, |
| 1691 | .unlock = spi_disable_blockprotect_at25f, |
| 1692 | .write = spi_chip_write_256, |
| 1693 | .read = spi_chip_read, |
| 1694 | .voltage = {2700, 3600}, |
| 1695 | }, |
| 1696 | |
| 1697 | { |
| 1698 | .vendor = "Atmel", |
| 1699 | .name = "AT25F512A", |
| 1700 | .bustype = BUS_SPI, |
| 1701 | .manufacture_id = ATMEL_ID, |
| 1702 | .model_id = ATMEL_AT25F512A, |
| 1703 | .total_size = 64, |
| 1704 | .page_size = 128, |
| 1705 | .feature_bits = FEATURE_WRSR_WREN, |
| 1706 | .tested = TEST_UNTESTED, |
| 1707 | .probe = probe_spi_at25f, |
| 1708 | .probe_timing = TIMING_ZERO, |
| 1709 | .block_erasers = |
| 1710 | { |
| 1711 | { |
| 1712 | .eraseblocks = { {32 * 1024, 2} }, |
| 1713 | .block_erase = spi_block_erase_52, |
| 1714 | }, { |
| 1715 | .eraseblocks = { {64 * 1024, 1} }, |
| 1716 | .block_erase = spi_block_erase_62, |
| 1717 | } |
| 1718 | }, |
| 1719 | .printlock = spi_prettyprint_status_register_at25f512a, |
| 1720 | /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */ |
| 1721 | .unlock = spi_disable_blockprotect_at25f512a, |
| 1722 | .write = spi_chip_write_256, |
| 1723 | .read = spi_chip_read, |
| 1724 | .voltage = {2700, 3600}, |
| 1725 | }, |
| 1726 | |
| 1727 | { |
| 1728 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1729 | .name = "AT25F512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1730 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1731 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1732 | .model_id = ATMEL_AT25F512B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1733 | .total_size = 64, |
| 1734 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1735 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1736 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1737 | .tested = TEST_UNTESTED, |
| 1738 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1739 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1740 | .block_erasers = |
| 1741 | { |
| 1742 | { |
| 1743 | .eraseblocks = { {4 * 1024, 16} }, |
| 1744 | .block_erase = spi_block_erase_20, |
| 1745 | }, { |
| 1746 | .eraseblocks = { {32 * 1024, 2} }, |
| 1747 | .block_erase = spi_block_erase_52, |
| 1748 | }, { |
| 1749 | .eraseblocks = { {32 * 1024, 2} }, |
| 1750 | .block_erase = spi_block_erase_d8, |
| 1751 | }, { |
| 1752 | .eraseblocks = { {64 * 1024, 1} }, |
| 1753 | .block_erase = spi_block_erase_60, |
| 1754 | }, { |
| 1755 | .eraseblocks = { {64 * 1024, 1} }, |
| 1756 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | 3c0fcd0 | 2012-09-21 12:46:56 +0000 | [diff] [blame] | 1757 | }, { |
| 1758 | .eraseblocks = { {64 * 1024, 1} }, |
| 1759 | .block_erase = spi_block_erase_62, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1760 | } |
| 1761 | }, |
Stefan Tauner | 7bf4ed9 | 2012-08-26 21:04:27 +0000 | [diff] [blame] | 1762 | .printlock = spi_prettyprint_status_register_at25f512b, |
| 1763 | .unlock = spi_disable_blockprotect_at25f512b, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1764 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1765 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1766 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1767 | }, |
| 1768 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1769 | { |
| 1770 | .vendor = "Atmel", |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1771 | /* The A suffix indicates 33MHz instead of 20MHz clock rate. |
| 1772 | * All other properties seem to be the same.*/ |
| 1773 | .name = "AT25F1024(A)", |
| 1774 | .bustype = BUS_SPI, |
| 1775 | .manufacture_id = ATMEL_ID, |
| 1776 | .model_id = ATMEL_AT25F1024, |
| 1777 | .total_size = 128, |
| 1778 | .page_size = 256, |
| 1779 | .feature_bits = FEATURE_WRSR_WREN, |
| 1780 | .tested = TEST_OK_PREW, |
| 1781 | .probe = probe_spi_at25f, |
| 1782 | .probe_timing = TIMING_ZERO, |
| 1783 | .block_erasers = |
| 1784 | { |
| 1785 | { |
| 1786 | .eraseblocks = { {32 * 1024, 4} }, |
| 1787 | .block_erase = spi_block_erase_52, |
| 1788 | }, { |
| 1789 | .eraseblocks = { {128 * 1024, 1} }, |
| 1790 | .block_erase = spi_block_erase_62, |
| 1791 | } |
| 1792 | }, |
| 1793 | .printlock = spi_prettyprint_status_register_at25f, |
| 1794 | .unlock = spi_disable_blockprotect_at25f, |
| 1795 | .write = spi_chip_write_256, |
| 1796 | .read = spi_chip_read, |
| 1797 | .voltage = {2700, 3600}, |
| 1798 | }, |
| 1799 | |
| 1800 | { |
| 1801 | .vendor = "Atmel", |
| 1802 | .name = "AT25F2048", |
| 1803 | .bustype = BUS_SPI, |
| 1804 | .manufacture_id = ATMEL_ID, |
| 1805 | .model_id = ATMEL_AT25F2048, |
| 1806 | .total_size = 256, |
| 1807 | .page_size = 256, |
| 1808 | .feature_bits = FEATURE_WRSR_WREN, |
| 1809 | .tested = TEST_UNTESTED, |
| 1810 | .probe = probe_spi_at25f, |
| 1811 | .probe_timing = TIMING_ZERO, |
| 1812 | .block_erasers = |
| 1813 | { |
| 1814 | { |
| 1815 | .eraseblocks = { {64 * 1024, 4} }, |
| 1816 | .block_erase = spi_block_erase_52, |
| 1817 | }, { |
| 1818 | .eraseblocks = { {256 * 1024, 1} }, |
| 1819 | .block_erase = spi_block_erase_62, |
| 1820 | } |
| 1821 | }, |
| 1822 | .printlock = spi_prettyprint_status_register_at25f, |
| 1823 | .unlock = spi_disable_blockprotect_at25f, |
| 1824 | .write = spi_chip_write_256, |
| 1825 | .read = spi_chip_read, |
| 1826 | .voltage = {2700, 3600}, |
| 1827 | }, |
| 1828 | |
| 1829 | { |
| 1830 | .vendor = "Atmel", |
| 1831 | .name = "AT25F4096", |
| 1832 | .bustype = BUS_SPI, |
| 1833 | .manufacture_id = ATMEL_ID, |
| 1834 | .model_id = ATMEL_AT25F4096, |
| 1835 | .total_size = 512, |
| 1836 | .page_size = 256, |
| 1837 | .feature_bits = FEATURE_WRSR_WREN, |
| 1838 | .tested = TEST_UNTESTED, |
| 1839 | .probe = probe_spi_at25f, |
| 1840 | .probe_timing = TIMING_ZERO, |
| 1841 | .block_erasers = |
| 1842 | { |
| 1843 | { |
| 1844 | .eraseblocks = { {64 * 1024, 8} }, |
| 1845 | .block_erase = spi_block_erase_52, |
| 1846 | }, { |
| 1847 | .eraseblocks = { {512 * 1024, 1} }, |
| 1848 | .block_erase = spi_block_erase_62, |
| 1849 | } |
| 1850 | }, |
| 1851 | .printlock = spi_prettyprint_status_register_at25f4096, |
Stefan Tauner | 278ba6e | 2013-06-28 21:28:27 +0000 | [diff] [blame] | 1852 | /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */ |
| 1853 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1854 | .write = spi_chip_write_256, |
| 1855 | .read = spi_chip_read, |
| 1856 | .voltage = {2700, 3600}, |
| 1857 | }, |
| 1858 | |
| 1859 | { |
| 1860 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1861 | .name = "AT25FS010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1862 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1863 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1864 | .model_id = ATMEL_AT25FS010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1865 | .total_size = 128, |
| 1866 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1867 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 1868 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1869 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1870 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1871 | .block_erasers = |
| 1872 | { |
| 1873 | { |
| 1874 | .eraseblocks = { {4 * 1024, 32} }, |
| 1875 | .block_erase = spi_block_erase_20, |
| 1876 | }, { |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1877 | .eraseblocks = { {4 * 1024, 32} }, |
| 1878 | .block_erase = spi_block_erase_d7, |
| 1879 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1880 | .eraseblocks = { {32 * 1024, 4} }, |
| 1881 | .block_erase = spi_block_erase_52, |
| 1882 | }, { |
| 1883 | .eraseblocks = { {32 * 1024, 4} }, |
| 1884 | .block_erase = spi_block_erase_d8, |
| 1885 | }, { |
| 1886 | .eraseblocks = { {128 * 1024, 1} }, |
| 1887 | .block_erase = spi_block_erase_60, |
| 1888 | }, { |
| 1889 | .eraseblocks = { {128 * 1024, 1} }, |
| 1890 | .block_erase = spi_block_erase_c7, |
| 1891 | } |
| 1892 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1893 | .printlock = spi_prettyprint_status_register_at25fs010, |
| 1894 | .unlock = spi_disable_blockprotect_at25fs010, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1895 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1896 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1897 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1898 | }, |
| 1899 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1900 | { |
| 1901 | .vendor = "Atmel", |
| 1902 | .name = "AT25FS040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1903 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1904 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1905 | .model_id = ATMEL_AT25FS040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1906 | .total_size = 512, |
| 1907 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1908 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1909 | .tested = TEST_UNTESTED, |
| 1910 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1911 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1912 | .block_erasers = |
| 1913 | { |
| 1914 | { |
| 1915 | .eraseblocks = { {4 * 1024, 128} }, |
| 1916 | .block_erase = spi_block_erase_20, |
| 1917 | }, { |
| 1918 | .eraseblocks = { {64 * 1024, 8} }, |
| 1919 | .block_erase = spi_block_erase_52, |
| 1920 | }, { |
| 1921 | .eraseblocks = { {64 * 1024, 8} }, |
| 1922 | .block_erase = spi_block_erase_d8, |
| 1923 | }, { |
| 1924 | .eraseblocks = { {512 * 1024, 1} }, |
| 1925 | .block_erase = spi_block_erase_60, |
| 1926 | }, { |
| 1927 | .eraseblocks = { {512 * 1024, 1} }, |
| 1928 | .block_erase = spi_block_erase_c7, |
| 1929 | } |
| 1930 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1931 | .printlock = spi_prettyprint_status_register_at25fs040, |
| 1932 | .unlock = spi_disable_blockprotect_at25fs040, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1933 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1934 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1935 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1936 | }, |
| 1937 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1938 | { |
| 1939 | .vendor = "Atmel", |
| 1940 | .name = "AT26DF041", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1941 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1942 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1943 | .model_id = ATMEL_AT26DF041, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1944 | .total_size = 512, |
| 1945 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1946 | /* 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] | 1947 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1948 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1949 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1950 | .block_erasers = |
| 1951 | { |
| 1952 | { |
Stefan Tauner | 94b39b4 | 2012-10-27 00:06:02 +0000 | [diff] [blame] | 1953 | .eraseblocks = { {256, 2048} }, |
| 1954 | .block_erase = spi_block_erase_81, |
| 1955 | }, { |
| 1956 | .eraseblocks = { {2 * 1024, 256} }, |
| 1957 | .block_erase = spi_block_erase_50, |
| 1958 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1959 | .eraseblocks = { {4 * 1024, 128} }, |
| 1960 | .block_erase = spi_block_erase_20, |
| 1961 | } |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 1962 | }, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1963 | .printlock = spi_prettyprint_status_register_plain, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 1964 | /* 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] | 1965 | .write = spi_chip_write_1, |
| 1966 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1967 | .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] | 1968 | }, |
| 1969 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1970 | { |
| 1971 | .vendor = "Atmel", |
| 1972 | .name = "AT26DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1973 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1974 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1975 | .model_id = ATMEL_AT26DF081A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1976 | .total_size = 1024, |
| 1977 | .page_size = 256, |
Mathias Krause | 2c3afa3 | 2011-01-17 07:45:54 +0000 | [diff] [blame] | 1978 | .feature_bits = FEATURE_WRSR_WREN, |
| 1979 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1980 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1981 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1982 | .block_erasers = |
| 1983 | { |
| 1984 | { |
| 1985 | .eraseblocks = { {4 * 1024, 256} }, |
| 1986 | .block_erase = spi_block_erase_20, |
| 1987 | }, { |
| 1988 | .eraseblocks = { {32 * 1024, 32} }, |
| 1989 | .block_erase = spi_block_erase_52, |
| 1990 | }, { |
| 1991 | .eraseblocks = { {64 * 1024, 16} }, |
| 1992 | .block_erase = spi_block_erase_d8, |
| 1993 | }, { |
| 1994 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1995 | .block_erase = spi_block_erase_60, |
| 1996 | }, { |
| 1997 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1998 | .block_erase = spi_block_erase_c7, |
| 1999 | } |
| 2000 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2001 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2002 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2003 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2004 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2005 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2006 | }, |
| 2007 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2008 | { |
| 2009 | .vendor = "Atmel", |
| 2010 | .name = "AT26DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2011 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2012 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2013 | .model_id = ATMEL_AT26DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2014 | .total_size = 2048, |
| 2015 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2016 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 2017 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2018 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2019 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2020 | .block_erasers = |
| 2021 | { |
| 2022 | { |
| 2023 | .eraseblocks = { {4 * 1024, 512} }, |
| 2024 | .block_erase = spi_block_erase_20, |
| 2025 | }, { |
| 2026 | .eraseblocks = { {32 * 1024, 64} }, |
| 2027 | .block_erase = spi_block_erase_52, |
| 2028 | }, { |
| 2029 | .eraseblocks = { {64 * 1024, 32} }, |
| 2030 | .block_erase = spi_block_erase_d8, |
| 2031 | }, { |
| 2032 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2033 | .block_erase = spi_block_erase_60, |
| 2034 | }, { |
| 2035 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2036 | .block_erase = spi_block_erase_c7, |
| 2037 | } |
| 2038 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 2039 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2040 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2041 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2042 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2043 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2044 | }, |
| 2045 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2046 | { |
| 2047 | .vendor = "Atmel", |
| 2048 | .name = "AT26DF161A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2049 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2050 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2051 | .model_id = ATMEL_AT26DF161A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2052 | .total_size = 2048, |
| 2053 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2054 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2055 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2056 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2057 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2058 | .block_erasers = |
| 2059 | { |
| 2060 | { |
| 2061 | .eraseblocks = { {4 * 1024, 512} }, |
| 2062 | .block_erase = spi_block_erase_20, |
| 2063 | }, { |
| 2064 | .eraseblocks = { {32 * 1024, 64} }, |
| 2065 | .block_erase = spi_block_erase_52, |
| 2066 | }, { |
| 2067 | .eraseblocks = { {64 * 1024, 32} }, |
| 2068 | .block_erase = spi_block_erase_d8, |
| 2069 | }, { |
| 2070 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2071 | .block_erase = spi_block_erase_60, |
| 2072 | }, { |
| 2073 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2074 | .block_erase = spi_block_erase_c7, |
| 2075 | } |
| 2076 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2077 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2078 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2079 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2080 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2081 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2082 | }, |
| 2083 | |
| 2084 | /*The AT26DF321 has the same ID as the AT25DF321. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2085 | /*{ |
| 2086 | .vendor = "Atmel", |
| 2087 | .name = "AT26DF321", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2088 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2089 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2090 | .model_id = ATMEL_AT26DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2091 | .total_size = 4096, |
| 2092 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2093 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2094 | .tested = TEST_UNTESTED, |
| 2095 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2096 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2097 | .printlock = spi_prettyprint_status_register_at26df081a, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2098 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2099 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2100 | .read = spi_chip_read, |
| 2101 | },*/ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2102 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2103 | { |
| 2104 | .vendor = "Atmel", |
| 2105 | .name = "AT26F004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2106 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2107 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2108 | .model_id = ATMEL_AT26F004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2109 | .total_size = 512, |
| 2110 | .page_size = 256, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2111 | .tested = TEST_BAD_WRITE, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2112 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2113 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2114 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2115 | .block_erasers = |
| 2116 | { |
| 2117 | { |
| 2118 | .eraseblocks = { {4 * 1024, 128} }, |
| 2119 | .block_erase = spi_block_erase_20, |
| 2120 | }, { |
| 2121 | .eraseblocks = { {32 * 1024, 16} }, |
| 2122 | .block_erase = spi_block_erase_52, |
| 2123 | }, { |
| 2124 | .eraseblocks = { {64 * 1024, 8} }, |
| 2125 | .block_erase = spi_block_erase_d8, |
| 2126 | }, { |
| 2127 | .eraseblocks = { {512 * 1024, 1} }, |
| 2128 | .block_erase = spi_block_erase_60, |
| 2129 | }, { |
| 2130 | .eraseblocks = { {512 * 1024, 1} }, |
| 2131 | .block_erase = spi_block_erase_c7, |
| 2132 | } |
| 2133 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2134 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2135 | .write = NULL /* Incompatible Page write */, |
| 2136 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2137 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2138 | }, |
| 2139 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2140 | { |
| 2141 | .vendor = "Atmel", |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2142 | .name = "AT29C512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2143 | .bustype = BUS_PARALLEL, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2144 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2145 | .model_id = ATMEL_AT29C512, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2146 | .total_size = 64, |
| 2147 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2148 | .feature_bits = FEATURE_LONG_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 2149 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 2150 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2151 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2152 | .block_erasers = |
| 2153 | { |
| 2154 | { |
| 2155 | .eraseblocks = { {64 * 1024, 1} }, |
| 2156 | .block_erase = erase_chip_block_jedec, |
| 2157 | } |
| 2158 | }, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2159 | .write = write_jedec, |
| 2160 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2161 | .voltage = {4500, 5500}, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2162 | }, |
| 2163 | |
| 2164 | { |
| 2165 | .vendor = "Atmel", |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2166 | .name = "AT29C010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2167 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2168 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2169 | .model_id = ATMEL_AT29C010A, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2170 | .total_size = 128, |
| 2171 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2172 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2173 | .tested = TEST_OK_PRE, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2174 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2175 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2176 | .block_erasers = |
| 2177 | { |
| 2178 | { |
| 2179 | .eraseblocks = { {128 * 1024, 1} }, |
| 2180 | .block_erase = erase_chip_block_jedec, |
| 2181 | } |
| 2182 | }, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2183 | .write = write_jedec, /* FIXME */ |
| 2184 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2185 | .voltage = {4500, 5500}, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2186 | }, |
| 2187 | |
| 2188 | { |
| 2189 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2190 | .name = "AT29C020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2191 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2192 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2193 | .model_id = ATMEL_AT29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2194 | .total_size = 256, |
| 2195 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2196 | .feature_bits = FEATURE_LONG_RESET, |
| 2197 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2198 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 2199 | .probe_timing = 10000, /* 10ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2200 | .block_erasers = |
| 2201 | { |
| 2202 | { |
| 2203 | .eraseblocks = { {256 * 1024, 1} }, |
| 2204 | .block_erase = erase_chip_block_jedec, |
| 2205 | } |
| 2206 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2207 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2208 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2209 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2210 | }, |
| 2211 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2212 | { |
| 2213 | .vendor = "Atmel", |
| 2214 | .name = "AT29C040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2215 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2216 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2217 | .model_id = ATMEL_AT29C040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2218 | .total_size = 512, |
| 2219 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2220 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2221 | .tested = TEST_UNTESTED, |
| 2222 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 2223 | .probe_timing = 10000, /* 10 ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2224 | .block_erasers = |
| 2225 | { |
| 2226 | { |
| 2227 | .eraseblocks = { {512 * 1024, 1} }, |
| 2228 | .block_erase = erase_chip_block_jedec, |
| 2229 | } |
| 2230 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2231 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2232 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2233 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2234 | }, |
| 2235 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2236 | { |
| 2237 | .vendor = "Atmel", |
| 2238 | .name = "AT45CS1282", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2239 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2240 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2241 | .model_id = ATMEL_AT45CS1282, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2242 | .total_size = 16896 /* No power of two sizes */, |
| 2243 | .page_size = 1056 /* No power of two sizes */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2244 | /* 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] | 2245 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2246 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2247 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2248 | .write = NULL /* Incompatible Page write */, |
| 2249 | .read = NULL /* Incompatible read */, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2250 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2251 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2252 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2253 | { |
| 2254 | .vendor = "Atmel", |
| 2255 | .name = "AT45DB011D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2256 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2257 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2258 | .model_id = ATMEL_AT45DB011D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2259 | .total_size = 128 /* Size can only be determined from status register */, |
| 2260 | .page_size = 256 /* Size can only be determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2261 | /* 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] | 2262 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2263 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2264 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2265 | .write = NULL, |
| 2266 | .read = NULL, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2267 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2268 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2269 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2270 | { |
| 2271 | .vendor = "Atmel", |
| 2272 | .name = "AT45DB021D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2273 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2274 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2275 | .model_id = ATMEL_AT45DB021D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2276 | .total_size = 256 /* Size can only be determined from status register */, |
| 2277 | .page_size = 256 /* Size can only be determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2278 | /* 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] | 2279 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2280 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2281 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2282 | .write = NULL, |
| 2283 | .read = NULL, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2284 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2285 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2286 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2287 | { |
| 2288 | .vendor = "Atmel", |
| 2289 | .name = "AT45DB041D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2290 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2291 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2292 | .model_id = ATMEL_AT45DB041D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2293 | .total_size = 512 /* Size can only be determined from status register */, |
| 2294 | .page_size = 256 /* Size can only be determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2295 | /* 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] | 2296 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2297 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2298 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2299 | .write = NULL, |
| 2300 | .read = NULL, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2301 | .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] | 2302 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2303 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2304 | { |
| 2305 | .vendor = "Atmel", |
| 2306 | .name = "AT45DB081D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2307 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2308 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2309 | .model_id = ATMEL_AT45DB081D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2310 | .total_size = 1024 /* Size can only be determined from status register */, |
| 2311 | .page_size = 256 /* Size can only be determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2312 | /* 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] | 2313 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2314 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2315 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2316 | .write = NULL, |
| 2317 | .read = NULL, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2318 | .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] | 2319 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2320 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2321 | { |
| 2322 | .vendor = "Atmel", |
| 2323 | .name = "AT45DB161D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2324 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2325 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2326 | .model_id = ATMEL_AT45DB161D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2327 | .total_size = 2048 /* Size can only be determined from status register */, |
| 2328 | .page_size = 512 /* Size can only be determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2329 | /* 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] | 2330 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2331 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2332 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2333 | .write = NULL, |
| 2334 | .read = NULL, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2335 | .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] | 2336 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2337 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2338 | { |
| 2339 | .vendor = "Atmel", |
| 2340 | .name = "AT45DB321C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2341 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2342 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2343 | .model_id = ATMEL_AT45DB321C, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2344 | .total_size = 4224 /* No power of two sizes */, |
| 2345 | .page_size = 528 /* No power of two sizes */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2346 | /* 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] | 2347 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2348 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2349 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2350 | .write = NULL, |
| 2351 | .read = NULL /* Incompatible read */, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2352 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2353 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2354 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2355 | { |
| 2356 | .vendor = "Atmel", |
| 2357 | .name = "AT45DB321D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2358 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2359 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2360 | .model_id = ATMEL_AT45DB321D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2361 | .total_size = 4096 /* Size can only be determined from status register */, |
| 2362 | .page_size = 512 /* Size can only be determined from status register */, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 2363 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2364 | /* 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] | 2365 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2366 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2367 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2368 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2369 | .write = NULL, |
| 2370 | .read = NULL, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2371 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2372 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2373 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2374 | { |
| 2375 | .vendor = "Atmel", |
| 2376 | .name = "AT45DB642D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2377 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2378 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2379 | .model_id = ATMEL_AT45DB642D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2380 | .total_size = 8192 /* Size can only be determined from status register */, |
| 2381 | .page_size = 1024 /* Size can only be determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2382 | /* 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] | 2383 | .tested = TEST_BAD_REW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2384 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2385 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2386 | .write = NULL, |
| 2387 | .read = NULL, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2388 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2389 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2390 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2391 | { |
| 2392 | .vendor = "Atmel", |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2393 | .name = "AT49BV512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2394 | .bustype = BUS_PARALLEL, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2395 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2396 | .model_id = ATMEL_AT49BV512, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2397 | .total_size = 64, |
| 2398 | .page_size = 64, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2399 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 2400 | .tested = TEST_OK_PREW, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2401 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2402 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2403 | .block_erasers = |
| 2404 | { |
| 2405 | { |
| 2406 | .eraseblocks = { {64 * 1024, 1} }, |
| 2407 | .block_erase = erase_chip_block_jedec, |
| 2408 | } |
| 2409 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2410 | .write = write_jedec_1, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2411 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2412 | .voltage = {2700, 3600}, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2413 | }, |
| 2414 | |
| 2415 | { |
| 2416 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2417 | .name = "AT49F002(N)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2418 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2419 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2420 | .model_id = ATMEL_AT49F002N, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2421 | .total_size = 256, |
| 2422 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2423 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2424 | .tested = TEST_UNTESTED, |
| 2425 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2426 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2427 | .block_erasers = |
| 2428 | { |
| 2429 | { |
| 2430 | .eraseblocks = { |
| 2431 | {16 * 1024, 1}, |
| 2432 | {8 * 1024, 2}, |
| 2433 | {96 * 1024, 1}, |
| 2434 | {128 * 1024, 1}, |
| 2435 | }, |
| 2436 | .block_erase = erase_sector_jedec, |
| 2437 | }, { |
| 2438 | .eraseblocks = { {256 * 1024, 1} }, |
| 2439 | .block_erase = erase_chip_block_jedec, |
| 2440 | } |
| 2441 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2442 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2443 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2444 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2445 | }, |
| 2446 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2447 | { |
| 2448 | .vendor = "Atmel", |
| 2449 | .name = "AT49F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2450 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2451 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2452 | .model_id = ATMEL_AT49F002NT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2453 | .total_size = 256, |
| 2454 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2455 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2456 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2457 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2458 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2459 | .block_erasers = |
| 2460 | { |
| 2461 | { |
| 2462 | .eraseblocks = { |
| 2463 | {128 * 1024, 1}, |
| 2464 | {96 * 1024, 1}, |
| 2465 | {8 * 1024, 2}, |
| 2466 | {16 * 1024, 1}, |
| 2467 | }, |
| 2468 | .block_erase = erase_sector_jedec, |
| 2469 | }, { |
| 2470 | .eraseblocks = { {256 * 1024, 1} }, |
| 2471 | .block_erase = erase_chip_block_jedec, |
| 2472 | } |
| 2473 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2474 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2475 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2476 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2477 | }, |
| 2478 | |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 2479 | { |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 2480 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2481 | .name = "AT49(H)F010", |
| 2482 | .bustype = BUS_PARALLEL, |
| 2483 | .manufacture_id = ATMEL_ID, |
| 2484 | .model_id = ATMEL_AT49F010, |
| 2485 | .total_size = 128, |
| 2486 | .page_size = 0, /* unused */ |
| 2487 | .feature_bits = FEATURE_EITHER_RESET, |
| 2488 | .tested = TEST_OK_PREW, |
| 2489 | .probe = probe_jedec, |
| 2490 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2491 | .block_erasers = |
| 2492 | { |
| 2493 | { |
| 2494 | .eraseblocks = { {128 * 1024, 1} }, |
| 2495 | .block_erase = erase_chip_block_jedec, |
| 2496 | } |
| 2497 | }, |
| 2498 | .printlock = printlock_at49f, |
| 2499 | .write = write_jedec_1, |
| 2500 | .read = read_memmapped, |
| 2501 | .voltage = {4500, 5500}, |
| 2502 | }, |
| 2503 | |
| 2504 | { |
| 2505 | .vendor = "Atmel", |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 2506 | .name = "AT49F020", |
| 2507 | .bustype = BUS_PARALLEL, |
| 2508 | .manufacture_id = ATMEL_ID, |
| 2509 | .model_id = ATMEL_AT49F020, |
| 2510 | .total_size = 256, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2511 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 2512 | .feature_bits = FEATURE_EITHER_RESET, |
| 2513 | .tested = TEST_OK_PRE, |
| 2514 | .probe = probe_jedec, |
| 2515 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2516 | .block_erasers = |
| 2517 | { |
| 2518 | { |
| 2519 | .eraseblocks = { {256 * 1024, 1} }, |
| 2520 | .block_erase = erase_chip_block_jedec, |
| 2521 | } |
| 2522 | /* Chip features an optional permanent write protection |
| 2523 | * of the first 8 kB. The erase function is the same as |
| 2524 | * above, but 00000H to 01FFFH will not be erased. |
| 2525 | * FIXME: add another eraser when partial erasers are |
| 2526 | * supported. |
| 2527 | */ |
| 2528 | }, |
| 2529 | .printlock = printlock_at49f, |
| 2530 | .write = write_jedec_1, |
| 2531 | .read = read_memmapped, |
| 2532 | .voltage = {4500, 5500}, |
| 2533 | }, |
| 2534 | |
| 2535 | { |
| 2536 | .vendor = "Atmel", |
| 2537 | .name = "AT49F040", |
| 2538 | .bustype = BUS_PARALLEL, |
| 2539 | .manufacture_id = ATMEL_ID, |
| 2540 | .model_id = ATMEL_AT49F040, |
| 2541 | .total_size = 512, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2542 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 2543 | .feature_bits = FEATURE_EITHER_RESET, |
| 2544 | .tested = TEST_UNTESTED, |
| 2545 | .probe = probe_jedec, |
| 2546 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2547 | .block_erasers = |
| 2548 | { |
| 2549 | { |
| 2550 | .eraseblocks = { {512 * 1024, 1} }, |
| 2551 | .block_erase = erase_chip_block_jedec, |
| 2552 | } |
| 2553 | /* Chip features an optional permanent write protection |
| 2554 | * of the first 16 kB. The erase function is the same as |
| 2555 | * above, but 00000H to 03FFFH will not be erased. |
| 2556 | * FIXME: add another eraser when partial erasers are |
| 2557 | * supported. |
| 2558 | */ |
| 2559 | }, |
| 2560 | .printlock = printlock_at49f, |
| 2561 | .write = write_jedec_1, |
| 2562 | .read = read_memmapped, |
| 2563 | .voltage = {4500, 5500}, |
| 2564 | }, |
| 2565 | |
| 2566 | { |
| 2567 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2568 | .name = "AT49F080", |
| 2569 | .bustype = BUS_PARALLEL, |
| 2570 | .manufacture_id = ATMEL_ID, |
| 2571 | .model_id = ATMEL_AT49F080, |
| 2572 | .total_size = 1024, |
| 2573 | .page_size = 0, /* unused */ |
| 2574 | .feature_bits = FEATURE_EITHER_RESET, |
| 2575 | .tested = TEST_UNTESTED, |
| 2576 | .probe = probe_jedec, |
| 2577 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2578 | .block_erasers = |
| 2579 | { |
| 2580 | { |
| 2581 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2582 | .block_erase = erase_chip_block_jedec, |
| 2583 | } |
| 2584 | /* Chip features an optional permanent write protection |
| 2585 | * of the first 16 kB. The erase function is the same as |
| 2586 | * above, but 00000H to 03FFFH will not be erased. |
| 2587 | * FIXME: add another eraser when partial erasers are |
| 2588 | * supported. |
| 2589 | */ |
| 2590 | }, |
| 2591 | .printlock = printlock_at49f, |
| 2592 | .write = write_jedec_1, |
| 2593 | .read = read_memmapped, |
| 2594 | .voltage = {4500, 5500}, |
| 2595 | }, |
| 2596 | |
| 2597 | { |
| 2598 | /* 'top' version of AT49F080. equal in all aspects but the boot block address */ |
| 2599 | .vendor = "Atmel", |
| 2600 | .name = "AT49F080T", |
| 2601 | .bustype = BUS_PARALLEL, |
| 2602 | .manufacture_id = ATMEL_ID, |
| 2603 | .model_id = ATMEL_AT49F080T, |
| 2604 | .total_size = 1024, |
| 2605 | .page_size = 0, /* unused */ |
| 2606 | .feature_bits = FEATURE_EITHER_RESET, |
| 2607 | .tested = TEST_UNTESTED, |
| 2608 | .probe = probe_jedec, |
| 2609 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2610 | .block_erasers = |
| 2611 | { |
| 2612 | { |
| 2613 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2614 | .block_erase = erase_chip_block_jedec, |
| 2615 | } |
| 2616 | /* Chip features an optional permanent write protection |
| 2617 | * of the first 16 kB. The erase function is the same as |
| 2618 | * above, but FC000H to FFFFFH will not be erased. |
| 2619 | * FIXME: add another eraser when partial erasers are |
| 2620 | * supported. |
| 2621 | */ |
| 2622 | }, |
| 2623 | .printlock = printlock_at49f, |
| 2624 | .write = write_jedec_1, |
| 2625 | .read = read_memmapped, |
| 2626 | .voltage = {4500, 5500}, |
| 2627 | }, |
| 2628 | |
| 2629 | { |
| 2630 | .vendor = "Atmel", |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 2631 | .name = "AT49LH002", |
| 2632 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 2633 | .manufacture_id = ATMEL_ID, |
| 2634 | .model_id = ATMEL_AT49LH002, |
| 2635 | .total_size = 256, |
| 2636 | .page_size = 0, /* unused */ |
| 2637 | .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */ |
| 2638 | .tested = TEST_UNTESTED, |
| 2639 | .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */ |
| 2640 | .probe_timing = TIMING_FIXME, |
| 2641 | .block_erasers = |
| 2642 | { |
| 2643 | { |
| 2644 | .eraseblocks = { |
| 2645 | {64 * 1024, 3}, |
| 2646 | {32 * 1024, 1}, |
| 2647 | {8 * 1024, 2}, |
| 2648 | {16 * 1024, 1}, |
| 2649 | }, |
| 2650 | .block_erase = erase_block_82802ab, |
| 2651 | }, { |
| 2652 | .eraseblocks = { |
| 2653 | {64 * 1024, 4}, |
| 2654 | }, |
| 2655 | .block_erase = NULL, /* TODO: Implement. */ |
| 2656 | }, |
| 2657 | }, |
| 2658 | .printlock = NULL, /* TODO */ |
| 2659 | .unlock = NULL, /* unlock_82802ab() not correct(?) */ |
| 2660 | .write = write_82802ab, |
| 2661 | .read = read_memmapped, |
| 2662 | .voltage = {3000, 3600}, |
| 2663 | }, |
| 2664 | |
| 2665 | { |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 2666 | .vendor = "Catalyst", |
| 2667 | .name = "CAT28F512", |
| 2668 | .bustype = BUS_PARALLEL, |
| 2669 | .manufacture_id = CATALYST_ID, |
| 2670 | .model_id = CATALYST_CAT28F512, |
| 2671 | .total_size = 64, |
| 2672 | .page_size = 0, /* unused */ |
| 2673 | .feature_bits = 0, |
| 2674 | .tested = TEST_OK_PR, |
| 2675 | .probe = probe_jedec, /* FIXME! */ |
| 2676 | .probe_timing = TIMING_ZERO, |
| 2677 | .block_erasers = |
| 2678 | { |
| 2679 | { |
| 2680 | .eraseblocks = { {64 * 1024, 1} }, |
| 2681 | .block_erase = NULL, /* TODO */ |
| 2682 | }, |
| 2683 | }, |
| 2684 | .write = NULL, /* TODO */ |
| 2685 | .read = read_memmapped, |
| 2686 | .voltage = {4500, 5500}, |
| 2687 | }, |
| 2688 | |
| 2689 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 2690 | .vendor = "Bright", |
| 2691 | .name = "BM29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2692 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 2693 | .manufacture_id = BRIGHT_ID, |
| 2694 | .model_id = BRIGHT_BM29F040, |
| 2695 | .total_size = 512, |
| 2696 | .page_size = 64 * 1024, |
| 2697 | .feature_bits = FEATURE_EITHER_RESET, |
| 2698 | .tested = TEST_OK_PR, |
| 2699 | .probe = probe_jedec, |
| 2700 | .probe_timing = TIMING_ZERO, |
| 2701 | .block_erasers = |
| 2702 | { |
| 2703 | { |
| 2704 | .eraseblocks = { {64 * 1024, 8} }, |
| 2705 | .block_erase = erase_sector_jedec, |
| 2706 | }, { |
| 2707 | .eraseblocks = { {512 * 1024, 1} }, |
| 2708 | .block_erase = erase_chip_block_jedec, |
| 2709 | }, |
| 2710 | }, |
| 2711 | .write = write_jedec_1, |
| 2712 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2713 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 2714 | }, |
| 2715 | |
| 2716 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 2717 | .vendor = "ESMT", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2718 | .name = "F49B002UA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2719 | .bustype = BUS_PARALLEL, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 2720 | .manufacture_id = ESMT_ID, |
| 2721 | .model_id = ESMT_F49B002UA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2722 | .total_size = 256, |
| 2723 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2724 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2725 | .tested = TEST_UNTESTED, |
| 2726 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2727 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2728 | .block_erasers = |
| 2729 | { |
| 2730 | { |
| 2731 | .eraseblocks = { |
| 2732 | {128 * 1024, 1}, |
| 2733 | {96 * 1024, 1}, |
| 2734 | {8 * 1024, 2}, |
| 2735 | {16 * 1024, 1}, |
| 2736 | }, |
| 2737 | .block_erase = erase_sector_jedec, |
| 2738 | }, { |
| 2739 | .eraseblocks = { {256 * 1024, 1} }, |
| 2740 | .block_erase = erase_chip_block_jedec, |
| 2741 | } |
| 2742 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2743 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2744 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2745 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2746 | }, |
| 2747 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2748 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 2749 | .vendor = "ESMT", |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 2750 | .name = "F25L008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2751 | .bustype = BUS_SPI, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 2752 | .manufacture_id = ESMT_ID, |
| 2753 | .model_id = ESMT_F25L008A, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 2754 | .total_size = 1024, |
| 2755 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2756 | .feature_bits = FEATURE_WRSR_EITHER, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 2757 | .tested = TEST_OK_PREW, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 2758 | .probe = probe_spi_rdid, |
| 2759 | .probe_timing = TIMING_ZERO, |
| 2760 | .block_erasers = |
| 2761 | { |
| 2762 | { |
| 2763 | .eraseblocks = { {4 * 1024, 256} }, |
| 2764 | .block_erase = spi_block_erase_20, |
| 2765 | }, { |
| 2766 | .eraseblocks = { {64 * 1024, 16} }, |
| 2767 | .block_erase = spi_block_erase_d8, |
| 2768 | }, { |
| 2769 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2770 | .block_erase = spi_block_erase_60, |
| 2771 | }, { |
| 2772 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2773 | .block_erase = spi_block_erase_c7, |
| 2774 | } |
| 2775 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2776 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2777 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 9a795d8 | 2010-07-14 16:19:05 +0000 | [diff] [blame] | 2778 | .write = spi_chip_write_1, |
Michael Karcher | 4497e86 | 2010-07-10 19:34:15 +0000 | [diff] [blame] | 2779 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2780 | .voltage = {2700, 3600}, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 2781 | }, |
| 2782 | |
| 2783 | { |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2784 | .vendor = "Eon", |
| 2785 | .name = "EN25B05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2786 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2787 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2788 | .model_id = EON_EN25B05, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2789 | .total_size = 64, |
| 2790 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2791 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2792 | .tested = TEST_UNTESTED, |
| 2793 | .probe = probe_spi_rdid, |
| 2794 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2795 | .block_erasers = |
| 2796 | { |
| 2797 | { |
| 2798 | .eraseblocks = { |
| 2799 | {4 * 1024, 2}, |
| 2800 | {8 * 1024, 1}, |
| 2801 | {16 * 1024, 1}, |
| 2802 | {32 * 1024, 1}, |
| 2803 | }, |
| 2804 | .block_erase = spi_block_erase_d8, |
| 2805 | }, { |
| 2806 | .eraseblocks = { {64 * 1024, 1} }, |
| 2807 | .block_erase = spi_block_erase_c7, |
| 2808 | } |
| 2809 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2810 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2811 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2812 | .write = spi_chip_write_256, |
| 2813 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2814 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2815 | }, |
| 2816 | |
| 2817 | { |
| 2818 | .vendor = "Eon", |
| 2819 | .name = "EN25B05T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2820 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2821 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2822 | .model_id = EON_EN25B05, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2823 | .total_size = 64, |
| 2824 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2825 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2826 | .tested = TEST_UNTESTED, |
| 2827 | .probe = probe_spi_rdid, |
| 2828 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2829 | .block_erasers = |
| 2830 | { |
| 2831 | { |
| 2832 | .eraseblocks = { |
| 2833 | {32 * 1024, 1}, |
| 2834 | {16 * 1024, 1}, |
| 2835 | {8 * 1024, 1}, |
| 2836 | {4 * 1024, 2}, |
| 2837 | }, |
| 2838 | .block_erase = spi_block_erase_d8, |
| 2839 | }, { |
| 2840 | .eraseblocks = { {64 * 1024, 1} }, |
| 2841 | .block_erase = spi_block_erase_c7, |
| 2842 | } |
| 2843 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2844 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2845 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2846 | .write = spi_chip_write_256, |
| 2847 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2848 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2849 | }, |
| 2850 | |
| 2851 | { |
| 2852 | .vendor = "Eon", |
| 2853 | .name = "EN25B10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2854 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2855 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2856 | .model_id = EON_EN25B10, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2857 | .total_size = 128, |
| 2858 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2859 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2860 | .tested = TEST_UNTESTED, |
| 2861 | .probe = probe_spi_rdid, |
| 2862 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2863 | .block_erasers = |
| 2864 | { |
| 2865 | { |
| 2866 | .eraseblocks = { |
| 2867 | {4 * 1024, 2}, |
| 2868 | {8 * 1024, 1}, |
| 2869 | {16 * 1024, 1}, |
| 2870 | {32 * 1024, 3}, |
| 2871 | }, |
| 2872 | .block_erase = spi_block_erase_d8, |
| 2873 | }, { |
| 2874 | .eraseblocks = { {128 * 1024, 1} }, |
| 2875 | .block_erase = spi_block_erase_c7, |
| 2876 | } |
| 2877 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2878 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2879 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2880 | .write = spi_chip_write_256, |
| 2881 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2882 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2883 | }, |
| 2884 | |
| 2885 | { |
| 2886 | .vendor = "Eon", |
| 2887 | .name = "EN25B10T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2888 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2889 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2890 | .model_id = EON_EN25B10, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2891 | .total_size = 128, |
| 2892 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2893 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2894 | .tested = TEST_UNTESTED, |
| 2895 | .probe = probe_spi_rdid, |
| 2896 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2897 | .block_erasers = |
| 2898 | { |
| 2899 | { |
| 2900 | .eraseblocks = { |
| 2901 | {32 * 1024, 3}, |
| 2902 | {16 * 1024, 1}, |
| 2903 | {8 * 1024, 1}, |
| 2904 | {4 * 1024, 2}, |
| 2905 | }, |
| 2906 | .block_erase = spi_block_erase_d8, |
| 2907 | }, { |
| 2908 | .eraseblocks = { {128 * 1024, 1} }, |
| 2909 | .block_erase = spi_block_erase_c7, |
| 2910 | } |
| 2911 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2912 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2913 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2914 | .write = spi_chip_write_256, |
| 2915 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2916 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2917 | }, |
| 2918 | |
| 2919 | { |
| 2920 | .vendor = "Eon", |
| 2921 | .name = "EN25B20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2922 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2923 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2924 | .model_id = EON_EN25B20, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2925 | .total_size = 256, |
| 2926 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2927 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2928 | .tested = TEST_UNTESTED, |
| 2929 | .probe = probe_spi_rdid, |
| 2930 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2931 | .block_erasers = |
| 2932 | { |
| 2933 | { |
| 2934 | .eraseblocks = { |
| 2935 | {4 * 1024, 2}, |
| 2936 | {8 * 1024, 1}, |
| 2937 | {16 * 1024, 1}, |
| 2938 | {32 * 1024, 1}, |
| 2939 | {64 * 1024, 3} |
| 2940 | }, |
| 2941 | .block_erase = spi_block_erase_d8, |
| 2942 | }, { |
| 2943 | .eraseblocks = { {256 * 1024, 1} }, |
| 2944 | .block_erase = spi_block_erase_c7, |
| 2945 | } |
| 2946 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2947 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2948 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2949 | .write = spi_chip_write_256, |
| 2950 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2951 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2952 | }, |
| 2953 | |
| 2954 | { |
| 2955 | .vendor = "Eon", |
| 2956 | .name = "EN25B20T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2957 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2958 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2959 | .model_id = EON_EN25B20, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2960 | .total_size = 256, |
| 2961 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2962 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2963 | .tested = TEST_UNTESTED, |
| 2964 | .probe = probe_spi_rdid, |
| 2965 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2966 | .block_erasers = |
| 2967 | { |
| 2968 | { |
| 2969 | .eraseblocks = { |
| 2970 | {64 * 1024, 3}, |
| 2971 | {32 * 1024, 1}, |
| 2972 | {16 * 1024, 1}, |
| 2973 | {8 * 1024, 1}, |
| 2974 | {4 * 1024, 2}, |
| 2975 | }, |
| 2976 | .block_erase = spi_block_erase_d8, |
| 2977 | }, { |
| 2978 | .eraseblocks = { {256 * 1024, 1} }, |
| 2979 | .block_erase = spi_block_erase_c7, |
| 2980 | } |
| 2981 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2982 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2983 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2984 | .write = spi_chip_write_256, |
| 2985 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2986 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2987 | }, |
| 2988 | |
| 2989 | { |
| 2990 | .vendor = "Eon", |
| 2991 | .name = "EN25B40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2992 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2993 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2994 | .model_id = EON_EN25B40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2995 | .total_size = 512, |
| 2996 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2997 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2998 | .tested = TEST_UNTESTED, |
| 2999 | .probe = probe_spi_rdid, |
| 3000 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3001 | .block_erasers = |
| 3002 | { |
| 3003 | { |
| 3004 | .eraseblocks = { |
| 3005 | {4 * 1024, 2}, |
| 3006 | {8 * 1024, 1}, |
| 3007 | {16 * 1024, 1}, |
| 3008 | {32 * 1024, 1}, |
| 3009 | {64 * 1024, 7} |
| 3010 | }, |
| 3011 | .block_erase = spi_block_erase_d8, |
| 3012 | }, { |
| 3013 | .eraseblocks = { {512 * 1024, 1} }, |
| 3014 | .block_erase = spi_block_erase_c7, |
| 3015 | } |
| 3016 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3017 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3018 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3019 | .write = spi_chip_write_256, |
| 3020 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3021 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3022 | }, |
| 3023 | |
| 3024 | { |
| 3025 | .vendor = "Eon", |
| 3026 | .name = "EN25B40T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3027 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3028 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3029 | .model_id = EON_EN25B40, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3030 | .total_size = 512, |
| 3031 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3032 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3033 | .tested = TEST_UNTESTED, |
| 3034 | .probe = probe_spi_rdid, |
| 3035 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3036 | .block_erasers = |
| 3037 | { |
| 3038 | { |
| 3039 | .eraseblocks = { |
| 3040 | {64 * 1024, 7}, |
| 3041 | {32 * 1024, 1}, |
| 3042 | {16 * 1024, 1}, |
| 3043 | {8 * 1024, 1}, |
| 3044 | {4 * 1024, 2}, |
| 3045 | }, |
| 3046 | .block_erase = spi_block_erase_d8, |
| 3047 | }, { |
| 3048 | .eraseblocks = { {512 * 1024, 1} }, |
| 3049 | .block_erase = spi_block_erase_c7, |
| 3050 | } |
| 3051 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3052 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3053 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3054 | .write = spi_chip_write_256, |
| 3055 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3056 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3057 | }, |
| 3058 | |
| 3059 | { |
| 3060 | .vendor = "Eon", |
| 3061 | .name = "EN25B80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3062 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3063 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3064 | .model_id = EON_EN25B80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3065 | .total_size = 1024, |
| 3066 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3067 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3068 | .tested = TEST_UNTESTED, |
| 3069 | .probe = probe_spi_rdid, |
| 3070 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3071 | .block_erasers = |
| 3072 | { |
| 3073 | { |
| 3074 | .eraseblocks = { |
| 3075 | {4 * 1024, 2}, |
| 3076 | {8 * 1024, 1}, |
| 3077 | {16 * 1024, 1}, |
| 3078 | {32 * 1024, 1}, |
| 3079 | {64 * 1024, 15} |
| 3080 | }, |
| 3081 | .block_erase = spi_block_erase_d8, |
| 3082 | }, { |
| 3083 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3084 | .block_erase = spi_block_erase_c7, |
| 3085 | } |
| 3086 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3087 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3088 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3089 | .write = spi_chip_write_256, |
| 3090 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3091 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3092 | }, |
| 3093 | |
| 3094 | { |
| 3095 | .vendor = "Eon", |
| 3096 | .name = "EN25B80T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3097 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3098 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3099 | .model_id = EON_EN25B80, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3100 | .total_size = 1024, |
| 3101 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3102 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3103 | .tested = TEST_UNTESTED, |
| 3104 | .probe = probe_spi_rdid, |
| 3105 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3106 | .block_erasers = |
| 3107 | { |
| 3108 | { |
| 3109 | .eraseblocks = { |
| 3110 | {64 * 1024, 15}, |
| 3111 | {32 * 1024, 1}, |
| 3112 | {16 * 1024, 1}, |
| 3113 | {8 * 1024, 1}, |
| 3114 | {4 * 1024, 2}, |
| 3115 | }, |
| 3116 | .block_erase = spi_block_erase_d8, |
| 3117 | }, { |
| 3118 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3119 | .block_erase = spi_block_erase_c7, |
| 3120 | } |
| 3121 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3122 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3123 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3124 | .write = spi_chip_write_256, |
| 3125 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3126 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3127 | }, |
| 3128 | |
| 3129 | { |
| 3130 | .vendor = "Eon", |
| 3131 | .name = "EN25B16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3132 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3133 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3134 | .model_id = EON_EN25B16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3135 | .total_size = 2048, |
| 3136 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3137 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3138 | .tested = TEST_UNTESTED, |
| 3139 | .probe = probe_spi_rdid, |
| 3140 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3141 | .block_erasers = |
| 3142 | { |
| 3143 | { |
| 3144 | .eraseblocks = { |
| 3145 | {4 * 1024, 2}, |
| 3146 | {8 * 1024, 1}, |
| 3147 | {16 * 1024, 1}, |
| 3148 | {32 * 1024, 1}, |
| 3149 | {64 * 1024, 31}, |
| 3150 | }, |
| 3151 | .block_erase = spi_block_erase_d8, |
| 3152 | }, { |
| 3153 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3154 | .block_erase = spi_block_erase_c7, |
| 3155 | } |
| 3156 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3157 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3158 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3159 | .write = spi_chip_write_256, |
| 3160 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3161 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3162 | }, |
| 3163 | |
| 3164 | { |
| 3165 | .vendor = "Eon", |
| 3166 | .name = "EN25B16T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3167 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3168 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3169 | .model_id = EON_EN25B16, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3170 | .total_size = 2048, |
| 3171 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3172 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3173 | .tested = TEST_UNTESTED, |
| 3174 | .probe = probe_spi_rdid, |
| 3175 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3176 | .block_erasers = |
| 3177 | { |
| 3178 | { |
| 3179 | .eraseblocks = { |
| 3180 | {64 * 1024, 31}, |
| 3181 | {32 * 1024, 1}, |
| 3182 | {16 * 1024, 1}, |
| 3183 | {8 * 1024, 1}, |
| 3184 | {4 * 1024, 2}, |
| 3185 | }, |
| 3186 | .block_erase = spi_block_erase_d8, |
| 3187 | }, { |
| 3188 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3189 | .block_erase = spi_block_erase_c7, |
| 3190 | } |
| 3191 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3192 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3193 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3194 | .write = spi_chip_write_256, |
| 3195 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3196 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3197 | }, |
| 3198 | |
| 3199 | { |
| 3200 | .vendor = "Eon", |
| 3201 | .name = "EN25B32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3202 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3203 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3204 | .model_id = EON_EN25B32, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3205 | .total_size = 4096, |
| 3206 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3207 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3208 | .tested = TEST_UNTESTED, |
| 3209 | .probe = probe_spi_rdid, |
| 3210 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3211 | .block_erasers = |
| 3212 | { |
| 3213 | { |
| 3214 | .eraseblocks = { |
| 3215 | {4 * 1024, 2}, |
| 3216 | {8 * 1024, 1}, |
| 3217 | {16 * 1024, 1}, |
| 3218 | {32 * 1024, 1}, |
| 3219 | {64 * 1024, 63}, |
| 3220 | }, |
| 3221 | .block_erase = spi_block_erase_d8, |
| 3222 | }, { |
| 3223 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3224 | .block_erase = spi_block_erase_c7, |
| 3225 | } |
| 3226 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3227 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3228 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3229 | .write = spi_chip_write_256, |
| 3230 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3231 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3232 | }, |
| 3233 | |
| 3234 | { |
| 3235 | .vendor = "Eon", |
| 3236 | .name = "EN25B32T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3237 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3238 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3239 | .model_id = EON_EN25B32, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3240 | .total_size = 4096, |
| 3241 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3242 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3243 | .tested = TEST_UNTESTED, |
| 3244 | .probe = probe_spi_rdid, |
| 3245 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3246 | .block_erasers = |
| 3247 | { |
| 3248 | { |
| 3249 | .eraseblocks = { |
| 3250 | {64 * 1024, 63}, |
| 3251 | {32 * 1024, 1}, |
| 3252 | {16 * 1024, 1}, |
| 3253 | {8 * 1024, 1}, |
| 3254 | {4 * 1024, 2}, |
| 3255 | }, |
| 3256 | .block_erase = spi_block_erase_d8, |
| 3257 | }, { |
| 3258 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3259 | .block_erase = spi_block_erase_c7, |
| 3260 | } |
| 3261 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3262 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3263 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3264 | .write = spi_chip_write_256, |
| 3265 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3266 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3267 | }, |
| 3268 | |
| 3269 | { |
| 3270 | .vendor = "Eon", |
| 3271 | .name = "EN25B64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3272 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3273 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3274 | .model_id = EON_EN25B64, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3275 | .total_size = 8192, |
| 3276 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3277 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3278 | .tested = TEST_UNTESTED, |
| 3279 | .probe = probe_spi_rdid, |
| 3280 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3281 | .block_erasers = |
| 3282 | { |
| 3283 | { |
| 3284 | .eraseblocks = { |
| 3285 | {4 * 1024, 2}, |
| 3286 | {8 * 1024, 1}, |
| 3287 | {16 * 1024, 1}, |
| 3288 | {32 * 1024, 1}, |
| 3289 | {64 * 1024, 127}, |
| 3290 | }, |
| 3291 | .block_erase = spi_block_erase_d8, |
| 3292 | }, { |
| 3293 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3294 | .block_erase = spi_block_erase_c7, |
| 3295 | } |
| 3296 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3297 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3298 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3299 | .write = spi_chip_write_256, |
| 3300 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3301 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3302 | }, |
| 3303 | |
| 3304 | { |
| 3305 | .vendor = "Eon", |
| 3306 | .name = "EN25B64T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3307 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3308 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3309 | .model_id = EON_EN25B64, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3310 | .total_size = 8192, |
| 3311 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3312 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3313 | .tested = TEST_UNTESTED, |
| 3314 | .probe = probe_spi_rdid, |
| 3315 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3316 | .block_erasers = |
| 3317 | { |
| 3318 | { |
| 3319 | .eraseblocks = { |
| 3320 | {64 * 1024, 127}, |
| 3321 | {32 * 1024, 1}, |
| 3322 | {16 * 1024, 1}, |
| 3323 | {8 * 1024, 1}, |
| 3324 | {4 * 1024, 2}, |
| 3325 | }, |
| 3326 | .block_erase = spi_block_erase_d8, |
| 3327 | }, { |
| 3328 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3329 | .block_erase = spi_block_erase_c7, |
| 3330 | } |
| 3331 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3332 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3333 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3334 | .write = spi_chip_write_256, |
| 3335 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3336 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3337 | }, |
| 3338 | |
| 3339 | { |
| 3340 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3341 | .name = "EN25F05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3342 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3343 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3344 | .model_id = EON_EN25F05, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3345 | .total_size = 64, |
| 3346 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3347 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3348 | .tested = TEST_UNTESTED, |
| 3349 | .probe = probe_spi_rdid, |
| 3350 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3351 | .block_erasers = |
| 3352 | { |
| 3353 | { |
| 3354 | .eraseblocks = { {4 * 1024, 16} }, |
| 3355 | .block_erase = spi_block_erase_20, |
| 3356 | }, { |
| 3357 | .eraseblocks = { {32 * 1024, 2} }, |
| 3358 | .block_erase = spi_block_erase_d8, |
| 3359 | }, { |
| 3360 | .eraseblocks = { {32 * 1024, 2} }, |
| 3361 | .block_erase = spi_block_erase_52, |
| 3362 | }, { |
| 3363 | .eraseblocks = { {64 * 1024, 1} }, |
| 3364 | .block_erase = spi_block_erase_60, |
| 3365 | }, { |
| 3366 | .eraseblocks = { {64 * 1024, 1} }, |
| 3367 | .block_erase = spi_block_erase_c7, |
| 3368 | } |
| 3369 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3370 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3371 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3372 | .write = spi_chip_write_256, |
| 3373 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3374 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3375 | }, |
| 3376 | |
| 3377 | { |
| 3378 | .vendor = "Eon", |
| 3379 | .name = "EN25F10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3380 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3381 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3382 | .model_id = EON_EN25F10, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3383 | .total_size = 128, |
| 3384 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3385 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3386 | .tested = TEST_UNTESTED, |
| 3387 | .probe = probe_spi_rdid, |
| 3388 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3389 | .block_erasers = |
| 3390 | { |
| 3391 | { |
| 3392 | .eraseblocks = { {4 * 1024, 32} }, |
| 3393 | .block_erase = spi_block_erase_20, |
| 3394 | }, { |
| 3395 | .eraseblocks = { {32 * 1024, 4} }, |
| 3396 | .block_erase = spi_block_erase_d8, |
| 3397 | }, { |
| 3398 | .eraseblocks = { {32 * 1024, 4} }, |
| 3399 | .block_erase = spi_block_erase_52, |
| 3400 | }, { |
| 3401 | .eraseblocks = { {128 * 1024, 1} }, |
| 3402 | .block_erase = spi_block_erase_60, |
| 3403 | }, { |
| 3404 | .eraseblocks = { {128 * 1024, 1} }, |
| 3405 | .block_erase = spi_block_erase_c7, |
| 3406 | } |
| 3407 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3408 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3409 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3410 | .write = spi_chip_write_256, |
| 3411 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3412 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3413 | }, |
| 3414 | |
| 3415 | { |
| 3416 | .vendor = "Eon", |
| 3417 | .name = "EN25F20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3418 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3419 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3420 | .model_id = EON_EN25F20, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3421 | .total_size = 256, |
| 3422 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3423 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3424 | .tested = TEST_UNTESTED, |
| 3425 | .probe = probe_spi_rdid, |
| 3426 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3427 | .block_erasers = |
| 3428 | { |
| 3429 | { |
| 3430 | .eraseblocks = { {4 * 1024, 64} }, |
| 3431 | .block_erase = spi_block_erase_20, |
| 3432 | }, { |
| 3433 | .eraseblocks = { {64 * 1024, 4} }, |
| 3434 | .block_erase = spi_block_erase_d8, |
| 3435 | }, { |
| 3436 | .eraseblocks = { {64 * 1024, 4} }, |
| 3437 | .block_erase = spi_block_erase_52, |
| 3438 | }, { |
| 3439 | .eraseblocks = { {256 * 1024, 1} }, |
| 3440 | .block_erase = spi_block_erase_60, |
| 3441 | }, { |
| 3442 | .eraseblocks = { {256 * 1024, 1} }, |
| 3443 | .block_erase = spi_block_erase_c7, |
| 3444 | } |
| 3445 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3446 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3447 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3448 | .write = spi_chip_write_256, |
| 3449 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3450 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3451 | }, |
| 3452 | |
| 3453 | { |
| 3454 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3455 | .name = "EN25F40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3456 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3457 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3458 | .model_id = EON_EN25F40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3459 | .total_size = 512, |
| 3460 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3461 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | faaa2b2 | 2009-06-22 10:06:28 +0000 | [diff] [blame] | 3462 | .tested = TEST_OK_PROBE, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3463 | .probe = probe_spi_rdid, |
| 3464 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3465 | .block_erasers = |
| 3466 | { |
| 3467 | { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3468 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3469 | .block_erase = spi_block_erase_20, |
| 3470 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3471 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3472 | .block_erase = spi_block_erase_d8, |
| 3473 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3474 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3475 | .block_erase = spi_block_erase_60, |
| 3476 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3477 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3478 | .block_erase = spi_block_erase_c7, |
| 3479 | }, |
| 3480 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3481 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3482 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3483 | .write = spi_chip_write_256, |
| 3484 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3485 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3486 | }, |
| 3487 | |
| 3488 | { |
| 3489 | .vendor = "Eon", |
| 3490 | .name = "EN25F80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3491 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3492 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3493 | .model_id = EON_EN25F80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3494 | .total_size = 1024, |
| 3495 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3496 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 3497 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3498 | .probe = probe_spi_rdid, |
| 3499 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3500 | .block_erasers = |
| 3501 | { |
| 3502 | { |
| 3503 | .eraseblocks = { {4 * 1024, 256} }, |
| 3504 | .block_erase = spi_block_erase_20, |
| 3505 | }, { |
| 3506 | .eraseblocks = { {64 * 1024, 16} }, |
| 3507 | .block_erase = spi_block_erase_d8, |
| 3508 | }, { |
| 3509 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3510 | .block_erase = spi_block_erase_60, |
| 3511 | }, { |
| 3512 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3513 | .block_erase = spi_block_erase_c7, |
| 3514 | } |
| 3515 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3516 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3517 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3518 | .write = spi_chip_write_256, |
| 3519 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3520 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3521 | }, |
| 3522 | |
| 3523 | { |
| 3524 | .vendor = "Eon", |
| 3525 | .name = "EN25F16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3526 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3527 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3528 | .model_id = EON_EN25F16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3529 | .total_size = 2048, |
| 3530 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3531 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 3532 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3533 | .probe = probe_spi_rdid, |
| 3534 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3535 | .block_erasers = |
| 3536 | { |
| 3537 | { |
| 3538 | .eraseblocks = { {4 * 1024, 512} }, |
| 3539 | .block_erase = spi_block_erase_20, |
| 3540 | }, { |
| 3541 | .eraseblocks = { {64 * 1024, 32} }, |
| 3542 | .block_erase = spi_block_erase_d8, |
| 3543 | }, { |
| 3544 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3545 | .block_erase = spi_block_erase_60, |
| 3546 | }, { |
| 3547 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3548 | .block_erase = spi_block_erase_c7, |
| 3549 | } |
| 3550 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3551 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3552 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3553 | .write = spi_chip_write_256, |
| 3554 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3555 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3556 | }, |
| 3557 | |
| 3558 | { |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3559 | .vendor = "Eon", |
| 3560 | .name = "EN25F32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3561 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3562 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3563 | .model_id = EON_EN25F32, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3564 | .total_size = 4096, |
| 3565 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3566 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3567 | .tested = TEST_UNTESTED, |
| 3568 | .probe = probe_spi_rdid, |
| 3569 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3570 | .block_erasers = |
| 3571 | { |
| 3572 | { |
| 3573 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3574 | .block_erase = spi_block_erase_20, |
| 3575 | }, { |
| 3576 | .eraseblocks = { {64 * 1024, 64} }, |
| 3577 | .block_erase = spi_block_erase_d8, |
| 3578 | }, { |
| 3579 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3580 | .block_erase = spi_block_erase_60, |
| 3581 | }, { |
| 3582 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3583 | .block_erase = spi_block_erase_c7, |
| 3584 | } |
| 3585 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3586 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3587 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3588 | .write = spi_chip_write_256, |
| 3589 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3590 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3591 | }, |
| 3592 | |
| 3593 | { |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 3594 | .vendor = "Eon", |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 3595 | .name = "EN25F64", |
| 3596 | .bustype = BUS_SPI, |
| 3597 | .manufacture_id = EON_ID_NOPREFIX, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 3598 | .model_id = EON_EN25F64, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 3599 | .total_size = 8192, |
| 3600 | .page_size = 256, |
| 3601 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 3602 | .tested = TEST_OK_PREW, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 3603 | .probe = probe_spi_rdid, |
| 3604 | .probe_timing = TIMING_ZERO, |
| 3605 | .block_erasers = |
| 3606 | { |
| 3607 | { |
| 3608 | .eraseblocks = { {4 * 1024, 2048} }, |
| 3609 | .block_erase = spi_block_erase_20, |
| 3610 | }, { |
| 3611 | .eraseblocks = { {64 * 1024, 128} }, |
| 3612 | .block_erase = spi_block_erase_d8, |
| 3613 | }, { |
| 3614 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3615 | .block_erase = spi_block_erase_60, |
| 3616 | }, { |
| 3617 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3618 | .block_erase = spi_block_erase_c7, |
| 3619 | } |
| 3620 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3621 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 3622 | .unlock = spi_disable_blockprotect, |
| 3623 | .write = spi_chip_write_256, |
| 3624 | .read = spi_chip_read, |
| 3625 | .voltage = {2700, 3600}, |
| 3626 | }, |
| 3627 | |
| 3628 | { |
| 3629 | .vendor = "Eon", |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3630 | .name = "EN25Q40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3631 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3632 | .manufacture_id = EON_ID_NOPREFIX, |
| 3633 | .model_id = EON_EN25Q40, |
| 3634 | .total_size = 512, |
| 3635 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3636 | /* OTP: 256B total; enter 0x3A */ |
| 3637 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3638 | .tested = TEST_UNTESTED, |
| 3639 | .probe = probe_spi_rdid, |
| 3640 | .probe_timing = TIMING_ZERO, |
| 3641 | .block_erasers = |
| 3642 | { |
| 3643 | { |
| 3644 | .eraseblocks = { {4 * 1024, 128} }, |
| 3645 | .block_erase = spi_block_erase_20, |
| 3646 | }, { |
| 3647 | .eraseblocks = { {64 * 1024, 8} }, |
| 3648 | .block_erase = spi_block_erase_d8, |
| 3649 | }, { |
| 3650 | .eraseblocks = { {512 * 1024, 1} }, |
| 3651 | .block_erase = spi_block_erase_60, |
| 3652 | }, { |
| 3653 | .eraseblocks = { {512 * 1024, 1} }, |
| 3654 | .block_erase = spi_block_erase_c7, |
| 3655 | } |
| 3656 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3657 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3658 | .unlock = spi_disable_blockprotect, |
| 3659 | .write = spi_chip_write_256, |
| 3660 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3661 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3662 | }, |
| 3663 | |
| 3664 | { |
| 3665 | .vendor = "Eon", |
| 3666 | .name = "EN25Q80(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3667 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3668 | .manufacture_id = EON_ID_NOPREFIX, |
| 3669 | .model_id = EON_EN25Q80, |
| 3670 | .total_size = 1024, |
| 3671 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3672 | /* OTP: 256B total; enter 0x3A */ |
| 3673 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3674 | .tested = TEST_UNTESTED, |
| 3675 | .probe = probe_spi_rdid, |
| 3676 | .probe_timing = TIMING_ZERO, |
| 3677 | .block_erasers = |
| 3678 | { |
| 3679 | { |
| 3680 | .eraseblocks = { {4 * 1024, 256} }, |
| 3681 | .block_erase = spi_block_erase_20, |
| 3682 | }, { |
| 3683 | .eraseblocks = { {64 * 1024, 16} }, |
| 3684 | .block_erase = spi_block_erase_d8, |
| 3685 | }, { |
| 3686 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3687 | .block_erase = spi_block_erase_60, |
| 3688 | }, { |
| 3689 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3690 | .block_erase = spi_block_erase_c7, |
| 3691 | } |
| 3692 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3693 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3694 | .unlock = spi_disable_blockprotect, |
| 3695 | .write = spi_chip_write_256, |
| 3696 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3697 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3698 | }, |
| 3699 | |
| 3700 | { |
| 3701 | /* Note: EN25D16 is an evil twin which shares the model ID |
| 3702 | but has different write protection capabilities */ |
| 3703 | .vendor = "Eon", |
| 3704 | .name = "EN25Q16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3705 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3706 | .manufacture_id = EON_ID_NOPREFIX, |
| 3707 | .model_id = EON_EN25Q16, |
| 3708 | .total_size = 2048, |
| 3709 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3710 | /* OTP: D16 512B/Q16 128B total; enter 0x3A */ |
| 3711 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3712 | .tested = TEST_UNTESTED, |
| 3713 | .probe = probe_spi_rdid, |
| 3714 | .probe_timing = TIMING_ZERO, |
| 3715 | .block_erasers = |
| 3716 | { |
| 3717 | { |
| 3718 | .eraseblocks = { {4 * 1024, 512} }, |
| 3719 | .block_erase = spi_block_erase_20, |
| 3720 | }, { |
| 3721 | .eraseblocks = { {64 * 1024, 32} }, |
| 3722 | .block_erase = spi_block_erase_d8, |
| 3723 | }, { |
| 3724 | /* not supported by Q16 version */ |
| 3725 | .eraseblocks = { {64 * 1024, 32} }, |
| 3726 | .block_erase = spi_block_erase_52, |
| 3727 | }, { |
| 3728 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3729 | .block_erase = spi_block_erase_60, |
| 3730 | }, { |
| 3731 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3732 | .block_erase = spi_block_erase_c7, |
| 3733 | } |
| 3734 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3735 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3736 | .unlock = spi_disable_blockprotect, |
| 3737 | .write = spi_chip_write_256, |
| 3738 | .read = spi_chip_read, |
| 3739 | .voltage = {2700, 3600}, |
| 3740 | }, |
| 3741 | |
| 3742 | { |
| 3743 | .vendor = "Eon", |
| 3744 | .name = "EN25Q32(A/B)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3745 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3746 | .manufacture_id = EON_ID_NOPREFIX, |
| 3747 | .model_id = EON_EN25Q32, |
| 3748 | .total_size = 4096, |
| 3749 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3750 | /* OTP: 512B total; enter 0x3A */ |
| 3751 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3752 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3753 | .probe = probe_spi_rdid, |
| 3754 | .probe_timing = TIMING_ZERO, |
| 3755 | .block_erasers = |
| 3756 | { |
| 3757 | { |
| 3758 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3759 | .block_erase = spi_block_erase_20, |
| 3760 | }, { |
| 3761 | .eraseblocks = { {64 * 1024, 64} }, |
| 3762 | .block_erase = spi_block_erase_d8, |
| 3763 | }, { |
| 3764 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3765 | .block_erase = spi_block_erase_60, |
| 3766 | }, { |
| 3767 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3768 | .block_erase = spi_block_erase_c7, |
| 3769 | } |
| 3770 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3771 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3772 | .unlock = spi_disable_blockprotect, |
| 3773 | .write = spi_chip_write_256, |
| 3774 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3775 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3776 | }, |
| 3777 | |
| 3778 | { |
| 3779 | .vendor = "Eon", |
| 3780 | .name = "EN25Q64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3781 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3782 | .manufacture_id = EON_ID_NOPREFIX, |
| 3783 | .model_id = EON_EN25Q64, |
| 3784 | .total_size = 8192, |
| 3785 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3786 | /* OTP: 512B total; enter 0x3A */ |
| 3787 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3788 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3789 | .probe = probe_spi_rdid, |
| 3790 | .probe_timing = TIMING_ZERO, |
| 3791 | .block_erasers = |
| 3792 | { |
| 3793 | { |
| 3794 | .eraseblocks = { {4 * 1024, 2048} }, |
| 3795 | .block_erase = spi_block_erase_20, |
| 3796 | }, { |
| 3797 | .eraseblocks = { {64 * 1024, 128} }, |
| 3798 | .block_erase = spi_block_erase_d8, |
| 3799 | }, { |
| 3800 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3801 | .block_erase = spi_block_erase_60, |
| 3802 | }, { |
| 3803 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3804 | .block_erase = spi_block_erase_c7, |
| 3805 | } |
| 3806 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3807 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3808 | .unlock = spi_disable_blockprotect, |
| 3809 | .write = spi_chip_write_256, |
| 3810 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3811 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3812 | }, |
| 3813 | |
| 3814 | { |
| 3815 | .vendor = "Eon", |
| 3816 | .name = "EN25Q128", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3817 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3818 | .manufacture_id = EON_ID_NOPREFIX, |
| 3819 | .model_id = EON_EN25Q128, |
| 3820 | .total_size = 16384, |
| 3821 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3822 | /* OTP: 512B total; enter 0x3A */ |
| 3823 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3824 | .tested = TEST_UNTESTED, |
| 3825 | .probe = probe_spi_rdid, |
| 3826 | .probe_timing = TIMING_ZERO, |
| 3827 | .block_erasers = |
| 3828 | { |
| 3829 | { |
| 3830 | .eraseblocks = { {4 * 1024, 4096} }, |
| 3831 | .block_erase = spi_block_erase_20, |
| 3832 | }, { |
| 3833 | .eraseblocks = { {64 * 1024, 256} }, |
| 3834 | .block_erase = spi_block_erase_d8, |
| 3835 | }, { |
| 3836 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 3837 | .block_erase = spi_block_erase_60, |
| 3838 | }, { |
| 3839 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 3840 | .block_erase = spi_block_erase_c7, |
| 3841 | } |
| 3842 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3843 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3844 | .unlock = spi_disable_blockprotect, |
| 3845 | .write = spi_chip_write_256, |
| 3846 | .read = spi_chip_read, |
| 3847 | }, |
| 3848 | |
| 3849 | { |
| 3850 | .vendor = "Eon", |
| 3851 | .name = "EN25QH16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3852 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3853 | .manufacture_id = EON_ID_NOPREFIX, |
| 3854 | .model_id = EON_EN25QH16, |
| 3855 | .total_size = 2048, |
| 3856 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3857 | /* supports SFDP */ |
| 3858 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame^] | 3859 | /* QPI enable 0x38, disable 0xFF */ |
| 3860 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 3861 | .tested = TEST_OK_PR, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3862 | .probe = probe_spi_rdid, |
| 3863 | .probe_timing = TIMING_ZERO, |
| 3864 | .block_erasers = |
| 3865 | { |
| 3866 | { |
| 3867 | .eraseblocks = { {4 * 1024, 512} }, |
| 3868 | .block_erase = spi_block_erase_20, |
| 3869 | }, { |
| 3870 | .eraseblocks = { {64 * 1024, 32} }, |
| 3871 | .block_erase = spi_block_erase_d8, |
| 3872 | }, { |
| 3873 | .eraseblocks = { {1024 * 2048, 1} }, |
| 3874 | .block_erase = spi_block_erase_60, |
| 3875 | }, { |
| 3876 | .eraseblocks = { {1024 * 2048, 1} }, |
| 3877 | .block_erase = spi_block_erase_c7, |
| 3878 | } |
| 3879 | }, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame^] | 3880 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 3881 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3882 | .write = spi_chip_write_256, |
| 3883 | .read = spi_chip_read, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 3884 | .voltage = {2700, 3600}, |
| 3885 | }, |
| 3886 | |
| 3887 | { |
| 3888 | .vendor = "Eon", |
| 3889 | .name = "EN25QH32", |
| 3890 | .bustype = BUS_SPI, |
| 3891 | .manufacture_id = EON_ID_NOPREFIX, |
| 3892 | .model_id = EON_EN25QH32, |
| 3893 | .total_size = 4096, |
| 3894 | .page_size = 256, |
| 3895 | /* supports SFDP */ |
| 3896 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame^] | 3897 | /* QPI enable 0x38, disable 0xFF */ |
| 3898 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 3899 | .tested = TEST_UNTESTED, |
| 3900 | .probe = probe_spi_rdid, |
| 3901 | .probe_timing = TIMING_ZERO, |
| 3902 | .block_erasers = |
| 3903 | { |
| 3904 | { |
| 3905 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3906 | .block_erase = spi_block_erase_20, |
| 3907 | }, { |
| 3908 | .eraseblocks = { {64 * 1024, 64} }, |
| 3909 | .block_erase = spi_block_erase_d8, |
| 3910 | }, { |
| 3911 | .eraseblocks = { {1024 * 4096, 1} }, |
| 3912 | .block_erase = spi_block_erase_60, |
| 3913 | }, { |
| 3914 | .eraseblocks = { {1024 * 4096, 1} }, |
| 3915 | .block_erase = spi_block_erase_c7, |
| 3916 | } |
| 3917 | }, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame^] | 3918 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 3919 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 3920 | .write = spi_chip_write_256, |
| 3921 | .read = spi_chip_read, |
| 3922 | .voltage = {2700, 3600}, |
| 3923 | }, |
| 3924 | |
| 3925 | { |
| 3926 | .vendor = "Eon", |
| 3927 | .name = "EN25QH64", |
| 3928 | .bustype = BUS_SPI, |
| 3929 | .manufacture_id = EON_ID_NOPREFIX, |
| 3930 | .model_id = EON_EN25QH64, |
| 3931 | .total_size = 8192, |
| 3932 | .page_size = 256, |
| 3933 | /* supports SFDP */ |
| 3934 | /* OTP: 512B total; enter 0x3A */ |
| 3935 | /* QPI enable 0x38, disable 0xFF */ |
| 3936 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 3937 | .tested = TEST_UNTESTED, |
| 3938 | .probe = probe_spi_rdid, |
| 3939 | .probe_timing = TIMING_ZERO, |
| 3940 | .block_erasers = { |
| 3941 | { |
| 3942 | .eraseblocks = { {4 * 1024, 2048} }, |
| 3943 | .block_erase = spi_block_erase_20, |
| 3944 | }, { |
| 3945 | .eraseblocks = { {64 * 1024, 128} }, |
| 3946 | .block_erase = spi_block_erase_d8, |
| 3947 | }, { |
| 3948 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 3949 | .block_erase = spi_block_erase_60, |
| 3950 | }, { |
| 3951 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 3952 | .block_erase = spi_block_erase_c7, |
| 3953 | } |
| 3954 | }, |
| 3955 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 3956 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 3957 | .write = spi_chip_write_256, |
| 3958 | .read = spi_chip_read, |
| 3959 | .voltage = {2700, 3600}, |
| 3960 | }, |
| 3961 | |
| 3962 | { |
| 3963 | .vendor = "Eon", |
| 3964 | .name = "EN25QH128", |
| 3965 | .bustype = BUS_SPI, |
| 3966 | .manufacture_id = EON_ID_NOPREFIX, |
| 3967 | .model_id = EON_EN25QH128, |
| 3968 | .total_size = 16384, |
| 3969 | .page_size = 256, |
| 3970 | /* supports SFDP */ |
| 3971 | /* OTP: 512B total; enter 0x3A */ |
| 3972 | /* QPI enable 0x38, disable 0xFF */ |
| 3973 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 3974 | .tested = TEST_UNTESTED, |
| 3975 | .probe = probe_spi_rdid, |
| 3976 | .probe_timing = TIMING_ZERO, |
| 3977 | .block_erasers = { |
| 3978 | { |
| 3979 | .eraseblocks = { {4 * 1024, 4096} }, |
| 3980 | .block_erase = spi_block_erase_20, |
| 3981 | }, { |
| 3982 | .eraseblocks = { {64 * 1024, 256} }, |
| 3983 | .block_erase = spi_block_erase_d8, |
| 3984 | }, { |
| 3985 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 3986 | .block_erase = spi_block_erase_60, |
| 3987 | }, { |
| 3988 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 3989 | .block_erase = spi_block_erase_c7, |
| 3990 | } |
| 3991 | }, |
| 3992 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 3993 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 3994 | .write = spi_chip_write_256, |
| 3995 | .read = spi_chip_read, |
| 3996 | .voltage = {2700, 3600}, |
| 3997 | }, |
| 3998 | |
| 3999 | { |
| 4000 | .vendor = "Eon", |
| 4001 | .name = "EN25QH256", |
| 4002 | .bustype = BUS_SPI, |
| 4003 | .manufacture_id = EON_ID_NOPREFIX, |
| 4004 | .model_id = EON_EN25QH256, |
| 4005 | .total_size = 32768, |
| 4006 | .page_size = 256, |
| 4007 | /* supports SFDP */ |
| 4008 | /* OTP: 512B total; enter 0x3A */ |
| 4009 | /* QPI enable 0x38, disable 0xFF */ |
| 4010 | /* EN4B: 0xB7, EX4B: 0xE9 */ |
| 4011 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4012 | .tested = TEST_BAD_REW, |
| 4013 | .probe = probe_spi_rdid, |
| 4014 | .probe_timing = TIMING_ZERO, |
| 4015 | .block_erasers = { |
| 4016 | { |
| 4017 | .eraseblocks = { {4 * 1024, 8192} }, |
| 4018 | .block_erase = spi_block_erase_20, |
| 4019 | }, { |
| 4020 | .eraseblocks = { {64 * 1024, 512} }, |
| 4021 | .block_erase = spi_block_erase_d8, |
| 4022 | }, { |
| 4023 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 4024 | .block_erase = spi_block_erase_60, |
| 4025 | }, { |
| 4026 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 4027 | .block_erase = spi_block_erase_c7, |
| 4028 | } |
| 4029 | }, |
| 4030 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 4031 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 4032 | .write = spi_chip_write_256, |
| 4033 | .read = spi_chip_read, |
| 4034 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4035 | }, |
| 4036 | |
| 4037 | { |
| 4038 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4039 | .name = "EN25S10", |
| 4040 | .bustype = BUS_SPI, |
| 4041 | .manufacture_id = EON_ID_NOPREFIX, |
| 4042 | .model_id = EON_EN25S10, |
| 4043 | .total_size = 128, |
| 4044 | .page_size = 256, |
| 4045 | /* OTP: 256B total; enter 0x3A */ |
| 4046 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4047 | .tested = TEST_UNTESTED, |
| 4048 | .probe = probe_spi_rdid, |
| 4049 | .probe_timing = TIMING_ZERO, |
| 4050 | .block_erasers = { |
| 4051 | { |
| 4052 | .eraseblocks = { {4 * 1024, 32} }, |
| 4053 | .block_erase = spi_block_erase_20, |
| 4054 | }, { |
| 4055 | .eraseblocks = { {32 * 1024, 4} }, |
| 4056 | .block_erase = spi_block_erase_52, |
| 4057 | }, { |
| 4058 | .eraseblocks = { {128 * 1024, 1} }, |
| 4059 | .block_erase = spi_block_erase_60, |
| 4060 | }, { |
| 4061 | .eraseblocks = { {128 * 1024, 1} }, |
| 4062 | .block_erase = spi_block_erase_c7, |
| 4063 | } |
| 4064 | }, |
| 4065 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 4066 | .unlock = spi_disable_blockprotect, |
| 4067 | .write = spi_chip_write_256, |
| 4068 | .read = spi_chip_read, |
| 4069 | .voltage = {1650, 1950}, |
| 4070 | }, |
| 4071 | |
| 4072 | { |
| 4073 | .vendor = "Eon", |
| 4074 | .name = "EN25S20", |
| 4075 | .bustype = BUS_SPI, |
| 4076 | .manufacture_id = EON_ID_NOPREFIX, |
| 4077 | .model_id = EON_EN25S20, |
| 4078 | .total_size = 256, |
| 4079 | .page_size = 256, |
| 4080 | /* OTP: 256B total; enter 0x3A */ |
| 4081 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4082 | .tested = TEST_UNTESTED, |
| 4083 | .probe = probe_spi_rdid, |
| 4084 | .probe_timing = TIMING_ZERO, |
| 4085 | .block_erasers = { |
| 4086 | { |
| 4087 | .eraseblocks = { {4 * 1024, 64} }, |
| 4088 | .block_erase = spi_block_erase_20, |
| 4089 | }, { |
| 4090 | .eraseblocks = { {64 * 1024, 4} }, |
| 4091 | .block_erase = spi_block_erase_d8, |
| 4092 | }, { |
| 4093 | .eraseblocks = { {256 * 1024, 1} }, |
| 4094 | .block_erase = spi_block_erase_60, |
| 4095 | }, { |
| 4096 | .eraseblocks = { {256 * 1024, 1} }, |
| 4097 | .block_erase = spi_block_erase_c7, |
| 4098 | } |
| 4099 | }, |
| 4100 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 4101 | .unlock = spi_disable_blockprotect, |
| 4102 | .write = spi_chip_write_256, |
| 4103 | .read = spi_chip_read, |
| 4104 | .voltage = {1650, 1950}, |
| 4105 | }, |
| 4106 | |
| 4107 | { |
| 4108 | .vendor = "Eon", |
| 4109 | .name = "EN25S40", |
| 4110 | .bustype = BUS_SPI, |
| 4111 | .manufacture_id = EON_ID_NOPREFIX, |
| 4112 | .model_id = EON_EN25S40, |
| 4113 | .total_size = 512, |
| 4114 | .page_size = 256, |
| 4115 | /* OTP: 256B total; enter 0x3A */ |
| 4116 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4117 | .tested = TEST_UNTESTED, |
| 4118 | .probe = probe_spi_rdid, |
| 4119 | .probe_timing = TIMING_ZERO, |
| 4120 | .block_erasers = { |
| 4121 | { |
| 4122 | .eraseblocks = { {4 * 1024, 128} }, |
| 4123 | .block_erase = spi_block_erase_20, |
| 4124 | }, { |
| 4125 | .eraseblocks = { {64 * 1024, 8} }, |
| 4126 | .block_erase = spi_block_erase_d8, |
| 4127 | }, { |
| 4128 | .eraseblocks = { {512 * 1024, 1} }, |
| 4129 | .block_erase = spi_block_erase_60, |
| 4130 | }, { |
| 4131 | .eraseblocks = { {512 * 1024, 1} }, |
| 4132 | .block_erase = spi_block_erase_c7, |
| 4133 | } |
| 4134 | }, |
| 4135 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 4136 | .unlock = spi_disable_blockprotect, |
| 4137 | .write = spi_chip_write_256, |
| 4138 | .read = spi_chip_read, |
| 4139 | .voltage = {1650, 1950}, |
| 4140 | }, |
| 4141 | |
| 4142 | { |
| 4143 | .vendor = "Eon", |
| 4144 | .name = "EN25S80", |
| 4145 | .bustype = BUS_SPI, |
| 4146 | .manufacture_id = EON_ID_NOPREFIX, |
| 4147 | .model_id = EON_EN25S80, |
| 4148 | .total_size = 1024, |
| 4149 | .page_size = 256, |
| 4150 | /* OTP: 256B total; enter 0x3A */ |
| 4151 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4152 | .tested = TEST_UNTESTED, |
| 4153 | .probe = probe_spi_rdid, |
| 4154 | .probe_timing = TIMING_ZERO, |
| 4155 | .block_erasers = { |
| 4156 | { |
| 4157 | .eraseblocks = { {4 * 1024, 256} }, |
| 4158 | .block_erase = spi_block_erase_20, |
| 4159 | }, { |
| 4160 | .eraseblocks = { {64 * 1024, 16} }, |
| 4161 | .block_erase = spi_block_erase_d8, |
| 4162 | }, { |
| 4163 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4164 | .block_erase = spi_block_erase_60, |
| 4165 | }, { |
| 4166 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4167 | .block_erase = spi_block_erase_c7, |
| 4168 | } |
| 4169 | }, |
| 4170 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 4171 | .unlock = spi_disable_blockprotect, |
| 4172 | .write = spi_chip_write_256, |
| 4173 | .read = spi_chip_read, |
| 4174 | .voltage = {1650, 1950}, |
| 4175 | }, |
| 4176 | |
| 4177 | { |
| 4178 | .vendor = "Eon", |
| 4179 | .name = "EN25S16", |
| 4180 | .bustype = BUS_SPI, |
| 4181 | .manufacture_id = EON_ID_NOPREFIX, |
| 4182 | .model_id = EON_EN25S16, |
| 4183 | .total_size = 2048, |
| 4184 | .page_size = 256, |
| 4185 | /* OTP: 512B total; enter 0x3A */ |
| 4186 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4187 | .tested = TEST_UNTESTED, |
| 4188 | .probe = probe_spi_rdid, |
| 4189 | .probe_timing = TIMING_ZERO, |
| 4190 | .block_erasers = { |
| 4191 | { |
| 4192 | .eraseblocks = { {4 * 1024, 512} }, |
| 4193 | .block_erase = spi_block_erase_20, |
| 4194 | }, { |
| 4195 | .eraseblocks = { {64 * 1024, 32} }, |
| 4196 | .block_erase = spi_block_erase_52, |
| 4197 | }, { |
| 4198 | .eraseblocks = { {32 * 1024, 64} }, |
| 4199 | .block_erase = spi_block_erase_d8, |
| 4200 | }, { |
| 4201 | .eraseblocks = { {2048 * 1024, 1} }, |
| 4202 | .block_erase = spi_block_erase_60, |
| 4203 | }, { |
| 4204 | .eraseblocks = { {2048 * 1024, 1} }, |
| 4205 | .block_erase = spi_block_erase_c7, |
| 4206 | } |
| 4207 | }, |
| 4208 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 4209 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4210 | .write = spi_chip_write_256, |
| 4211 | .read = spi_chip_read, |
| 4212 | .voltage = {1650, 1950}, |
| 4213 | }, |
| 4214 | |
| 4215 | { |
| 4216 | .vendor = "Eon", |
| 4217 | .name = "EN25S32", |
| 4218 | .bustype = BUS_SPI, |
| 4219 | .manufacture_id = EON_ID_NOPREFIX, |
| 4220 | .model_id = EON_EN25S32, |
| 4221 | .total_size = 4096, |
| 4222 | .page_size = 256, |
| 4223 | /* OTP: 512B total; enter 0x3A */ |
| 4224 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4225 | .tested = TEST_UNTESTED, |
| 4226 | .probe = probe_spi_rdid, |
| 4227 | .probe_timing = TIMING_ZERO, |
| 4228 | .block_erasers = { |
| 4229 | { |
| 4230 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4231 | .block_erase = spi_block_erase_20, |
| 4232 | }, { |
| 4233 | .eraseblocks = { {32 * 1024, 128} }, |
| 4234 | .block_erase = spi_block_erase_52, |
| 4235 | }, { |
| 4236 | .eraseblocks = { {64 * 1024, 64} }, |
| 4237 | .block_erase = spi_block_erase_d8, |
| 4238 | }, { |
| 4239 | .eraseblocks = { {4096 * 1024, 1} }, |
| 4240 | .block_erase = spi_block_erase_60, |
| 4241 | }, { |
| 4242 | .eraseblocks = { {4096 * 1024, 1} }, |
| 4243 | .block_erase = spi_block_erase_c7, |
| 4244 | } |
| 4245 | }, |
| 4246 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 4247 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4248 | .write = spi_chip_write_256, |
| 4249 | .read = spi_chip_read, |
| 4250 | .voltage = {1650, 1950}, |
| 4251 | }, |
| 4252 | |
| 4253 | { |
| 4254 | .vendor = "Eon", |
| 4255 | .name = "EN25S64", |
| 4256 | .bustype = BUS_SPI, |
| 4257 | .manufacture_id = EON_ID_NOPREFIX, |
| 4258 | .model_id = EON_EN25S64, |
| 4259 | .total_size = 8192, |
| 4260 | .page_size = 256, |
| 4261 | /* OTP: 512B total; enter 0x3A */ |
| 4262 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4263 | .tested = TEST_UNTESTED, |
| 4264 | .probe = probe_spi_rdid, |
| 4265 | .probe_timing = TIMING_ZERO, |
| 4266 | .block_erasers = { |
| 4267 | { |
| 4268 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4269 | .block_erase = spi_block_erase_20, |
| 4270 | }, { |
| 4271 | .eraseblocks = { {64 * 1024, 128} }, |
| 4272 | .block_erase = spi_block_erase_d8, |
| 4273 | }, { |
| 4274 | .eraseblocks = { {8192 * 1024, 1} }, |
| 4275 | .block_erase = spi_block_erase_60, |
| 4276 | }, { |
| 4277 | .eraseblocks = { {8192 * 1024, 1} }, |
| 4278 | .block_erase = spi_block_erase_c7, |
| 4279 | } |
| 4280 | }, |
| 4281 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 4282 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4283 | .write = spi_chip_write_256, |
| 4284 | .read = spi_chip_read, |
| 4285 | .voltage = {1650, 1950}, |
| 4286 | }, |
| 4287 | |
| 4288 | { |
| 4289 | .vendor = "Eon", |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4290 | .name = "EN29F010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4291 | .bustype = BUS_PARALLEL, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4292 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4293 | .model_id = EON_EN29F010, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4294 | .total_size = 128, |
| 4295 | .page_size = 128, |
| 4296 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 4297 | .tested = TEST_OK_PRE, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4298 | .probe = probe_jedec, |
| 4299 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4300 | .block_erasers = |
| 4301 | { |
| 4302 | { |
| 4303 | .eraseblocks = { {16 * 1024, 8} }, |
| 4304 | .block_erase = erase_sector_jedec, |
| 4305 | }, |
| 4306 | { |
| 4307 | .eraseblocks = { {128 * 1024, 1} }, |
| 4308 | .block_erase = erase_chip_block_jedec, |
| 4309 | }, |
| 4310 | }, |
| 4311 | .write = write_jedec_1, |
| 4312 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4313 | .voltage = {4500, 5500}, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4314 | }, |
| 4315 | |
| 4316 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 4317 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4318 | .name = "EN29F002(A)(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4319 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4320 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4321 | .model_id = EON_EN29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4322 | .total_size = 256, |
| 4323 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4324 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 4325 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4326 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4327 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4328 | .block_erasers = |
| 4329 | { |
| 4330 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 4331 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4332 | {16 * 1024, 1}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 4333 | {8 * 1024, 2}, |
| 4334 | {32 * 1024, 1}, |
| 4335 | {64 * 1024, 3}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4336 | }, |
| 4337 | .block_erase = erase_sector_jedec, |
| 4338 | }, { |
| 4339 | .eraseblocks = { {256 * 1024, 1} }, |
| 4340 | .block_erase = erase_chip_block_jedec, |
| 4341 | }, |
| 4342 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 4343 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4344 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4345 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4346 | }, |
| 4347 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4348 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 4349 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4350 | .name = "EN29F002(A)(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4351 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4352 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4353 | .model_id = EON_EN29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4354 | .total_size = 256, |
| 4355 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4356 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 4357 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4358 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4359 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4360 | .block_erasers = |
| 4361 | { |
| 4362 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 4363 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4364 | {64 * 1024, 3}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 4365 | {32 * 1024, 1}, |
| 4366 | {8 * 1024, 2}, |
| 4367 | {16 * 1024, 1}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4368 | }, |
| 4369 | .block_erase = erase_sector_jedec, |
| 4370 | }, { |
| 4371 | .eraseblocks = { {256 * 1024, 1} }, |
| 4372 | .block_erase = erase_chip_block_jedec, |
| 4373 | }, |
| 4374 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 4375 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4376 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4377 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4378 | }, |
| 4379 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4380 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 4381 | .vendor = "Eon", |
| 4382 | .name = "EN29LV640B", |
| 4383 | .bustype = BUS_PARALLEL, |
| 4384 | .manufacture_id = EON_ID, |
| 4385 | .model_id = EON_EN29LV640B, |
| 4386 | .total_size = 8192, |
| 4387 | .page_size = 8192, |
| 4388 | .feature_bits = 0, |
| 4389 | .tested = TEST_OK_PREW, |
| 4390 | .probe = probe_en29lv640b, |
| 4391 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4392 | .block_erasers = |
| 4393 | { |
| 4394 | { |
| 4395 | .eraseblocks = { |
| 4396 | {8 * 1024, 8}, |
| 4397 | {64 * 1024, 127}, |
| 4398 | }, |
| 4399 | .block_erase = block_erase_en29lv640b, |
| 4400 | }, { |
| 4401 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4402 | .block_erase = block_erase_chip_en29lv640b, |
| 4403 | }, |
| 4404 | }, |
| 4405 | .write = write_en29lv640b, |
| 4406 | .read = read_memmapped, |
| 4407 | .voltage = {2700, 3600}, |
| 4408 | }, |
| 4409 | |
| 4410 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4411 | .vendor = "Fujitsu", |
| 4412 | .name = "MBM29F004BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4413 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4414 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4415 | .model_id = FUJITSU_MBM29F004BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4416 | .total_size = 512, |
| 4417 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4418 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4419 | .tested = TEST_UNTESTED, |
| 4420 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4421 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4422 | .block_erasers = |
| 4423 | { |
| 4424 | { |
| 4425 | .eraseblocks = { |
| 4426 | {16 * 1024, 1}, |
| 4427 | {8 * 1024, 2}, |
| 4428 | {32 * 1024, 1}, |
| 4429 | {64 * 1024, 7}, |
| 4430 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4431 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4432 | }, { |
| 4433 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4434 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4435 | }, |
| 4436 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4437 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4438 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4439 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4440 | }, |
| 4441 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4442 | { |
| 4443 | .vendor = "Fujitsu", |
| 4444 | .name = "MBM29F004TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4445 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4446 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4447 | .model_id = FUJITSU_MBM29F004TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4448 | .total_size = 512, |
| 4449 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4450 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4451 | .tested = TEST_UNTESTED, |
| 4452 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4453 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4454 | .block_erasers = |
| 4455 | { |
| 4456 | { |
| 4457 | .eraseblocks = { |
| 4458 | {64 * 1024, 7}, |
| 4459 | {32 * 1024, 1}, |
| 4460 | {8 * 1024, 2}, |
| 4461 | {16 * 1024, 1}, |
| 4462 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4463 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4464 | }, { |
| 4465 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4466 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4467 | }, |
| 4468 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4469 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4470 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4471 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4472 | }, |
| 4473 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4474 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4475 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4476 | .vendor = "Fujitsu", |
| 4477 | .name = "MBM29F400BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4478 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4479 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4480 | .model_id = FUJITSU_MBM29F400BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4481 | .total_size = 512, |
| 4482 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4483 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 4484 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4485 | .probe = probe_m29f400bt, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 4486 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4487 | .block_erasers = |
| 4488 | { |
| 4489 | { |
| 4490 | .eraseblocks = { |
| 4491 | {16 * 1024, 1}, |
| 4492 | {8 * 1024, 2}, |
| 4493 | {32 * 1024, 1}, |
| 4494 | {64 * 1024, 7}, |
| 4495 | }, |
| 4496 | .block_erase = block_erase_m29f400bt, |
| 4497 | }, { |
| 4498 | .eraseblocks = { {512 * 1024, 1} }, |
| 4499 | .block_erase = block_erase_chip_m29f400bt, |
| 4500 | }, |
| 4501 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 4502 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4503 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 4504 | .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] | 4505 | }, |
| 4506 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4507 | { |
| 4508 | .vendor = "Fujitsu", |
| 4509 | .name = "MBM29F400TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4510 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4511 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4512 | .model_id = FUJITSU_MBM29F400TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4513 | .total_size = 512, |
| 4514 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4515 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4516 | .tested = TEST_UNTESTED, |
| 4517 | .probe = probe_m29f400bt, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 4518 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4519 | .block_erasers = |
| 4520 | { |
| 4521 | { |
| 4522 | .eraseblocks = { |
| 4523 | {64 * 1024, 7}, |
| 4524 | {32 * 1024, 1}, |
| 4525 | {8 * 1024, 2}, |
| 4526 | {16 * 1024, 1}, |
| 4527 | }, |
| 4528 | .block_erase = block_erase_m29f400bt, |
| 4529 | }, { |
| 4530 | .eraseblocks = { {512 * 1024, 1} }, |
| 4531 | .block_erase = block_erase_chip_m29f400bt, |
| 4532 | }, |
| 4533 | }, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 4534 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4535 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 4536 | .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] | 4537 | }, |
| 4538 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4539 | { |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4540 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4541 | .name = "GD25LQ32", |
| 4542 | .bustype = BUS_SPI, |
| 4543 | .manufacture_id = GIGADEVICE_ID, |
| 4544 | .model_id = GIGADEVICE_GD25LQ32, |
| 4545 | .total_size = 4096, |
| 4546 | .page_size = 256, |
| 4547 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 4548 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4549 | .tested = TEST_OK_PREW, |
| 4550 | .probe = probe_spi_rdid, |
| 4551 | .probe_timing = TIMING_ZERO, |
| 4552 | .block_erasers = |
| 4553 | { |
| 4554 | { |
| 4555 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4556 | .block_erase = spi_block_erase_20, |
| 4557 | }, { |
| 4558 | .eraseblocks = { {32 * 1024, 128} }, |
| 4559 | .block_erase = spi_block_erase_52, |
| 4560 | }, { |
| 4561 | .eraseblocks = { {64 * 1024, 64} }, |
| 4562 | .block_erase = spi_block_erase_d8, |
| 4563 | }, { |
| 4564 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4565 | .block_erase = spi_block_erase_60, |
| 4566 | }, { |
| 4567 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4568 | .block_erase = spi_block_erase_c7, |
| 4569 | } |
| 4570 | }, |
| 4571 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 4572 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 4573 | .write = spi_chip_write_256, |
| 4574 | .read = spi_chip_read, |
| 4575 | .voltage = {1700, 1950}, |
| 4576 | }, |
| 4577 | |
| 4578 | { |
| 4579 | .vendor = "GigaDevice", |
| 4580 | .name = "GD25Q512", |
| 4581 | .bustype = BUS_SPI, |
| 4582 | .manufacture_id = GIGADEVICE_ID, |
| 4583 | .model_id = GIGADEVICE_GD25Q512, |
| 4584 | .total_size = 64, |
| 4585 | .page_size = 256, |
| 4586 | .feature_bits = FEATURE_WRSR_WREN, |
| 4587 | .tested = TEST_UNTESTED, |
| 4588 | .probe = probe_spi_rdid, |
| 4589 | .probe_timing = TIMING_ZERO, |
| 4590 | .block_erasers = { |
| 4591 | { |
| 4592 | .eraseblocks = { {4 * 1024, 16} }, |
| 4593 | .block_erase = spi_block_erase_20, |
| 4594 | }, { |
| 4595 | .eraseblocks = { {32 * 1024, 2} }, |
| 4596 | .block_erase = spi_block_erase_52, |
| 4597 | }, { |
| 4598 | .eraseblocks = { {64 * 1024, 1} }, |
| 4599 | .block_erase = spi_block_erase_60, |
| 4600 | }, { |
| 4601 | .eraseblocks = { {64 * 1024, 1} }, |
| 4602 | .block_erase = spi_block_erase_c7, |
| 4603 | } |
| 4604 | }, |
| 4605 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 4606 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 4607 | .write = spi_chip_write_256, |
| 4608 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 4609 | .voltage = {2700, 3600}, |
| 4610 | }, |
| 4611 | |
| 4612 | { |
| 4613 | .vendor = "GigaDevice", |
| 4614 | .name = "GD25Q10", |
| 4615 | .bustype = BUS_SPI, |
| 4616 | .manufacture_id = GIGADEVICE_ID, |
| 4617 | .model_id = GIGADEVICE_GD25Q10, |
| 4618 | .total_size = 128, |
| 4619 | .page_size = 256, |
| 4620 | .feature_bits = FEATURE_WRSR_WREN, |
| 4621 | .tested = TEST_UNTESTED, |
| 4622 | .probe = probe_spi_rdid, |
| 4623 | .probe_timing = TIMING_ZERO, |
| 4624 | .block_erasers = { |
| 4625 | { |
| 4626 | .eraseblocks = { {4 * 1024, 32} }, |
| 4627 | .block_erase = spi_block_erase_20, |
| 4628 | }, { |
| 4629 | .eraseblocks = { {32 * 1024, 4} }, |
| 4630 | .block_erase = spi_block_erase_52, |
| 4631 | }, { |
| 4632 | .eraseblocks = { {64 * 1024, 2} }, |
| 4633 | .block_erase = spi_block_erase_d8, |
| 4634 | }, { |
| 4635 | .eraseblocks = { {128 * 1024, 1} }, |
| 4636 | .block_erase = spi_block_erase_60, |
| 4637 | }, { |
| 4638 | .eraseblocks = { {128 * 1024, 1} }, |
| 4639 | .block_erase = spi_block_erase_c7, |
| 4640 | } |
| 4641 | }, |
| 4642 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 4643 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 4644 | .write = spi_chip_write_256, |
| 4645 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 4646 | .voltage = {2700, 3600}, |
| 4647 | }, |
| 4648 | |
| 4649 | { |
| 4650 | .vendor = "GigaDevice", |
| 4651 | .name = "GD25Q20(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4652 | .bustype = BUS_SPI, |
| 4653 | .manufacture_id = GIGADEVICE_ID, |
| 4654 | .model_id = GIGADEVICE_GD25Q20, |
| 4655 | .total_size = 256, |
| 4656 | .page_size = 256, |
| 4657 | .feature_bits = FEATURE_WRSR_WREN, |
| 4658 | .tested = TEST_UNTESTED, |
| 4659 | .probe = probe_spi_rdid, |
| 4660 | .probe_timing = TIMING_ZERO, |
| 4661 | .block_erasers = |
| 4662 | { |
| 4663 | { |
| 4664 | .eraseblocks = { {4 * 1024, 64} }, |
| 4665 | .block_erase = spi_block_erase_20, |
| 4666 | }, { |
| 4667 | .eraseblocks = { {32 * 1024, 8} }, |
| 4668 | .block_erase = spi_block_erase_52, |
| 4669 | }, { |
| 4670 | .eraseblocks = { {64 * 1024, 4} }, |
| 4671 | .block_erase = spi_block_erase_d8, |
| 4672 | }, { |
| 4673 | .eraseblocks = { {256 * 1024, 1} }, |
| 4674 | .block_erase = spi_block_erase_60, |
| 4675 | }, { |
| 4676 | .eraseblocks = { {256 * 1024, 1} }, |
| 4677 | .block_erase = spi_block_erase_c7, |
| 4678 | } |
| 4679 | }, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4680 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 4681 | .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] | 4682 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4683 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4684 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4685 | }, |
| 4686 | |
| 4687 | { |
| 4688 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4689 | .name = "GD25Q40(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4690 | .bustype = BUS_SPI, |
| 4691 | .manufacture_id = GIGADEVICE_ID, |
| 4692 | .model_id = GIGADEVICE_GD25Q40, |
| 4693 | .total_size = 512, |
| 4694 | .page_size = 256, |
| 4695 | .feature_bits = FEATURE_WRSR_WREN, |
| 4696 | .tested = TEST_UNTESTED, |
| 4697 | .probe = probe_spi_rdid, |
| 4698 | .probe_timing = TIMING_ZERO, |
| 4699 | .block_erasers = |
| 4700 | { |
| 4701 | { |
| 4702 | .eraseblocks = { {4 * 1024, 128} }, |
| 4703 | .block_erase = spi_block_erase_20, |
| 4704 | }, { |
| 4705 | .eraseblocks = { {32 * 1024, 16} }, |
| 4706 | .block_erase = spi_block_erase_52, |
| 4707 | }, { |
| 4708 | .eraseblocks = { {64 * 1024, 8} }, |
| 4709 | .block_erase = spi_block_erase_d8, |
| 4710 | }, { |
| 4711 | .eraseblocks = { {512 * 1024, 1} }, |
| 4712 | .block_erase = spi_block_erase_60, |
| 4713 | }, { |
| 4714 | .eraseblocks = { {512 * 1024, 1} }, |
| 4715 | .block_erase = spi_block_erase_c7, |
| 4716 | } |
| 4717 | }, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4718 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 4719 | .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] | 4720 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4721 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4722 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4723 | }, |
| 4724 | |
| 4725 | { |
| 4726 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4727 | .name = "GD25Q80(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4728 | .bustype = BUS_SPI, |
| 4729 | .manufacture_id = GIGADEVICE_ID, |
| 4730 | .model_id = GIGADEVICE_GD25Q80, |
| 4731 | .total_size = 1024, |
| 4732 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4733 | /* 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] | 4734 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4735 | .tested = TEST_OK_PREW, |
| 4736 | .probe = probe_spi_rdid, |
| 4737 | .probe_timing = TIMING_ZERO, |
| 4738 | .block_erasers = |
| 4739 | { |
| 4740 | { |
| 4741 | .eraseblocks = { {4 * 1024, 256} }, |
| 4742 | .block_erase = spi_block_erase_20, |
| 4743 | }, { |
| 4744 | .eraseblocks = { {32 * 1024, 32} }, |
| 4745 | .block_erase = spi_block_erase_52, |
| 4746 | }, { |
| 4747 | .eraseblocks = { {64 * 1024, 16} }, |
| 4748 | .block_erase = spi_block_erase_d8, |
| 4749 | }, { |
| 4750 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4751 | .block_erase = spi_block_erase_60, |
| 4752 | }, { |
| 4753 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4754 | .block_erase = spi_block_erase_c7, |
| 4755 | } |
| 4756 | }, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4757 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 4758 | .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] | 4759 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4760 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4761 | .voltage = {2700, 3600}, |
| 4762 | }, |
| 4763 | |
| 4764 | { |
| 4765 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4766 | .name = "GD25Q16(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4767 | .bustype = BUS_SPI, |
| 4768 | .manufacture_id = GIGADEVICE_ID, |
| 4769 | .model_id = GIGADEVICE_GD25Q16, |
| 4770 | .total_size = 2048, |
| 4771 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4772 | /* 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] | 4773 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4774 | .tested = TEST_UNTESTED, |
| 4775 | .probe = probe_spi_rdid, |
| 4776 | .probe_timing = TIMING_ZERO, |
| 4777 | .block_erasers = |
| 4778 | { |
| 4779 | { |
| 4780 | .eraseblocks = { {4 * 1024, 512} }, |
| 4781 | .block_erase = spi_block_erase_20, |
| 4782 | }, { |
| 4783 | .eraseblocks = { {32 * 1024, 64} }, |
| 4784 | .block_erase = spi_block_erase_52, |
| 4785 | }, { |
| 4786 | .eraseblocks = { {64 * 1024, 32} }, |
| 4787 | .block_erase = spi_block_erase_d8, |
| 4788 | }, { |
| 4789 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4790 | .block_erase = spi_block_erase_60, |
| 4791 | }, { |
| 4792 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4793 | .block_erase = spi_block_erase_c7, |
| 4794 | } |
| 4795 | }, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4796 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 4797 | .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] | 4798 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4799 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4800 | .voltage = {2700, 3600}, |
| 4801 | }, |
| 4802 | |
| 4803 | { |
| 4804 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4805 | .name = "GD25Q32(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4806 | .bustype = BUS_SPI, |
| 4807 | .manufacture_id = GIGADEVICE_ID, |
| 4808 | .model_id = GIGADEVICE_GD25Q32, |
| 4809 | .total_size = 4096, |
| 4810 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4811 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4812 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4813 | .tested = TEST_UNTESTED, |
| 4814 | .probe = probe_spi_rdid, |
| 4815 | .probe_timing = TIMING_ZERO, |
| 4816 | .block_erasers = |
| 4817 | { |
| 4818 | { |
| 4819 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4820 | .block_erase = spi_block_erase_20, |
| 4821 | }, { |
| 4822 | .eraseblocks = { {32 * 1024, 128} }, |
| 4823 | .block_erase = spi_block_erase_52, |
| 4824 | }, { |
| 4825 | .eraseblocks = { {64 * 1024, 64} }, |
| 4826 | .block_erase = spi_block_erase_d8, |
| 4827 | }, { |
| 4828 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4829 | .block_erase = spi_block_erase_60, |
| 4830 | }, { |
| 4831 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4832 | .block_erase = spi_block_erase_c7, |
| 4833 | } |
| 4834 | }, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4835 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 4836 | .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] | 4837 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4838 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4839 | .voltage = {2700, 3600}, |
| 4840 | }, |
| 4841 | |
| 4842 | { |
| 4843 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4844 | .name = "GD25Q64(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4845 | .bustype = BUS_SPI, |
| 4846 | .manufacture_id = GIGADEVICE_ID, |
| 4847 | .model_id = GIGADEVICE_GD25Q64, |
| 4848 | .total_size = 8192, |
| 4849 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4850 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4851 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4852 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4853 | .probe = probe_spi_rdid, |
| 4854 | .probe_timing = TIMING_ZERO, |
| 4855 | .block_erasers = |
| 4856 | { |
| 4857 | { |
| 4858 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4859 | .block_erase = spi_block_erase_20, |
| 4860 | }, { |
| 4861 | .eraseblocks = { {32 * 1024, 256} }, |
| 4862 | .block_erase = spi_block_erase_52, |
| 4863 | }, { |
| 4864 | .eraseblocks = { {64 * 1024, 128} }, |
| 4865 | .block_erase = spi_block_erase_d8, |
| 4866 | }, { |
| 4867 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4868 | .block_erase = spi_block_erase_60, |
| 4869 | }, { |
| 4870 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4871 | .block_erase = spi_block_erase_c7, |
| 4872 | } |
| 4873 | }, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4874 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 4875 | .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] | 4876 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4877 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4878 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4879 | }, |
| 4880 | |
| 4881 | { |
| 4882 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4883 | .name = "GD25Q128B", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4884 | .bustype = BUS_SPI, |
| 4885 | .manufacture_id = GIGADEVICE_ID, |
| 4886 | .model_id = GIGADEVICE_GD25Q128, |
| 4887 | .total_size = 16384, |
| 4888 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4889 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4890 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4891 | .tested = TEST_UNTESTED, |
| 4892 | .probe = probe_spi_rdid, |
| 4893 | .probe_timing = TIMING_ZERO, |
| 4894 | .block_erasers = |
| 4895 | { |
| 4896 | { |
| 4897 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4898 | .block_erase = spi_block_erase_20, |
| 4899 | }, { |
| 4900 | .eraseblocks = { {32 * 1024, 512} }, |
| 4901 | .block_erase = spi_block_erase_52, |
| 4902 | }, { |
| 4903 | .eraseblocks = { {64 * 1024, 256} }, |
| 4904 | .block_erase = spi_block_erase_d8, |
| 4905 | }, { |
| 4906 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4907 | .block_erase = spi_block_erase_60, |
| 4908 | }, { |
| 4909 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4910 | .block_erase = spi_block_erase_c7, |
| 4911 | } |
| 4912 | }, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4913 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 4914 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 4915 | .write = spi_chip_write_256, |
| 4916 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 4917 | .voltage = {2700, 3600}, |
| 4918 | }, |
| 4919 | |
| 4920 | { |
| 4921 | .vendor = "GigaDevice", |
| 4922 | .name = "GD25T80", |
| 4923 | .bustype = BUS_SPI, |
| 4924 | .manufacture_id = GIGADEVICE_ID, |
| 4925 | .model_id = GIGADEVICE_GD25T80, |
| 4926 | .total_size = 1024, |
| 4927 | .page_size = 256, |
| 4928 | /* OTP: 256B total; enter 0x3A */ |
| 4929 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4930 | .tested = TEST_UNTESTED, |
| 4931 | .probe = probe_spi_rdid, |
| 4932 | .probe_timing = TIMING_ZERO, |
| 4933 | .block_erasers = { |
| 4934 | { |
| 4935 | .eraseblocks = { {4 * 1024, 256} }, |
| 4936 | .block_erase = spi_block_erase_20, |
| 4937 | }, { |
| 4938 | .eraseblocks = { {64 * 1024, 16} }, |
| 4939 | .block_erase = spi_block_erase_52, |
| 4940 | }, { |
| 4941 | .eraseblocks = { {64 * 1024, 16} }, |
| 4942 | .block_erase = spi_block_erase_d8, |
| 4943 | }, { |
| 4944 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4945 | .block_erase = spi_block_erase_60, |
| 4946 | }, { |
| 4947 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4948 | .block_erase = spi_block_erase_c7, |
| 4949 | } |
| 4950 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4951 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4952 | .unlock = spi_disable_blockprotect, |
| 4953 | .write = spi_chip_write_256, |
| 4954 | .read = spi_chip_read, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4955 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4956 | }, |
| 4957 | |
| 4958 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 4959 | .vendor = "Hyundai", |
| 4960 | .name = "HY29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4961 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 4962 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4963 | .model_id = HYUNDAI_HY29F002T, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 4964 | .total_size = 256, |
| 4965 | .page_size = 256 * 1024, |
| 4966 | .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] | 4967 | .tested = TEST_OK_PRE, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 4968 | .probe = probe_jedec, |
| 4969 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4970 | .block_erasers = |
| 4971 | { |
| 4972 | { |
| 4973 | .eraseblocks = { |
| 4974 | {64 * 1024, 3}, |
| 4975 | {32 * 1024, 1}, |
| 4976 | {8 * 1024, 2}, |
| 4977 | {16 * 1024, 1}, |
| 4978 | }, |
| 4979 | .block_erase = erase_sector_jedec, |
| 4980 | }, { |
| 4981 | .eraseblocks = { {256 * 1024, 1} }, |
| 4982 | .block_erase = erase_chip_block_jedec, |
| 4983 | }, |
| 4984 | }, |
| 4985 | .write = write_jedec_1, |
| 4986 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 4987 | .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] | 4988 | }, |
| 4989 | |
| 4990 | { |
| 4991 | .vendor = "Hyundai", |
| 4992 | .name = "HY29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4993 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 4994 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4995 | .model_id = HYUNDAI_HY29F002B, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 4996 | .total_size = 256, |
| 4997 | .page_size = 256 * 1024, |
| 4998 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
| 4999 | .tested = TEST_UNTESTED, |
| 5000 | .probe = probe_jedec, |
| 5001 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5002 | .block_erasers = |
| 5003 | { |
| 5004 | { |
| 5005 | .eraseblocks = { |
| 5006 | {16 * 1024, 1}, |
| 5007 | {8 * 1024, 2}, |
| 5008 | {32 * 1024, 1}, |
| 5009 | {64 * 1024, 3}, |
| 5010 | }, |
| 5011 | .block_erase = erase_sector_jedec, |
| 5012 | }, { |
| 5013 | .eraseblocks = { {256 * 1024, 1} }, |
| 5014 | .block_erase = erase_chip_block_jedec, |
| 5015 | }, |
| 5016 | }, |
| 5017 | .write = write_jedec_1, |
| 5018 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5019 | .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] | 5020 | }, |
| 5021 | |
| 5022 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 5023 | .vendor = "Hyundai", |
| 5024 | .name = "HY29F040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5025 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 5026 | .manufacture_id = HYUNDAI_ID, |
| 5027 | .model_id = HYUNDAI_HY29F040A, |
| 5028 | .total_size = 512, |
| 5029 | .page_size = 64 * 1024, |
| 5030 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 5031 | .tested = TEST_UNTESTED, |
| 5032 | .probe = probe_jedec, |
| 5033 | .probe_timing = TIMING_ZERO, |
| 5034 | .block_erasers = |
| 5035 | { |
| 5036 | { |
| 5037 | .eraseblocks = { {64 * 1024, 8} }, |
| 5038 | .block_erase = erase_sector_jedec, |
| 5039 | }, { |
| 5040 | .eraseblocks = { {512 * 1024, 1} }, |
| 5041 | .block_erase = erase_chip_block_jedec, |
| 5042 | }, |
| 5043 | }, |
| 5044 | .write = write_jedec_1, |
| 5045 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5046 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 5047 | }, |
| 5048 | |
| 5049 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5050 | .vendor = "Intel", |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5051 | .name = "25F160S33B8", |
| 5052 | .bustype = BUS_SPI, |
| 5053 | .manufacture_id = INTEL_ID, |
| 5054 | .model_id = INTEL_25F160S33B8, |
| 5055 | .total_size = 2048, |
| 5056 | .page_size = 256, |
| 5057 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5058 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5059 | .tested = TEST_UNTESTED, |
| 5060 | .probe = probe_spi_rdid, |
| 5061 | .probe_timing = TIMING_ZERO, |
| 5062 | .block_erasers = |
| 5063 | { |
| 5064 | { |
| 5065 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5066 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5067 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5068 | .eraseblocks = { |
| 5069 | {8 * 1024, 8}, |
| 5070 | {64 * 1024, 31} // inaccessible |
| 5071 | }, |
| 5072 | .block_erase = spi_block_erase_40, |
| 5073 | }, { */ |
| 5074 | .eraseblocks = { {64 * 1024, 32} }, |
| 5075 | .block_erase = spi_block_erase_d8, |
| 5076 | }, { |
| 5077 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5078 | .block_erase = spi_block_erase_c7, |
| 5079 | } |
| 5080 | }, |
| 5081 | .printlock = spi_prettyprint_status_register_s33, |
| 5082 | .unlock = spi_disable_blockprotect_s33, |
| 5083 | .write = spi_chip_write_256, |
| 5084 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5085 | .voltage = {2700, 3600}, |
| 5086 | }, |
| 5087 | |
| 5088 | { |
| 5089 | .vendor = "Intel", |
| 5090 | .name = "25F160S33T8", |
| 5091 | .bustype = BUS_SPI, |
| 5092 | .manufacture_id = INTEL_ID, |
| 5093 | .model_id = INTEL_25F160S33T8, |
| 5094 | .total_size = 2048, |
| 5095 | .page_size = 256, |
| 5096 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5097 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5098 | .tested = TEST_UNTESTED, |
| 5099 | .probe = probe_spi_rdid, |
| 5100 | .probe_timing = TIMING_ZERO, |
| 5101 | .block_erasers = |
| 5102 | { |
| 5103 | { |
| 5104 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5105 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5106 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5107 | .eraseblocks = { |
| 5108 | {64 * 1024, 31}, // inaccessible |
| 5109 | {8 * 1024, 8} |
| 5110 | }, |
| 5111 | .block_erase = spi_block_erase_40, |
| 5112 | }, { */ |
| 5113 | .eraseblocks = { {64 * 1024, 32} }, |
| 5114 | .block_erase = spi_block_erase_d8, |
| 5115 | }, { |
| 5116 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5117 | .block_erase = spi_block_erase_c7, |
| 5118 | } |
| 5119 | }, |
| 5120 | .printlock = spi_prettyprint_status_register_s33, |
| 5121 | .unlock = spi_disable_blockprotect_s33, |
| 5122 | .write = spi_chip_write_256, |
| 5123 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5124 | .voltage = {2700, 3600}, |
| 5125 | }, |
| 5126 | |
| 5127 | { |
| 5128 | .vendor = "Intel", |
| 5129 | .name = "25F320S33B8", |
| 5130 | .bustype = BUS_SPI, |
| 5131 | .manufacture_id = INTEL_ID, |
| 5132 | .model_id = INTEL_25F320S33B8, |
| 5133 | .total_size = 4096, |
| 5134 | .page_size = 256, |
| 5135 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5136 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5137 | .tested = TEST_UNTESTED, |
| 5138 | .probe = probe_spi_rdid, |
| 5139 | .probe_timing = TIMING_ZERO, |
| 5140 | .block_erasers = |
| 5141 | { |
| 5142 | { |
| 5143 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5144 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5145 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5146 | .eraseblocks = { |
| 5147 | {8 * 1024, 8}, |
| 5148 | {64 * 1024, 63} // inaccessible |
| 5149 | }, |
| 5150 | .block_erase = spi_block_erase_40, |
| 5151 | }, { */ |
| 5152 | .eraseblocks = { {64 * 1024, 64} }, |
| 5153 | .block_erase = spi_block_erase_d8, |
| 5154 | }, { |
| 5155 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5156 | .block_erase = spi_block_erase_c7, |
| 5157 | } |
| 5158 | }, |
| 5159 | .printlock = spi_prettyprint_status_register_s33, |
| 5160 | .unlock = spi_disable_blockprotect_s33, |
| 5161 | .write = spi_chip_write_256, |
| 5162 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5163 | .voltage = {2700, 3600}, |
| 5164 | }, |
| 5165 | |
| 5166 | { |
| 5167 | .vendor = "Intel", |
| 5168 | .name = "25F320S33T8", |
| 5169 | .bustype = BUS_SPI, |
| 5170 | .manufacture_id = INTEL_ID, |
| 5171 | .model_id = INTEL_25F320S33T8, |
| 5172 | .total_size = 4096, |
| 5173 | .page_size = 256, |
| 5174 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5175 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5176 | .tested = TEST_UNTESTED, |
| 5177 | .probe = probe_spi_rdid, |
| 5178 | .probe_timing = TIMING_ZERO, |
| 5179 | .block_erasers = |
| 5180 | { |
| 5181 | { |
| 5182 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5183 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5184 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5185 | .eraseblocks = { |
| 5186 | {64 * 1024, 63}, // inaccessible |
| 5187 | {8 * 1024, 8} |
| 5188 | }, |
| 5189 | .block_erase = spi_block_erase_40, |
| 5190 | }, { */ |
| 5191 | .eraseblocks = { {64 * 1024, 64} }, |
| 5192 | .block_erase = spi_block_erase_d8, |
| 5193 | }, { |
| 5194 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5195 | .block_erase = spi_block_erase_c7, |
| 5196 | } |
| 5197 | }, |
| 5198 | .printlock = spi_prettyprint_status_register_s33, |
| 5199 | .unlock = spi_disable_blockprotect_s33, |
| 5200 | .write = spi_chip_write_256, |
| 5201 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5202 | .voltage = {2700, 3600}, |
| 5203 | }, |
| 5204 | |
| 5205 | { |
| 5206 | .vendor = "Intel", |
| 5207 | .name = "25F640S33B8", |
| 5208 | .bustype = BUS_SPI, |
| 5209 | .manufacture_id = INTEL_ID, |
| 5210 | .model_id = INTEL_25F640S33B8, |
| 5211 | .total_size = 8192, |
| 5212 | .page_size = 256, |
| 5213 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5214 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5215 | .tested = TEST_UNTESTED, |
| 5216 | .probe = probe_spi_rdid, |
| 5217 | .probe_timing = TIMING_ZERO, |
| 5218 | .block_erasers = |
| 5219 | { |
| 5220 | { |
| 5221 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5222 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5223 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5224 | .eraseblocks = { |
| 5225 | {8 * 1024, 8}, |
| 5226 | {64 * 1024, 127} // inaccessible |
| 5227 | }, |
| 5228 | .block_erase = spi_block_erase_40, |
| 5229 | }, { */ |
| 5230 | .eraseblocks = { {64 * 1024, 128} }, |
| 5231 | .block_erase = spi_block_erase_d8, |
| 5232 | }, { |
| 5233 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5234 | .block_erase = spi_block_erase_c7, |
| 5235 | } |
| 5236 | }, |
| 5237 | .printlock = spi_prettyprint_status_register_s33, |
| 5238 | .unlock = spi_disable_blockprotect_s33, |
| 5239 | .write = spi_chip_write_256, |
| 5240 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5241 | .voltage = {2700, 3600}, |
| 5242 | }, |
| 5243 | |
| 5244 | { |
| 5245 | .vendor = "Intel", |
| 5246 | .name = "25F640S33T8", |
| 5247 | .bustype = BUS_SPI, |
| 5248 | .manufacture_id = INTEL_ID, |
| 5249 | .model_id = INTEL_25F640S33T8, |
| 5250 | .total_size = 8192, |
| 5251 | .page_size = 256, |
| 5252 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5253 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5254 | .tested = TEST_UNTESTED, |
| 5255 | .probe = probe_spi_rdid, |
| 5256 | .probe_timing = TIMING_ZERO, |
| 5257 | .block_erasers = |
| 5258 | { |
| 5259 | { |
| 5260 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5261 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5262 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5263 | .eraseblocks = { |
| 5264 | {64 * 1024, 127}, // inaccessible |
| 5265 | {8 * 1024, 8} |
| 5266 | }, |
| 5267 | .block_erase = spi_block_erase_40, |
| 5268 | }, { */ |
| 5269 | .eraseblocks = { {64 * 1024, 128} }, |
| 5270 | .block_erase = spi_block_erase_d8, |
| 5271 | }, { |
| 5272 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5273 | .block_erase = spi_block_erase_c7, |
| 5274 | } |
| 5275 | }, |
| 5276 | .printlock = spi_prettyprint_status_register_s33, |
| 5277 | .unlock = spi_disable_blockprotect_s33, |
| 5278 | .write = spi_chip_write_256, |
| 5279 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5280 | .voltage = {2700, 3600}, |
| 5281 | }, |
| 5282 | |
| 5283 | { |
| 5284 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5285 | .name = "28F001BN/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5286 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5287 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5288 | .model_id = INTEL_28F001B, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5289 | .total_size = 128, |
| 5290 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 5291 | .tested = TEST_UNTESTED, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5292 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5293 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5294 | .block_erasers = |
| 5295 | { |
| 5296 | { |
| 5297 | .eraseblocks = { |
| 5298 | {8 * 1024, 1}, |
| 5299 | {4 * 1024, 2}, |
| 5300 | {112 * 1024, 1}, |
| 5301 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5302 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5303 | }, |
| 5304 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 5305 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5306 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5307 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5308 | }, |
| 5309 | |
| 5310 | { |
| 5311 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5312 | .name = "28F001BN/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5313 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5314 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5315 | .model_id = INTEL_28F001T, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5316 | .total_size = 128, |
| 5317 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 5318 | .tested = TEST_OK_PR, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5319 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5320 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5321 | .block_erasers = |
| 5322 | { |
| 5323 | { |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 5324 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5325 | {112 * 1024, 1}, |
| 5326 | {4 * 1024, 2}, |
| 5327 | {8 * 1024, 1}, |
| 5328 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5329 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5330 | }, |
| 5331 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 5332 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5333 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5334 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5335 | }, |
| 5336 | |
| 5337 | { |
| 5338 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5339 | .name = "28F002BC/BL/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5340 | .bustype = BUS_PARALLEL, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 5341 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5342 | .model_id = INTEL_28F002T, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 5343 | .total_size = 256, |
| 5344 | .page_size = 256 * 1024, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5345 | .tested = TEST_OK_PRE, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 5346 | .probe = probe_82802ab, |
| 5347 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5348 | .block_erasers = |
| 5349 | { |
| 5350 | { |
| 5351 | .eraseblocks = { |
| 5352 | {128 * 1024, 1}, |
| 5353 | {96 * 1024, 1}, |
| 5354 | {8 * 1024, 2}, |
| 5355 | {16 * 1024, 1}, |
| 5356 | }, |
| 5357 | .block_erase = erase_block_82802ab, |
| 5358 | }, |
| 5359 | }, |
| 5360 | .write = write_82802ab, |
| 5361 | .read = read_memmapped, |
| 5362 | }, |
| 5363 | |
| 5364 | { |
| 5365 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5366 | .name = "28F008S3/S5/SC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5367 | .bustype = BUS_PARALLEL, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5368 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5369 | .model_id = INTEL_28F004S3, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5370 | .total_size = 512, |
| 5371 | .page_size = 256, |
| 5372 | .tested = TEST_UNTESTED, |
| 5373 | .probe = probe_82802ab, |
| 5374 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5375 | .block_erasers = |
| 5376 | { |
| 5377 | { |
| 5378 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5379 | .block_erase = erase_block_82802ab, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5380 | }, |
| 5381 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 5382 | .unlock = unlock_28f004s5, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5383 | .write = write_82802ab, |
| 5384 | .read = read_memmapped, |
| 5385 | }, |
| 5386 | |
| 5387 | { |
| 5388 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5389 | .name = "28F004B5/BE/BV/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5390 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5391 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5392 | .model_id = INTEL_28F004B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5393 | .total_size = 512, |
| 5394 | .page_size = 128 * 1024, /* maximal block size */ |
| 5395 | .tested = TEST_UNTESTED, |
| 5396 | .probe = probe_82802ab, |
| 5397 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5398 | .block_erasers = |
| 5399 | { |
| 5400 | { |
| 5401 | .eraseblocks = { |
| 5402 | {16 * 1024, 1}, |
| 5403 | {8 * 1024, 2}, |
| 5404 | {96 * 1024, 1}, |
| 5405 | {128 * 1024, 3}, |
| 5406 | }, |
| 5407 | .block_erase = erase_block_82802ab, |
| 5408 | }, |
| 5409 | }, |
| 5410 | .write = write_82802ab, |
| 5411 | .read = read_memmapped, |
| 5412 | }, |
| 5413 | |
| 5414 | { |
| 5415 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5416 | .name = "28F004B5/BE/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5417 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5418 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5419 | .model_id = INTEL_28F004T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5420 | .total_size = 512, |
| 5421 | .page_size = 128 * 1024, /* maximal block size */ |
| 5422 | .tested = TEST_UNTESTED, |
| 5423 | .probe = probe_82802ab, |
| 5424 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5425 | .block_erasers = |
| 5426 | { |
| 5427 | { |
| 5428 | .eraseblocks = { |
| 5429 | {128 * 1024, 3}, |
| 5430 | {96 * 1024, 1}, |
| 5431 | {8 * 1024, 2}, |
| 5432 | {16 * 1024, 1}, |
| 5433 | }, |
| 5434 | .block_erase = erase_block_82802ab, |
| 5435 | }, |
| 5436 | }, |
| 5437 | .write = write_82802ab, |
| 5438 | .read = read_memmapped, |
| 5439 | }, |
| 5440 | |
| 5441 | { |
| 5442 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5443 | .name = "28F400BV/BX/CE/CV-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5444 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5445 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5446 | .model_id = INTEL_28F400B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5447 | .total_size = 512, |
| 5448 | .page_size = 128 * 1024, /* maximal block size */ |
| 5449 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 5450 | .tested = TEST_UNTESTED, |
| 5451 | .probe = probe_82802ab, |
| 5452 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5453 | .block_erasers = |
| 5454 | { |
| 5455 | { |
| 5456 | .eraseblocks = { |
| 5457 | {16 * 1024, 1}, |
| 5458 | {8 * 1024, 2}, |
| 5459 | {96 * 1024, 1}, |
| 5460 | {128 * 1024, 3}, |
| 5461 | }, |
| 5462 | .block_erase = erase_block_82802ab, |
| 5463 | }, |
| 5464 | }, |
| 5465 | .write = write_82802ab, |
| 5466 | .read = read_memmapped, |
| 5467 | }, |
| 5468 | |
| 5469 | { |
| 5470 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5471 | .name = "28F400BV/BX/CE/CV-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5472 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5473 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5474 | .model_id = INTEL_28F400T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5475 | .total_size = 512, |
| 5476 | .page_size = 128 * 1024, /* maximal block size */ |
| 5477 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 5478 | .tested = TEST_UNTESTED, |
| 5479 | .probe = probe_82802ab, |
| 5480 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5481 | .block_erasers = |
| 5482 | { |
| 5483 | { |
| 5484 | .eraseblocks = { |
| 5485 | {128 * 1024, 3}, |
| 5486 | {96 * 1024, 1}, |
| 5487 | {8 * 1024, 2}, |
| 5488 | {16 * 1024, 1}, |
| 5489 | }, |
| 5490 | .block_erase = erase_block_82802ab, |
| 5491 | }, |
| 5492 | }, |
| 5493 | .write = write_82802ab, |
| 5494 | .read = read_memmapped, |
| 5495 | }, |
| 5496 | |
| 5497 | { |
| 5498 | .vendor = "Intel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5499 | .name = "82802AB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5500 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5501 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5502 | .model_id = INTEL_82802AB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5503 | .total_size = 512, |
| 5504 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5505 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 5506 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5507 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5508 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5509 | .block_erasers = |
| 5510 | { |
| 5511 | { |
| 5512 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5513 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5514 | }, |
| 5515 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5516 | .unlock = unlock_82802ab, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5517 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5518 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5519 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5520 | }, |
| 5521 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5522 | { |
| 5523 | .vendor = "Intel", |
| 5524 | .name = "82802AC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5525 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5526 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5527 | .model_id = INTEL_82802AC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5528 | .total_size = 1024, |
| 5529 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5530 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5531 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5532 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5533 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5534 | .block_erasers = |
| 5535 | { |
| 5536 | { |
| 5537 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5538 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5539 | }, |
| 5540 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5541 | .unlock = unlock_82802ab, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5542 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5543 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5544 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5545 | }, |
| 5546 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5547 | { |
| 5548 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5549 | .name = "MX25L512(E)/MX25V512(C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5550 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5551 | .manufacture_id = MACRONIX_ID, |
| 5552 | .model_id = MACRONIX_MX25L512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5553 | .total_size = 64, |
| 5554 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5555 | /* MX25L512E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5556 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5557 | .tested = TEST_UNTESTED, |
| 5558 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5559 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5560 | .block_erasers = |
| 5561 | { |
| 5562 | { |
| 5563 | .eraseblocks = { {4 * 1024, 16} }, |
| 5564 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5565 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5566 | .eraseblocks = { {64 * 1024, 1} }, |
| 5567 | .block_erase = spi_block_erase_52, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5568 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5569 | .eraseblocks = { {64 * 1024, 1} }, |
| 5570 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5571 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5572 | .eraseblocks = { {64 * 1024, 1} }, |
| 5573 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5574 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5575 | .eraseblocks = { {64 * 1024, 1} }, |
| 5576 | .block_erase = spi_block_erase_c7, |
| 5577 | }, |
| 5578 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5579 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5580 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5581 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5582 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */ |
| 5583 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5584 | }, |
| 5585 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5586 | { |
| 5587 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5588 | .name = "MX25L1005(C)/MX25L1006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5589 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5590 | .manufacture_id = MACRONIX_ID, |
| 5591 | .model_id = MACRONIX_MX25L1005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5592 | .total_size = 128, |
| 5593 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5594 | /* MX25L1006E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5595 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 5596 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5597 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5598 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5599 | .block_erasers = |
| 5600 | { |
| 5601 | { |
| 5602 | .eraseblocks = { {4 * 1024, 32} }, |
| 5603 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5604 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5605 | .eraseblocks = { {64 * 1024, 2} }, |
| 5606 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5607 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5608 | .eraseblocks = { {128 * 1024, 1} }, |
| 5609 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5610 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5611 | .eraseblocks = { {128 * 1024, 1} }, |
| 5612 | .block_erase = spi_block_erase_c7, |
| 5613 | }, |
| 5614 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5615 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5616 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5617 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5618 | .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] | 5619 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5620 | }, |
| 5621 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5622 | { |
| 5623 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5624 | .name = "MX25L2005(C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5625 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5626 | .manufacture_id = MACRONIX_ID, |
| 5627 | .model_id = MACRONIX_MX25L2005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5628 | .total_size = 256, |
| 5629 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5630 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5631 | .tested = TEST_UNTESTED, |
| 5632 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5633 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5634 | .block_erasers = |
| 5635 | { |
| 5636 | { |
| 5637 | .eraseblocks = { {4 * 1024, 64} }, |
| 5638 | .block_erase = spi_block_erase_20, |
| 5639 | }, { |
| 5640 | .eraseblocks = { {64 * 1024, 4} }, |
| 5641 | .block_erase = spi_block_erase_52, |
| 5642 | }, { |
| 5643 | .eraseblocks = { {64 * 1024, 4} }, |
| 5644 | .block_erase = spi_block_erase_d8, |
| 5645 | }, { |
| 5646 | .eraseblocks = { {256 * 1024, 1} }, |
| 5647 | .block_erase = spi_block_erase_60, |
| 5648 | }, { |
| 5649 | .eraseblocks = { {256 * 1024, 1} }, |
| 5650 | .block_erase = spi_block_erase_c7, |
| 5651 | }, |
| 5652 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5653 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5654 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5655 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5656 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5657 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5658 | }, |
| 5659 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5660 | { |
| 5661 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5662 | .name = "MX25L4005(A/C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5663 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5664 | .manufacture_id = MACRONIX_ID, |
| 5665 | .model_id = MACRONIX_MX25L4005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5666 | .total_size = 512, |
| 5667 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5668 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 5669 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5670 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5671 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5672 | .block_erasers = |
| 5673 | { |
| 5674 | { |
| 5675 | .eraseblocks = { {4 * 1024, 128} }, |
| 5676 | .block_erase = spi_block_erase_20, |
| 5677 | }, { |
| 5678 | .eraseblocks = { {64 * 1024, 8} }, |
| 5679 | .block_erase = spi_block_erase_52, |
| 5680 | }, { |
| 5681 | .eraseblocks = { {64 * 1024, 8} }, |
| 5682 | .block_erase = spi_block_erase_d8, |
| 5683 | }, { |
| 5684 | .eraseblocks = { {512 * 1024, 1} }, |
| 5685 | .block_erase = spi_block_erase_60, |
| 5686 | }, { |
| 5687 | .eraseblocks = { {512 * 1024, 1} }, |
| 5688 | .block_erase = spi_block_erase_c7, |
| 5689 | }, |
| 5690 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5691 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5692 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5693 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5694 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5695 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5696 | }, |
| 5697 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5698 | { |
| 5699 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5700 | .name = "MX25L8005/MX25V8005", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5701 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5702 | .manufacture_id = MACRONIX_ID, |
| 5703 | .model_id = MACRONIX_MX25L8005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5704 | .total_size = 1024, |
| 5705 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5706 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 5707 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5708 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5709 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5710 | .block_erasers = |
| 5711 | { |
| 5712 | { |
| 5713 | .eraseblocks = { {4 * 1024, 256} }, |
| 5714 | .block_erase = spi_block_erase_20, |
| 5715 | }, { |
| 5716 | .eraseblocks = { {64 * 1024, 16} }, |
| 5717 | .block_erase = spi_block_erase_52, |
| 5718 | }, { |
| 5719 | .eraseblocks = { {64 * 1024, 16} }, |
| 5720 | .block_erase = spi_block_erase_d8, |
| 5721 | }, { |
| 5722 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5723 | .block_erase = spi_block_erase_60, |
| 5724 | }, { |
| 5725 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5726 | .block_erase = spi_block_erase_c7, |
| 5727 | }, |
| 5728 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5729 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5730 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5731 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5732 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 5733 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5734 | }, |
| 5735 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5736 | { |
| 5737 | .vendor = "Macronix", |
| 5738 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5739 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5740 | .manufacture_id = MACRONIX_ID, |
| 5741 | .model_id = MACRONIX_MX25L1605, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5742 | .total_size = 2048, |
| 5743 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5744 | .feature_bits = FEATURE_WRSR_WREN, |
Sven Schnelle | 4bd8a40 | 2011-03-07 10:59:06 +0000 | [diff] [blame] | 5745 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5746 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5747 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5748 | .block_erasers = |
| 5749 | { |
| 5750 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5751 | .eraseblocks = { {64 * 1024, 32} }, |
| 5752 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5753 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5754 | .eraseblocks = { {64 * 1024, 32} }, |
| 5755 | .block_erase = spi_block_erase_d8, |
| 5756 | }, { |
| 5757 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5758 | .block_erase = spi_block_erase_60, |
| 5759 | }, { |
| 5760 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5761 | .block_erase = spi_block_erase_c7, |
| 5762 | }, |
| 5763 | }, |
| 5764 | .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */ |
| 5765 | .unlock = spi_disable_blockprotect, |
| 5766 | .write = spi_chip_write_256, |
| 5767 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 5768 | .voltage = {2700, 3600}, |
| 5769 | }, |
| 5770 | |
| 5771 | { |
| 5772 | .vendor = "Macronix", |
| 5773 | .name = "MX25L1605A/MX25L1606E", |
| 5774 | .bustype = BUS_SPI, |
| 5775 | .manufacture_id = MACRONIX_ID, |
| 5776 | .model_id = MACRONIX_MX25L1605, |
| 5777 | .total_size = 2048, |
| 5778 | .page_size = 256, |
| 5779 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */ |
| 5780 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5781 | .tested = TEST_OK_PREW, |
| 5782 | .probe = probe_spi_rdid, |
| 5783 | .probe_timing = TIMING_ZERO, |
| 5784 | .block_erasers = |
| 5785 | { |
| 5786 | { |
| 5787 | .eraseblocks = { {4 * 1024, 512} }, |
| 5788 | .block_erase = spi_block_erase_20, |
| 5789 | }, { |
| 5790 | .eraseblocks = { {64 * 1024, 32} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5791 | .block_erase = spi_block_erase_52, |
| 5792 | }, { |
| 5793 | .eraseblocks = { {64 * 1024, 32} }, |
| 5794 | .block_erase = spi_block_erase_d8, |
| 5795 | }, { |
| 5796 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5797 | .block_erase = spi_block_erase_60, |
| 5798 | }, { |
| 5799 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5800 | .block_erase = spi_block_erase_c7, |
| 5801 | }, |
| 5802 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5803 | .printlock = spi_prettyprint_status_register_default_bp3, /* MX25L1605A bp2 only */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5804 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5805 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5806 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 5807 | .voltage = {2700, 3600}, |
| 5808 | }, |
| 5809 | |
| 5810 | { |
| 5811 | .vendor = "Macronix", |
| 5812 | .name = "MX25L1605D/MX25L1608D", |
| 5813 | .bustype = BUS_SPI, |
| 5814 | .manufacture_id = MACRONIX_ID, |
| 5815 | .model_id = MACRONIX_MX25L1605, |
| 5816 | .total_size = 2048, |
| 5817 | .page_size = 256, |
| 5818 | .feature_bits = FEATURE_WRSR_WREN, |
| 5819 | .tested = TEST_OK_PREW, |
| 5820 | .probe = probe_spi_rdid, |
| 5821 | .probe_timing = TIMING_ZERO, |
| 5822 | .block_erasers = |
| 5823 | { |
| 5824 | { |
| 5825 | .eraseblocks = { {4 * 1024, 512} }, |
| 5826 | .block_erase = spi_block_erase_20, |
| 5827 | }, { |
| 5828 | .eraseblocks = { {64 * 1024, 32} }, |
| 5829 | .block_erase = spi_block_erase_d8, |
| 5830 | }, { |
| 5831 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5832 | .block_erase = spi_block_erase_60, |
| 5833 | }, { |
| 5834 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5835 | .block_erase = spi_block_erase_c7, |
| 5836 | }, |
| 5837 | }, |
| 5838 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: Continously Program (CP) mode */ |
| 5839 | .unlock = spi_disable_blockprotect, |
| 5840 | .write = spi_chip_write_256, |
| 5841 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5842 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5843 | }, |
| 5844 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5845 | { |
| 5846 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 5847 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5848 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5849 | .manufacture_id = MACRONIX_ID, |
| 5850 | .model_id = MACRONIX_MX25L1635D, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 5851 | .total_size = 2048, |
| 5852 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5853 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 5854 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 5855 | .tested = TEST_UNTESTED, |
| 5856 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5857 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5858 | .block_erasers = |
| 5859 | { |
| 5860 | { |
| 5861 | .eraseblocks = { {4 * 1024, 512} }, |
| 5862 | .block_erase = spi_block_erase_20, |
| 5863 | }, { |
| 5864 | .eraseblocks = { {64 * 1024, 32} }, |
| 5865 | .block_erase = spi_block_erase_d8, |
| 5866 | }, { |
| 5867 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5868 | .block_erase = spi_block_erase_60, |
| 5869 | }, { |
| 5870 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5871 | .block_erase = spi_block_erase_c7, |
| 5872 | } |
| 5873 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5874 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5875 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5876 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5877 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5878 | .voltage = {2700, 3600}, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 5879 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 5880 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 5881 | { |
| 5882 | .vendor = "Macronix", |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 5883 | .name = "MX25L1635E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5884 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5885 | .manufacture_id = MACRONIX_ID, |
| 5886 | .model_id = MACRONIX_MX25L1635E, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 5887 | .total_size = 2048, |
| 5888 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5889 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 5890 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 5891 | .tested = TEST_UNTESTED, |
| 5892 | .probe = probe_spi_rdid, |
| 5893 | .probe_timing = TIMING_ZERO, |
| 5894 | .block_erasers = |
| 5895 | { |
| 5896 | { |
| 5897 | .eraseblocks = { {4 * 1024, 512} }, |
| 5898 | .block_erase = spi_block_erase_20, |
| 5899 | }, { |
| 5900 | .eraseblocks = { {64 * 1024, 32} }, |
| 5901 | .block_erase = spi_block_erase_d8, |
| 5902 | }, { |
| 5903 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5904 | .block_erase = spi_block_erase_60, |
| 5905 | }, { |
| 5906 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5907 | .block_erase = spi_block_erase_c7, |
| 5908 | } |
| 5909 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5910 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 5911 | .unlock = spi_disable_blockprotect, |
| 5912 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5913 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5914 | .voltage = {2700, 3600}, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 5915 | }, |
| 5916 | |
| 5917 | { |
| 5918 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5919 | .name = "MX25L3205(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5920 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5921 | .manufacture_id = MACRONIX_ID, |
| 5922 | .model_id = MACRONIX_MX25L3205, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5923 | .total_size = 4096, |
| 5924 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5925 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 5926 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5927 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5928 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5929 | .block_erasers = |
| 5930 | { |
| 5931 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5932 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5933 | .block_erase = spi_block_erase_20, |
| 5934 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5935 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5936 | .block_erase = spi_block_erase_d8, |
| 5937 | }, { |
| 5938 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5939 | .block_erase = spi_block_erase_60, |
| 5940 | }, { |
| 5941 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5942 | .block_erase = spi_block_erase_c7, |
| 5943 | }, |
| 5944 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5945 | .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5946 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5947 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5948 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 5949 | .voltage = {2700, 3600}, |
| 5950 | }, |
| 5951 | |
| 5952 | { |
| 5953 | .vendor = "Macronix", |
| 5954 | .name = "MX25L3205D/MX25L3208D", |
| 5955 | .bustype = BUS_SPI, |
| 5956 | .manufacture_id = MACRONIX_ID, |
| 5957 | .model_id = MACRONIX_MX25L3205, |
| 5958 | .total_size = 4096, |
| 5959 | .page_size = 256, |
| 5960 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 5961 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5962 | .tested = TEST_OK_PREW, |
| 5963 | .probe = probe_spi_rdid, |
| 5964 | .probe_timing = TIMING_ZERO, |
| 5965 | .block_erasers = |
| 5966 | { |
| 5967 | { |
| 5968 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5969 | .block_erase = spi_block_erase_20, |
| 5970 | }, { |
| 5971 | .eraseblocks = { {64 * 1024, 64} }, |
| 5972 | .block_erase = spi_block_erase_d8, |
| 5973 | }, { |
| 5974 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5975 | .block_erase = spi_block_erase_60, |
| 5976 | }, { |
| 5977 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5978 | .block_erase = spi_block_erase_c7, |
| 5979 | }, |
| 5980 | }, |
| 5981 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: CP mode */ |
| 5982 | .unlock = spi_disable_blockprotect, |
| 5983 | .write = spi_chip_write_256, |
| 5984 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 5985 | .voltage = {2700, 3600}, |
| 5986 | }, |
| 5987 | |
| 5988 | { |
| 5989 | .vendor = "Macronix", |
| 5990 | .name = "MX25L3206E", |
| 5991 | .bustype = BUS_SPI, |
| 5992 | .manufacture_id = MACRONIX_ID, |
| 5993 | .model_id = MACRONIX_MX25L3205, |
| 5994 | .total_size = 4096, |
| 5995 | .page_size = 256, |
| 5996 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 5997 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5998 | .tested = TEST_OK_PREW, |
| 5999 | .probe = probe_spi_rdid, |
| 6000 | .probe_timing = TIMING_ZERO, |
| 6001 | .block_erasers = |
| 6002 | { |
| 6003 | { |
| 6004 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6005 | .block_erase = spi_block_erase_20, |
| 6006 | }, { |
| 6007 | .eraseblocks = { {64 * 1024, 64} }, |
| 6008 | .block_erase = spi_block_erase_d8, |
| 6009 | }, { |
| 6010 | .eraseblocks = { {64 * 1024, 64} }, |
| 6011 | .block_erase = spi_block_erase_52, |
| 6012 | }, { |
| 6013 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6014 | .block_erase = spi_block_erase_60, |
| 6015 | }, { |
| 6016 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6017 | .block_erase = spi_block_erase_c7, |
| 6018 | }, |
| 6019 | }, |
| 6020 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 6021 | .unlock = spi_disable_blockprotect, |
| 6022 | .write = spi_chip_write_256, |
| 6023 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6024 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6025 | }, |
| 6026 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6027 | { |
| 6028 | .vendor = "Macronix", |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6029 | .name = "MX25L3235D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6030 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6031 | .manufacture_id = MACRONIX_ID, |
| 6032 | .model_id = MACRONIX_MX25L3235D, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6033 | .total_size = 4096, |
| 6034 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6035 | /* OTP: 256B total; enter 0xB1, exit 0xC1 */ |
| 6036 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6037 | .tested = TEST_UNTESTED, |
| 6038 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6039 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6040 | .block_erasers = |
| 6041 | { |
| 6042 | { |
| 6043 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6044 | .block_erase = spi_block_erase_20, |
| 6045 | }, { |
| 6046 | .eraseblocks = { {64 * 1024, 64} }, |
| 6047 | .block_erase = spi_block_erase_d8, |
| 6048 | }, { |
| 6049 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6050 | .block_erase = spi_block_erase_60, |
| 6051 | }, { |
| 6052 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6053 | .block_erase = spi_block_erase_c7, |
| 6054 | } |
| 6055 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6056 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6057 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6058 | .write = spi_chip_write_256, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6059 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6060 | .voltage = {2700, 3600}, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6061 | }, |
| 6062 | |
| 6063 | { |
| 6064 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6065 | .name = "MX25L6405(D)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6066 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6067 | .manufacture_id = MACRONIX_ID, |
| 6068 | .model_id = MACRONIX_MX25L6405, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6069 | .total_size = 8192, |
| 6070 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6071 | /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */ |
| 6072 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 6073 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6074 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6075 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6076 | .block_erasers = |
| 6077 | { |
| 6078 | { |
| 6079 | .eraseblocks = { {64 * 1024, 128} }, |
| 6080 | .block_erase = spi_block_erase_20, |
| 6081 | }, { |
| 6082 | .eraseblocks = { {64 * 1024, 128} }, |
| 6083 | .block_erase = spi_block_erase_d8, |
| 6084 | }, { |
| 6085 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6086 | .block_erase = spi_block_erase_60, |
| 6087 | }, { |
| 6088 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6089 | .block_erase = spi_block_erase_c7, |
| 6090 | } |
| 6091 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6092 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 has different meanings */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6093 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6094 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6095 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6096 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6097 | }, |
| 6098 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6099 | { |
| 6100 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6101 | .name = "MX25L6406E/MX25L6436E", |
| 6102 | .bustype = BUS_SPI, |
| 6103 | .manufacture_id = MACRONIX_ID, |
| 6104 | .model_id = MACRONIX_MX25L6405, |
| 6105 | .total_size = 8192, |
| 6106 | .page_size = 256, |
| 6107 | /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */ |
| 6108 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6109 | .tested = TEST_OK_PREW, |
| 6110 | .probe = probe_spi_rdid, |
| 6111 | .probe_timing = TIMING_ZERO, |
| 6112 | .block_erasers = |
| 6113 | { |
| 6114 | { |
| 6115 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6116 | .block_erase = spi_block_erase_20, |
| 6117 | }, { |
| 6118 | .eraseblocks = { {64 * 1024, 128} }, |
| 6119 | .block_erase = spi_block_erase_d8, |
| 6120 | }, { |
| 6121 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6122 | .block_erase = spi_block_erase_60, |
| 6123 | }, { |
| 6124 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6125 | .block_erase = spi_block_erase_c7, |
| 6126 | } |
| 6127 | }, |
| 6128 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 for 36E is quad enable */ |
| 6129 | .unlock = spi_disable_blockprotect, |
| 6130 | .write = spi_chip_write_256, |
| 6131 | .read = spi_chip_read, |
| 6132 | .voltage = {2700, 3600}, |
| 6133 | }, |
| 6134 | |
| 6135 | { |
| 6136 | .vendor = "Macronix", |
| 6137 | .name = "MX25L6445E", |
| 6138 | .bustype = BUS_SPI, |
| 6139 | .manufacture_id = MACRONIX_ID, |
| 6140 | .model_id = MACRONIX_MX25L6405, |
| 6141 | .total_size = 8192, |
| 6142 | .page_size = 256, |
| 6143 | /* supports SFDP */ |
| 6144 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6145 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6146 | .tested = TEST_OK_PREW, |
| 6147 | .probe = probe_spi_rdid, |
| 6148 | .probe_timing = TIMING_ZERO, |
| 6149 | .block_erasers = |
| 6150 | { |
| 6151 | { |
| 6152 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6153 | .block_erase = spi_block_erase_20, |
| 6154 | }, { |
| 6155 | .eraseblocks = { {32 * 1024, 256} }, |
| 6156 | .block_erase = spi_block_erase_52, |
| 6157 | }, { |
| 6158 | .eraseblocks = { {64 * 1024, 128} }, |
| 6159 | .block_erase = spi_block_erase_d8, |
| 6160 | }, { |
| 6161 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6162 | .block_erase = spi_block_erase_60, |
| 6163 | }, { |
| 6164 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6165 | .block_erase = spi_block_erase_c7, |
| 6166 | } |
| 6167 | }, |
| 6168 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 6169 | .unlock = spi_disable_blockprotect, |
| 6170 | .write = spi_chip_write_256, |
| 6171 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6172 | .voltage = {2700, 3600}, |
| 6173 | }, |
| 6174 | |
| 6175 | { |
| 6176 | .vendor = "Macronix", |
| 6177 | .name = "MX25L12805(D)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6178 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6179 | .manufacture_id = MACRONIX_ID, |
| 6180 | .model_id = MACRONIX_MX25L12805, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 6181 | .total_size = 16384, |
| 6182 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6183 | /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */ |
| 6184 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 6185 | .tested = TEST_OK_PROBE, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 6186 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6187 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6188 | .block_erasers = |
| 6189 | { |
| 6190 | { |
| 6191 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6192 | .block_erase = spi_block_erase_20, |
| 6193 | }, { |
| 6194 | .eraseblocks = { {64 * 1024, 256} }, |
| 6195 | .block_erase = spi_block_erase_d8, |
| 6196 | }, { |
| 6197 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6198 | .block_erase = spi_block_erase_60, |
| 6199 | }, { |
| 6200 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6201 | .block_erase = spi_block_erase_c7, |
| 6202 | } |
| 6203 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6204 | .printlock = spi_prettyprint_status_register_default_bp3, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6205 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6206 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6207 | .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6208 | .voltage = {2700, 3600}, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 6209 | }, |
| 6210 | |
| 6211 | { |
| 6212 | .vendor = "Macronix", |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 6213 | .name = "MX25U1635E", |
| 6214 | .bustype = BUS_SPI, |
| 6215 | .manufacture_id = MACRONIX_ID, |
| 6216 | .model_id = MACRONIX_MX25U1635E, |
| 6217 | .total_size = 2048, |
| 6218 | .page_size = 256, |
| 6219 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6220 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 6221 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6222 | .tested = TEST_UNTESTED, |
| 6223 | .probe = probe_spi_rdid, |
| 6224 | .probe_timing = TIMING_ZERO, |
| 6225 | .block_erasers = |
| 6226 | { |
| 6227 | { |
| 6228 | .eraseblocks = { {4 * 1024, 512} }, |
| 6229 | .block_erase = spi_block_erase_20, |
| 6230 | }, { |
| 6231 | .eraseblocks = { {32 * 1024, 64} }, |
| 6232 | .block_erase = spi_block_erase_52, |
| 6233 | }, { |
| 6234 | .eraseblocks = { {64 * 1024, 32} }, |
| 6235 | .block_erase = spi_block_erase_d8, |
| 6236 | }, { |
| 6237 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6238 | .block_erase = spi_block_erase_60, |
| 6239 | }, { |
| 6240 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6241 | .block_erase = spi_block_erase_c7, |
| 6242 | } |
| 6243 | }, |
| 6244 | /* TODO: security register */ |
| 6245 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 6246 | .unlock = spi_disable_blockprotect, |
| 6247 | .write = spi_chip_write_256, |
| 6248 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6249 | .voltage = {1650, 2000}, |
| 6250 | }, |
| 6251 | |
| 6252 | { |
| 6253 | .vendor = "Macronix", |
| 6254 | .name = "MX25U3235E/F", |
| 6255 | .bustype = BUS_SPI, |
| 6256 | .manufacture_id = MACRONIX_ID, |
| 6257 | .model_id = MACRONIX_MX25U3235E, |
| 6258 | .total_size = 4096, |
| 6259 | .page_size = 256, |
| 6260 | /* F model supports SFDP */ |
| 6261 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6262 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 6263 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6264 | .tested = TEST_OK_PREW, |
| 6265 | .probe = probe_spi_rdid, |
| 6266 | .probe_timing = TIMING_ZERO, |
| 6267 | .block_erasers = |
| 6268 | { |
| 6269 | { |
| 6270 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6271 | .block_erase = spi_block_erase_20, |
| 6272 | }, { |
| 6273 | .eraseblocks = { {32 * 1024, 128} }, |
| 6274 | .block_erase = spi_block_erase_52, |
| 6275 | }, { |
| 6276 | .eraseblocks = { {64 * 1024, 64} }, |
| 6277 | .block_erase = spi_block_erase_d8, |
| 6278 | }, { |
| 6279 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6280 | .block_erase = spi_block_erase_60, |
| 6281 | }, { |
| 6282 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6283 | .block_erase = spi_block_erase_c7, |
| 6284 | } |
| 6285 | }, |
| 6286 | /* TODO: security register */ |
| 6287 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 6288 | .unlock = spi_disable_blockprotect, |
| 6289 | .write = spi_chip_write_256, |
| 6290 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6291 | .voltage = {1650, 2000}, |
| 6292 | }, |
| 6293 | |
| 6294 | { |
| 6295 | .vendor = "Macronix", |
| 6296 | .name = "MX25U6435E/F", |
| 6297 | .bustype = BUS_SPI, |
| 6298 | .manufacture_id = MACRONIX_ID, |
| 6299 | .model_id = MACRONIX_MX25U6435E, |
| 6300 | .total_size = 8192, |
| 6301 | .page_size = 256, |
| 6302 | /* F model supports SFDP */ |
| 6303 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6304 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 6305 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6306 | .tested = TEST_UNTESTED, |
| 6307 | .probe = probe_spi_rdid, |
| 6308 | .probe_timing = TIMING_ZERO, |
| 6309 | .block_erasers = |
| 6310 | { |
| 6311 | { |
| 6312 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6313 | .block_erase = spi_block_erase_20, |
| 6314 | }, { |
| 6315 | .eraseblocks = { {32 * 1024, 256} }, |
| 6316 | .block_erase = spi_block_erase_52, |
| 6317 | }, { |
| 6318 | .eraseblocks = { {64 * 1024, 128} }, |
| 6319 | .block_erase = spi_block_erase_d8, |
| 6320 | }, { |
| 6321 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6322 | .block_erase = spi_block_erase_60, |
| 6323 | }, { |
| 6324 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6325 | .block_erase = spi_block_erase_c7, |
| 6326 | } |
| 6327 | }, |
| 6328 | /* TODO: security register */ |
| 6329 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 6330 | .unlock = spi_disable_blockprotect, |
| 6331 | .write = spi_chip_write_256, |
| 6332 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6333 | .voltage = {1650, 2000}, |
| 6334 | }, |
| 6335 | |
| 6336 | { |
| 6337 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6338 | .name = "MX29F001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6339 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6340 | .manufacture_id = MACRONIX_ID, |
| 6341 | .model_id = MACRONIX_MX29F001B, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6342 | .total_size = 128, |
| 6343 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6344 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6345 | .tested = TEST_UNTESTED, |
| 6346 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6347 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6348 | .block_erasers = |
| 6349 | { |
| 6350 | { |
| 6351 | .eraseblocks = { |
| 6352 | {8 * 1024, 1}, |
| 6353 | {4 * 1024, 2}, |
| 6354 | {8 * 1024, 2}, |
| 6355 | {32 * 1024, 1}, |
| 6356 | {64 * 1024, 1}, |
| 6357 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6358 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6359 | }, { |
| 6360 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6361 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6362 | } |
| 6363 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6364 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6365 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6366 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6367 | }, |
| 6368 | |
| 6369 | { |
| 6370 | .vendor = "Macronix", |
| 6371 | .name = "MX29F001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6372 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6373 | .manufacture_id = MACRONIX_ID, |
| 6374 | .model_id = MACRONIX_MX29F001T, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6375 | .total_size = 128, |
| 6376 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6377 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stefan Tauner | 74c6ec6 | 2011-05-18 01:31:46 +0000 | [diff] [blame] | 6378 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6379 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6380 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6381 | .block_erasers = |
| 6382 | { |
| 6383 | { |
| 6384 | .eraseblocks = { |
| 6385 | {64 * 1024, 1}, |
| 6386 | {32 * 1024, 1}, |
| 6387 | {8 * 1024, 2}, |
| 6388 | {4 * 1024, 2}, |
| 6389 | {8 * 1024, 1}, |
| 6390 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6391 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6392 | }, { |
| 6393 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6394 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6395 | } |
| 6396 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6397 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6398 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6399 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6400 | }, |
| 6401 | |
| 6402 | { |
| 6403 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 6404 | .name = "MX29F002(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6405 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6406 | .manufacture_id = MACRONIX_ID, |
| 6407 | .model_id = MACRONIX_MX29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6408 | .total_size = 256, |
| 6409 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6410 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6411 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6412 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6413 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6414 | .block_erasers = |
| 6415 | { |
| 6416 | { |
| 6417 | .eraseblocks = { |
| 6418 | {16 * 1024, 1}, |
| 6419 | {8 * 1024, 2}, |
| 6420 | {32 * 1024, 1}, |
| 6421 | {64 * 1024, 3}, |
| 6422 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6423 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6424 | }, { |
| 6425 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6426 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6427 | }, |
| 6428 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6429 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6430 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6431 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6432 | }, |
| 6433 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6434 | { |
| 6435 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 6436 | .name = "MX29F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6437 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6438 | .manufacture_id = MACRONIX_ID, |
| 6439 | .model_id = MACRONIX_MX29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6440 | .total_size = 256, |
| 6441 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6442 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 6443 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6444 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6445 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6446 | .block_erasers = |
| 6447 | { |
| 6448 | { |
| 6449 | .eraseblocks = { |
| 6450 | {64 * 1024, 3}, |
| 6451 | {32 * 1024, 1}, |
| 6452 | {8 * 1024, 2}, |
| 6453 | {16 * 1024, 1}, |
| 6454 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6455 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6456 | }, { |
| 6457 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6458 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6459 | }, |
| 6460 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6461 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6462 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6463 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6464 | }, |
| 6465 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6466 | { |
| 6467 | .vendor = "Macronix", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6468 | .name = "MX29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6469 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6470 | .manufacture_id = MACRONIX_ID, |
| 6471 | .model_id = MACRONIX_MX29F040, |
| 6472 | .total_size = 512, |
| 6473 | .page_size = 64 * 1024, |
| 6474 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6475 | .tested = TEST_UNTESTED, |
| 6476 | .probe = probe_jedec, |
| 6477 | .probe_timing = TIMING_ZERO, |
| 6478 | .block_erasers = |
| 6479 | { |
| 6480 | { |
| 6481 | .eraseblocks = { {64 * 1024, 8} }, |
| 6482 | .block_erase = erase_sector_jedec, |
| 6483 | }, { |
| 6484 | .eraseblocks = { {512 * 1024, 1} }, |
| 6485 | .block_erase = erase_chip_block_jedec, |
| 6486 | }, |
| 6487 | }, |
| 6488 | .write = write_jedec_1, |
| 6489 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6490 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6491 | }, |
| 6492 | |
| 6493 | { |
| 6494 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 6495 | .name = "MX29LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6496 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6497 | .manufacture_id = MACRONIX_ID, |
| 6498 | .model_id = MACRONIX_MX29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6499 | .total_size = 512, |
| 6500 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6501 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6502 | .tested = TEST_UNTESTED, |
| 6503 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6504 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6505 | .block_erasers = |
| 6506 | { |
| 6507 | { |
| 6508 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6509 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6510 | }, { |
| 6511 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6512 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6513 | }, |
| 6514 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6515 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6516 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6517 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 6518 | }, |
| 6519 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6520 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6521 | .vendor = "MoselVitelic", |
| 6522 | .name = "V29C51000B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6523 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6524 | .manufacture_id = SYNCMOS_MVC_ID, |
| 6525 | .model_id = MVC_V29C51000B, |
| 6526 | .total_size = 64, |
| 6527 | .page_size = 512, |
| 6528 | .feature_bits = FEATURE_EITHER_RESET, |
| 6529 | .tested = TEST_UNTESTED, |
| 6530 | .probe = probe_jedec, |
| 6531 | .probe_timing = TIMING_ZERO, |
| 6532 | .block_erasers = |
| 6533 | { |
| 6534 | { |
| 6535 | .eraseblocks = { {512, 128} }, |
| 6536 | .block_erase = erase_sector_jedec, |
| 6537 | }, { |
| 6538 | .eraseblocks = { {64 * 1024, 1} }, |
| 6539 | .block_erase = erase_chip_block_jedec, |
| 6540 | }, |
| 6541 | }, |
| 6542 | .write = write_jedec_1, |
| 6543 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6544 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6545 | }, |
| 6546 | |
| 6547 | { |
| 6548 | .vendor = "MoselVitelic", |
| 6549 | .name = "V29C51000T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6550 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6551 | .manufacture_id = SYNCMOS_MVC_ID, |
| 6552 | .model_id = MVC_V29C51000T, |
| 6553 | .total_size = 64, |
| 6554 | .page_size = 512, |
| 6555 | .feature_bits = FEATURE_EITHER_RESET, |
| 6556 | .tested = TEST_UNTESTED, |
| 6557 | .probe = probe_jedec, |
| 6558 | .probe_timing = TIMING_ZERO, |
| 6559 | .block_erasers = |
| 6560 | { |
| 6561 | { |
| 6562 | .eraseblocks = { {512, 128} }, |
| 6563 | .block_erase = erase_sector_jedec, |
| 6564 | }, { |
| 6565 | .eraseblocks = { {64 * 1024, 1} }, |
| 6566 | .block_erase = erase_chip_block_jedec, |
| 6567 | }, |
| 6568 | }, |
| 6569 | .write = write_jedec_1, |
| 6570 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6571 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6572 | }, |
| 6573 | |
| 6574 | { |
| 6575 | .vendor = "MoselVitelic", |
| 6576 | .name = "V29C51400B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6577 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6578 | .manufacture_id = SYNCMOS_MVC_ID, |
| 6579 | .model_id = MVC_V29C51400B, |
| 6580 | .total_size = 512, |
| 6581 | .page_size = 1024, |
| 6582 | .feature_bits = FEATURE_EITHER_RESET, |
| 6583 | .tested = TEST_UNTESTED, |
| 6584 | .probe = probe_jedec, |
| 6585 | .probe_timing = TIMING_ZERO, |
| 6586 | .block_erasers = |
| 6587 | { |
| 6588 | { |
| 6589 | .eraseblocks = { {1024, 512} }, |
| 6590 | .block_erase = erase_sector_jedec, |
| 6591 | }, { |
| 6592 | .eraseblocks = { {512 * 1024, 1} }, |
| 6593 | .block_erase = erase_chip_block_jedec, |
| 6594 | }, |
| 6595 | }, |
| 6596 | .write = write_jedec_1, |
| 6597 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6598 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6599 | }, |
| 6600 | |
| 6601 | { |
| 6602 | .vendor = "MoselVitelic", |
| 6603 | .name = "V29C51400T", |
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_V29C51400T, |
| 6607 | .total_size = 512, |
| 6608 | .page_size = 1024, |
| 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 = { {1024, 512} }, |
| 6617 | .block_erase = erase_sector_jedec, |
| 6618 | }, { |
| 6619 | .eraseblocks = { {512 * 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 = "V29LC51000", |
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_V29LC51000, |
| 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 = "V29LC51001", |
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_V29LC51001, |
| 6661 | .total_size = 128, |
| 6662 | .page_size = 512, |
| 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 = { {512, 256} }, |
| 6671 | .block_erase = erase_sector_jedec, |
| 6672 | }, { |
| 6673 | .eraseblocks = { {128 * 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 = "V29LC51002", |
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_V29LC51002, |
| 6688 | .total_size = 256, |
| 6689 | .page_size = 512, |
| 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 = { {512, 512} }, |
| 6698 | .block_erase = erase_sector_jedec, |
| 6699 | }, { |
| 6700 | .eraseblocks = { {256 * 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 | { |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 6710 | .vendor = "Nantronics", |
| 6711 | .name = "N25S10", |
| 6712 | .bustype = BUS_SPI, |
| 6713 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 6714 | .model_id = NANTRONICS_N25S10, |
| 6715 | .total_size = 128, |
| 6716 | .page_size = 256, |
| 6717 | .feature_bits = FEATURE_WRSR_WREN, |
| 6718 | .tested = TEST_UNTESTED, |
| 6719 | .probe = probe_spi_rdid, |
| 6720 | .probe_timing = TIMING_ZERO, |
| 6721 | .block_erasers = |
| 6722 | { |
| 6723 | { |
| 6724 | .eraseblocks = { {4 * 1024, 32} }, |
| 6725 | .block_erase = spi_block_erase_20, |
| 6726 | }, { |
| 6727 | .eraseblocks = { {4 * 1024, 32} }, |
| 6728 | .block_erase = spi_block_erase_d7, |
| 6729 | }, { |
| 6730 | .eraseblocks = { {32 * 1024, 4} }, |
| 6731 | .block_erase = spi_block_erase_52, |
| 6732 | }, { |
| 6733 | .eraseblocks = { {64 * 1024, 2} }, |
| 6734 | .block_erase = spi_block_erase_d8, |
| 6735 | }, { |
| 6736 | .eraseblocks = { {128 * 1024, 1} }, |
| 6737 | .block_erase = spi_block_erase_60, |
| 6738 | }, { |
| 6739 | .eraseblocks = { {128 * 1024, 1} }, |
| 6740 | .block_erase = spi_block_erase_c7, |
| 6741 | } |
| 6742 | }, |
| 6743 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 6744 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 6745 | .write = spi_chip_write_256, |
| 6746 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 6747 | .voltage = {2700, 3600}, |
| 6748 | }, |
| 6749 | |
| 6750 | { |
| 6751 | .vendor = "Nantronics", |
| 6752 | .name = "N25S20", |
| 6753 | .bustype = BUS_SPI, |
| 6754 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 6755 | .model_id = NANTRONICS_N25S20, |
| 6756 | .total_size = 256, |
| 6757 | .page_size = 256, |
| 6758 | .feature_bits = FEATURE_WRSR_WREN, |
| 6759 | .tested = TEST_UNTESTED, |
| 6760 | .probe = probe_spi_rdid, |
| 6761 | .probe_timing = TIMING_ZERO, |
| 6762 | .block_erasers = |
| 6763 | { |
| 6764 | { |
| 6765 | .eraseblocks = { {4 * 1024, 64} }, |
| 6766 | .block_erase = spi_block_erase_20, |
| 6767 | }, { |
| 6768 | .eraseblocks = { {4 * 1024, 64} }, |
| 6769 | .block_erase = spi_block_erase_d7, |
| 6770 | }, { |
| 6771 | .eraseblocks = { {32 * 1024, 8} }, |
| 6772 | .block_erase = spi_block_erase_52, |
| 6773 | }, { |
| 6774 | .eraseblocks = { {64 * 1024, 4} }, |
| 6775 | .block_erase = spi_block_erase_d8, |
| 6776 | }, { |
| 6777 | .eraseblocks = { {256 * 1024, 1} }, |
| 6778 | .block_erase = spi_block_erase_60, |
| 6779 | }, { |
| 6780 | .eraseblocks = { {256 * 1024, 1} }, |
| 6781 | .block_erase = spi_block_erase_c7, |
| 6782 | } |
| 6783 | }, |
| 6784 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 6785 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 6786 | .write = spi_chip_write_256, |
| 6787 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 6788 | .voltage = {2700, 3600}, |
| 6789 | }, |
| 6790 | |
| 6791 | { |
| 6792 | .vendor = "Nantronics", |
| 6793 | .name = "N25S40", |
| 6794 | .bustype = BUS_SPI, |
| 6795 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 6796 | .model_id = NANTRONICS_N25S40, |
| 6797 | .total_size = 512, |
| 6798 | .page_size = 256, |
| 6799 | .feature_bits = FEATURE_WRSR_WREN, |
| 6800 | .tested = TEST_UNTESTED, |
| 6801 | .probe = probe_spi_rdid, |
| 6802 | .probe_timing = TIMING_ZERO, |
| 6803 | .block_erasers = |
| 6804 | { |
| 6805 | { |
| 6806 | .eraseblocks = { {4 * 1024, 128} }, |
| 6807 | .block_erase = spi_block_erase_20, |
| 6808 | }, { |
| 6809 | .eraseblocks = { {4 * 1024, 128} }, |
| 6810 | .block_erase = spi_block_erase_d7, |
| 6811 | }, { |
| 6812 | .eraseblocks = { {32 * 1024, 16} }, |
| 6813 | .block_erase = spi_block_erase_52, |
| 6814 | }, { |
| 6815 | .eraseblocks = { {64 * 1024, 8} }, |
| 6816 | .block_erase = spi_block_erase_d8, |
| 6817 | }, { |
| 6818 | .eraseblocks = { {512 * 1024, 1} }, |
| 6819 | .block_erase = spi_block_erase_60, |
| 6820 | }, { |
| 6821 | .eraseblocks = { {512 * 1024, 1} }, |
| 6822 | .block_erase = spi_block_erase_c7, |
| 6823 | } |
| 6824 | }, |
| 6825 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 6826 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 6827 | .write = spi_chip_write_256, |
| 6828 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 6829 | .voltage = {2700, 3600}, |
| 6830 | }, |
| 6831 | |
| 6832 | { |
| 6833 | .vendor = "Nantronics", |
| 6834 | .name = "N25S80", |
| 6835 | .bustype = BUS_SPI, |
| 6836 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 6837 | .model_id = NANTRONICS_N25S80, |
| 6838 | .total_size = 1024, |
| 6839 | .page_size = 256, |
| 6840 | .feature_bits = FEATURE_WRSR_WREN, |
| 6841 | .tested = TEST_UNTESTED, |
| 6842 | .probe = probe_spi_rdid, |
| 6843 | .probe_timing = TIMING_ZERO, |
| 6844 | .block_erasers = |
| 6845 | { |
| 6846 | { |
| 6847 | .eraseblocks = { {4 * 1024, 256} }, |
| 6848 | .block_erase = spi_block_erase_20, |
| 6849 | }, { |
| 6850 | .eraseblocks = { {32 * 1024, 32} }, |
| 6851 | .block_erase = spi_block_erase_52, |
| 6852 | }, { |
| 6853 | .eraseblocks = { {64 * 1024, 16} }, |
| 6854 | .block_erase = spi_block_erase_d8, |
| 6855 | }, { |
| 6856 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6857 | .block_erase = spi_block_erase_60, |
| 6858 | }, { |
| 6859 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6860 | .block_erase = spi_block_erase_c7, |
| 6861 | } |
| 6862 | }, |
| 6863 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 6864 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 6865 | .write = spi_chip_write_256, |
| 6866 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 6867 | .voltage = {2700, 3600}, |
| 6868 | }, |
| 6869 | |
| 6870 | { |
| 6871 | .vendor = "Nantronics", |
| 6872 | .name = "N25S16", |
| 6873 | .bustype = BUS_SPI, |
| 6874 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 6875 | .model_id = NANTRONICS_N25S16, |
| 6876 | .total_size = 2048, |
| 6877 | .page_size = 256, |
| 6878 | .feature_bits = FEATURE_WRSR_WREN, |
| 6879 | .tested = TEST_UNTESTED, |
| 6880 | .probe = probe_spi_rdid, |
| 6881 | .probe_timing = TIMING_ZERO, |
| 6882 | .block_erasers = |
| 6883 | { |
| 6884 | { |
| 6885 | .eraseblocks = { {4 * 1024, 512} }, |
| 6886 | .block_erase = spi_block_erase_20, |
| 6887 | }, { |
| 6888 | .eraseblocks = { {64 * 1024, 32} }, |
| 6889 | .block_erase = spi_block_erase_d8, |
| 6890 | }, { |
| 6891 | .eraseblocks = { {2048 * 1024, 1} }, |
| 6892 | .block_erase = spi_block_erase_60, |
| 6893 | }, { |
| 6894 | .eraseblocks = { {2048 * 1024, 1} }, |
| 6895 | .block_erase = spi_block_erase_c7, |
| 6896 | } |
| 6897 | }, |
| 6898 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 6899 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 6900 | .write = spi_chip_write_256, |
| 6901 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 6902 | .voltage = {2700, 3600}, |
| 6903 | }, |
| 6904 | |
| 6905 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6906 | .vendor = "Numonyx", |
| 6907 | .name = "M25PE10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6908 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6909 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 6910 | .model_id = ST_M25PE10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6911 | .total_size = 128, |
| 6912 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6913 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6914 | .tested = TEST_UNTESTED, |
| 6915 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6916 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6917 | .block_erasers = |
| 6918 | { |
| 6919 | { |
| 6920 | .eraseblocks = { {4 * 1024, 32} }, |
| 6921 | .block_erase = spi_block_erase_20, |
| 6922 | }, { |
| 6923 | .eraseblocks = { {64 * 1024, 2} }, |
| 6924 | .block_erase = spi_block_erase_d8, |
| 6925 | }, { |
| 6926 | .eraseblocks = { {128 * 1024, 1} }, |
| 6927 | .block_erase = spi_block_erase_c7, |
| 6928 | } |
| 6929 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6930 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6931 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6932 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6933 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6934 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6935 | }, |
| 6936 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6937 | { |
| 6938 | .vendor = "Numonyx", |
| 6939 | .name = "M25PE20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6940 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6941 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 6942 | .model_id = ST_M25PE20, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6943 | .total_size = 256, |
| 6944 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6945 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6946 | .tested = TEST_UNTESTED, |
| 6947 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6948 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6949 | .block_erasers = |
| 6950 | { |
| 6951 | { |
| 6952 | .eraseblocks = { {4 * 1024, 64} }, |
| 6953 | .block_erase = spi_block_erase_20, |
| 6954 | }, { |
| 6955 | .eraseblocks = { {64 * 1024, 4} }, |
| 6956 | .block_erase = spi_block_erase_d8, |
| 6957 | }, { |
| 6958 | .eraseblocks = { {256 * 1024, 1} }, |
| 6959 | .block_erase = spi_block_erase_c7, |
| 6960 | } |
| 6961 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6962 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6963 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6964 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6965 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6966 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6967 | }, |
| 6968 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6969 | { |
| 6970 | .vendor = "Numonyx", |
| 6971 | .name = "M25PE40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6972 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6973 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 6974 | .model_id = ST_M25PE40, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6975 | .total_size = 512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6976 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6977 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6978 | .tested = TEST_UNTESTED, |
| 6979 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6980 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6981 | .block_erasers = |
| 6982 | { |
| 6983 | { |
| 6984 | .eraseblocks = { {4 * 1024, 128} }, |
| 6985 | .block_erase = spi_block_erase_20, |
| 6986 | }, { |
| 6987 | .eraseblocks = { {64 * 1024, 8} }, |
| 6988 | .block_erase = spi_block_erase_d8, |
| 6989 | }, { |
| 6990 | .eraseblocks = { {512 * 1024, 1} }, |
| 6991 | .block_erase = spi_block_erase_c7, |
| 6992 | } |
| 6993 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6994 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6995 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6996 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6997 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6998 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6999 | }, |
| 7000 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7001 | { |
| 7002 | .vendor = "Numonyx", |
| 7003 | .name = "M25PE80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7004 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7005 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 7006 | .model_id = ST_M25PE80, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7007 | .total_size = 1024, |
| 7008 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7009 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 7010 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7011 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7012 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7013 | .block_erasers = |
| 7014 | { |
| 7015 | { |
| 7016 | .eraseblocks = { {4 * 1024, 256} }, |
| 7017 | .block_erase = spi_block_erase_20, |
| 7018 | }, { |
| 7019 | .eraseblocks = { {64 * 1024, 16} }, |
| 7020 | .block_erase = spi_block_erase_d8, |
| 7021 | }, { |
| 7022 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7023 | .block_erase = spi_block_erase_c7, |
| 7024 | } |
| 7025 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7026 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7027 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7028 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7029 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7030 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7031 | }, |
| 7032 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7033 | { |
| 7034 | .vendor = "Numonyx", |
| 7035 | .name = "M25PE16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7036 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7037 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 7038 | .model_id = ST_M25PE16, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7039 | .total_size = 2048, |
| 7040 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7041 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7042 | .tested = TEST_UNTESTED, |
| 7043 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7044 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7045 | .block_erasers = |
| 7046 | { |
| 7047 | { |
| 7048 | .eraseblocks = { {4 * 1024, 512} }, |
| 7049 | .block_erase = spi_block_erase_20, |
| 7050 | }, { |
| 7051 | .eraseblocks = { {64 * 1024, 32} }, |
| 7052 | .block_erase = spi_block_erase_d8, |
| 7053 | }, { |
| 7054 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7055 | .block_erase = spi_block_erase_c7, |
| 7056 | } |
| 7057 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7058 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7059 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7060 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7061 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7062 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7063 | }, |
| 7064 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7065 | { |
Niklas Söderlund | ae4294f | 2012-04-14 21:04:03 +0000 | [diff] [blame] | 7066 | .vendor = "Numonyx", |
Nikolay Nikolaev | 01dac17 | 2013-06-28 21:29:03 +0000 | [diff] [blame] | 7067 | .name = "M45PE10", |
| 7068 | .bustype = BUS_SPI, |
| 7069 | .manufacture_id = ST_ID, |
| 7070 | .model_id = ST_M45PE10, |
| 7071 | .total_size = 128, |
| 7072 | .page_size = 256, |
| 7073 | .tested = TEST_UNTESTED, |
| 7074 | .probe = probe_spi_rdid, |
| 7075 | .probe_timing = TIMING_ZERO, |
| 7076 | .block_erasers = { |
| 7077 | { |
| 7078 | .eraseblocks = { {256, 512} }, |
| 7079 | .block_erase = spi_block_erase_db, |
| 7080 | }, { |
| 7081 | .eraseblocks = { {64 * 1024, 2} }, |
| 7082 | .block_erase = spi_block_erase_d8, |
| 7083 | } |
| 7084 | }, |
| 7085 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7086 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7087 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7088 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7089 | .voltage = {2700, 3600}, |
| 7090 | }, |
| 7091 | |
| 7092 | { |
| 7093 | .vendor = "Numonyx", |
| 7094 | .name = "M45PE20", |
| 7095 | .bustype = BUS_SPI, |
| 7096 | .manufacture_id = ST_ID, |
| 7097 | .model_id = ST_M45PE20, |
| 7098 | .total_size = 256, |
| 7099 | .page_size = 256, |
| 7100 | .tested = TEST_UNTESTED, |
| 7101 | .probe = probe_spi_rdid, |
| 7102 | .probe_timing = TIMING_ZERO, |
| 7103 | .block_erasers = { |
| 7104 | { |
| 7105 | .eraseblocks = { {256, 1024} }, |
| 7106 | .block_erase = spi_block_erase_db, |
| 7107 | }, { |
| 7108 | .eraseblocks = { {64 * 1024, 4} }, |
| 7109 | .block_erase = spi_block_erase_d8, |
| 7110 | } |
| 7111 | }, |
| 7112 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7113 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7114 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7115 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7116 | .voltage = {2700, 3600}, |
| 7117 | }, |
| 7118 | |
| 7119 | { |
| 7120 | .vendor = "Numonyx", |
| 7121 | .name = "M45PE40", |
| 7122 | .bustype = BUS_SPI, |
| 7123 | .manufacture_id = ST_ID, |
| 7124 | .model_id = ST_M45PE40, |
| 7125 | .total_size = 512, |
| 7126 | .page_size = 256, |
| 7127 | .tested = TEST_UNTESTED, |
| 7128 | .probe = probe_spi_rdid, |
| 7129 | .probe_timing = TIMING_ZERO, |
| 7130 | .block_erasers = { |
| 7131 | { |
| 7132 | .eraseblocks = { {256, 2048} }, |
| 7133 | .block_erase = spi_block_erase_db, |
| 7134 | }, { |
| 7135 | .eraseblocks = { {64 * 1024, 8} }, |
| 7136 | .block_erase = spi_block_erase_d8, |
| 7137 | } |
| 7138 | }, |
| 7139 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7140 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7141 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7142 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7143 | .voltage = {2700, 3600}, |
| 7144 | }, |
| 7145 | |
| 7146 | { |
| 7147 | .vendor = "Numonyx", |
| 7148 | .name = "M45PE80", |
| 7149 | .bustype = BUS_SPI, |
| 7150 | .manufacture_id = ST_ID, |
| 7151 | .model_id = ST_M45PE80, |
| 7152 | .total_size = 1024, |
| 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, 4096} }, |
| 7160 | .block_erase = spi_block_erase_db, |
| 7161 | }, { |
| 7162 | .eraseblocks = { {64 * 1024, 16} }, |
| 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 = "M45PE16", |
| 7176 | .bustype = BUS_SPI, |
| 7177 | .manufacture_id = ST_ID, |
| 7178 | .model_id = ST_M45PE16, |
| 7179 | .total_size = 2048, |
| 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, 8192} }, |
| 7187 | .block_erase = spi_block_erase_db, |
| 7188 | }, { |
| 7189 | .eraseblocks = { {64 * 1024, 32} }, |
| 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", |
Stefan Tauner | d956f82 | 2012-10-26 16:49:15 +0000 | [diff] [blame] | 7202 | .name = "N25Q016", |
| 7203 | .bustype = BUS_SPI, |
| 7204 | .manufacture_id = ST_ID, |
| 7205 | .model_id = ST_N25Q016__1E, |
| 7206 | .total_size = 2048, |
| 7207 | .page_size = 256, |
| 7208 | /* supports SFDP */ |
| 7209 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7210 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7211 | .tested = TEST_UNTESTED, |
| 7212 | .probe = probe_spi_rdid, |
| 7213 | .probe_timing = TIMING_ZERO, |
| 7214 | .block_erasers = |
| 7215 | { |
| 7216 | { |
| 7217 | .eraseblocks = { {4 * 1024, 512} }, |
| 7218 | .block_erase = spi_block_erase_20, |
| 7219 | }, { |
| 7220 | .eraseblocks = { {32 * 1024, 64} }, |
| 7221 | .block_erase = spi_block_erase_52, |
| 7222 | }, { |
| 7223 | .eraseblocks = { {64 * 1024, 32} }, |
| 7224 | .block_erase = spi_block_erase_d8, |
| 7225 | }, { |
| 7226 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7227 | .block_erase = spi_block_erase_c7, |
| 7228 | } |
| 7229 | }, |
| 7230 | .unlock = spi_disable_blockprotect, |
| 7231 | .write = spi_chip_write_256, |
| 7232 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7233 | .voltage = {1700, 2000}, |
| 7234 | }, |
| 7235 | |
| 7236 | { |
| 7237 | .vendor = "Numonyx", |
| 7238 | .name = "N25Q032..1E", |
| 7239 | .bustype = BUS_SPI, |
| 7240 | .manufacture_id = ST_ID, |
| 7241 | .model_id = ST_N25Q032__1E, |
| 7242 | .total_size = 4096, |
| 7243 | .page_size = 256, |
| 7244 | /* supports SFDP */ |
| 7245 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7246 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7247 | .tested = TEST_UNTESTED, |
| 7248 | .probe = probe_spi_rdid, |
| 7249 | .probe_timing = TIMING_ZERO, |
| 7250 | .block_erasers = |
| 7251 | { |
| 7252 | { |
| 7253 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7254 | .block_erase = spi_block_erase_20, |
| 7255 | }, { |
| 7256 | .eraseblocks = { {64 * 1024, 64} }, |
| 7257 | .block_erase = spi_block_erase_d8, |
| 7258 | }, { |
| 7259 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7260 | .block_erase = spi_block_erase_c7, |
| 7261 | } |
| 7262 | }, |
| 7263 | .unlock = spi_disable_blockprotect, |
| 7264 | .write = spi_chip_write_256, |
| 7265 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7266 | .voltage = {1700, 2000}, |
| 7267 | }, |
| 7268 | |
| 7269 | { |
| 7270 | .vendor = "Numonyx", |
| 7271 | .name = "N25Q032..3E", |
| 7272 | .bustype = BUS_SPI, |
| 7273 | .manufacture_id = ST_ID, |
| 7274 | .model_id = ST_N25Q032__3E, |
| 7275 | .total_size = 4096, |
| 7276 | .page_size = 256, |
| 7277 | /* supports SFDP */ |
| 7278 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7279 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7280 | .tested = TEST_UNTESTED, |
| 7281 | .probe = probe_spi_rdid, |
| 7282 | .probe_timing = TIMING_ZERO, |
| 7283 | .block_erasers = |
| 7284 | { |
| 7285 | { |
| 7286 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7287 | .block_erase = spi_block_erase_20, |
| 7288 | }, { |
| 7289 | .eraseblocks = { {64 * 1024, 64} }, |
| 7290 | .block_erase = spi_block_erase_d8, |
| 7291 | }, { |
| 7292 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7293 | .block_erase = spi_block_erase_c7, |
| 7294 | } |
| 7295 | }, |
| 7296 | .unlock = spi_disable_blockprotect, |
| 7297 | .write = spi_chip_write_256, |
| 7298 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7299 | .voltage = {2700, 3600}, |
| 7300 | }, |
| 7301 | |
| 7302 | { |
| 7303 | .vendor = "Numonyx", |
David Hendricks | 99f947d | 2012-10-04 14:41:20 +0000 | [diff] [blame] | 7304 | .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
Niklas Söderlund | ae4294f | 2012-04-14 21:04:03 +0000 | [diff] [blame] | 7305 | .bustype = BUS_SPI, |
| 7306 | .manufacture_id = ST_ID, |
David Hendricks | 99f947d | 2012-10-04 14:41:20 +0000 | [diff] [blame] | 7307 | .model_id = ST_N25Q064__1E, |
Niklas Söderlund | ae4294f | 2012-04-14 21:04:03 +0000 | [diff] [blame] | 7308 | .total_size = 8192, |
| 7309 | .page_size = 256, |
David Hendricks | 99f947d | 2012-10-04 14:41:20 +0000 | [diff] [blame] | 7310 | /* supports SFDP */ |
| 7311 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7312 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7313 | .tested = TEST_UNTESTED, |
| 7314 | .probe = probe_spi_rdid, |
| 7315 | .probe_timing = TIMING_ZERO, |
| 7316 | .block_erasers = |
| 7317 | { |
| 7318 | { |
| 7319 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 7320 | .block_erase = spi_block_erase_20, |
| 7321 | }, { |
| 7322 | .eraseblocks = { {64 * 1024, 128} }, |
| 7323 | .block_erase = spi_block_erase_d8, |
| 7324 | }, { |
| 7325 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7326 | .block_erase = spi_block_erase_c7, |
| 7327 | } |
| 7328 | }, |
| 7329 | .unlock = spi_disable_blockprotect, |
| 7330 | .write = spi_chip_write_256, |
Stefan Tauner | d956f82 | 2012-10-26 16:49:15 +0000 | [diff] [blame] | 7331 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
David Hendricks | 99f947d | 2012-10-04 14:41:20 +0000 | [diff] [blame] | 7332 | .voltage = {1700, 2000}, |
| 7333 | }, |
| 7334 | |
| 7335 | { |
| 7336 | .vendor = "Numonyx", |
| 7337 | .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 7338 | .bustype = BUS_SPI, |
| 7339 | .manufacture_id = ST_ID, |
| 7340 | .model_id = ST_N25Q064__3E, |
| 7341 | .total_size = 8192, |
| 7342 | .page_size = 256, |
| 7343 | /* supports SFDP */ |
| 7344 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7345 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Niklas Söderlund | ae4294f | 2012-04-14 21:04:03 +0000 | [diff] [blame] | 7346 | .tested = TEST_OK_PREW, |
| 7347 | .probe = probe_spi_rdid, |
| 7348 | .probe_timing = TIMING_ZERO, |
| 7349 | .block_erasers = |
| 7350 | { |
| 7351 | { |
| 7352 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 7353 | .block_erase = spi_block_erase_20, |
| 7354 | }, { |
| 7355 | .eraseblocks = { {64 * 1024, 128} }, |
| 7356 | .block_erase = spi_block_erase_d8, |
| 7357 | }, { |
| 7358 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7359 | .block_erase = spi_block_erase_c7, |
| 7360 | } |
| 7361 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7362 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Niklas Söderlund | ae4294f | 2012-04-14 21:04:03 +0000 | [diff] [blame] | 7363 | .unlock = spi_disable_blockprotect, |
| 7364 | .write = spi_chip_write_256, |
Stefan Tauner | d956f82 | 2012-10-26 16:49:15 +0000 | [diff] [blame] | 7365 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
David Hendricks | 99f947d | 2012-10-04 14:41:20 +0000 | [diff] [blame] | 7366 | .voltage = {2700, 3600}, |
Niklas Söderlund | ae4294f | 2012-04-14 21:04:03 +0000 | [diff] [blame] | 7367 | }, |
| 7368 | |
| 7369 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7370 | .vendor = "PMC", |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 7371 | .name = "Pm25LD256C", |
| 7372 | .bustype = BUS_SPI, |
| 7373 | .manufacture_id = PMC_ID, |
| 7374 | .model_id = PMC_PM25LD256C, |
| 7375 | .total_size = 32, |
| 7376 | .page_size = 256, |
| 7377 | .feature_bits = FEATURE_WRSR_WREN, |
| 7378 | .tested = TEST_UNTESTED, |
| 7379 | .probe = probe_spi_rdid, |
| 7380 | .probe_timing = TIMING_ZERO, |
| 7381 | .block_erasers = |
| 7382 | { |
| 7383 | { |
| 7384 | .eraseblocks = { {4 * 1024, 8} }, |
| 7385 | .block_erase = spi_block_erase_20, |
| 7386 | }, { |
| 7387 | .eraseblocks = { {4 * 1024, 8} }, |
| 7388 | .block_erase = spi_block_erase_d7, |
| 7389 | }, { |
| 7390 | .eraseblocks = { {32 * 1024, 1} }, |
| 7391 | .block_erase = spi_block_erase_d8, |
| 7392 | }, { |
| 7393 | .eraseblocks = { {32 * 1024, 1} }, |
| 7394 | .block_erase = spi_block_erase_60, |
| 7395 | }, { |
| 7396 | .eraseblocks = { {32 * 1024, 1} }, |
| 7397 | .block_erase = spi_block_erase_c7, |
| 7398 | } |
| 7399 | }, |
| 7400 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 7401 | .unlock = spi_disable_blockprotect, |
| 7402 | .write = spi_chip_write_256, |
| 7403 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 7404 | .voltage = {2700, 3600}, |
| 7405 | }, |
| 7406 | { |
| 7407 | .vendor = "PMC", |
| 7408 | .name = "Pm25LD512(C)", |
| 7409 | .bustype = BUS_SPI, |
| 7410 | .manufacture_id = PMC_ID, |
| 7411 | .model_id = PMC_PM25LD512, |
| 7412 | .total_size = 64, |
| 7413 | .page_size = 256, |
| 7414 | .feature_bits = FEATURE_WRSR_WREN, |
| 7415 | .tested = TEST_OK_PREW, |
| 7416 | .probe = probe_spi_rdid, |
| 7417 | .probe_timing = TIMING_ZERO, |
| 7418 | .block_erasers = |
| 7419 | { |
| 7420 | { |
| 7421 | .eraseblocks = { {4 * 1024, 16} }, |
| 7422 | .block_erase = spi_block_erase_20, |
| 7423 | }, { |
| 7424 | .eraseblocks = { {4 * 1024, 16} }, |
| 7425 | .block_erase = spi_block_erase_d7, |
| 7426 | }, { |
| 7427 | .eraseblocks = { {32 * 1024, 2} }, |
| 7428 | .block_erase = spi_block_erase_d8, |
| 7429 | }, { |
| 7430 | .eraseblocks = { {64 * 1024, 1} }, |
| 7431 | .block_erase = spi_block_erase_60, |
| 7432 | }, { |
| 7433 | .eraseblocks = { {64 * 1024, 1} }, |
| 7434 | .block_erase = spi_block_erase_c7, |
| 7435 | } |
| 7436 | }, |
| 7437 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 7438 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 7439 | .write = spi_chip_write_256, |
| 7440 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 7441 | .voltage = {2300, 3600}, |
| 7442 | }, |
| 7443 | |
| 7444 | { |
| 7445 | .vendor = "PMC", |
| 7446 | .name = "Pm25LD010(C)", |
| 7447 | .bustype = BUS_SPI, |
| 7448 | .manufacture_id = PMC_ID, |
| 7449 | .model_id = PMC_PM25LD010, |
| 7450 | .total_size = 128, |
| 7451 | .page_size = 256, |
| 7452 | .feature_bits = FEATURE_WRSR_WREN, |
| 7453 | .tested = TEST_UNTESTED, |
| 7454 | .probe = probe_spi_rdid, |
| 7455 | .probe_timing = TIMING_ZERO, |
| 7456 | .block_erasers = |
| 7457 | { |
| 7458 | { |
| 7459 | .eraseblocks = { {4 * 1024, 32} }, |
| 7460 | .block_erase = spi_block_erase_20, |
| 7461 | }, { |
| 7462 | .eraseblocks = { {4 * 1024, 32} }, |
| 7463 | .block_erase = spi_block_erase_d7, |
| 7464 | }, { |
| 7465 | .eraseblocks = { {32 * 1024, 4} }, |
| 7466 | .block_erase = spi_block_erase_d8, |
| 7467 | }, { |
| 7468 | .eraseblocks = { {128 * 1024, 1} }, |
| 7469 | .block_erase = spi_block_erase_60, |
| 7470 | }, { |
| 7471 | .eraseblocks = { {128 * 1024, 1} }, |
| 7472 | .block_erase = spi_block_erase_c7, |
| 7473 | } |
| 7474 | }, |
| 7475 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 7476 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 7477 | .write = spi_chip_write_256, |
| 7478 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 7479 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */ |
| 7480 | }, |
| 7481 | |
| 7482 | { |
| 7483 | .vendor = "PMC", |
| 7484 | .name = "Pm25LD020(C)", |
| 7485 | .bustype = BUS_SPI, |
| 7486 | .manufacture_id = PMC_ID, |
| 7487 | .model_id = PMC_PM25LD020, |
| 7488 | .total_size = 256, |
| 7489 | .page_size = 256, |
| 7490 | .feature_bits = FEATURE_WRSR_WREN, |
| 7491 | .tested = TEST_UNTESTED, |
| 7492 | .probe = probe_spi_rdid, |
| 7493 | .probe_timing = TIMING_ZERO, |
| 7494 | .block_erasers = |
| 7495 | { |
| 7496 | { |
| 7497 | .eraseblocks = { {4 * 1024, 64} }, |
| 7498 | .block_erase = spi_block_erase_20, |
| 7499 | }, { |
| 7500 | .eraseblocks = { {4 * 1024, 64} }, |
| 7501 | .block_erase = spi_block_erase_d7, |
| 7502 | }, { |
| 7503 | .eraseblocks = { {64 * 1024, 4} }, |
| 7504 | .block_erase = spi_block_erase_d8, |
| 7505 | }, { |
| 7506 | .eraseblocks = { {256 * 1024, 1} }, |
| 7507 | .block_erase = spi_block_erase_60, |
| 7508 | }, { |
| 7509 | .eraseblocks = { {256 * 1024, 1} }, |
| 7510 | .block_erase = spi_block_erase_c7, |
| 7511 | } |
| 7512 | }, |
| 7513 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 7514 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 7515 | .write = spi_chip_write_256, |
| 7516 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 7517 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */ |
| 7518 | }, |
| 7519 | |
| 7520 | { |
| 7521 | .vendor = "PMC", |
| 7522 | .name = "Pm25LD040(C)", |
| 7523 | .bustype = BUS_SPI, |
| 7524 | .manufacture_id = PMC_ID, |
| 7525 | .model_id = PMC_PM25LV040, |
| 7526 | .total_size = 512, |
| 7527 | .page_size = 256, |
| 7528 | .feature_bits = FEATURE_WRSR_WREN, |
| 7529 | .tested = TEST_UNTESTED, |
| 7530 | .probe = probe_spi_rdid, |
| 7531 | .probe_timing = TIMING_ZERO, |
| 7532 | .block_erasers = |
| 7533 | { |
| 7534 | { |
| 7535 | .eraseblocks = { {4 * 1024, 128} }, |
| 7536 | .block_erase = spi_block_erase_20, |
| 7537 | }, { |
| 7538 | .eraseblocks = { {4 * 1024, 128} }, |
| 7539 | .block_erase = spi_block_erase_d7, |
| 7540 | }, { |
| 7541 | .eraseblocks = { {64 * 1024, 8} }, |
| 7542 | .block_erase = spi_block_erase_d8, |
| 7543 | }, { |
| 7544 | .eraseblocks = { {512 * 1024, 1} }, |
| 7545 | .block_erase = spi_block_erase_60, |
| 7546 | }, { |
| 7547 | .eraseblocks = { {512 * 1024, 1} }, |
| 7548 | .block_erase = spi_block_erase_c7, |
| 7549 | } |
| 7550 | }, |
| 7551 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 7552 | .unlock = spi_disable_blockprotect, |
| 7553 | .write = spi_chip_write_256, |
| 7554 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 7555 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */ |
| 7556 | }, |
| 7557 | |
| 7558 | { |
| 7559 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 7560 | .name = "Pm25LV512(A)", |
| 7561 | .bustype = BUS_SPI, |
| 7562 | .manufacture_id = PMC_ID, |
| 7563 | .model_id = PMC_PM25LV512, |
| 7564 | .total_size = 64, |
| 7565 | .page_size = 256, |
| 7566 | .feature_bits = FEATURE_WRSR_WREN, |
| 7567 | .tested = TEST_UNTESTED, |
| 7568 | .probe = probe_spi_res3, |
| 7569 | .probe_timing = TIMING_ZERO, |
| 7570 | .block_erasers = |
| 7571 | { |
| 7572 | { |
| 7573 | .eraseblocks = { {4 * 1024, 16} }, |
| 7574 | .block_erase = spi_block_erase_d7, |
| 7575 | }, { |
| 7576 | .eraseblocks = { {32 * 1024, 2} }, |
| 7577 | .block_erase = spi_block_erase_d8, |
| 7578 | }, { |
| 7579 | .eraseblocks = { {64 * 1024, 1} }, |
| 7580 | .block_erase = spi_block_erase_c7, |
| 7581 | } |
| 7582 | }, |
| 7583 | .printlock = spi_prettyprint_status_register_default_bp1, |
| 7584 | .unlock = spi_disable_blockprotect, |
| 7585 | .write = spi_chip_write_256, |
| 7586 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7587 | .voltage = {2700, 3600}, |
| 7588 | }, |
| 7589 | |
| 7590 | { |
| 7591 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7592 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7593 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7594 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7595 | .model_id = PMC_PM25LV010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7596 | .total_size = 128, |
| 7597 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7598 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7599 | .tested = TEST_UNTESTED, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 7600 | .probe = probe_spi_res3, |
| 7601 | .probe_timing = TIMING_ZERO, |
| 7602 | .block_erasers = |
| 7603 | { |
| 7604 | { |
| 7605 | .eraseblocks = { {4 * 1024, 32} }, |
| 7606 | .block_erase = spi_block_erase_d7, |
| 7607 | }, { |
| 7608 | .eraseblocks = { {32 * 1024, 4} }, |
| 7609 | .block_erase = spi_block_erase_d8, |
| 7610 | }, { |
| 7611 | .eraseblocks = { {128 * 1024, 1} }, |
| 7612 | .block_erase = spi_block_erase_c7, |
| 7613 | } |
| 7614 | }, |
| 7615 | .printlock = spi_prettyprint_status_register_default_bp1, |
| 7616 | .unlock = spi_disable_blockprotect, |
| 7617 | .write = spi_chip_write_256, |
| 7618 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7619 | .voltage = {2700, 3600}, |
| 7620 | }, |
| 7621 | |
| 7622 | { |
| 7623 | .vendor = "PMC", |
| 7624 | .name = "Pm25LV010A", |
| 7625 | .bustype = BUS_SPI, |
| 7626 | .manufacture_id = PMC_ID, |
| 7627 | .model_id = PMC_PM25LV010, |
| 7628 | .total_size = 128, |
| 7629 | .page_size = 256, |
| 7630 | .feature_bits = FEATURE_WRSR_WREN, |
| 7631 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7632 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7633 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7634 | .block_erasers = |
| 7635 | { |
| 7636 | { |
| 7637 | .eraseblocks = { {4 * 1024, 32} }, |
| 7638 | .block_erase = spi_block_erase_d7, |
| 7639 | }, { |
| 7640 | .eraseblocks = { {32 * 1024, 4} }, |
| 7641 | .block_erase = spi_block_erase_d8, |
| 7642 | }, { |
| 7643 | .eraseblocks = { {128 * 1024, 1} }, |
| 7644 | .block_erase = spi_block_erase_c7, |
| 7645 | } |
| 7646 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 7647 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7648 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7649 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 7650 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7651 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7652 | }, |
| 7653 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7654 | { |
| 7655 | .vendor = "PMC", |
| 7656 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7657 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7658 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7659 | .model_id = PMC_PM25LV020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7660 | .total_size = 256, |
| 7661 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7662 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7663 | .tested = TEST_UNTESTED, |
| 7664 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7665 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7666 | .block_erasers = |
| 7667 | { |
| 7668 | { |
| 7669 | .eraseblocks = { {4 * 1024, 64} }, |
| 7670 | .block_erase = spi_block_erase_d7, |
| 7671 | }, { |
| 7672 | .eraseblocks = { {64 * 1024, 4} }, |
| 7673 | .block_erase = spi_block_erase_d8, |
| 7674 | }, { |
| 7675 | .eraseblocks = { {256 * 1024, 1} }, |
| 7676 | .block_erase = spi_block_erase_c7, |
| 7677 | } |
| 7678 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 7679 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7680 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7681 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7682 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7683 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7684 | }, |
| 7685 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7686 | { |
| 7687 | .vendor = "PMC", |
| 7688 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7689 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7690 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7691 | .model_id = PMC_PM25LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7692 | .total_size = 512, |
| 7693 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7694 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 7695 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7696 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7697 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7698 | .block_erasers = |
| 7699 | { |
| 7700 | { |
| 7701 | .eraseblocks = { {4 * 1024, 128} }, |
| 7702 | .block_erase = spi_block_erase_d7, |
| 7703 | }, { |
| 7704 | .eraseblocks = { {64 * 1024, 8} }, |
| 7705 | .block_erase = spi_block_erase_d8, |
| 7706 | }, { |
| 7707 | .eraseblocks = { {512 * 1024, 1} }, |
| 7708 | .block_erase = spi_block_erase_c7, |
| 7709 | } |
| 7710 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 7711 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7712 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7713 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 7714 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7715 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7716 | }, |
| 7717 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7718 | { |
| 7719 | .vendor = "PMC", |
| 7720 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7721 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7722 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7723 | .model_id = PMC_PM25LV080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7724 | .total_size = 1024, |
| 7725 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7726 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7727 | .tested = TEST_UNTESTED, |
| 7728 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7729 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7730 | .block_erasers = |
| 7731 | { |
| 7732 | { |
| 7733 | .eraseblocks = { {4 * 1024, 256} }, |
| 7734 | .block_erase = spi_block_erase_d7, |
| 7735 | }, { |
| 7736 | .eraseblocks = { {4 * 1024, 256} }, |
| 7737 | .block_erase = spi_block_erase_20, |
| 7738 | }, { |
| 7739 | .eraseblocks = { {64 * 1024, 16} }, |
| 7740 | .block_erase = spi_block_erase_d8, |
| 7741 | }, { |
| 7742 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7743 | .block_erase = spi_block_erase_60, |
| 7744 | }, { |
| 7745 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7746 | .block_erase = spi_block_erase_c7, |
| 7747 | } |
| 7748 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 7749 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7750 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7751 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 7752 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7753 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7754 | }, |
| 7755 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7756 | { |
| 7757 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 7758 | .name = "Pm25LV016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7759 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7760 | .manufacture_id = PMC_ID, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 7761 | .model_id = PMC_PM25LV016B, |
| 7762 | .total_size = 2048, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7763 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7764 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7765 | .tested = TEST_UNTESTED, |
| 7766 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7767 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7768 | .block_erasers = |
| 7769 | { |
| 7770 | { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 7771 | .eraseblocks = { {4 * 1024, 512} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7772 | .block_erase = spi_block_erase_d7, |
| 7773 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 7774 | .eraseblocks = { {4 * 1024, 512} }, |
| 7775 | .block_erase = spi_block_erase_20, |
| 7776 | }, { |
| 7777 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7778 | .block_erase = spi_block_erase_d8, |
| 7779 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 7780 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7781 | .block_erase = spi_block_erase_60, |
| 7782 | }, { |
| 7783 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7784 | .block_erase = spi_block_erase_c7, |
| 7785 | } |
| 7786 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 7787 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7788 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7789 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 7790 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7791 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7792 | }, |
| 7793 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7794 | { |
| 7795 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7796 | .name = "Pm29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7797 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 7798 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7799 | .model_id = PMC_PM29F002T, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 7800 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7801 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7802 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 7803 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7804 | .probe = probe_jedec, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 7805 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7806 | .block_erasers = |
| 7807 | { |
| 7808 | { |
| 7809 | .eraseblocks = { |
| 7810 | {128 * 1024, 1}, |
| 7811 | {96 * 1024, 1}, |
| 7812 | {8 * 1024, 2}, |
| 7813 | {16 * 1024, 1}, |
| 7814 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7815 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7816 | }, { |
| 7817 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7818 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7819 | }, |
| 7820 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7821 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 7822 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7823 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 7824 | }, |
| 7825 | |
| 7826 | { |
| 7827 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7828 | .name = "Pm29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7829 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 7830 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7831 | .model_id = PMC_PM29F002B, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 7832 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7833 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7834 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 7835 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7836 | .probe = probe_jedec, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 7837 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7838 | .block_erasers = |
| 7839 | { |
| 7840 | { |
| 7841 | .eraseblocks = { |
| 7842 | {16 * 1024, 1}, |
| 7843 | {8 * 1024, 2}, |
| 7844 | {96 * 1024, 1}, |
| 7845 | {128 * 1024, 1}, |
| 7846 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7847 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7848 | }, { |
| 7849 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7850 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7851 | }, |
| 7852 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7853 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 7854 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7855 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 7856 | }, |
| 7857 | |
| 7858 | { |
| 7859 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 7860 | .name = "Pm39LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7861 | .bustype = BUS_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 7862 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7863 | .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] | 7864 | .total_size = 128, |
| 7865 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7866 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 7867 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 7868 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 7869 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7870 | .block_erasers = |
| 7871 | { |
| 7872 | { |
| 7873 | .eraseblocks = { {4 * 1024, 32} }, |
| 7874 | .block_erase = erase_sector_jedec, |
| 7875 | }, { |
| 7876 | .eraseblocks = { {64 * 1024, 2} }, |
| 7877 | .block_erase = erase_block_jedec, |
| 7878 | }, { |
| 7879 | .eraseblocks = { {128 * 1024, 1} }, |
| 7880 | .block_erase = erase_chip_block_jedec, |
| 7881 | } |
| 7882 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7883 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 7884 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7885 | .voltage = {2700, 3600}, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 7886 | }, |
| 7887 | |
| 7888 | { |
| 7889 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 7890 | .name = "Pm39LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7891 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 7892 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7893 | .model_id = PMC_PM39LV020, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 7894 | .total_size = 256, |
| 7895 | .page_size = 4096, |
| 7896 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 7897 | .tested = TEST_UNTESTED, |
| 7898 | .probe = probe_jedec, |
| 7899 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7900 | .block_erasers = |
| 7901 | { |
| 7902 | { |
| 7903 | .eraseblocks = { {4 * 1024, 64} }, |
| 7904 | .block_erase = erase_sector_jedec, |
| 7905 | }, { |
| 7906 | .eraseblocks = { {64 * 1024, 4} }, |
| 7907 | .block_erase = erase_block_jedec, |
| 7908 | }, { |
| 7909 | .eraseblocks = { {256 * 1024, 1} }, |
| 7910 | .block_erase = erase_chip_block_jedec, |
| 7911 | } |
| 7912 | }, |
| 7913 | .write = write_jedec_1, |
| 7914 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7915 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 7916 | }, |
| 7917 | |
| 7918 | { |
| 7919 | .vendor = "PMC", |
| 7920 | .name = "Pm39LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7921 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 7922 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7923 | .model_id = PMC_PM39LV040, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 7924 | .total_size = 512, |
| 7925 | .page_size = 4096, |
| 7926 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 7927 | .tested = TEST_OK_PR, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 7928 | .probe = probe_jedec, |
| 7929 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7930 | .block_erasers = |
| 7931 | { |
| 7932 | { |
| 7933 | .eraseblocks = { {4 * 1024, 128} }, |
| 7934 | .block_erase = erase_sector_jedec, |
| 7935 | }, { |
| 7936 | .eraseblocks = { {64 * 1024, 8} }, |
| 7937 | .block_erase = erase_block_jedec, |
| 7938 | }, { |
| 7939 | .eraseblocks = { {512 * 1024, 1} }, |
| 7940 | .block_erase = erase_chip_block_jedec, |
| 7941 | } |
| 7942 | }, |
| 7943 | .write = write_jedec_1, |
| 7944 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7945 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 7946 | }, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 7947 | |
| 7948 | { |
| 7949 | .vendor = "PMC", |
| 7950 | .name = "Pm39LV512", |
| 7951 | .bustype = BUS_PARALLEL, |
| 7952 | .manufacture_id = PMC_ID_NOPREFIX, |
| 7953 | .model_id = PMC_PM39LV512, |
| 7954 | .total_size = 64, |
| 7955 | .page_size = 4096, |
| 7956 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 7957 | .tested = TEST_OK_PREW, |
| 7958 | .probe = probe_jedec, |
| 7959 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7960 | .block_erasers = |
| 7961 | { |
| 7962 | { |
| 7963 | .eraseblocks = { {4 * 1024, 16} }, |
| 7964 | .block_erase = erase_sector_jedec, |
| 7965 | }, { |
| 7966 | .eraseblocks = { {64 * 1024, 1} }, |
| 7967 | .block_erase = erase_block_jedec, |
| 7968 | }, { |
| 7969 | .eraseblocks = { {64 * 1024, 1} }, |
| 7970 | .block_erase = erase_chip_block_jedec, |
| 7971 | } |
| 7972 | }, |
| 7973 | .write = write_jedec_1, |
| 7974 | .read = read_memmapped, |
| 7975 | .voltage = {2700, 3600}, |
| 7976 | }, |
| 7977 | |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 7978 | { |
| 7979 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7980 | .name = "Pm49FL002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7981 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7982 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7983 | .model_id = PMC_PM49FL002, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7984 | .total_size = 256, |
| 7985 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7986 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 7987 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 7988 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 7989 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7990 | .block_erasers = |
| 7991 | { |
| 7992 | { |
| 7993 | .eraseblocks = { {4 * 1024, 64} }, |
| 7994 | .block_erase = erase_sector_jedec, |
| 7995 | }, { |
| 7996 | .eraseblocks = { {16 * 1024, 16} }, |
| 7997 | .block_erase = erase_block_jedec, |
| 7998 | }, { |
| 7999 | .eraseblocks = { {256 * 1024, 1} }, |
| 8000 | .block_erase = erase_chip_block_jedec, |
| 8001 | } |
| 8002 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 8003 | .unlock = unlock_49fl00x, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 8004 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8005 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8006 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8007 | }, |
| 8008 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8009 | { |
| 8010 | .vendor = "PMC", |
| 8011 | .name = "Pm49FL004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8012 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8013 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8014 | .model_id = PMC_PM49FL004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8015 | .total_size = 512, |
| 8016 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8017 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 8018 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 8019 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8020 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8021 | .block_erasers = |
| 8022 | { |
| 8023 | { |
| 8024 | .eraseblocks = { {4 * 1024, 128} }, |
| 8025 | .block_erase = erase_sector_jedec, |
| 8026 | }, { |
| 8027 | .eraseblocks = { {64 * 1024, 8} }, |
| 8028 | .block_erase = erase_block_jedec, |
| 8029 | }, { |
| 8030 | .eraseblocks = { {512 * 1024, 1} }, |
| 8031 | .block_erase = erase_chip_block_jedec, |
| 8032 | } |
| 8033 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 8034 | .unlock = unlock_49fl00x, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 8035 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8036 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8037 | .voltage = {3000, 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 | { |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 8041 | .vendor = "Sanyo", |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 8042 | .name = "LE25FW203A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8043 | .bustype = BUS_SPI, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 8044 | .manufacture_id = SANYO_ID, |
| 8045 | .model_id = SANYO_LE25FW203A, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 8046 | .total_size = 256, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 8047 | .page_size = 256, |
| 8048 | .tested = TEST_UNTESTED, |
| 8049 | .probe = probe_spi_rdid, |
| 8050 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8051 | .block_erasers = |
| 8052 | { |
| 8053 | { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 8054 | .eraseblocks = { {256, 1024} }, |
| 8055 | .block_erase = spi_block_erase_db, |
| 8056 | }, { |
| 8057 | .eraseblocks = { {64 * 1024, 4} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8058 | .block_erase = spi_block_erase_d8, |
| 8059 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 8060 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8061 | .block_erase = spi_block_erase_c7, |
| 8062 | } |
| 8063 | }, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 8064 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 8065 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 8066 | .write = spi_chip_write_256, |
| 8067 | .read = spi_chip_read, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 8068 | .voltage = {2700, 3600}, |
| 8069 | }, |
| 8070 | |
| 8071 | { |
| 8072 | .vendor = "Sanyo", |
| 8073 | .name = "LE25FW403A", |
| 8074 | .bustype = BUS_SPI, |
| 8075 | .manufacture_id = SANYO_ID, |
| 8076 | .model_id = SANYO_LE25FW403A, |
| 8077 | .total_size = 512, |
| 8078 | .page_size = 256, |
| 8079 | .tested = TEST_UNTESTED, |
| 8080 | .probe = probe_spi_rdid, |
| 8081 | .probe_timing = TIMING_ZERO, |
| 8082 | .block_erasers = { |
| 8083 | { |
| 8084 | .eraseblocks = { {256, 2 * 1024} }, |
| 8085 | .block_erase = spi_block_erase_db, |
| 8086 | }, { |
| 8087 | .eraseblocks = { {64 * 1024, 8} }, |
| 8088 | .block_erase = spi_block_erase_d8, |
| 8089 | }, { |
| 8090 | .eraseblocks = { {512 * 1024, 1} }, |
| 8091 | .block_erase = spi_block_erase_c7, |
| 8092 | } |
| 8093 | }, |
| 8094 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 8095 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 8096 | .write = spi_chip_write_256, |
| 8097 | .read = spi_chip_read, |
| 8098 | .voltage = {2700, 3600}, |
| 8099 | }, |
| 8100 | |
| 8101 | { |
| 8102 | .vendor = "Sanyo", |
| 8103 | .name = "LE25FW418A", |
| 8104 | .bustype = BUS_SPI, |
| 8105 | .manufacture_id = SANYO_ID, |
| 8106 | .model_id = SANYO_LE25FW418A, |
| 8107 | .total_size = 512, |
| 8108 | .page_size = 256, |
| 8109 | .feature_bits = FEATURE_WRSR_WREN, |
| 8110 | .tested = TEST_UNTESTED, |
| 8111 | .probe = probe_spi_res2, |
| 8112 | .probe_timing = TIMING_ZERO, |
| 8113 | .block_erasers = { |
| 8114 | { |
| 8115 | .eraseblocks = { {4 * 1024, 128} }, |
| 8116 | .block_erase = spi_block_erase_d7, |
| 8117 | }, { |
| 8118 | .eraseblocks = { {64 * 1024, 8} }, |
| 8119 | .block_erase = spi_block_erase_d8, |
| 8120 | }, { |
| 8121 | .eraseblocks = { {512 * 1024, 1} }, |
| 8122 | .block_erase = spi_block_erase_c7, |
| 8123 | } |
| 8124 | }, |
| 8125 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 8126 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 8127 | .write = spi_chip_write_256, |
| 8128 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 8129 | .voltage = {2700, 3600}, |
| 8130 | }, |
| 8131 | |
| 8132 | { |
| 8133 | .vendor = "Sanyo", |
| 8134 | .name = "LE25FW806", |
| 8135 | .bustype = BUS_SPI, |
| 8136 | .manufacture_id = SANYO_ID, |
| 8137 | .model_id = SANYO_LE25FW806, |
| 8138 | .total_size = 1024, |
| 8139 | .page_size = 256, |
| 8140 | .feature_bits = FEATURE_WRSR_WREN, |
| 8141 | .tested = TEST_UNTESTED, |
| 8142 | .probe = probe_spi_res2, |
| 8143 | .probe_timing = TIMING_ZERO, |
| 8144 | .block_erasers = { |
| 8145 | { |
| 8146 | .eraseblocks = { {4 * 1024, 256} }, |
| 8147 | .block_erase = spi_block_erase_20, |
| 8148 | }, { |
| 8149 | .eraseblocks = { {4 * 1024, 256} }, |
| 8150 | .block_erase = spi_block_erase_d7, |
| 8151 | }, { |
| 8152 | .eraseblocks = { {64 * 1024, 16} }, |
| 8153 | .block_erase = spi_block_erase_d8, |
| 8154 | }, { |
| 8155 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8156 | .block_erase = spi_block_erase_c7, |
| 8157 | } |
| 8158 | }, |
| 8159 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 8160 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 8161 | .write = spi_chip_write_256, |
| 8162 | .read = spi_chip_read, |
| 8163 | .voltage = {2700, 3600}, |
| 8164 | }, |
| 8165 | |
| 8166 | { |
| 8167 | .vendor = "Sanyo", |
| 8168 | .name = "LE25FW808", |
| 8169 | .bustype = BUS_SPI, |
| 8170 | .manufacture_id = SANYO_ID, |
| 8171 | .model_id = SANYO_LE25FW808, |
| 8172 | .total_size = 1024, |
| 8173 | .page_size = 256, |
| 8174 | .feature_bits = FEATURE_WRSR_WREN, |
| 8175 | .tested = TEST_UNTESTED, |
| 8176 | .probe = probe_spi_res2, |
| 8177 | .probe_timing = TIMING_ZERO, |
| 8178 | .block_erasers = { |
| 8179 | { |
| 8180 | .eraseblocks = { {8 * 1024, 128} }, |
| 8181 | .block_erase = spi_block_erase_d7, |
| 8182 | }, { |
| 8183 | .eraseblocks = { {64 * 1024, 16} }, |
| 8184 | .block_erase = spi_block_erase_d8, |
| 8185 | }, { |
| 8186 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8187 | .block_erase = spi_block_erase_c7, |
| 8188 | } |
| 8189 | }, |
| 8190 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 8191 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 8192 | .write = spi_chip_write_256, |
| 8193 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 8194 | .voltage = {2700, 3600}, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 8195 | }, |
| 8196 | |
| 8197 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8198 | .vendor = "Sharp", |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 8199 | .name = "LH28F008BJT-BTLZ1", |
| 8200 | .bustype = BUS_PARALLEL, |
| 8201 | .manufacture_id = SHARP_ID, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 8202 | .model_id = SHARP_LH28F008BJ__PB, |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 8203 | .total_size = 1024, |
| 8204 | .page_size = 64 * 1024, |
| 8205 | .tested = TEST_OK_PREW, |
| 8206 | .probe = probe_82802ab, |
| 8207 | .probe_timing = TIMING_ZERO, |
| 8208 | .block_erasers = |
| 8209 | { |
| 8210 | { |
| 8211 | .eraseblocks = { |
| 8212 | {8 * 1024, 8}, |
| 8213 | {64 * 1024, 15} |
| 8214 | }, |
| 8215 | .block_erase = erase_block_82802ab, |
| 8216 | }, { |
| 8217 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8218 | .block_erase = erase_sector_49lfxxxc, |
| 8219 | } |
| 8220 | }, |
| 8221 | .unlock = unlock_lh28f008bjt, |
| 8222 | .write = write_82802ab, |
| 8223 | .read = read_memmapped, |
| 8224 | .voltage = {2700, 3600}, |
| 8225 | }, |
| 8226 | |
| 8227 | { |
| 8228 | .vendor = "Sharp", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8229 | .name = "LHF00L04", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8230 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8231 | .manufacture_id = SHARP_ID, |
| 8232 | .model_id = SHARP_LHF00L04, |
| 8233 | .total_size = 1024, |
| 8234 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8235 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8236 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8237 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 8238 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 8239 | .block_erasers = |
| 8240 | { |
| 8241 | { |
| 8242 | .eraseblocks = { |
| 8243 | {64 * 1024, 15}, |
| 8244 | {8 * 1024, 8} |
| 8245 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 8246 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 8247 | }, { |
| 8248 | .eraseblocks = { |
| 8249 | {1024 * 1024, 1} |
| 8250 | }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8251 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 8252 | }, |
| 8253 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 8254 | .unlock = unlock_82802ab, |
| 8255 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8256 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8257 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8258 | }, |
| 8259 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8260 | { |
| 8261 | .vendor = "Spansion", |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8262 | .name = "S25FL004A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8263 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8264 | .manufacture_id = SPANSION_ID, |
| 8265 | .model_id = SPANSION_S25FL004A, |
| 8266 | .total_size = 512, |
| 8267 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8268 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8269 | .tested = TEST_UNTESTED, |
| 8270 | .probe = probe_spi_rdid, |
| 8271 | .probe_timing = TIMING_ZERO, |
| 8272 | .block_erasers = |
| 8273 | { |
| 8274 | { |
| 8275 | .eraseblocks = { {64 * 1024, 8} }, |
| 8276 | .block_erase = spi_block_erase_d8, |
| 8277 | }, { |
| 8278 | .eraseblocks = { {512 * 1024, 1} }, |
| 8279 | .block_erase = spi_block_erase_c7, |
| 8280 | } |
| 8281 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8282 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8283 | .unlock = spi_disable_blockprotect, |
| 8284 | .write = spi_chip_write_256, |
| 8285 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8286 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8287 | }, |
| 8288 | |
| 8289 | { |
| 8290 | .vendor = "Spansion", |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 8291 | .name = "S25FL008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8292 | .bustype = BUS_SPI, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 8293 | .manufacture_id = SPANSION_ID, |
| 8294 | .model_id = SPANSION_S25FL008A, |
| 8295 | .total_size = 1024, |
| 8296 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8297 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 8298 | .tested = TEST_OK_PRE, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 8299 | .probe = probe_spi_rdid, |
| 8300 | .probe_timing = TIMING_ZERO, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 8301 | .block_erasers = |
| 8302 | { |
| 8303 | { |
| 8304 | .eraseblocks = { {64 * 1024, 16} }, |
| 8305 | .block_erase = spi_block_erase_d8, |
| 8306 | }, { |
| 8307 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8308 | .block_erase = spi_block_erase_c7, |
| 8309 | } |
| 8310 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8311 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8312 | .unlock = spi_disable_blockprotect, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 8313 | .write = spi_chip_write_256, |
| 8314 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8315 | .voltage = {2700, 3600}, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 8316 | }, |
| 8317 | |
| 8318 | { |
| 8319 | .vendor = "Spansion", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8320 | .name = "S25FL016A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8321 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8322 | .manufacture_id = SPANSION_ID, |
| 8323 | .model_id = SPANSION_S25FL016A, |
| 8324 | .total_size = 2048, |
| 8325 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8326 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 8327 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8328 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8329 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8330 | .block_erasers = |
| 8331 | { |
| 8332 | { |
| 8333 | .eraseblocks = { {64 * 1024, 32} }, |
| 8334 | .block_erase = spi_block_erase_d8, |
| 8335 | }, { |
| 8336 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8337 | .block_erase = spi_block_erase_c7, |
| 8338 | } |
| 8339 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8340 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8341 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8342 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8343 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8344 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8345 | }, |
| 8346 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8347 | { |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8348 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 8349 | .name = "S25FL032A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8350 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8351 | .manufacture_id = SPANSION_ID, |
| 8352 | .model_id = SPANSION_S25FL032A, |
| 8353 | .total_size = 4096, |
| 8354 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8355 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 8356 | .tested = TEST_OK_PREW, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8357 | .probe = probe_spi_rdid, |
| 8358 | .probe_timing = TIMING_ZERO, |
| 8359 | .block_erasers = |
| 8360 | { |
| 8361 | { |
| 8362 | .eraseblocks = { {64 * 1024, 64} }, |
| 8363 | .block_erase = spi_block_erase_d8, |
| 8364 | }, { |
| 8365 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8366 | .block_erase = spi_block_erase_c7, |
| 8367 | } |
| 8368 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8369 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8370 | .unlock = spi_disable_blockprotect, |
| 8371 | .write = spi_chip_write_256, |
| 8372 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8373 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8374 | }, |
| 8375 | |
| 8376 | { |
| 8377 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 8378 | .name = "S25FL064A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8379 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8380 | .manufacture_id = SPANSION_ID, |
| 8381 | .model_id = SPANSION_S25FL064A, |
| 8382 | .total_size = 8192, |
| 8383 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8384 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8385 | .tested = TEST_OK_PREW, |
| 8386 | .probe = probe_spi_rdid, |
| 8387 | .probe_timing = TIMING_ZERO, |
| 8388 | .block_erasers = |
| 8389 | { |
| 8390 | { |
| 8391 | .eraseblocks = { {64 * 1024, 128} }, |
| 8392 | .block_erase = spi_block_erase_d8, |
| 8393 | }, { |
| 8394 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8395 | .block_erase = spi_block_erase_c7, |
| 8396 | } |
| 8397 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8398 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8399 | .unlock = spi_disable_blockprotect, |
| 8400 | .write = spi_chip_write_256, |
| 8401 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8402 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 8403 | }, |
| 8404 | |
| 8405 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8406 | .vendor = "SST", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 8407 | .name = "SST25LF040A", |
| 8408 | .bustype = BUS_SPI, |
| 8409 | .manufacture_id = SST_ID, |
| 8410 | .model_id = SST_SST25VF040_REMS, |
| 8411 | .total_size = 512, |
| 8412 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8413 | .feature_bits = FEATURE_WRSR_EWSR, |
Uwe Hermann | 4335ec8 | 2011-09-07 20:20:25 +0000 | [diff] [blame] | 8414 | .tested = TEST_OK_PREW, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 8415 | .probe = probe_spi_res2, |
| 8416 | .probe_timing = TIMING_ZERO, |
| 8417 | .block_erasers = |
| 8418 | { |
| 8419 | { |
| 8420 | .eraseblocks = { {4 * 1024, 128} }, |
| 8421 | .block_erase = spi_block_erase_20, |
| 8422 | }, { |
| 8423 | .eraseblocks = { {32 * 1024, 16} }, |
| 8424 | .block_erase = spi_block_erase_52, |
| 8425 | }, { |
| 8426 | .eraseblocks = { {512 * 1024, 1} }, |
| 8427 | .block_erase = spi_block_erase_60, |
| 8428 | }, |
| 8429 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8430 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 8431 | .unlock = spi_disable_blockprotect, |
| 8432 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 8433 | .read = spi_chip_read, |
| 8434 | .voltage = {3000, 3600}, |
| 8435 | }, |
| 8436 | |
| 8437 | { |
| 8438 | .vendor = "SST", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 8439 | .name = "SST25LF080(A)", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 8440 | .bustype = BUS_SPI, |
| 8441 | .manufacture_id = SST_ID, |
| 8442 | .model_id = SST_SST25VF080_REMS, |
| 8443 | .total_size = 1024, |
| 8444 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 8445 | .feature_bits = FEATURE_WRSR_EITHER, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 8446 | .tested = TEST_UNTESTED, |
| 8447 | .probe = probe_spi_res2, |
| 8448 | .probe_timing = TIMING_ZERO, |
| 8449 | .block_erasers = |
| 8450 | { |
| 8451 | { |
| 8452 | .eraseblocks = { {4 * 1024, 256} }, |
| 8453 | .block_erase = spi_block_erase_20, |
| 8454 | }, { |
| 8455 | .eraseblocks = { {32 * 1024, 32} }, |
| 8456 | .block_erase = spi_block_erase_52, |
| 8457 | }, { |
| 8458 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8459 | .block_erase = spi_block_erase_60, |
| 8460 | }, |
| 8461 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8462 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 8463 | .unlock = spi_disable_blockprotect, |
| 8464 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 8465 | .read = spi_chip_read, |
| 8466 | .voltage = {3000, 3600}, |
| 8467 | }, |
| 8468 | |
| 8469 | { |
| 8470 | .vendor = "SST", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 8471 | .name = "SST25VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8472 | .bustype = BUS_SPI, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 8473 | .manufacture_id = SST_ID, |
| 8474 | .model_id = SST_SST25VF010_REMS, |
| 8475 | .total_size = 128, |
| 8476 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8477 | .feature_bits = FEATURE_WRSR_EWSR, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 8478 | .tested = TEST_OK_PREW, |
| 8479 | .probe = probe_spi_rems, |
| 8480 | .probe_timing = TIMING_ZERO, |
| 8481 | .block_erasers = |
| 8482 | { |
| 8483 | { |
| 8484 | .eraseblocks = { {4 * 1024, 32} }, |
| 8485 | .block_erase = spi_block_erase_20, |
| 8486 | }, { |
| 8487 | .eraseblocks = { {32 * 1024, 4} }, |
| 8488 | .block_erase = spi_block_erase_52, |
| 8489 | }, { |
| 8490 | .eraseblocks = { {128 * 1024, 1} }, |
| 8491 | .block_erase = spi_block_erase_60, |
| 8492 | }, |
| 8493 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8494 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 8495 | .unlock = spi_disable_blockprotect, |
| 8496 | .write = spi_chip_write_1, |
| 8497 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8498 | .voltage = {2700, 3600}, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 8499 | }, |
| 8500 | |
| 8501 | { |
| 8502 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8503 | .name = "SST25VF016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8504 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8505 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8506 | .model_id = SST_SST25VF016B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8507 | .total_size = 2048, |
| 8508 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 8509 | .feature_bits = FEATURE_WRSR_EITHER, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 8510 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8511 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8512 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 8513 | .block_erasers = |
| 8514 | { |
| 8515 | { |
| 8516 | .eraseblocks = { {4 * 1024, 512} }, |
| 8517 | .block_erase = spi_block_erase_20, |
| 8518 | }, { |
| 8519 | .eraseblocks = { {32 * 1024, 64} }, |
| 8520 | .block_erase = spi_block_erase_52, |
| 8521 | }, { |
| 8522 | .eraseblocks = { {64 * 1024, 32} }, |
| 8523 | .block_erase = spi_block_erase_d8, |
| 8524 | }, { |
| 8525 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8526 | .block_erase = spi_block_erase_60, |
| 8527 | }, { |
| 8528 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8529 | .block_erase = spi_block_erase_c7, |
| 8530 | }, |
| 8531 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8532 | .printlock = spi_prettyprint_status_register_sst25vf016, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8533 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 8534 | .write = spi_aai_write, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8535 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8536 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8537 | }, |
| 8538 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8539 | { |
| 8540 | .vendor = "SST", |
| 8541 | .name = "SST25VF032B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8542 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8543 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8544 | .model_id = SST_SST25VF032B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8545 | .total_size = 4096, |
| 8546 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8547 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | fcf6a8c | 2011-05-18 01:32:00 +0000 | [diff] [blame] | 8548 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8549 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8550 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 8551 | .block_erasers = |
| 8552 | { |
| 8553 | { |
| 8554 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8555 | .block_erase = spi_block_erase_20, |
| 8556 | }, { |
| 8557 | .eraseblocks = { {32 * 1024, 128} }, |
| 8558 | .block_erase = spi_block_erase_52, |
| 8559 | }, { |
| 8560 | .eraseblocks = { {64 * 1024, 64} }, |
| 8561 | .block_erase = spi_block_erase_d8, |
| 8562 | }, { |
| 8563 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8564 | .block_erase = spi_block_erase_60, |
| 8565 | }, { |
| 8566 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8567 | .block_erase = spi_block_erase_c7, |
| 8568 | }, |
| 8569 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8570 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8571 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 8572 | .write = spi_aai_write, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 8573 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8574 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 8575 | }, |
| 8576 | |
| 8577 | { |
| 8578 | .vendor = "SST", |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 8579 | .name = "SST25VF064C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8580 | .bustype = BUS_SPI, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 8581 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8582 | .model_id = SST_SST25VF064C, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 8583 | .total_size = 8192, |
| 8584 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8585 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 8586 | .tested = TEST_OK_PREW, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 8587 | .probe = probe_spi_rdid, |
| 8588 | .probe_timing = TIMING_ZERO, |
| 8589 | .block_erasers = |
| 8590 | { |
| 8591 | { |
| 8592 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8593 | .block_erase = spi_block_erase_20, |
| 8594 | }, { |
| 8595 | .eraseblocks = { {32 * 1024, 256} }, |
| 8596 | .block_erase = spi_block_erase_52, |
| 8597 | }, { |
| 8598 | .eraseblocks = { {64 * 1024, 128} }, |
| 8599 | .block_erase = spi_block_erase_d8, |
| 8600 | }, { |
| 8601 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8602 | .block_erase = spi_block_erase_60, |
| 8603 | }, { |
| 8604 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8605 | .block_erase = spi_block_erase_c7, |
| 8606 | }, |
| 8607 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8608 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 8609 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 8610 | .write = spi_chip_write_256, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 8611 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8612 | .voltage = {2700, 3600}, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 8613 | }, |
| 8614 | |
| 8615 | { |
| 8616 | .vendor = "SST", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 8617 | .name = "SST25VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8618 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 8619 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8620 | .model_id = SST_SST25VF040_REMS, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 8621 | .total_size = 512, |
| 8622 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8623 | .feature_bits = FEATURE_WRSR_EWSR, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 8624 | .tested = TEST_OK_PR, |
| 8625 | .probe = probe_spi_rems, |
| 8626 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 8627 | .block_erasers = |
| 8628 | { |
| 8629 | { |
| 8630 | .eraseblocks = { {4 * 1024, 128} }, |
| 8631 | .block_erase = spi_block_erase_20, |
| 8632 | }, { |
| 8633 | .eraseblocks = { {32 * 1024, 16} }, |
| 8634 | .block_erase = spi_block_erase_52, |
| 8635 | }, { |
| 8636 | .eraseblocks = { {512 * 1024, 1} }, |
| 8637 | .block_erase = spi_block_erase_60, |
| 8638 | }, |
| 8639 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8640 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8641 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 8642 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8643 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8644 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8645 | }, |
| 8646 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8647 | { |
| 8648 | .vendor = "SST", |
| 8649 | .name = "SST25VF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8650 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8651 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8652 | .model_id = SST_SST25VF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8653 | .total_size = 512, |
| 8654 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8655 | .feature_bits = FEATURE_WRSR_EWSR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8656 | .tested = TEST_UNTESTED, |
| 8657 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8658 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 8659 | .block_erasers = |
| 8660 | { |
| 8661 | { |
| 8662 | .eraseblocks = { {4 * 1024, 128} }, |
| 8663 | .block_erase = spi_block_erase_20, |
| 8664 | }, { |
| 8665 | .eraseblocks = { {32 * 1024, 16} }, |
| 8666 | .block_erase = spi_block_erase_52, |
| 8667 | }, { |
| 8668 | .eraseblocks = { {64 * 1024, 8} }, |
| 8669 | .block_erase = spi_block_erase_d8, |
| 8670 | }, { |
| 8671 | .eraseblocks = { {512 * 1024, 1} }, |
| 8672 | .block_erase = spi_block_erase_60, |
| 8673 | }, { |
| 8674 | .eraseblocks = { {512 * 1024, 1} }, |
| 8675 | .block_erase = spi_block_erase_c7, |
| 8676 | }, |
| 8677 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8678 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8679 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 8680 | .write = spi_aai_write, |
Zheng Bao | 0677dff | 2009-02-25 08:07:33 +0000 | [diff] [blame] | 8681 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8682 | .voltage = {2700, 3600}, |
Zheng Bao | 0677dff | 2009-02-25 08:07:33 +0000 | [diff] [blame] | 8683 | }, |
| 8684 | |
| 8685 | { |
| 8686 | .vendor = "SST", |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 8687 | .name = "SST25VF040B.REMS", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8688 | .bustype = BUS_SPI, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 8689 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8690 | .model_id = SST_SST25VF040B_REMS, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 8691 | .total_size = 512, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 8692 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8693 | .feature_bits = FEATURE_WRSR_EWSR, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 8694 | .tested = TEST_OK_PR, |
| 8695 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8696 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 8697 | .block_erasers = |
| 8698 | { |
| 8699 | { |
| 8700 | .eraseblocks = { {4 * 1024, 128} }, |
| 8701 | .block_erase = spi_block_erase_20, |
| 8702 | }, { |
| 8703 | .eraseblocks = { {32 * 1024, 16} }, |
| 8704 | .block_erase = spi_block_erase_52, |
| 8705 | }, { |
| 8706 | .eraseblocks = { {64 * 1024, 8} }, |
| 8707 | .block_erase = spi_block_erase_d8, |
| 8708 | }, { |
| 8709 | .eraseblocks = { {512 * 1024, 1} }, |
| 8710 | .block_erase = spi_block_erase_60, |
| 8711 | }, { |
| 8712 | .eraseblocks = { {512 * 1024, 1} }, |
| 8713 | .block_erase = spi_block_erase_c7, |
| 8714 | }, |
| 8715 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8716 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8717 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 8718 | .write = spi_aai_write, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 8719 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8720 | .voltage = {2700, 3600}, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 8721 | }, |
| 8722 | |
| 8723 | { |
| 8724 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8725 | .name = "SST25VF080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8726 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8727 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8728 | .model_id = SST_SST25VF080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8729 | .total_size = 1024, |
| 8730 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8731 | .feature_bits = FEATURE_WRSR_EWSR, |
John Schmerge | c965c2d | 2011-05-18 11:28:47 +0000 | [diff] [blame] | 8732 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8733 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8734 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 8735 | .block_erasers = |
| 8736 | { |
| 8737 | { |
| 8738 | .eraseblocks = { {4 * 1024, 256} }, |
| 8739 | .block_erase = spi_block_erase_20, |
| 8740 | }, { |
| 8741 | .eraseblocks = { {32 * 1024, 32} }, |
| 8742 | .block_erase = spi_block_erase_52, |
| 8743 | }, { |
| 8744 | .eraseblocks = { {64 * 1024, 16} }, |
| 8745 | .block_erase = spi_block_erase_d8, |
| 8746 | }, { |
| 8747 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8748 | .block_erase = spi_block_erase_60, |
| 8749 | }, { |
| 8750 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8751 | .block_erase = spi_block_erase_c7, |
| 8752 | }, |
| 8753 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8754 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8755 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 8756 | .write = spi_aai_write, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8757 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8758 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8759 | }, |
| 8760 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8761 | { |
| 8762 | .vendor = "SST", |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 8763 | .name = "SST25WF512", |
| 8764 | .bustype = BUS_SPI, |
| 8765 | .manufacture_id = SST_ID, |
| 8766 | .model_id = SST_SST25WF512, |
| 8767 | .total_size = 64, |
| 8768 | .page_size = 256, |
| 8769 | .feature_bits = FEATURE_WRSR_EITHER, |
| 8770 | .tested = TEST_UNTESTED, |
| 8771 | .probe = probe_spi_rdid, |
| 8772 | .probe_timing = TIMING_ZERO, |
| 8773 | .block_erasers = |
| 8774 | { |
| 8775 | { |
| 8776 | .eraseblocks = { {4 * 1024, 16} }, |
| 8777 | .block_erase = spi_block_erase_20, |
| 8778 | }, { |
| 8779 | .eraseblocks = { {32 * 1024, 2} }, |
| 8780 | .block_erase = spi_block_erase_52, |
| 8781 | }, { |
| 8782 | .eraseblocks = { {1024 * 64, 1} }, |
| 8783 | .block_erase = spi_block_erase_60, |
| 8784 | }, { |
| 8785 | .eraseblocks = { {1024 * 64, 1} }, |
| 8786 | .block_erase = spi_block_erase_c7, |
| 8787 | }, |
| 8788 | }, |
| 8789 | .unlock = spi_disable_blockprotect, |
| 8790 | .write = spi_aai_write, |
| 8791 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8792 | .voltage = {1650, 1950}, |
| 8793 | }, |
| 8794 | |
| 8795 | { |
| 8796 | .vendor = "SST", |
| 8797 | .name = "SST25WF010", |
| 8798 | .bustype = BUS_SPI, |
| 8799 | .manufacture_id = SST_ID, |
| 8800 | .model_id = SST_SST25WF010, |
| 8801 | .total_size = 128, |
| 8802 | .page_size = 256, |
| 8803 | .feature_bits = FEATURE_WRSR_EITHER, |
| 8804 | .tested = TEST_UNTESTED, |
| 8805 | .probe = probe_spi_rdid, |
| 8806 | .probe_timing = TIMING_ZERO, |
| 8807 | .block_erasers = |
| 8808 | { |
| 8809 | { |
| 8810 | .eraseblocks = { {4 * 1024, 32} }, |
| 8811 | .block_erase = spi_block_erase_20, |
| 8812 | }, { |
| 8813 | .eraseblocks = { {32 * 1024, 4} }, |
| 8814 | .block_erase = spi_block_erase_52, |
| 8815 | }, { |
| 8816 | .eraseblocks = { {1024 * 128, 1} }, |
| 8817 | .block_erase = spi_block_erase_60, |
| 8818 | }, { |
| 8819 | .eraseblocks = { {1024 * 128, 1} }, |
| 8820 | .block_erase = spi_block_erase_c7, |
| 8821 | }, |
| 8822 | }, |
| 8823 | .unlock = spi_disable_blockprotect, |
| 8824 | .write = spi_aai_write, |
| 8825 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8826 | .voltage = {1650, 1950}, |
| 8827 | }, |
| 8828 | |
| 8829 | { |
| 8830 | .vendor = "SST", |
| 8831 | .name = "SST25WF020", |
| 8832 | .bustype = BUS_SPI, |
| 8833 | .manufacture_id = SST_ID, |
| 8834 | .model_id = SST_SST25WF020, |
| 8835 | .total_size = 256, |
| 8836 | .page_size = 256, |
| 8837 | .feature_bits = FEATURE_WRSR_EITHER, |
| 8838 | .tested = TEST_UNTESTED, |
| 8839 | .probe = probe_spi_rdid, |
| 8840 | .probe_timing = TIMING_ZERO, |
| 8841 | .block_erasers = |
| 8842 | { |
| 8843 | { |
| 8844 | .eraseblocks = { {4 * 1024, 64} }, |
| 8845 | .block_erase = spi_block_erase_20, |
| 8846 | }, { |
| 8847 | .eraseblocks = { {32 * 1024, 8} }, |
| 8848 | .block_erase = spi_block_erase_52, |
| 8849 | }, { |
| 8850 | .eraseblocks = { {64 * 1024, 4} }, |
| 8851 | .block_erase = spi_block_erase_d8, |
| 8852 | }, { |
| 8853 | .eraseblocks = { {1024 * 256, 1} }, |
| 8854 | .block_erase = spi_block_erase_60, |
| 8855 | }, { |
| 8856 | .eraseblocks = { {1024 * 256, 1} }, |
| 8857 | .block_erase = spi_block_erase_c7, |
| 8858 | }, |
| 8859 | }, |
| 8860 | .unlock = spi_disable_blockprotect, |
| 8861 | .write = spi_aai_write, |
| 8862 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8863 | .voltage = {1650, 1950}, |
| 8864 | }, |
| 8865 | |
| 8866 | { |
| 8867 | .vendor = "SST", |
| 8868 | .name = "SST25WF040", |
| 8869 | .bustype = BUS_SPI, |
| 8870 | .manufacture_id = SST_ID, |
| 8871 | .model_id = SST_SST25WF040, |
| 8872 | .total_size = 512, |
| 8873 | .page_size = 256, |
| 8874 | .feature_bits = FEATURE_WRSR_EITHER, |
| 8875 | .tested = TEST_UNTESTED, |
| 8876 | .probe = probe_spi_rdid, |
| 8877 | .probe_timing = TIMING_ZERO, |
| 8878 | .block_erasers = |
| 8879 | { |
| 8880 | { |
| 8881 | .eraseblocks = { {4 * 1024, 128} }, |
| 8882 | .block_erase = spi_block_erase_20, |
| 8883 | }, { |
| 8884 | .eraseblocks = { {32 * 1024, 16} }, |
| 8885 | .block_erase = spi_block_erase_52, |
| 8886 | }, { |
| 8887 | .eraseblocks = { {64 * 1024, 8} }, |
| 8888 | .block_erase = spi_block_erase_d8, |
| 8889 | }, { |
| 8890 | .eraseblocks = { {1024 * 512, 1} }, |
| 8891 | .block_erase = spi_block_erase_60, |
| 8892 | }, { |
| 8893 | .eraseblocks = { {1024 * 512, 1} }, |
| 8894 | .block_erase = spi_block_erase_c7, |
| 8895 | }, |
| 8896 | }, |
| 8897 | .unlock = spi_disable_blockprotect, |
| 8898 | .write = spi_aai_write, |
| 8899 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8900 | .voltage = {1650, 1950}, |
| 8901 | }, |
| 8902 | |
| 8903 | { |
| 8904 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8905 | .name = "SST28SF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8906 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8907 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8908 | .model_id = SST_SST28SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8909 | .total_size = 512, |
| 8910 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8911 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8912 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8913 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 8914 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8915 | .block_erasers = |
| 8916 | { |
| 8917 | { |
| 8918 | .eraseblocks = { {128, 4096} }, |
| 8919 | .block_erase = erase_sector_28sf040, |
| 8920 | }, { |
| 8921 | .eraseblocks = { {512 * 1024, 1} }, |
| 8922 | .block_erase = erase_chip_28sf040, |
| 8923 | } |
| 8924 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 8925 | .unlock = unprotect_28sf040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8926 | .write = write_28sf040, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8927 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8928 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8929 | }, |
| 8930 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8931 | { |
| 8932 | .vendor = "SST", |
| 8933 | .name = "SST29EE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8934 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8935 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8936 | .model_id = SST_SST29EE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8937 | .total_size = 128, |
| 8938 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8939 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 8940 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8941 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 8942 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8943 | .block_erasers = |
| 8944 | { |
| 8945 | { |
| 8946 | .eraseblocks = { {128 * 1024, 1} }, |
| 8947 | .block_erase = erase_chip_block_jedec, |
| 8948 | } |
| 8949 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8950 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8951 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8952 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8953 | }, |
| 8954 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8955 | { |
| 8956 | .vendor = "SST", |
| 8957 | .name = "SST29LE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8958 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8959 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8960 | .model_id = SST_SST29LE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8961 | .total_size = 128, |
| 8962 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8963 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8964 | .tested = TEST_UNTESTED, |
| 8965 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 8966 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8967 | .block_erasers = |
| 8968 | { |
| 8969 | { |
| 8970 | .eraseblocks = { {128 * 1024, 1} }, |
| 8971 | .block_erase = erase_chip_block_jedec, |
| 8972 | } |
| 8973 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8974 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8975 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8976 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8977 | }, |
| 8978 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8979 | { |
| 8980 | .vendor = "SST", |
| 8981 | .name = "SST29EE020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8982 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8983 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8984 | .model_id = SST_SST29EE020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8985 | .total_size = 256, |
| 8986 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8987 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 8988 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8989 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8990 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8991 | .block_erasers = |
| 8992 | { |
| 8993 | { |
| 8994 | .eraseblocks = { {256 * 1024, 1} }, |
| 8995 | .block_erase = erase_chip_block_jedec, |
| 8996 | } |
| 8997 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8998 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8999 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9000 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9001 | }, |
| 9002 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9003 | { |
| 9004 | .vendor = "SST", |
| 9005 | .name = "SST29LE020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9006 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9007 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9008 | .model_id = SST_SST29LE020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9009 | .total_size = 256, |
| 9010 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9011 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 9012 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9013 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 9014 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9015 | .block_erasers = |
| 9016 | { |
| 9017 | { |
| 9018 | .eraseblocks = { {256 * 1024, 1} }, |
| 9019 | .block_erase = erase_chip_block_jedec, |
| 9020 | } |
| 9021 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9022 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9023 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9024 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9025 | }, |
| 9026 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9027 | { |
| 9028 | .vendor = "SST", |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 9029 | .name = "SST39SF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9030 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 9031 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9032 | .model_id = SST_SST39SF512, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 9033 | .total_size = 64, |
| 9034 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9035 | .feature_bits = FEATURE_EITHER_RESET, |
Idwer Vollering | 7913fb4 | 2011-03-07 15:32:58 +0000 | [diff] [blame] | 9036 | .tested = TEST_OK_PREW, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 9037 | .probe = probe_jedec, |
| 9038 | .probe_timing = 1, /* 150 ns */ |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 9039 | .block_erasers = |
| 9040 | { |
| 9041 | { |
| 9042 | .eraseblocks = { {4 * 1024, 16} }, |
| 9043 | .block_erase = erase_sector_jedec, |
| 9044 | }, { |
| 9045 | .eraseblocks = { {64 * 1024, 1} }, |
| 9046 | .block_erase = erase_chip_block_jedec, |
| 9047 | } |
| 9048 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9049 | .write = write_jedec_1, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 9050 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9051 | .voltage = {4500, 5500}, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 9052 | }, |
| 9053 | |
| 9054 | { |
| 9055 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9056 | .name = "SST39SF010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9057 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9058 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9059 | .model_id = SST_SST39SF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9060 | .total_size = 128, |
| 9061 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9062 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 9063 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9064 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 9065 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9066 | .block_erasers = |
| 9067 | { |
| 9068 | { |
| 9069 | .eraseblocks = { {4 * 1024, 32} }, |
| 9070 | .block_erase = erase_sector_jedec, |
| 9071 | }, { |
| 9072 | .eraseblocks = { {128 * 1024, 1} }, |
| 9073 | .block_erase = erase_chip_block_jedec, |
| 9074 | } |
| 9075 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9076 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9077 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9078 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9079 | }, |
| 9080 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9081 | { |
| 9082 | .vendor = "SST", |
| 9083 | .name = "SST39SF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9084 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9085 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9086 | .model_id = SST_SST39SF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9087 | .total_size = 256, |
| 9088 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9089 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 9090 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9091 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 9092 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9093 | .block_erasers = |
| 9094 | { |
| 9095 | { |
| 9096 | .eraseblocks = { {4 * 1024, 64} }, |
| 9097 | .block_erase = erase_sector_jedec, |
| 9098 | }, { |
| 9099 | .eraseblocks = { {256 * 1024, 1} }, |
| 9100 | .block_erase = erase_chip_block_jedec, |
| 9101 | } |
| 9102 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9103 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9104 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9105 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9106 | }, |
| 9107 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9108 | { |
| 9109 | .vendor = "SST", |
| 9110 | .name = "SST39SF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9111 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9112 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9113 | .model_id = SST_SST39SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9114 | .total_size = 512, |
| 9115 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9116 | .feature_bits = FEATURE_EITHER_RESET, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9117 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9118 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 9119 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9120 | .block_erasers = |
| 9121 | { |
| 9122 | { |
| 9123 | .eraseblocks = { {4 * 1024, 128} }, |
| 9124 | .block_erase = erase_sector_jedec, |
| 9125 | }, { |
| 9126 | .eraseblocks = { {512 * 1024, 1} }, |
| 9127 | .block_erase = erase_chip_block_jedec, |
| 9128 | } |
| 9129 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9130 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9131 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9132 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9133 | }, |
| 9134 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9135 | { |
| 9136 | .vendor = "SST", |
| 9137 | .name = "SST39VF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9138 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9139 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9140 | .model_id = SST_SST39VF512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9141 | .total_size = 64, |
| 9142 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9143 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 9144 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9145 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 9146 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9147 | .block_erasers = |
| 9148 | { |
| 9149 | { |
| 9150 | .eraseblocks = { {4 * 1024, 16} }, |
| 9151 | .block_erase = erase_sector_jedec, |
| 9152 | }, { |
| 9153 | .eraseblocks = { {64 * 1024, 1} }, |
| 9154 | .block_erase = erase_chip_block_jedec, |
| 9155 | } |
| 9156 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9157 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9158 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9159 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9160 | }, |
| 9161 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9162 | { |
| 9163 | .vendor = "SST", |
| 9164 | .name = "SST39VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9165 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9166 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9167 | .model_id = SST_SST39VF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9168 | .total_size = 128, |
| 9169 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9170 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 9171 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9172 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 9173 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9174 | .block_erasers = |
| 9175 | { |
| 9176 | { |
| 9177 | .eraseblocks = { {4 * 1024, 32} }, |
| 9178 | .block_erase = erase_sector_jedec, |
| 9179 | }, { |
| 9180 | .eraseblocks = { {128 * 1024, 1} }, |
| 9181 | .block_erase = erase_chip_block_jedec, |
| 9182 | } |
| 9183 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9184 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9185 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9186 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9187 | }, |
| 9188 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9189 | { |
| 9190 | .vendor = "SST", |
| 9191 | .name = "SST39VF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9192 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9193 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9194 | .model_id = SST_SST39VF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9195 | .total_size = 256, |
| 9196 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9197 | .feature_bits = FEATURE_EITHER_RESET, |
| 9198 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9199 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 9200 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9201 | .block_erasers = |
| 9202 | { |
| 9203 | { |
| 9204 | .eraseblocks = { {4 * 1024, 64} }, |
| 9205 | .block_erase = erase_sector_jedec, |
| 9206 | }, { |
| 9207 | .eraseblocks = { {256 * 1024, 1} }, |
| 9208 | .block_erase = erase_chip_block_jedec, |
| 9209 | } |
| 9210 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9211 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9212 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9213 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9214 | }, |
| 9215 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9216 | { |
| 9217 | .vendor = "SST", |
| 9218 | .name = "SST39VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9219 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9220 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9221 | .model_id = SST_SST39VF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9222 | .total_size = 512, |
| 9223 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9224 | .feature_bits = FEATURE_EITHER_RESET, |
| 9225 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9226 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 9227 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9228 | .block_erasers = |
| 9229 | { |
| 9230 | { |
| 9231 | .eraseblocks = { {4 * 1024, 128} }, |
| 9232 | .block_erase = erase_sector_jedec, |
| 9233 | }, { |
| 9234 | .eraseblocks = { {512 * 1024, 1} }, |
| 9235 | .block_erase = erase_chip_block_jedec, |
| 9236 | } |
| 9237 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9238 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9239 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9240 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 9241 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9242 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9243 | { |
| 9244 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 9245 | .name = "SST39VF080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9246 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 9247 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9248 | .model_id = SST_SST39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 9249 | .total_size = 1024, |
| 9250 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9251 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 9252 | .tested = TEST_UNTESTED, |
| 9253 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 9254 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9255 | .block_erasers = |
| 9256 | { |
| 9257 | { |
| 9258 | .eraseblocks = { {4 * 1024, 256} }, |
| 9259 | .block_erase = erase_sector_jedec, |
| 9260 | }, { |
| 9261 | .eraseblocks = { {64 * 1024, 16} }, |
| 9262 | .block_erase = erase_block_jedec, |
| 9263 | }, { |
| 9264 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9265 | .block_erase = erase_chip_block_jedec, |
| 9266 | } |
| 9267 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9268 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9269 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9270 | .voltage = {2700, 3600}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 9271 | }, |
| 9272 | |
| 9273 | { |
| 9274 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9275 | .name = "SST49LF002A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9276 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9277 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9278 | .model_id = SST_SST49LF002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9279 | .total_size = 256, |
| 9280 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9281 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 9282 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9283 | .probe = probe_jedec, |
| 9284 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9285 | .block_erasers = |
| 9286 | { |
| 9287 | { |
| 9288 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9289 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9290 | }, { |
| 9291 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9292 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9293 | }, { |
| 9294 | .eraseblocks = { {256 * 1024, 1} }, |
| 9295 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 9296 | } |
| 9297 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9298 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9299 | .unlock = unlock_sst_fwhub, |
| 9300 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9301 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9302 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9303 | }, |
| 9304 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9305 | { |
| 9306 | .vendor = "SST", |
| 9307 | .name = "SST49LF003A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9308 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9309 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9310 | .model_id = SST_SST49LF003A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9311 | .total_size = 384, |
| 9312 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9313 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 9314 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9315 | .probe = probe_jedec, |
| 9316 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9317 | .block_erasers = |
| 9318 | { |
| 9319 | { |
| 9320 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9321 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9322 | }, { |
| 9323 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9324 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9325 | }, { |
| 9326 | .eraseblocks = { {384 * 1024, 1} }, |
| 9327 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 9328 | } |
| 9329 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9330 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9331 | .unlock = unlock_sst_fwhub, |
| 9332 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9333 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9334 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9335 | }, |
| 9336 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9337 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 9338 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 9339 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 9340 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9341 | .vendor = "SST", |
| 9342 | .name = "SST49LF004A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9343 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9344 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9345 | .model_id = SST_SST49LF004A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9346 | .total_size = 512, |
| 9347 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9348 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 9349 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9350 | .probe = probe_jedec, |
| 9351 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 9352 | .block_erasers = |
| 9353 | { |
| 9354 | { |
| 9355 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9356 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 9357 | }, { |
| 9358 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9359 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 9360 | }, { |
| 9361 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9362 | .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] | 9363 | }, |
| 9364 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9365 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9366 | .unlock = unlock_sst_fwhub, |
| 9367 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9368 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9369 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9370 | }, |
| 9371 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9372 | { |
| 9373 | .vendor = "SST", |
| 9374 | .name = "SST49LF004C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9375 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9376 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9377 | .model_id = SST_SST49LF004C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9378 | .total_size = 512, |
| 9379 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9380 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9381 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9382 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 9383 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9384 | .block_erasers = |
| 9385 | { |
| 9386 | { |
| 9387 | .eraseblocks = { {4 * 1024, 128} }, |
| 9388 | .block_erase = erase_sector_49lfxxxc, |
| 9389 | }, { |
| 9390 | .eraseblocks = { |
| 9391 | {64 * 1024, 7}, |
| 9392 | {32 * 1024, 1}, |
| 9393 | {8 * 1024, 2}, |
| 9394 | {16 * 1024, 1}, |
| 9395 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 9396 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9397 | } |
| 9398 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 9399 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 9400 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9401 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9402 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9403 | }, |
| 9404 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9405 | { |
| 9406 | .vendor = "SST", |
| 9407 | .name = "SST49LF008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9408 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9409 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9410 | .model_id = SST_SST49LF008A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9411 | .total_size = 1024, |
| 9412 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9413 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 9414 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9415 | .probe = probe_jedec, |
| 9416 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9417 | .block_erasers = |
| 9418 | { |
| 9419 | { |
| 9420 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9421 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9422 | }, { |
| 9423 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9424 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9425 | }, { |
| 9426 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9427 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 9428 | } |
| 9429 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9430 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 9431 | .unlock = unlock_sst_fwhub, |
| 9432 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9433 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9434 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9435 | }, |
| 9436 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9437 | { |
| 9438 | .vendor = "SST", |
| 9439 | .name = "SST49LF008C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9440 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9441 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9442 | .model_id = SST_SST49LF008C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9443 | .total_size = 1024, |
| 9444 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9445 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9446 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9447 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 9448 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9449 | .block_erasers = |
| 9450 | { |
| 9451 | { |
| 9452 | .eraseblocks = { {4 * 1024, 256} }, |
| 9453 | .block_erase = erase_sector_49lfxxxc, |
| 9454 | }, { |
| 9455 | .eraseblocks = { |
| 9456 | {64 * 1024, 15}, |
| 9457 | {32 * 1024, 1}, |
| 9458 | {8 * 1024, 2}, |
| 9459 | {16 * 1024, 1}, |
| 9460 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 9461 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9462 | } |
| 9463 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 9464 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 9465 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9466 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9467 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9468 | }, |
| 9469 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9470 | { |
| 9471 | .vendor = "SST", |
| 9472 | .name = "SST49LF016C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9473 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9474 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9475 | .model_id = SST_SST49LF016C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9476 | .total_size = 2048, |
| 9477 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9478 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | 2abab94 | 2012-04-27 20:41:23 +0000 | [diff] [blame] | 9479 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9480 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 9481 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9482 | .block_erasers = |
| 9483 | { |
| 9484 | { |
| 9485 | .eraseblocks = { {4 * 1024, 512} }, |
| 9486 | .block_erase = erase_sector_49lfxxxc, |
| 9487 | }, { |
| 9488 | .eraseblocks = { |
| 9489 | {64 * 1024, 31}, |
| 9490 | {32 * 1024, 1}, |
| 9491 | {8 * 1024, 2}, |
| 9492 | {16 * 1024, 1}, |
| 9493 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 9494 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9495 | } |
| 9496 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 9497 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 9498 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9499 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9500 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9501 | }, |
| 9502 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9503 | { |
| 9504 | .vendor = "SST", |
| 9505 | .name = "SST49LF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9506 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9507 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9508 | .model_id = SST_SST49LF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9509 | .total_size = 256, |
| 9510 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9511 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 9512 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9513 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 9514 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9515 | .block_erasers = |
| 9516 | { |
| 9517 | { |
| 9518 | .eraseblocks = { {4 * 1024, 64} }, |
| 9519 | .block_erase = erase_sector_jedec, |
| 9520 | }, { |
| 9521 | .eraseblocks = { {16 * 1024, 16} }, |
| 9522 | .block_erase = erase_block_jedec, |
| 9523 | }, { |
| 9524 | .eraseblocks = { {256 * 1024, 1} }, |
| 9525 | .block_erase = NULL, |
| 9526 | } |
| 9527 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9528 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9529 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9530 | .voltage = {3000, 3600}, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 9531 | }, |
| 9532 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9533 | { |
| 9534 | .vendor = "SST", |
| 9535 | .name = "SST49LF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9536 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9537 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9538 | .model_id = SST_SST49LF020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9539 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 9540 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9541 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 9542 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9543 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 9544 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9545 | .block_erasers = |
| 9546 | { |
| 9547 | { |
| 9548 | .eraseblocks = { {4 * 1024, 64} }, |
| 9549 | .block_erase = erase_sector_jedec, |
| 9550 | }, { |
| 9551 | .eraseblocks = { {16 * 1024, 16} }, |
| 9552 | .block_erase = erase_block_jedec, |
| 9553 | }, { |
| 9554 | .eraseblocks = { {256 * 1024, 1} }, |
| 9555 | .block_erase = NULL, |
| 9556 | } |
| 9557 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9558 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9559 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9560 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9561 | }, |
| 9562 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9563 | { |
| 9564 | .vendor = "SST", |
| 9565 | .name = "SST49LF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9566 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9567 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9568 | .model_id = SST_SST49LF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9569 | .total_size = 512, |
| 9570 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9571 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 9572 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9573 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 9574 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9575 | .block_erasers = |
| 9576 | { |
| 9577 | { |
| 9578 | .eraseblocks = { {4 * 1024, 128} }, |
| 9579 | .block_erase = erase_sector_jedec, |
| 9580 | }, { |
| 9581 | .eraseblocks = { {64 * 1024, 8} }, |
| 9582 | .block_erase = erase_block_jedec, |
| 9583 | }, { |
| 9584 | .eraseblocks = { {512 * 1024, 1} }, |
| 9585 | .block_erase = NULL, |
| 9586 | } |
| 9587 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9588 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9589 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9590 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9591 | }, |
| 9592 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9593 | { |
| 9594 | .vendor = "SST", |
| 9595 | .name = "SST49LF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9596 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9597 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9598 | .model_id = SST_SST49LF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9599 | .total_size = 512, |
| 9600 | .page_size = 64 * 1024, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 9601 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9602 | .tested = TEST_OK_PREW, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9603 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9604 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9605 | .block_erasers = |
| 9606 | { |
| 9607 | { |
| 9608 | .eraseblocks = { {4 * 1024, 128} }, |
| 9609 | .block_erase = erase_sector_jedec, |
| 9610 | }, { |
| 9611 | .eraseblocks = { {64 * 1024, 8} }, |
| 9612 | .block_erase = erase_block_jedec, |
| 9613 | }, { |
| 9614 | .eraseblocks = { {512 * 1024, 1} }, |
| 9615 | .block_erase = NULL, |
| 9616 | } |
| 9617 | }, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 9618 | .unlock = unlock_82802ab, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9619 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9620 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9621 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9622 | }, |
| 9623 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9624 | { |
| 9625 | .vendor = "SST", |
| 9626 | .name = "SST49LF080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9627 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9628 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9629 | .model_id = SST_SST49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9630 | .total_size = 1024, |
| 9631 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9632 | .feature_bits = FEATURE_EITHER_RESET, |
Brandon Dowdy | f07bf32 | 2011-03-06 18:31:11 +0000 | [diff] [blame] | 9633 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9634 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 9635 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9636 | .block_erasers = |
| 9637 | { |
| 9638 | { |
| 9639 | .eraseblocks = { {4 * 1024, 256} }, |
| 9640 | .block_erase = erase_sector_jedec, |
| 9641 | }, { |
| 9642 | .eraseblocks = { {64 * 1024, 16} }, |
| 9643 | .block_erase = erase_block_jedec, |
| 9644 | }, { |
| 9645 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9646 | .block_erase = NULL, |
| 9647 | } |
| 9648 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9649 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9650 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9651 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9652 | }, |
| 9653 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9654 | { |
| 9655 | .vendor = "SST", |
| 9656 | .name = "SST49LF160C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9657 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9658 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9659 | .model_id = SST_SST49LF160C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9660 | .total_size = 2048, |
| 9661 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9662 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 9663 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9664 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 9665 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9666 | .block_erasers = |
| 9667 | { |
| 9668 | { |
| 9669 | .eraseblocks = { {4 * 1024, 512} }, |
| 9670 | .block_erase = erase_sector_49lfxxxc, |
| 9671 | }, { |
| 9672 | .eraseblocks = { |
| 9673 | {64 * 1024, 31}, |
| 9674 | {32 * 1024, 1}, |
| 9675 | {8 * 1024, 2}, |
| 9676 | {16 * 1024, 1}, |
| 9677 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 9678 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9679 | } |
| 9680 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 9681 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 9682 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9683 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9684 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9685 | }, |
| 9686 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9687 | { |
| 9688 | .vendor = "ST", |
| 9689 | .name = "M25P05-A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9690 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9691 | .manufacture_id = ST_ID, |
| 9692 | .model_id = ST_M25P05A, |
| 9693 | .total_size = 64, |
| 9694 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9695 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9696 | .tested = TEST_UNTESTED, |
| 9697 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9698 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9699 | .block_erasers = |
| 9700 | { |
| 9701 | { |
| 9702 | .eraseblocks = { {32 * 1024, 2} }, |
| 9703 | .block_erase = spi_block_erase_d8, |
| 9704 | }, { |
| 9705 | .eraseblocks = { {64 * 1024, 1} }, |
| 9706 | .block_erase = spi_block_erase_c7, |
| 9707 | } |
| 9708 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9709 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9710 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9711 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9712 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9713 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9714 | }, |
| 9715 | |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 9716 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 9717 | * 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] | 9718 | * 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] | 9719 | * only is successful if RDID does not work. |
| 9720 | */ |
| 9721 | { |
| 9722 | .vendor = "ST", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9723 | .name = "M25P05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9724 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 9725 | .manufacture_id = 0, /* Not used. */ |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 9726 | .model_id = ST_M25P05_RES, |
| 9727 | .total_size = 64, |
| 9728 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9729 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 9730 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 9731 | .probe = probe_spi_res1, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 9732 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9733 | .block_erasers = |
| 9734 | { |
| 9735 | { |
| 9736 | .eraseblocks = { {32 * 1024, 2} }, |
| 9737 | .block_erase = spi_block_erase_d8, |
| 9738 | }, { |
| 9739 | .eraseblocks = { {64 * 1024, 1} }, |
| 9740 | .block_erase = spi_block_erase_c7, |
| 9741 | } |
| 9742 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9743 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9744 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 9745 | .write = spi_chip_write_1, /* 128 */ |
| 9746 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9747 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 9748 | }, |
| 9749 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9750 | { |
| 9751 | .vendor = "ST", |
| 9752 | .name = "M25P10-A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9753 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9754 | .manufacture_id = ST_ID, |
| 9755 | .model_id = ST_M25P10A, |
| 9756 | .total_size = 128, |
| 9757 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9758 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 9759 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9760 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9761 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9762 | .block_erasers = |
| 9763 | { |
| 9764 | { |
| 9765 | .eraseblocks = { {32 * 1024, 4} }, |
| 9766 | .block_erase = spi_block_erase_d8, |
| 9767 | }, { |
| 9768 | .eraseblocks = { {128 * 1024, 1} }, |
| 9769 | .block_erase = spi_block_erase_c7, |
| 9770 | } |
| 9771 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9772 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9773 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9774 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9775 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9776 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9777 | }, |
| 9778 | |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 9779 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 9780 | { |
| 9781 | .vendor = "ST", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9782 | .name = "M25P10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9783 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 9784 | .manufacture_id = 0, /* Not used. */ |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 9785 | .model_id = ST_M25P10_RES, |
| 9786 | .total_size = 128, |
| 9787 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9788 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 9789 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 9790 | .probe = probe_spi_res1, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 9791 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9792 | .block_erasers = |
| 9793 | { |
| 9794 | { |
| 9795 | .eraseblocks = { {32 * 1024, 4} }, |
| 9796 | .block_erase = spi_block_erase_d8, |
| 9797 | }, { |
| 9798 | .eraseblocks = { {128 * 1024, 1} }, |
| 9799 | .block_erase = spi_block_erase_c7, |
| 9800 | } |
| 9801 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9802 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9803 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 9804 | .write = spi_chip_write_1, /* 128 */ |
| 9805 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9806 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 9807 | }, |
| 9808 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9809 | { |
Kyösti Mälkki | c54adc5 | 2013-03-04 01:20:28 +0000 | [diff] [blame] | 9810 | .vendor = "ST", /* Numonyx */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9811 | .name = "M25P20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9812 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9813 | .manufacture_id = ST_ID, |
| 9814 | .model_id = ST_M25P20, |
| 9815 | .total_size = 256, |
| 9816 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9817 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9818 | .tested = TEST_UNTESTED, |
| 9819 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9820 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9821 | .block_erasers = |
| 9822 | { |
| 9823 | { |
| 9824 | .eraseblocks = { {64 * 1024, 4} }, |
| 9825 | .block_erase = spi_block_erase_d8, |
| 9826 | }, { |
| 9827 | .eraseblocks = { {256 * 1024, 1} }, |
| 9828 | .block_erase = spi_block_erase_c7, |
| 9829 | } |
| 9830 | }, |
Kyösti Mälkki | c54adc5 | 2013-03-04 01:20:28 +0000 | [diff] [blame] | 9831 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9832 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9833 | .write = spi_chip_write_256, |
Kyösti Mälkki | c54adc5 | 2013-03-04 01:20:28 +0000 | [diff] [blame] | 9834 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9835 | .voltage = {2700, 3600}, |
| 9836 | }, |
| 9837 | |
| 9838 | { |
| 9839 | .vendor = "ST", |
| 9840 | .name = "M25P20-old", |
| 9841 | .bustype = BUS_SPI, |
| 9842 | .manufacture_id = 0, /* Not used. */ |
| 9843 | .model_id = ST_M25P20_RES, |
| 9844 | .total_size = 256, |
| 9845 | .page_size = 256, |
| 9846 | .feature_bits = FEATURE_WRSR_WREN, |
| 9847 | .tested = TEST_OK_PREW, |
| 9848 | .probe = probe_spi_res1, |
| 9849 | .probe_timing = TIMING_ZERO, |
| 9850 | .block_erasers = |
| 9851 | { |
| 9852 | { |
| 9853 | .eraseblocks = { {64 * 1024, 4} }, |
| 9854 | .block_erase = spi_block_erase_d8, |
| 9855 | }, { |
| 9856 | .eraseblocks = { {256 * 1024, 1} }, |
| 9857 | .block_erase = spi_block_erase_c7, |
| 9858 | } |
| 9859 | }, |
| 9860 | .printlock = spi_prettyprint_status_register_default_bp1, |
| 9861 | .unlock = spi_disable_blockprotect, |
| 9862 | .write = spi_chip_write_256, |
| 9863 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9864 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9865 | }, |
| 9866 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9867 | { |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9868 | .vendor = "ST", /* Numonyx */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9869 | .name = "M25P40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9870 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9871 | .manufacture_id = ST_ID, |
| 9872 | .model_id = ST_M25P40, |
| 9873 | .total_size = 512, |
| 9874 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9875 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 9876 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9877 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9878 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9879 | .block_erasers = |
| 9880 | { |
| 9881 | { |
| 9882 | .eraseblocks = { {64 * 1024, 8} }, |
| 9883 | .block_erase = spi_block_erase_d8, |
| 9884 | }, { |
| 9885 | .eraseblocks = { {512 * 1024, 1} }, |
| 9886 | .block_erase = spi_block_erase_c7, |
| 9887 | } |
| 9888 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9889 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9890 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9891 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9892 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9893 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9894 | }, |
| 9895 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9896 | { |
| 9897 | .vendor = "ST", |
| 9898 | .name = "M25P40-old", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9899 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 9900 | .manufacture_id = 0, /* Not used. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9901 | .model_id = ST_M25P40_RES, |
| 9902 | .total_size = 512, |
| 9903 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9904 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9905 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 9906 | .probe = probe_spi_res1, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9907 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9908 | .block_erasers = |
| 9909 | { |
| 9910 | { |
| 9911 | .eraseblocks = { {64 * 1024, 8} }, |
| 9912 | .block_erase = spi_block_erase_d8, |
| 9913 | }, { |
| 9914 | .eraseblocks = { {512 * 1024, 1} }, |
| 9915 | .block_erase = spi_block_erase_c7, |
| 9916 | } |
| 9917 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9918 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9919 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9920 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9921 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9922 | }, |
| 9923 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9924 | { |
| 9925 | .vendor = "ST", |
| 9926 | .name = "M25P80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9927 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9928 | .manufacture_id = ST_ID, |
| 9929 | .model_id = ST_M25P80, |
| 9930 | .total_size = 1024, |
| 9931 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9932 | .feature_bits = FEATURE_WRSR_WREN, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 9933 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9934 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9935 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9936 | .block_erasers = |
| 9937 | { |
| 9938 | { |
| 9939 | .eraseblocks = { {64 * 1024, 16} }, |
| 9940 | .block_erase = spi_block_erase_d8, |
| 9941 | }, { |
| 9942 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9943 | .block_erase = spi_block_erase_c7, |
| 9944 | } |
| 9945 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9946 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9947 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9948 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9949 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9950 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9951 | }, |
| 9952 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9953 | { |
| 9954 | .vendor = "ST", |
| 9955 | .name = "M25P16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9956 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9957 | .manufacture_id = ST_ID, |
| 9958 | .model_id = ST_M25P16, |
| 9959 | .total_size = 2048, |
| 9960 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9961 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 9962 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9963 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9964 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9965 | .block_erasers = |
| 9966 | { |
| 9967 | { |
| 9968 | .eraseblocks = { {64 * 1024, 32} }, |
| 9969 | .block_erase = spi_block_erase_d8, |
| 9970 | }, { |
| 9971 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9972 | .block_erase = spi_block_erase_c7, |
| 9973 | } |
| 9974 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9975 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9976 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9977 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9978 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9979 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9980 | }, |
| 9981 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9982 | { |
| 9983 | .vendor = "ST", |
| 9984 | .name = "M25P32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9985 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9986 | .manufacture_id = ST_ID, |
| 9987 | .model_id = ST_M25P32, |
| 9988 | .total_size = 4096, |
| 9989 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9990 | .feature_bits = FEATURE_WRSR_WREN, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 9991 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9992 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9993 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9994 | .block_erasers = |
| 9995 | { |
| 9996 | { |
| 9997 | .eraseblocks = { {64 * 1024, 64} }, |
| 9998 | .block_erase = spi_block_erase_d8, |
| 9999 | }, { |
| 10000 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10001 | .block_erase = spi_block_erase_c7, |
| 10002 | } |
| 10003 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10004 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10005 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10006 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10007 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10008 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10009 | }, |
| 10010 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10011 | { |
| 10012 | .vendor = "ST", |
| 10013 | .name = "M25P64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10014 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10015 | .manufacture_id = ST_ID, |
| 10016 | .model_id = ST_M25P64, |
| 10017 | .total_size = 8192, |
| 10018 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10019 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 10020 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10021 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10022 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10023 | .block_erasers = |
| 10024 | { |
| 10025 | { |
| 10026 | .eraseblocks = { {64 * 1024, 128} }, |
| 10027 | .block_erase = spi_block_erase_d8, |
| 10028 | }, { |
| 10029 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10030 | .block_erase = spi_block_erase_c7, |
| 10031 | } |
| 10032 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10033 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10034 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10035 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10036 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10037 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10038 | }, |
| 10039 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10040 | { |
| 10041 | .vendor = "ST", |
| 10042 | .name = "M25P128", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10043 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10044 | .manufacture_id = ST_ID, |
| 10045 | .model_id = ST_M25P128, |
| 10046 | .total_size = 16384, |
| 10047 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10048 | .feature_bits = FEATURE_WRSR_WREN, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 10049 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10050 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10051 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10052 | .block_erasers = |
| 10053 | { |
| 10054 | { |
| 10055 | .eraseblocks = { {256 * 1024, 64} }, |
| 10056 | .block_erase = spi_block_erase_d8, |
| 10057 | }, { |
| 10058 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 10059 | .block_erase = spi_block_erase_c7, |
| 10060 | } |
| 10061 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10062 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10063 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10064 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10065 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10066 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10067 | }, |
| 10068 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10069 | { |
| 10070 | .vendor = "ST", |
Carl Worth | d1dd72c | 2011-03-06 18:45:40 +0000 | [diff] [blame] | 10071 | .name = "M25PX16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10072 | .bustype = BUS_SPI, |
Carl Worth | d1dd72c | 2011-03-06 18:45:40 +0000 | [diff] [blame] | 10073 | .manufacture_id = ST_ID, |
| 10074 | .model_id = ST_M25PX16, |
| 10075 | .total_size = 2048, |
| 10076 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 10077 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10078 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl Worth | d1dd72c | 2011-03-06 18:45:40 +0000 | [diff] [blame] | 10079 | .tested = TEST_OK_PREW, |
| 10080 | .probe = probe_spi_rdid, |
| 10081 | .probe_timing = TIMING_ZERO, |
| 10082 | .block_erasers = |
| 10083 | { |
| 10084 | { |
| 10085 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 10086 | .block_erase = spi_block_erase_20, |
| 10087 | }, { |
| 10088 | .eraseblocks = { {64 * 1024, 32} }, |
| 10089 | .block_erase = spi_block_erase_d8, |
| 10090 | }, { |
| 10091 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10092 | .block_erase = spi_block_erase_c7, |
| 10093 | } |
| 10094 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10095 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl Worth | d1dd72c | 2011-03-06 18:45:40 +0000 | [diff] [blame] | 10096 | .unlock = spi_disable_blockprotect, |
| 10097 | .write = spi_chip_write_256, |
| 10098 | .read = spi_chip_read, |
| 10099 | }, |
| 10100 | |
| 10101 | { |
| 10102 | .vendor = "ST", |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 10103 | .name = "M25PX32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10104 | .bustype = BUS_SPI, |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 10105 | .manufacture_id = ST_ID, |
| 10106 | .model_id = ST_M25PX32, |
| 10107 | .total_size = 4096, |
| 10108 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10109 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10110 | .tested = TEST_OK_PRE, |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 10111 | .probe = probe_spi_rdid, |
| 10112 | .probe_timing = TIMING_ZERO, |
| 10113 | .block_erasers = |
| 10114 | { |
| 10115 | { |
| 10116 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 10117 | .block_erase = spi_block_erase_20, |
| 10118 | }, { |
| 10119 | .eraseblocks = { {64 * 1024, 64} }, |
| 10120 | .block_erase = spi_block_erase_d8, |
| 10121 | }, { |
| 10122 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10123 | .block_erase = spi_block_erase_c7, |
| 10124 | } |
| 10125 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10126 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 10127 | .unlock = spi_disable_blockprotect, |
| 10128 | .write = spi_chip_write_256, |
| 10129 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10130 | .voltage = {2700, 3600}, |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 10131 | }, |
| 10132 | |
| 10133 | { |
| 10134 | .vendor = "ST", |
| 10135 | .name = "M25PX64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10136 | .bustype = BUS_SPI, |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 10137 | .manufacture_id = ST_ID, |
| 10138 | .model_id = ST_M25PX64, |
| 10139 | .total_size = 8192, |
| 10140 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10141 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10142 | .tested = TEST_OK_PRE, |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 10143 | .probe = probe_spi_rdid, |
| 10144 | .probe_timing = TIMING_ZERO, |
| 10145 | .block_erasers = |
| 10146 | { |
| 10147 | { |
| 10148 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 10149 | .block_erase = spi_block_erase_20, |
| 10150 | }, { |
| 10151 | .eraseblocks = { {64 * 1024, 128} }, |
| 10152 | .block_erase = spi_block_erase_d8, |
| 10153 | }, { |
| 10154 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10155 | .block_erase = spi_block_erase_c7, |
| 10156 | } |
| 10157 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10158 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 10159 | .unlock = spi_disable_blockprotect, |
| 10160 | .write = spi_chip_write_256, |
| 10161 | .read = spi_chip_read, |
| 10162 | }, |
| 10163 | |
| 10164 | { |
| 10165 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10166 | .name = "M29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10167 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10168 | .manufacture_id = ST_ID, |
| 10169 | .model_id = ST_M29F002B, |
| 10170 | .total_size = 256, |
| 10171 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10172 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10173 | .tested = TEST_UNTESTED, |
| 10174 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10175 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10176 | .block_erasers = |
| 10177 | { |
| 10178 | { |
| 10179 | .eraseblocks = { |
| 10180 | {16 * 1024, 1}, |
| 10181 | {8 * 1024, 2}, |
| 10182 | {32 * 1024, 1}, |
| 10183 | {64 * 1024, 3}, |
| 10184 | }, |
| 10185 | .block_erase = erase_sector_jedec, |
| 10186 | }, { |
| 10187 | .eraseblocks = { {256 * 1024, 1} }, |
| 10188 | .block_erase = erase_chip_block_jedec, |
| 10189 | } |
| 10190 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10191 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10192 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10193 | .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] | 10194 | }, |
| 10195 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10196 | { |
| 10197 | .vendor = "ST", |
| 10198 | .name = "M29F002T/NT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10199 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10200 | .manufacture_id = ST_ID, |
| 10201 | .model_id = ST_M29F002T, |
| 10202 | .total_size = 256, |
| 10203 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10204 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 10205 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10206 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10207 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10208 | .block_erasers = |
| 10209 | { |
| 10210 | { |
| 10211 | .eraseblocks = { |
| 10212 | {64 * 1024, 3}, |
| 10213 | {32 * 1024, 1}, |
| 10214 | {8 * 1024, 2}, |
| 10215 | {16 * 1024, 1}, |
| 10216 | }, |
| 10217 | .block_erase = erase_sector_jedec, |
| 10218 | }, { |
| 10219 | .eraseblocks = { {256 * 1024, 1} }, |
| 10220 | .block_erase = erase_chip_block_jedec, |
| 10221 | } |
| 10222 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10223 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10224 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10225 | .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] | 10226 | }, |
| 10227 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10228 | { |
| 10229 | .vendor = "ST", |
| 10230 | .name = "M29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10231 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10232 | .manufacture_id = ST_ID, |
| 10233 | .model_id = ST_M29F040B, |
| 10234 | .total_size = 512, |
| 10235 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10236 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 10237 | .tested = TEST_UNTESTED, |
| 10238 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 10239 | .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10240 | .block_erasers = |
| 10241 | { |
| 10242 | { |
| 10243 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10244 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10245 | }, { |
| 10246 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10247 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10248 | } |
| 10249 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10250 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10251 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10252 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10253 | }, |
| 10254 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10255 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10256 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10257 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 10258 | .name = "M29F400BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10259 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 10260 | .manufacture_id = ST_ID, |
| 10261 | .model_id = ST_M29F400BB, |
| 10262 | .total_size = 512, |
| 10263 | .page_size = 64 * 1024, |
| 10264 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 10265 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 10266 | .probe = probe_m29f400bt, |
| 10267 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
| 10268 | .block_erasers = |
| 10269 | { |
| 10270 | { |
| 10271 | .eraseblocks = { |
| 10272 | {16 * 1024, 1}, |
| 10273 | {8 * 1024, 2}, |
| 10274 | {32 * 1024, 1}, |
| 10275 | {64 * 1024, 7}, |
| 10276 | }, |
| 10277 | .block_erase = block_erase_m29f400bt, |
| 10278 | }, { |
| 10279 | .eraseblocks = { {512 * 1024, 1} }, |
| 10280 | .block_erase = block_erase_chip_m29f400bt, |
| 10281 | } |
| 10282 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 10283 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 10284 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10285 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 10286 | }, |
| 10287 | { |
| 10288 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 10289 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10290 | .name = "M29F400BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10291 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10292 | .manufacture_id = ST_ID, |
| 10293 | .model_id = ST_M29F400BT, |
| 10294 | .total_size = 512, |
| 10295 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10296 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10297 | .tested = TEST_UNTESTED, |
| 10298 | .probe = probe_m29f400bt, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 10299 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10300 | .block_erasers = |
| 10301 | { |
| 10302 | { |
| 10303 | .eraseblocks = { |
| 10304 | {64 * 1024, 7}, |
| 10305 | {32 * 1024, 1}, |
| 10306 | {8 * 1024, 2}, |
| 10307 | {16 * 1024, 1}, |
| 10308 | }, |
| 10309 | .block_erase = block_erase_m29f400bt, |
| 10310 | }, { |
| 10311 | .eraseblocks = { {512 * 1024, 1} }, |
| 10312 | .block_erase = block_erase_chip_m29f400bt, |
| 10313 | } |
| 10314 | }, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 10315 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10316 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10317 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10318 | }, |
| 10319 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10320 | { |
| 10321 | .vendor = "ST", |
| 10322 | .name = "M29W010B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10323 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10324 | .manufacture_id = ST_ID, |
| 10325 | .model_id = ST_M29W010B, |
| 10326 | .total_size = 128, |
| 10327 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10328 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10329 | .tested = TEST_UNTESTED, |
| 10330 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10331 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10332 | .block_erasers = |
| 10333 | { |
| 10334 | { |
| 10335 | .eraseblocks = { {16 * 1024, 8}, }, |
| 10336 | .block_erase = erase_sector_jedec, |
| 10337 | }, { |
| 10338 | .eraseblocks = { {128 * 1024, 1} }, |
| 10339 | .block_erase = erase_chip_block_jedec, |
| 10340 | } |
| 10341 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10342 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10343 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10344 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10345 | }, |
| 10346 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10347 | { |
| 10348 | .vendor = "ST", |
| 10349 | .name = "M29W040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10350 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10351 | .manufacture_id = ST_ID, |
| 10352 | .model_id = ST_M29W040B, |
| 10353 | .total_size = 512, |
| 10354 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10355 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10356 | .tested = TEST_UNTESTED, |
| 10357 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10358 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10359 | .block_erasers = |
| 10360 | { |
| 10361 | { |
| 10362 | .eraseblocks = { {64 * 1024, 8}, }, |
| 10363 | .block_erase = erase_sector_jedec, |
| 10364 | }, { |
| 10365 | .eraseblocks = { {512 * 1024, 1} }, |
| 10366 | .block_erase = erase_chip_block_jedec, |
| 10367 | } |
| 10368 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10369 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10370 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10371 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10372 | }, |
| 10373 | |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 10374 | { |
| 10375 | .vendor = "ST", |
| 10376 | .name = "M29W512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10377 | .bustype = BUS_PARALLEL, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 10378 | .manufacture_id = ST_ID, |
| 10379 | .model_id = ST_M29W512B, |
| 10380 | .total_size = 64, |
| 10381 | .page_size = 64 * 1024, |
| 10382 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10383 | .tested = TEST_OK_PRE, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 10384 | .probe = probe_jedec, |
| 10385 | .probe_timing = TIMING_ZERO, |
| 10386 | .block_erasers = |
| 10387 | { |
| 10388 | { |
| 10389 | .eraseblocks = { {64 * 1024, 1} }, |
| 10390 | .block_erase = erase_chip_block_jedec, |
| 10391 | } |
| 10392 | }, |
| 10393 | .write = write_jedec_1, |
| 10394 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10395 | .voltage = {2700, 3600}, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 10396 | }, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 10397 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10398 | { |
| 10399 | .vendor = "ST", |
| 10400 | .name = "M50FLW040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10401 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10402 | .manufacture_id = ST_ID, |
| 10403 | .model_id = ST_M50FLW040A, |
| 10404 | .total_size = 512, |
| 10405 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10406 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10407 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10408 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 10409 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10410 | .block_erasers = |
| 10411 | { |
| 10412 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 10413 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10414 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 10415 | {64 * 1024, 5}, /* block */ |
| 10416 | {4 * 1024, 16}, /* sector */ |
| 10417 | {4 * 1024, 16}, /* sector */ |
| 10418 | }, |
| 10419 | .block_erase = NULL, |
| 10420 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10421 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10422 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10423 | } |
| 10424 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10425 | .unlock = unlock_stm50flw0x0x, |
| 10426 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10427 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10428 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10429 | }, |
| 10430 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10431 | { |
| 10432 | .vendor = "ST", |
| 10433 | .name = "M50FLW040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10434 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10435 | .manufacture_id = ST_ID, |
| 10436 | .model_id = ST_M50FLW040B, |
| 10437 | .total_size = 512, |
| 10438 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10439 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10440 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10441 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 10442 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10443 | .block_erasers = |
| 10444 | { |
| 10445 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 10446 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10447 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 10448 | {4 * 1024, 16}, /* sector */ |
| 10449 | {64 * 1024, 5}, /* block */ |
| 10450 | {4 * 1024, 16}, /* sector */ |
| 10451 | }, |
| 10452 | .block_erase = NULL, |
| 10453 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10454 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10455 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10456 | } |
| 10457 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10458 | .unlock = unlock_stm50flw0x0x, |
| 10459 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10460 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10461 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10462 | }, |
| 10463 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10464 | { |
| 10465 | .vendor = "ST", |
| 10466 | .name = "M50FLW080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10467 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10468 | .manufacture_id = ST_ID, |
| 10469 | .model_id = ST_M50FLW080A, |
| 10470 | .total_size = 1024, |
| 10471 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10472 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10473 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10474 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 10475 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10476 | .block_erasers = |
| 10477 | { |
| 10478 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 10479 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10480 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 10481 | {64 * 1024, 13}, /* block */ |
| 10482 | {4 * 1024, 16}, /* sector */ |
| 10483 | {4 * 1024, 16}, /* sector */ |
| 10484 | }, |
| 10485 | .block_erase = NULL, |
| 10486 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10487 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10488 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10489 | } |
| 10490 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10491 | .unlock = unlock_stm50flw0x0x, |
| 10492 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10493 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10494 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10495 | }, |
| 10496 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10497 | { |
| 10498 | .vendor = "ST", |
| 10499 | .name = "M50FLW080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10500 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10501 | .manufacture_id = ST_ID, |
| 10502 | .model_id = ST_M50FLW080B, |
| 10503 | .total_size = 1024, |
| 10504 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10505 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10506 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10507 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 10508 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10509 | .block_erasers = |
| 10510 | { |
| 10511 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 10512 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10513 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 10514 | {4 * 1024, 16}, /* sector */ |
| 10515 | {64 * 1024, 13}, /* block */ |
| 10516 | {4 * 1024, 16}, /* sector */ |
| 10517 | }, |
| 10518 | .block_erase = NULL, |
| 10519 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10520 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10521 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10522 | } |
| 10523 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10524 | .unlock = unlock_stm50flw0x0x, |
| 10525 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10526 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10527 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10528 | }, |
| 10529 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10530 | { |
| 10531 | .vendor = "ST", |
| 10532 | .name = "M50FW002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10533 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10534 | .manufacture_id = ST_ID, |
| 10535 | .model_id = ST_M50FW002, |
| 10536 | .total_size = 256, |
| 10537 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10538 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10539 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10540 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 10541 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10542 | .block_erasers = |
| 10543 | { |
| 10544 | { |
| 10545 | .eraseblocks = { |
| 10546 | {64 * 1024, 3}, |
| 10547 | {32 * 1024, 1}, |
| 10548 | {8 * 1024, 2}, |
| 10549 | {16 * 1024, 1}, |
| 10550 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10551 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10552 | } |
| 10553 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10554 | .unlock = unlock_stm50flw0x0x, |
| 10555 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10556 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10557 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10558 | }, |
| 10559 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10560 | { |
| 10561 | .vendor = "ST", |
| 10562 | .name = "M50FW016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10563 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10564 | .manufacture_id = ST_ID, |
| 10565 | .model_id = ST_M50FW016, |
| 10566 | .total_size = 2048, |
| 10567 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10568 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10569 | .tested = TEST_UNTESTED, |
| 10570 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 10571 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10572 | .block_erasers = |
| 10573 | { |
| 10574 | { |
| 10575 | .eraseblocks = { {64 * 1024, 32}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10576 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10577 | } |
| 10578 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10579 | .unlock = unlock_stm50flw0x0x, |
| 10580 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10581 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10582 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10583 | }, |
| 10584 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10585 | { |
| 10586 | .vendor = "ST", |
| 10587 | .name = "M50FW040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10588 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10589 | .manufacture_id = ST_ID, |
| 10590 | .model_id = ST_M50FW040, |
| 10591 | .total_size = 512, |
| 10592 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10593 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10594 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10595 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 10596 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10597 | .block_erasers = |
| 10598 | { |
| 10599 | { |
| 10600 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10601 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10602 | } |
| 10603 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10604 | .unlock = unlock_stm50flw0x0x, |
| 10605 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10606 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10607 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10608 | }, |
| 10609 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10610 | { |
| 10611 | .vendor = "ST", |
| 10612 | .name = "M50FW080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10613 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10614 | .manufacture_id = ST_ID, |
| 10615 | .model_id = ST_M50FW080, |
| 10616 | .total_size = 1024, |
| 10617 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10618 | .feature_bits = FEATURE_REGISTERMAP, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 10619 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10620 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 10621 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10622 | .block_erasers = |
| 10623 | { |
| 10624 | { |
| 10625 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10626 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10627 | } |
| 10628 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10629 | .unlock = unlock_stm50flw0x0x, |
| 10630 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10631 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10632 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10633 | }, |
| 10634 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10635 | { |
| 10636 | .vendor = "ST", |
| 10637 | .name = "M50LPW116", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10638 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10639 | .manufacture_id = ST_ID, |
| 10640 | .model_id = ST_M50LPW116, |
| 10641 | .total_size = 2048, |
| 10642 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10643 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10644 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10645 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10646 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10647 | .block_erasers = |
| 10648 | { |
| 10649 | { |
| 10650 | .eraseblocks = { |
| 10651 | {4 * 1024, 16}, |
| 10652 | {64 * 1024, 30}, |
| 10653 | {32 * 1024, 1}, |
| 10654 | {8 * 1024, 2}, |
| 10655 | {16 * 1024, 1}, |
| 10656 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10657 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10658 | } |
| 10659 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10660 | .unlock = unlock_stm50flw0x0x, |
| 10661 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10662 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10663 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10664 | }, |
| 10665 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10666 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10667 | .vendor = "SyncMOS/MoselVitelic", |
| 10668 | .name = "{F,S,V}29C51001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10669 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10670 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10671 | .model_id = SM_MVC_29C51001B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10672 | .total_size = 128, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10673 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10674 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10675 | .tested = TEST_UNTESTED, |
| 10676 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10677 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10678 | .block_erasers = |
| 10679 | { |
| 10680 | { |
| 10681 | .eraseblocks = { {512, 256} }, |
| 10682 | .block_erase = erase_sector_jedec, |
| 10683 | }, { |
| 10684 | .eraseblocks = { {128 * 1024, 1} }, |
| 10685 | .block_erase = erase_chip_block_jedec, |
| 10686 | }, |
| 10687 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10688 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10689 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10690 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10691 | }, |
| 10692 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10693 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10694 | .vendor = "SyncMOS/MoselVitelic", |
| 10695 | .name = "{F,S,V}29C51001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10696 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10697 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10698 | .model_id = SM_MVC_29C51001T, |
| 10699 | .total_size = 128, |
| 10700 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10701 | .feature_bits = FEATURE_EITHER_RESET, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10702 | .tested = TEST_UNTESTED, |
| 10703 | .probe = probe_jedec, |
| 10704 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 10705 | .block_erasers = |
| 10706 | { |
| 10707 | { |
| 10708 | .eraseblocks = { {512, 256} }, |
| 10709 | .block_erase = erase_sector_jedec, |
| 10710 | }, { |
| 10711 | .eraseblocks = { {128 * 1024, 1} }, |
| 10712 | .block_erase = erase_chip_block_jedec, |
| 10713 | }, |
| 10714 | }, |
| 10715 | .write = write_jedec_1, |
| 10716 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10717 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10718 | }, |
| 10719 | |
| 10720 | { |
| 10721 | .vendor = "SyncMOS/MoselVitelic", |
| 10722 | .name = "{F,S,V}29C51002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10723 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10724 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10725 | .model_id = SM_MVC_29C51002B, |
| 10726 | .total_size = 256, |
| 10727 | .page_size = 512, |
| 10728 | .feature_bits = FEATURE_EITHER_RESET, |
| 10729 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10730 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10731 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10732 | .block_erasers = |
| 10733 | { |
| 10734 | { |
| 10735 | .eraseblocks = { {512, 512} }, |
| 10736 | .block_erase = erase_sector_jedec, |
| 10737 | }, { |
| 10738 | .eraseblocks = { {256 * 1024, 1} }, |
| 10739 | .block_erase = erase_chip_block_jedec, |
| 10740 | }, |
| 10741 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10742 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10743 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10744 | }, |
| 10745 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10746 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10747 | .vendor = "SyncMOS/MoselVitelic", |
| 10748 | .name = "{F,S,V}29C51002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10749 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10750 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10751 | .model_id = SM_MVC_29C51002T, |
| 10752 | .total_size = 256, |
| 10753 | .page_size = 512, |
| 10754 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 10755 | .tested = TEST_OK_PREW, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10756 | .probe = probe_jedec, |
| 10757 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 10758 | .block_erasers = |
| 10759 | { |
| 10760 | { |
| 10761 | .eraseblocks = { {512, 512} }, |
| 10762 | .block_erase = erase_sector_jedec, |
| 10763 | }, { |
| 10764 | .eraseblocks = { {256 * 1024, 1} }, |
| 10765 | .block_erase = erase_chip_block_jedec, |
| 10766 | }, |
| 10767 | }, |
| 10768 | .write = write_jedec_1, |
| 10769 | .read = read_memmapped, |
| 10770 | }, |
| 10771 | |
| 10772 | { |
| 10773 | .vendor = "SyncMOS/MoselVitelic", |
| 10774 | .name = "{F,S,V}29C51004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10775 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10776 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10777 | .model_id = SM_MVC_29C51004B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10778 | .total_size = 512, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10779 | .page_size = 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10780 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10781 | .tested = TEST_UNTESTED, |
| 10782 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10783 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10784 | .block_erasers = |
| 10785 | { |
| 10786 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10787 | .eraseblocks = { {1024, 512} }, |
| 10788 | .block_erase = erase_sector_jedec, |
| 10789 | }, { |
| 10790 | .eraseblocks = { {512 * 1024, 1} }, |
| 10791 | .block_erase = erase_chip_block_jedec, |
| 10792 | }, |
| 10793 | }, |
| 10794 | .write = write_jedec_1, |
| 10795 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10796 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10797 | }, |
| 10798 | |
| 10799 | { |
| 10800 | .vendor = "SyncMOS/MoselVitelic", |
| 10801 | .name = "{F,S,V}29C51004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10802 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10803 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10804 | .model_id = SM_MVC_29C51004T, |
| 10805 | .total_size = 512, |
| 10806 | .page_size = 1024, |
| 10807 | .feature_bits = FEATURE_EITHER_RESET, |
| 10808 | .tested = TEST_UNTESTED, |
| 10809 | .probe = probe_jedec, |
| 10810 | .probe_timing = TIMING_ZERO, |
| 10811 | .block_erasers = |
| 10812 | { |
| 10813 | { |
| 10814 | .eraseblocks = { {1024, 512} }, |
| 10815 | .block_erase = erase_sector_jedec, |
| 10816 | }, { |
| 10817 | .eraseblocks = { {512 * 1024, 1} }, |
| 10818 | .block_erase = erase_chip_block_jedec, |
| 10819 | }, |
| 10820 | }, |
| 10821 | .write = write_jedec_1, |
| 10822 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10823 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10824 | }, |
| 10825 | |
| 10826 | { |
| 10827 | .vendor = "SyncMOS/MoselVitelic", |
| 10828 | .name = "{S,V}29C31004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10829 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10830 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10831 | .model_id = SM_MVC_29C31004B, |
| 10832 | .total_size = 512, |
| 10833 | .page_size = 1024, |
| 10834 | .feature_bits = FEATURE_EITHER_RESET, |
| 10835 | .tested = TEST_UNTESTED, |
| 10836 | .probe = probe_jedec, |
| 10837 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 10838 | .block_erasers = |
| 10839 | { |
| 10840 | { |
| 10841 | .eraseblocks = { {1024, 512} }, |
| 10842 | .block_erase = erase_sector_jedec, |
| 10843 | }, { |
| 10844 | .eraseblocks = { {512 * 1024, 1} }, |
| 10845 | .block_erase = erase_chip_block_jedec, |
| 10846 | }, |
| 10847 | }, |
| 10848 | .write = write_jedec_1, |
| 10849 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10850 | .voltage = {3000, 3600}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10851 | }, |
| 10852 | |
| 10853 | { |
| 10854 | .vendor = "SyncMOS/MoselVitelic", |
| 10855 | .name = "{S,V}29C31004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10856 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 10857 | .manufacture_id = SYNCMOS_MVC_ID, |
| 10858 | .model_id = SM_MVC_29C31004T, |
| 10859 | .total_size = 512, |
| 10860 | .page_size = 1024, |
| 10861 | .feature_bits = FEATURE_EITHER_RESET, |
| 10862 | .tested = TEST_UNTESTED, |
| 10863 | .probe = probe_jedec, |
| 10864 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 10865 | .block_erasers = |
| 10866 | { |
| 10867 | { |
| 10868 | .eraseblocks = { {1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10869 | .block_erase = erase_sector_jedec, |
| 10870 | }, { |
| 10871 | .eraseblocks = { {512 * 1024, 1} }, |
| 10872 | .block_erase = erase_chip_block_jedec, |
| 10873 | }, |
| 10874 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10875 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10876 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10877 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10878 | }, |
| 10879 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10880 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 10881 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 10882 | .name = "TMS29F002RB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10883 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 10884 | .manufacture_id = TI_OLD_ID, |
| 10885 | .model_id = TI_TMS29F002RB, |
| 10886 | .total_size = 256, |
| 10887 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10888 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 10889 | .tested = TEST_UNTESTED, |
| 10890 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10891 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 10892 | .block_erasers = |
| 10893 | { |
| 10894 | { |
| 10895 | .eraseblocks = { |
| 10896 | {16 * 1024, 1}, |
| 10897 | {8 * 1024, 2}, |
| 10898 | {32 * 1024, 1}, |
| 10899 | {64 * 1024, 3}, |
| 10900 | }, |
| 10901 | .block_erase = erase_sector_jedec, |
| 10902 | }, { |
| 10903 | .eraseblocks = { {256 * 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 | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 10908 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10909 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 10910 | }, |
| 10911 | |
| 10912 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 10913 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 10914 | .name = "TMS29F002RT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10915 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 10916 | .manufacture_id = TI_OLD_ID, |
| 10917 | .model_id = TI_TMS29F002RT, |
| 10918 | .total_size = 256, |
| 10919 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10920 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +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 = { |
| 10928 | {64 * 1024, 3}, |
| 10929 | {32 * 1024, 1}, |
| 10930 | {8 * 1024, 2}, |
| 10931 | {16 * 1024, 1}, |
| 10932 | }, |
| 10933 | .block_erase = erase_sector_jedec, |
| 10934 | }, { |
| 10935 | .eraseblocks = { {256 * 1024, 1} }, |
| 10936 | .block_erase = erase_chip_block_jedec, |
| 10937 | }, |
| 10938 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10939 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 10940 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10941 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 10942 | }, |
| 10943 | |
| 10944 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10945 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 10946 | .name = "W25Q80.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10947 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 10948 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 10949 | .model_id = WINBOND_NEX_W25Q80_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 10950 | .total_size = 1024, |
| 10951 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 10952 | /* supports SFDP */ |
| 10953 | /* 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] | 10954 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 10955 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 10956 | .probe = probe_spi_rdid, |
| 10957 | .probe_timing = TIMING_ZERO, |
| 10958 | .block_erasers = |
| 10959 | { |
| 10960 | { |
| 10961 | .eraseblocks = { {4 * 1024, 256} }, |
| 10962 | .block_erase = spi_block_erase_20, |
| 10963 | }, { |
| 10964 | .eraseblocks = { {32 * 1024, 32} }, |
| 10965 | .block_erase = spi_block_erase_52, |
| 10966 | }, { |
| 10967 | .eraseblocks = { {64 * 1024, 16} }, |
| 10968 | .block_erase = spi_block_erase_d8, |
| 10969 | }, { |
| 10970 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10971 | .block_erase = spi_block_erase_60, |
| 10972 | }, { |
| 10973 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10974 | .block_erase = spi_block_erase_c7, |
| 10975 | } |
| 10976 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10977 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10978 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 10979 | .write = spi_chip_write_256, |
| 10980 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10981 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 10982 | }, |
| 10983 | |
| 10984 | { |
| 10985 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 10986 | .name = "W25Q16.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10987 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 10988 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 10989 | .model_id = WINBOND_NEX_W25Q16_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 10990 | .total_size = 2048, |
| 10991 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 10992 | /* supports SFDP */ |
| 10993 | /* 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] | 10994 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 10995 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 10996 | .probe = probe_spi_rdid, |
| 10997 | .probe_timing = TIMING_ZERO, |
| 10998 | .block_erasers = |
| 10999 | { |
| 11000 | { |
| 11001 | .eraseblocks = { {4 * 1024, 512} }, |
| 11002 | .block_erase = spi_block_erase_20, |
| 11003 | }, { |
| 11004 | .eraseblocks = { {32 * 1024, 64} }, |
| 11005 | .block_erase = spi_block_erase_52, |
| 11006 | }, { |
| 11007 | .eraseblocks = { {64 * 1024, 32} }, |
| 11008 | .block_erase = spi_block_erase_d8, |
| 11009 | }, { |
| 11010 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11011 | .block_erase = spi_block_erase_60, |
| 11012 | }, { |
| 11013 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11014 | .block_erase = spi_block_erase_c7, |
| 11015 | } |
| 11016 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11017 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11018 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11019 | .write = spi_chip_write_256, |
| 11020 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11021 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11022 | }, |
| 11023 | |
| 11024 | { |
| 11025 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11026 | .name = "W25Q32.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11027 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11028 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11029 | .model_id = WINBOND_NEX_W25Q32_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11030 | .total_size = 4096, |
| 11031 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11032 | /* supports SFDP */ |
| 11033 | /* 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] | 11034 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 11035 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11036 | .probe = probe_spi_rdid, |
| 11037 | .probe_timing = TIMING_ZERO, |
| 11038 | .block_erasers = |
| 11039 | { |
| 11040 | { |
| 11041 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11042 | .block_erase = spi_block_erase_20, |
| 11043 | }, { |
| 11044 | .eraseblocks = { {32 * 1024, 128} }, |
| 11045 | .block_erase = spi_block_erase_52, |
| 11046 | }, { |
| 11047 | .eraseblocks = { {64 * 1024, 64} }, |
| 11048 | .block_erase = spi_block_erase_d8, |
| 11049 | }, { |
| 11050 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11051 | .block_erase = spi_block_erase_60, |
| 11052 | }, { |
| 11053 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11054 | .block_erase = spi_block_erase_c7, |
| 11055 | } |
| 11056 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11057 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11058 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11059 | .write = spi_chip_write_256, |
| 11060 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11061 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11062 | }, |
| 11063 | |
| 11064 | { |
| 11065 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11066 | .name = "W25Q64.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11067 | .bustype = BUS_SPI, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 11068 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11069 | .model_id = WINBOND_NEX_W25Q64_V, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 11070 | .total_size = 8192, |
| 11071 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11072 | /* supports SFDP */ |
| 11073 | /* 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] | 11074 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 11075 | .tested = TEST_OK_PREW, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 11076 | .probe = probe_spi_rdid, |
| 11077 | .probe_timing = TIMING_ZERO, |
| 11078 | .block_erasers = |
| 11079 | { |
| 11080 | { |
| 11081 | .eraseblocks = { {4 * 1024, 2048} }, |
| 11082 | .block_erase = spi_block_erase_20, |
| 11083 | }, { |
| 11084 | .eraseblocks = { {32 * 1024, 256} }, |
| 11085 | .block_erase = spi_block_erase_52, |
| 11086 | }, { |
| 11087 | .eraseblocks = { {64 * 1024, 128} }, |
| 11088 | .block_erase = spi_block_erase_d8, |
| 11089 | }, { |
| 11090 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11091 | .block_erase = spi_block_erase_60, |
| 11092 | }, { |
| 11093 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11094 | .block_erase = spi_block_erase_c7, |
| 11095 | } |
| 11096 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11097 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11098 | .unlock = spi_disable_blockprotect, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 11099 | .write = spi_chip_write_256, |
| 11100 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11101 | .voltage = {2700, 3600}, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 11102 | }, |
| 11103 | |
| 11104 | { |
| 11105 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11106 | .name = "W25Q128.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11107 | .bustype = BUS_SPI, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 11108 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11109 | .model_id = WINBOND_NEX_W25Q128_V, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 11110 | .total_size = 16384, |
| 11111 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11112 | /* supports SFDP */ |
| 11113 | /* 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] | 11114 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 11115 | .tested = TEST_OK_PROBE, |
| 11116 | .probe = probe_spi_rdid, |
| 11117 | .probe_timing = TIMING_ZERO, |
| 11118 | .block_erasers = |
| 11119 | { |
| 11120 | { |
| 11121 | .eraseblocks = { {4 * 1024, 4096} }, |
| 11122 | .block_erase = spi_block_erase_20, |
| 11123 | }, { |
| 11124 | .eraseblocks = { {32 * 1024, 512} }, |
| 11125 | .block_erase = spi_block_erase_52, |
| 11126 | }, { |
| 11127 | .eraseblocks = { {64 * 1024, 256} }, |
| 11128 | .block_erase = spi_block_erase_d8, |
| 11129 | }, { |
| 11130 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 11131 | .block_erase = spi_block_erase_60, |
| 11132 | }, { |
| 11133 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 11134 | .block_erase = spi_block_erase_c7, |
| 11135 | } |
| 11136 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11137 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 11138 | .unlock = spi_disable_blockprotect, |
| 11139 | .write = spi_chip_write_256, |
| 11140 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11141 | .voltage = {2700, 3600}, |
| 11142 | }, |
| 11143 | |
| 11144 | { |
| 11145 | .vendor = "Winbond", |
| 11146 | .name = "W25Q20.W", |
| 11147 | .bustype = BUS_SPI, |
| 11148 | .manufacture_id = WINBOND_NEX_ID, |
| 11149 | .model_id = WINBOND_NEX_W25Q20_W, |
| 11150 | .total_size = 256, |
| 11151 | .page_size = 256, |
| 11152 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 11153 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11154 | .tested = TEST_UNTESTED, |
| 11155 | .probe = probe_spi_rdid, |
| 11156 | .probe_timing = TIMING_ZERO, |
| 11157 | .block_erasers = |
| 11158 | { |
| 11159 | { |
| 11160 | .eraseblocks = { {4 * 1024, 64} }, |
| 11161 | .block_erase = spi_block_erase_20, |
| 11162 | }, { |
| 11163 | .eraseblocks = { {32 * 1024, 8} }, |
| 11164 | .block_erase = spi_block_erase_52, |
| 11165 | }, { |
| 11166 | .eraseblocks = { {64 * 1024, 4} }, |
| 11167 | .block_erase = spi_block_erase_d8, |
| 11168 | }, { |
| 11169 | .eraseblocks = { {256 * 1024, 1} }, |
| 11170 | .block_erase = spi_block_erase_60, |
| 11171 | }, { |
| 11172 | .eraseblocks = { {256 * 1024, 1} }, |
| 11173 | .block_erase = spi_block_erase_c7, |
| 11174 | } |
| 11175 | }, |
| 11176 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11177 | .unlock = spi_disable_blockprotect, |
| 11178 | .write = spi_chip_write_256, |
| 11179 | .read = spi_chip_read, |
| 11180 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 11181 | }, |
| 11182 | |
| 11183 | { |
| 11184 | .vendor = "Winbond", |
| 11185 | .name = "W25Q40.W", |
| 11186 | .bustype = BUS_SPI, |
| 11187 | .manufacture_id = WINBOND_NEX_ID, |
| 11188 | .model_id = WINBOND_NEX_W25Q40_W, |
| 11189 | .total_size = 512, |
| 11190 | .page_size = 256, |
| 11191 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 11192 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11193 | .tested = TEST_UNTESTED, |
| 11194 | .probe = probe_spi_rdid, |
| 11195 | .probe_timing = TIMING_ZERO, |
| 11196 | .block_erasers = |
| 11197 | { |
| 11198 | { |
| 11199 | .eraseblocks = { {4 * 1024, 128} }, |
| 11200 | .block_erase = spi_block_erase_20, |
| 11201 | }, { |
| 11202 | .eraseblocks = { {32 * 1024, 16} }, |
| 11203 | .block_erase = spi_block_erase_52, |
| 11204 | }, { |
| 11205 | .eraseblocks = { {64 * 1024, 8} }, |
| 11206 | .block_erase = spi_block_erase_d8, |
| 11207 | }, { |
| 11208 | .eraseblocks = { {512 * 1024, 1} }, |
| 11209 | .block_erase = spi_block_erase_60, |
| 11210 | }, { |
| 11211 | .eraseblocks = { {512 * 1024, 1} }, |
| 11212 | .block_erase = spi_block_erase_c7, |
| 11213 | } |
| 11214 | }, |
| 11215 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11216 | .unlock = spi_disable_blockprotect, |
| 11217 | .write = spi_chip_write_256, |
| 11218 | .read = spi_chip_read, |
| 11219 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 11220 | }, |
| 11221 | |
| 11222 | { |
| 11223 | .vendor = "Winbond", |
| 11224 | .name = "W25Q80.W", |
| 11225 | .bustype = BUS_SPI, |
| 11226 | .manufacture_id = WINBOND_NEX_ID, |
| 11227 | .model_id = WINBOND_NEX_W25Q80_W, |
| 11228 | .total_size = 1024, |
| 11229 | .page_size = 256, |
| 11230 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 11231 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11232 | .tested = TEST_UNTESTED, |
| 11233 | .probe = probe_spi_rdid, |
| 11234 | .probe_timing = TIMING_ZERO, |
| 11235 | .block_erasers = |
| 11236 | { |
| 11237 | { |
| 11238 | .eraseblocks = { {4 * 1024, 256} }, |
| 11239 | .block_erase = spi_block_erase_20, |
| 11240 | }, { |
| 11241 | .eraseblocks = { {32 * 1024, 32} }, |
| 11242 | .block_erase = spi_block_erase_52, |
| 11243 | }, { |
| 11244 | .eraseblocks = { {64 * 1024, 16} }, |
| 11245 | .block_erase = spi_block_erase_d8, |
| 11246 | }, { |
| 11247 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 11248 | .block_erase = spi_block_erase_60, |
| 11249 | }, { |
| 11250 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 11251 | .block_erase = spi_block_erase_c7, |
| 11252 | } |
| 11253 | }, |
| 11254 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11255 | .unlock = spi_disable_blockprotect, |
| 11256 | .write = spi_chip_write_256, |
| 11257 | .read = spi_chip_read, |
| 11258 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 11259 | }, |
| 11260 | |
| 11261 | { |
| 11262 | .vendor = "Winbond", |
| 11263 | .name = "W25Q16.W", |
| 11264 | .bustype = BUS_SPI, |
| 11265 | .manufacture_id = WINBOND_NEX_ID, |
| 11266 | .model_id = WINBOND_NEX_W25Q16_W, |
| 11267 | .total_size = 2048, |
| 11268 | .page_size = 256, |
| 11269 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 11270 | /* QPI enable 0x38, disable 0xFF */ |
| 11271 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 11272 | .tested = TEST_UNTESTED, |
| 11273 | .probe = probe_spi_rdid, |
| 11274 | .probe_timing = TIMING_ZERO, |
| 11275 | .block_erasers = |
| 11276 | { |
| 11277 | { |
| 11278 | .eraseblocks = { {4 * 1024, 512} }, |
| 11279 | .block_erase = spi_block_erase_20, |
| 11280 | }, { |
| 11281 | .eraseblocks = { {32 * 1024, 64} }, |
| 11282 | .block_erase = spi_block_erase_52, |
| 11283 | }, { |
| 11284 | .eraseblocks = { {64 * 1024, 32} }, |
| 11285 | .block_erase = spi_block_erase_d8, |
| 11286 | }, { |
| 11287 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11288 | .block_erase = spi_block_erase_60, |
| 11289 | }, { |
| 11290 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11291 | .block_erase = spi_block_erase_c7, |
| 11292 | } |
| 11293 | }, |
| 11294 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11295 | .unlock = spi_disable_blockprotect, |
| 11296 | .write = spi_chip_write_256, |
| 11297 | .read = spi_chip_read, |
| 11298 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 11299 | }, |
| 11300 | |
| 11301 | { |
| 11302 | .vendor = "Winbond", |
| 11303 | .name = "W25Q32.W", |
| 11304 | .bustype = BUS_SPI, |
| 11305 | .manufacture_id = WINBOND_NEX_ID, |
| 11306 | .model_id = WINBOND_NEX_W25Q32_W, |
| 11307 | .total_size = 4096, |
| 11308 | .page_size = 256, |
| 11309 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 11310 | /* QPI enable 0x38, disable 0xFF */ |
| 11311 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 11312 | .tested = TEST_OK_PREW, |
| 11313 | .probe = probe_spi_rdid, |
| 11314 | .probe_timing = TIMING_ZERO, |
| 11315 | .block_erasers = |
| 11316 | { |
| 11317 | { |
| 11318 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11319 | .block_erase = spi_block_erase_20, |
| 11320 | }, { |
| 11321 | .eraseblocks = { {32 * 1024, 128} }, |
| 11322 | .block_erase = spi_block_erase_52, |
| 11323 | }, { |
| 11324 | .eraseblocks = { {64 * 1024, 64} }, |
| 11325 | .block_erase = spi_block_erase_d8, |
| 11326 | }, { |
| 11327 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11328 | .block_erase = spi_block_erase_60, |
| 11329 | }, { |
| 11330 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11331 | .block_erase = spi_block_erase_c7, |
| 11332 | } |
| 11333 | }, |
| 11334 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11335 | .unlock = spi_disable_blockprotect, |
| 11336 | .write = spi_chip_write_256, |
| 11337 | .read = spi_chip_read, |
| 11338 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 11339 | }, |
| 11340 | |
| 11341 | { |
| 11342 | .vendor = "Winbond", |
| 11343 | .name = "W25Q64.W", |
| 11344 | .bustype = BUS_SPI, |
| 11345 | .manufacture_id = WINBOND_NEX_ID, |
| 11346 | .model_id = WINBOND_NEX_W25Q64_W, |
| 11347 | .total_size = 8192, |
| 11348 | .page_size = 256, |
| 11349 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 11350 | /* QPI enable 0x38, disable 0xFF */ |
| 11351 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 11352 | .tested = TEST_UNTESTED, |
| 11353 | .probe = probe_spi_rdid, |
| 11354 | .probe_timing = TIMING_ZERO, |
| 11355 | .block_erasers = |
| 11356 | { |
| 11357 | { |
| 11358 | .eraseblocks = { {4 * 1024, 2048} }, |
| 11359 | .block_erase = spi_block_erase_20, |
| 11360 | }, { |
| 11361 | .eraseblocks = { {32 * 1024, 256} }, |
| 11362 | .block_erase = spi_block_erase_52, |
| 11363 | }, { |
| 11364 | .eraseblocks = { {64 * 1024, 128} }, |
| 11365 | .block_erase = spi_block_erase_d8, |
| 11366 | }, { |
| 11367 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11368 | .block_erase = spi_block_erase_60, |
| 11369 | }, { |
| 11370 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11371 | .block_erase = spi_block_erase_c7, |
| 11372 | } |
| 11373 | }, |
| 11374 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11375 | .unlock = spi_disable_blockprotect, |
| 11376 | .write = spi_chip_write_256, |
| 11377 | .read = spi_chip_read, |
| 11378 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 11379 | }, |
| 11380 | |
| 11381 | { |
| 11382 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 11383 | .name = "W25X10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11384 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11385 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11386 | .model_id = WINBOND_NEX_W25X10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11387 | .total_size = 128, |
| 11388 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 11389 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 11390 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11391 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11392 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11393 | .block_erasers = |
| 11394 | { |
| 11395 | { |
| 11396 | .eraseblocks = { {4 * 1024, 32} }, |
| 11397 | .block_erase = spi_block_erase_20, |
| 11398 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11399 | .eraseblocks = { {64 * 1024, 2} }, |
| 11400 | .block_erase = spi_block_erase_d8, |
| 11401 | }, { |
| 11402 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11403 | .block_erase = spi_block_erase_c7, |
| 11404 | } |
| 11405 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11406 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11407 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 11408 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11409 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11410 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11411 | }, |
| 11412 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11413 | { |
| 11414 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 11415 | .name = "W25X20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11416 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11417 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11418 | .model_id = WINBOND_NEX_W25X20, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11419 | .total_size = 256, |
| 11420 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 11421 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11422 | .tested = TEST_UNTESTED, |
| 11423 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11424 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11425 | .block_erasers = |
| 11426 | { |
| 11427 | { |
| 11428 | .eraseblocks = { {4 * 1024, 64} }, |
| 11429 | .block_erase = spi_block_erase_20, |
| 11430 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11431 | .eraseblocks = { {64 * 1024, 4} }, |
| 11432 | .block_erase = spi_block_erase_d8, |
| 11433 | }, { |
| 11434 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11435 | .block_erase = spi_block_erase_c7, |
| 11436 | } |
| 11437 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11438 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11439 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 11440 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11441 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11442 | .voltage = {2700, 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 | { |
| 11446 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 11447 | .name = "W25X40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11448 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11449 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11450 | .model_id = WINBOND_NEX_W25X40, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11451 | .total_size = 512, |
| 11452 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 11453 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 11454 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11455 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11456 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11457 | .block_erasers = |
| 11458 | { |
| 11459 | { |
| 11460 | .eraseblocks = { {4 * 1024, 128} }, |
| 11461 | .block_erase = spi_block_erase_20, |
| 11462 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11463 | .eraseblocks = { {64 * 1024, 8} }, |
| 11464 | .block_erase = spi_block_erase_d8, |
| 11465 | }, { |
| 11466 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11467 | .block_erase = spi_block_erase_c7, |
| 11468 | } |
| 11469 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11470 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11471 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 11472 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11473 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11474 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11475 | }, |
| 11476 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11477 | { |
| 11478 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 11479 | .name = "W25X80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11480 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11481 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11482 | .model_id = WINBOND_NEX_W25X80, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11483 | .total_size = 1024, |
| 11484 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 11485 | .feature_bits = FEATURE_WRSR_WREN, |
Yul Rottmann | 6d6ab74 | 2011-03-05 16:31:57 +0000 | [diff] [blame] | 11486 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11487 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11488 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11489 | .block_erasers = |
| 11490 | { |
| 11491 | { |
| 11492 | .eraseblocks = { {4 * 1024, 256} }, |
| 11493 | .block_erase = spi_block_erase_20, |
| 11494 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11495 | .eraseblocks = { {64 * 1024, 16} }, |
| 11496 | .block_erase = spi_block_erase_d8, |
| 11497 | }, { |
| 11498 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11499 | .block_erase = spi_block_erase_c7, |
| 11500 | } |
| 11501 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11502 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11503 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 11504 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11505 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11506 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11507 | }, |
| 11508 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11509 | { |
| 11510 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 11511 | .name = "W25X16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11512 | .bustype = BUS_SPI, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 11513 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11514 | .model_id = WINBOND_NEX_W25X16, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 11515 | .total_size = 2048, |
| 11516 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 11517 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 11518 | .tested = TEST_OK_PREW, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 11519 | .probe = probe_spi_rdid, |
| 11520 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11521 | .block_erasers = |
| 11522 | { |
| 11523 | { |
| 11524 | .eraseblocks = { {4 * 1024, 512} }, |
| 11525 | .block_erase = spi_block_erase_20, |
| 11526 | }, { |
| 11527 | .eraseblocks = { {32 * 1024, 64} }, |
| 11528 | .block_erase = spi_block_erase_52, |
| 11529 | }, { |
| 11530 | .eraseblocks = { {64 * 1024, 32} }, |
| 11531 | .block_erase = spi_block_erase_d8, |
| 11532 | }, { |
| 11533 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11534 | .block_erase = spi_block_erase_60, |
| 11535 | }, { |
| 11536 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11537 | .block_erase = spi_block_erase_c7, |
| 11538 | } |
| 11539 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11540 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11541 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 11542 | .write = spi_chip_write_256, |
| 11543 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11544 | .voltage = {2700, 3600}, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 11545 | }, |
| 11546 | |
| 11547 | { |
| 11548 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 11549 | .name = "W25X32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11550 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 11551 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11552 | .model_id = WINBOND_NEX_W25X32, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 11553 | .total_size = 4096, |
| 11554 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 11555 | .feature_bits = FEATURE_WRSR_WREN, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 11556 | .tested = TEST_OK_PROBE, |
| 11557 | .probe = probe_spi_rdid, |
| 11558 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11559 | .block_erasers = |
| 11560 | { |
| 11561 | { |
| 11562 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11563 | .block_erase = spi_block_erase_20, |
| 11564 | }, { |
| 11565 | .eraseblocks = { {32 * 1024, 128} }, |
| 11566 | .block_erase = spi_block_erase_52, |
| 11567 | }, { |
| 11568 | .eraseblocks = { {64 * 1024, 64} }, |
| 11569 | .block_erase = spi_block_erase_d8, |
| 11570 | }, { |
| 11571 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11572 | .block_erase = spi_block_erase_60, |
| 11573 | }, { |
| 11574 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11575 | .block_erase = spi_block_erase_c7, |
| 11576 | } |
| 11577 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11578 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11579 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 11580 | .write = spi_chip_write_256, |
| 11581 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11582 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 11583 | }, |
| 11584 | |
| 11585 | { |
| 11586 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 11587 | .name = "W25X64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11588 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 11589 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11590 | .model_id = WINBOND_NEX_W25X64, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 11591 | .total_size = 8192, |
| 11592 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 11593 | .feature_bits = FEATURE_WRSR_WREN, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 11594 | .tested = TEST_OK_PROBE, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 11595 | .probe = probe_spi_rdid, |
| 11596 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11597 | .block_erasers = |
| 11598 | { |
| 11599 | { |
| 11600 | .eraseblocks = { {4 * 1024, 2048} }, |
| 11601 | .block_erase = spi_block_erase_20, |
| 11602 | }, { |
| 11603 | .eraseblocks = { {32 * 1024, 256} }, |
| 11604 | .block_erase = spi_block_erase_52, |
| 11605 | }, { |
| 11606 | .eraseblocks = { {64 * 1024, 128} }, |
| 11607 | .block_erase = spi_block_erase_d8, |
| 11608 | }, { |
| 11609 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11610 | .block_erase = spi_block_erase_60, |
| 11611 | }, { |
| 11612 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11613 | .block_erase = spi_block_erase_c7, |
| 11614 | } |
| 11615 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11616 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11617 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 11618 | .write = spi_chip_write_256, |
| 11619 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11620 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 11621 | }, |
| 11622 | |
| 11623 | { |
| 11624 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 11625 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11626 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 11627 | .manufacture_id = WINBOND_ID, |
| 11628 | .model_id = WINBOND_W29C010, |
| 11629 | .total_size = 128, |
| 11630 | .page_size = 128, |
| 11631 | .feature_bits = FEATURE_LONG_RESET, |
| 11632 | .tested = TEST_OK_PRE, |
| 11633 | .probe = probe_w29ee011, |
| 11634 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */ |
| 11635 | .block_erasers = |
| 11636 | { |
| 11637 | { |
| 11638 | .eraseblocks = { {128 * 1024, 1} }, |
| 11639 | .block_erase = erase_chip_block_jedec, |
| 11640 | } |
| 11641 | }, |
| 11642 | .write = write_jedec, |
| 11643 | .read = read_memmapped, |
| 11644 | }, |
| 11645 | |
| 11646 | {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */ |
| 11647 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11648 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11649 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11650 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11651 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11652 | .total_size = 128, |
| 11653 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11654 | .feature_bits = FEATURE_LONG_RESET, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 11655 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11656 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11657 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11658 | .block_erasers = |
| 11659 | { |
| 11660 | { |
| 11661 | .eraseblocks = { {128 * 1024, 1} }, |
| 11662 | .block_erase = erase_chip_block_jedec, |
| 11663 | } |
| 11664 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11665 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11666 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11667 | }, |
| 11668 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11669 | { |
| 11670 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11671 | .name = "W29C020(C)/W29C022", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11672 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11673 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11674 | .model_id = WINBOND_W29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11675 | .total_size = 256, |
| 11676 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11677 | .feature_bits = FEATURE_LONG_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 11678 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11679 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 11680 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11681 | .block_erasers = |
| 11682 | { |
| 11683 | { |
| 11684 | .eraseblocks = { {256 * 1024, 1} }, |
| 11685 | .block_erase = erase_chip_block_jedec, |
| 11686 | } |
| 11687 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11688 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11689 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11690 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11691 | }, |
| 11692 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11693 | { |
| 11694 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11695 | .name = "W29C040/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11696 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11697 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11698 | .model_id = WINBOND_W29C040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11699 | .total_size = 512, |
| 11700 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11701 | .feature_bits = FEATURE_LONG_RESET, |
| 11702 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11703 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 11704 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11705 | .block_erasers = |
| 11706 | { |
| 11707 | { |
| 11708 | .eraseblocks = { {512 * 1024, 1} }, |
| 11709 | .block_erase = erase_chip_block_jedec, |
| 11710 | } |
| 11711 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11712 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11713 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11714 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11715 | }, |
| 11716 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11717 | { |
| 11718 | .vendor = "Winbond", |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 11719 | .name = "W39F010", |
| 11720 | .bustype = BUS_PARALLEL, |
| 11721 | .manufacture_id = WINBOND_ID, |
| 11722 | .model_id = WINBOND_W39F010, |
| 11723 | .total_size = 128, |
| 11724 | .page_size = 4 * 1024, |
| 11725 | .feature_bits = FEATURE_EITHER_RESET, |
| 11726 | .tested = TEST_OK_PREW, |
| 11727 | .probe = probe_jedec, |
| 11728 | .probe_timing = 10, |
| 11729 | .block_erasers = |
| 11730 | { |
| 11731 | { |
| 11732 | .eraseblocks = { {4 * 1024, 32} }, |
| 11733 | .block_erase = erase_block_jedec, |
| 11734 | }, { |
| 11735 | .eraseblocks = { {128 * 1024, 1} }, |
| 11736 | .block_erase = erase_chip_block_jedec, |
| 11737 | } |
| 11738 | }, |
| 11739 | .printlock = printlock_w39f010, |
| 11740 | .write = write_jedec_1, |
| 11741 | .read = read_memmapped, |
| 11742 | .voltage = {4500, 5500}, |
| 11743 | }, |
| 11744 | |
| 11745 | { |
| 11746 | .vendor = "Winbond", |
| 11747 | .name = "W39L010", |
| 11748 | .bustype = BUS_PARALLEL, |
| 11749 | .manufacture_id = WINBOND_ID, |
| 11750 | .model_id = WINBOND_W39L010, |
| 11751 | .total_size = 128, |
| 11752 | .page_size = 4 * 1024, |
| 11753 | .feature_bits = FEATURE_EITHER_RESET, |
| 11754 | .tested = TEST_UNTESTED, |
| 11755 | .probe = probe_jedec, |
| 11756 | .probe_timing = 10, |
| 11757 | .block_erasers = |
| 11758 | { |
| 11759 | { |
| 11760 | .eraseblocks = { {4 * 1024, 32} }, |
| 11761 | .block_erase = erase_block_jedec, |
| 11762 | }, { |
| 11763 | .eraseblocks = { {128 * 1024, 1} }, |
| 11764 | .block_erase = erase_chip_block_jedec, |
| 11765 | } |
| 11766 | }, |
| 11767 | .printlock = printlock_w39l010, |
| 11768 | .write = write_jedec_1, |
| 11769 | .read = read_memmapped, |
| 11770 | .voltage = {3000, 3600}, |
| 11771 | }, |
| 11772 | |
| 11773 | { |
| 11774 | .vendor = "Winbond", |
| 11775 | .name = "W39L020", |
| 11776 | .bustype = BUS_PARALLEL, |
| 11777 | .manufacture_id = WINBOND_ID, |
| 11778 | .model_id = WINBOND_W39L020, |
| 11779 | .total_size = 256, |
| 11780 | .page_size = 4 * 1024, |
| 11781 | .feature_bits = FEATURE_EITHER_RESET, |
| 11782 | .tested = TEST_UNTESTED, |
| 11783 | .probe = probe_jedec, |
| 11784 | .probe_timing = 10, |
| 11785 | .block_erasers = |
| 11786 | { |
| 11787 | { |
| 11788 | .eraseblocks = { {4 * 1024, 64} }, |
| 11789 | .block_erase = erase_block_jedec, |
| 11790 | }, { |
| 11791 | .eraseblocks = { {64 * 1024, 4} }, |
| 11792 | .block_erase = erase_sector_jedec, |
| 11793 | }, { |
| 11794 | .eraseblocks = { {256 * 1024, 1} }, |
| 11795 | .block_erase = erase_chip_block_jedec, |
| 11796 | } |
| 11797 | }, |
| 11798 | .printlock = printlock_w39l020, |
| 11799 | .write = write_jedec_1, |
| 11800 | .read = read_memmapped, |
| 11801 | .voltage = {3000, 3600}, |
| 11802 | }, |
| 11803 | |
| 11804 | { |
| 11805 | .vendor = "Winbond", |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 11806 | .name = "W39L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11807 | .bustype = BUS_PARALLEL, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 11808 | .manufacture_id = WINBOND_ID, |
| 11809 | .model_id = WINBOND_W39L040, |
| 11810 | .total_size = 512, |
| 11811 | .page_size = 64 * 1024, |
| 11812 | .feature_bits = FEATURE_EITHER_RESET, |
| 11813 | .tested = TEST_OK_PR, |
| 11814 | .probe = probe_jedec, |
| 11815 | .probe_timing = 10, |
| 11816 | .block_erasers = |
| 11817 | { |
| 11818 | { |
| 11819 | .eraseblocks = { {4 * 1024, 128} }, |
| 11820 | .block_erase = erase_block_jedec, |
| 11821 | }, { |
| 11822 | .eraseblocks = { {64 * 1024, 8} }, |
| 11823 | .block_erase = erase_sector_jedec, |
| 11824 | }, { |
| 11825 | .eraseblocks = { {512 * 1024, 1} }, |
| 11826 | .block_erase = erase_chip_block_jedec, |
| 11827 | } |
| 11828 | }, |
| 11829 | .printlock = printlock_w39l040, |
| 11830 | .write = write_jedec_1, |
| 11831 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11832 | .voltage = {3000, 3600}, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 11833 | }, |
| 11834 | |
| 11835 | { |
| 11836 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11837 | .name = "W39V040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11838 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11839 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11840 | .model_id = WINBOND_W39V040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11841 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11842 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11843 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 11844 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11845 | .probe = probe_jedec, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 11846 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11847 | .block_erasers = |
| 11848 | { |
| 11849 | { |
| 11850 | .eraseblocks = { {64 * 1024, 8} }, |
| 11851 | .block_erase = erase_sector_jedec, |
| 11852 | }, { |
| 11853 | .eraseblocks = { {512 * 1024, 1} }, |
| 11854 | .block_erase = erase_chip_block_jedec, |
| 11855 | } |
| 11856 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11857 | .printlock = printlock_w39v040a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11858 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11859 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11860 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11861 | }, |
| 11862 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11863 | { |
| 11864 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11865 | .name = "W39V040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11866 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11867 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11868 | .model_id = WINBOND_W39V040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11869 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11870 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11871 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 11872 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11873 | .probe = probe_jedec, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 11874 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11875 | .block_erasers = |
| 11876 | { |
| 11877 | { |
| 11878 | .eraseblocks = { {64 * 1024, 8} }, |
| 11879 | .block_erase = erase_sector_jedec, |
| 11880 | }, { |
| 11881 | .eraseblocks = { {512 * 1024, 1} }, |
| 11882 | .block_erase = erase_chip_block_jedec, |
| 11883 | } |
| 11884 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11885 | .printlock = printlock_w39v040b, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11886 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11887 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11888 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11889 | }, |
| 11890 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11891 | { |
| 11892 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11893 | .name = "W39V040C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11894 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11895 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11896 | .model_id = WINBOND_W39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11897 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11898 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11899 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 11900 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11901 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11902 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11903 | .block_erasers = |
| 11904 | { |
| 11905 | { |
| 11906 | .eraseblocks = { {64 * 1024, 8} }, |
| 11907 | .block_erase = erase_sector_jedec, |
| 11908 | }, { |
| 11909 | .eraseblocks = { {512 * 1024, 1} }, |
| 11910 | .block_erase = erase_chip_block_jedec, |
| 11911 | } |
| 11912 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 11913 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11914 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11915 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11916 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11917 | }, |
| 11918 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11919 | { |
| 11920 | .vendor = "Winbond", |
| 11921 | .name = "W39V040FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11922 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11923 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11924 | .model_id = WINBOND_W39V040FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11925 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11926 | .page_size = 64 * 1024, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 11927 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 11928 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11929 | .probe = probe_jedec, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 11930 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11931 | .block_erasers = |
| 11932 | { |
| 11933 | { |
| 11934 | .eraseblocks = { {4 * 1024, 128} }, |
| 11935 | .block_erase = erase_block_jedec, |
| 11936 | }, { |
| 11937 | .eraseblocks = { {64 * 1024, 8} }, |
| 11938 | .block_erase = erase_sector_jedec, |
| 11939 | }, { |
| 11940 | .eraseblocks = { {512 * 1024, 1} }, |
| 11941 | .block_erase = erase_chip_block_jedec, |
| 11942 | } |
| 11943 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11944 | .printlock = printlock_w39v040fa, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 11945 | .unlock = unlock_sst_fwhub, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11946 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11947 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11948 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11949 | }, |
| 11950 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11951 | { |
| 11952 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11953 | .name = "W39V040FB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11954 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11955 | .manufacture_id = WINBOND_ID, |
| 11956 | .model_id = WINBOND_W39V040B, |
| 11957 | .total_size = 512, |
| 11958 | .page_size = 64 * 1024, |
| 11959 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 11960 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11961 | .probe = probe_jedec, |
| 11962 | .probe_timing = 10, |
| 11963 | .block_erasers = |
| 11964 | { |
| 11965 | { |
| 11966 | .eraseblocks = { {64 * 1024, 8} }, |
| 11967 | .block_erase = erase_sector_jedec, |
| 11968 | }, { |
| 11969 | .eraseblocks = { {512 * 1024, 1} }, |
| 11970 | .block_erase = erase_chip_block_jedec, |
| 11971 | } |
| 11972 | }, |
| 11973 | .printlock = printlock_w39v040fb, |
Idwer Vollering | ecc6707 | 2010-12-26 23:55:12 +0000 | [diff] [blame] | 11974 | .unlock = unlock_w39v040fb, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11975 | .write = write_jedec_1, |
| 11976 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11977 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11978 | }, |
| 11979 | |
| 11980 | { |
| 11981 | .vendor = "Winbond", |
| 11982 | .name = "W39V040FC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11983 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11984 | .manufacture_id = WINBOND_ID, |
| 11985 | .model_id = WINBOND_W39V040C, |
| 11986 | .total_size = 512, |
| 11987 | .page_size = 64 * 1024, |
| 11988 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 11989 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11990 | .probe = probe_jedec, |
| 11991 | .probe_timing = 10, |
| 11992 | .block_erasers = |
| 11993 | { |
| 11994 | { |
| 11995 | .eraseblocks = { {64 * 1024, 8} }, |
| 11996 | .block_erase = erase_sector_jedec, |
| 11997 | }, { |
| 11998 | .eraseblocks = { {512 * 1024, 1} }, |
| 11999 | .block_erase = erase_chip_block_jedec, |
| 12000 | } |
| 12001 | }, |
| 12002 | .printlock = printlock_w39v040fc, |
| 12003 | .write = write_jedec_1, |
| 12004 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12005 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12006 | }, |
| 12007 | |
| 12008 | { |
| 12009 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12010 | .name = "W39V080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12011 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12012 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12013 | .model_id = WINBOND_W39V080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12014 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12015 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12016 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 12017 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12018 | .probe = probe_jedec, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 12019 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12020 | .block_erasers = |
| 12021 | { |
| 12022 | { |
| 12023 | .eraseblocks = { {64 * 1024, 16} }, |
| 12024 | .block_erase = erase_sector_jedec, |
| 12025 | }, { |
| 12026 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12027 | .block_erase = erase_chip_block_jedec, |
| 12028 | } |
| 12029 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12030 | .printlock = printlock_w39v080a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12031 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12032 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12033 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12034 | }, |
| 12035 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12036 | { |
| 12037 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12038 | .name = "W49F002U/N", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12039 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12040 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12041 | .model_id = WINBOND_W49F002U, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12042 | .total_size = 256, |
| 12043 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12044 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12045 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12046 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12047 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12048 | .block_erasers = |
| 12049 | { |
| 12050 | { |
| 12051 | .eraseblocks = { |
| 12052 | {128 * 1024, 1}, |
| 12053 | {96 * 1024, 1}, |
| 12054 | {8 * 1024, 2}, |
| 12055 | {16 * 1024, 1}, |
| 12056 | }, |
| 12057 | .block_erase = erase_sector_jedec, |
| 12058 | }, { |
| 12059 | .eraseblocks = { {256 * 1024, 1} }, |
| 12060 | .block_erase = erase_chip_block_jedec, |
| 12061 | } |
| 12062 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12063 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12064 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12065 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12066 | }, |
| 12067 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12068 | { |
| 12069 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 12070 | .name = "W49F020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12071 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 12072 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12073 | .model_id = WINBOND_W49F020, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 12074 | .total_size = 256, |
| 12075 | .page_size = 128, |
| 12076 | .feature_bits = FEATURE_EITHER_RESET, |
| 12077 | .tested = TEST_OK_PROBE, |
| 12078 | .probe = probe_jedec, |
| 12079 | .probe_timing = 10, |
| 12080 | .block_erasers = |
| 12081 | { |
| 12082 | { |
| 12083 | .eraseblocks = { {256 * 1024, 1} }, |
| 12084 | .block_erase = erase_chip_block_jedec, |
| 12085 | } |
| 12086 | }, |
| 12087 | .write = write_jedec_1, |
| 12088 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12089 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 12090 | }, |
| 12091 | |
| 12092 | { |
| 12093 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12094 | .name = "W49V002A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12095 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12096 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12097 | .model_id = WINBOND_W49V002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12098 | .total_size = 256, |
| 12099 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12100 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12101 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12102 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12103 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12104 | .block_erasers = |
| 12105 | { |
| 12106 | { |
| 12107 | .eraseblocks = { |
| 12108 | {64 * 1024, 3}, |
| 12109 | {32 * 1024, 1}, |
| 12110 | {8 * 1024, 2}, |
| 12111 | {16 * 1024, 1}, |
| 12112 | }, |
| 12113 | .block_erase = erase_sector_jedec, |
| 12114 | }, { |
| 12115 | .eraseblocks = { {256 * 1024, 1} }, |
| 12116 | .block_erase = erase_chip_block_jedec, |
| 12117 | } |
| 12118 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12119 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12120 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12121 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12122 | }, |
| 12123 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12124 | { |
| 12125 | .vendor = "Winbond", |
| 12126 | .name = "W49V002FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12127 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12128 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12129 | .model_id = WINBOND_W49V002FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12130 | .total_size = 256, |
| 12131 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12132 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 12133 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12134 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12135 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12136 | .block_erasers = |
| 12137 | { |
| 12138 | { |
| 12139 | .eraseblocks = { |
| 12140 | {64 * 1024, 3}, |
| 12141 | {32 * 1024, 1}, |
| 12142 | {8 * 1024, 2}, |
| 12143 | {16 * 1024, 1}, |
| 12144 | }, |
| 12145 | .block_erase = erase_sector_jedec, |
| 12146 | }, { |
| 12147 | .eraseblocks = { {256 * 1024, 1} }, |
| 12148 | .block_erase = erase_chip_block_jedec, |
| 12149 | } |
| 12150 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12151 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12152 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12153 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12154 | }, |
| 12155 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12156 | { |
| 12157 | .vendor = "Winbond", |
| 12158 | .name = "W39V080FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12159 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12160 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12161 | .model_id = WINBOND_W39V080FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12162 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12163 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12164 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12165 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 12166 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12167 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12168 | .block_erasers = |
| 12169 | { |
| 12170 | { |
| 12171 | .eraseblocks = { {64 * 1024, 16}, }, |
| 12172 | .block_erase = erase_sector_jedec, |
| 12173 | }, { |
| 12174 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12175 | .block_erase = erase_chip_block_jedec, |
| 12176 | } |
| 12177 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12178 | .printlock = printlock_w39v080fa, |
| 12179 | .unlock = unlock_w39v080fa, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12180 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12181 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12182 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12183 | }, |
| 12184 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12185 | { |
| 12186 | .vendor = "Winbond", |
| 12187 | .name = "W39V080FA (dual mode)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12188 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12189 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12190 | .model_id = WINBOND_W39V080FA_DM, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12191 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12192 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12193 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12194 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 12195 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12196 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12197 | .block_erasers = |
| 12198 | { |
| 12199 | { |
| 12200 | .eraseblocks = { {64 * 1024, 8}, }, |
| 12201 | .block_erase = erase_sector_jedec, |
| 12202 | }, { |
| 12203 | .eraseblocks = { {512 * 1024, 1} }, |
| 12204 | .block_erase = erase_chip_block_jedec, |
| 12205 | } |
| 12206 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12207 | .printlock = printlock_w39v080fa_dual, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12208 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12209 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12210 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12211 | }, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 12212 | |
| 12213 | { |
| 12214 | .vendor = "Unknown", |
| 12215 | .name = "SFDP-capable chip", |
| 12216 | .bustype = BUS_SPI, |
| 12217 | .manufacture_id = GENERIC_MANUF_ID, |
| 12218 | .model_id = SFDP_DEVICE_ID, |
| 12219 | /* We present our own "report this" text hence we do not |
| 12220 | * want the default "This flash part has status UNTESTED..." |
| 12221 | * text to be printed. */ |
| 12222 | .tested = TEST_OK_PREW, |
| 12223 | .probe = probe_spi_sfdp, |
| 12224 | .unlock = spi_disable_blockprotect, /* is this safe? */ |
| 12225 | .read = spi_chip_read, |
| 12226 | /* FIXME: some vendor extensions define this */ |
Carl-Daniel Hailfinger | 1c6d2ff | 2012-08-27 00:44:42 +0000 | [diff] [blame] | 12227 | .voltage = {0}, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 12228 | /* Everything below will be set by the probing function. */ |
| 12229 | .write = NULL, |
| 12230 | .total_size = 0, |
| 12231 | .page_size = 0, |
| 12232 | .feature_bits = 0, |
| 12233 | .block_erasers = {}, |
| 12234 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12235 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12236 | { |
Carl-Daniel Hailfinger | 532c717 | 2011-11-04 21:35:26 +0000 | [diff] [blame] | 12237 | .vendor = "Programmer", |
| 12238 | .name = "Opaque flash chip", |
| 12239 | .bustype = BUS_PROG, |
| 12240 | .manufacture_id = PROGMANUF_ID, |
| 12241 | .model_id = PROGDEV_ID, |
| 12242 | .total_size = 0, |
| 12243 | .page_size = 256, |
| 12244 | /* probe is assumed to work, rest will be filled in by probe */ |
| 12245 | .tested = TEST_OK_PROBE, |
| 12246 | .probe = probe_opaque, |
| 12247 | /* eraseblock sizes will be set by the probing function */ |
| 12248 | .block_erasers = |
| 12249 | { |
| 12250 | { |
| 12251 | .block_erase = erase_opaque, |
| 12252 | } |
| 12253 | }, |
| 12254 | .write = write_opaque, |
| 12255 | .read = read_opaque, |
| 12256 | }, |
| 12257 | |
| 12258 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 12259 | .vendor = "AMIC", |
| 12260 | .name = "unknown AMIC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12261 | .bustype = BUS_SPI, |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 12262 | .manufacture_id = AMIC_ID, |
| 12263 | .model_id = GENERIC_DEVICE_ID, |
| 12264 | .total_size = 0, |
| 12265 | .page_size = 256, |
| 12266 | .tested = TEST_BAD_PREW, |
| 12267 | .probe = probe_spi_rdid4, |
| 12268 | .probe_timing = TIMING_ZERO, |
| 12269 | .write = NULL, |
| 12270 | .read = NULL, |
| 12271 | }, |
| 12272 | |
| 12273 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12274 | .vendor = "Atmel", |
| 12275 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12276 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12277 | .manufacture_id = ATMEL_ID, |
| 12278 | .model_id = GENERIC_DEVICE_ID, |
| 12279 | .total_size = 0, |
| 12280 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 12281 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12282 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12283 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12284 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12285 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12286 | }, |
| 12287 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12288 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 12289 | .vendor = "Eon", |
| 12290 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12291 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12292 | .manufacture_id = EON_ID_NOPREFIX, |
| 12293 | .model_id = GENERIC_DEVICE_ID, |
| 12294 | .total_size = 0, |
| 12295 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 12296 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12297 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12298 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12299 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12300 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12301 | }, |
| 12302 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12303 | { |
| 12304 | .vendor = "Macronix", |
| 12305 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12306 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12307 | .manufacture_id = MACRONIX_ID, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12308 | .model_id = GENERIC_DEVICE_ID, |
| 12309 | .total_size = 0, |
| 12310 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 12311 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12312 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12313 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12314 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12315 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12316 | }, |
| 12317 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12318 | { |
| 12319 | .vendor = "PMC", |
| 12320 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12321 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12322 | .manufacture_id = PMC_ID, |
| 12323 | .model_id = GENERIC_DEVICE_ID, |
| 12324 | .total_size = 0, |
| 12325 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 12326 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12327 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12328 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12329 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12330 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12331 | }, |
| 12332 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12333 | { |
| 12334 | .vendor = "SST", |
| 12335 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12336 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12337 | .manufacture_id = SST_ID, |
| 12338 | .model_id = GENERIC_DEVICE_ID, |
| 12339 | .total_size = 0, |
| 12340 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 12341 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12342 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12343 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12344 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12345 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12346 | }, |
| 12347 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12348 | { |
| 12349 | .vendor = "ST", |
| 12350 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12351 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12352 | .manufacture_id = ST_ID, |
| 12353 | .model_id = GENERIC_DEVICE_ID, |
| 12354 | .total_size = 0, |
| 12355 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 12356 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12357 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12358 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12359 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12360 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12361 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 12362 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 12363 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 12364 | .vendor = "Sanyo", |
| 12365 | .name = "unknown Sanyo SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12366 | .bustype = BUS_SPI, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 12367 | .manufacture_id = SANYO_ID, |
| 12368 | .model_id = GENERIC_DEVICE_ID, |
| 12369 | .total_size = 0, |
| 12370 | .page_size = 256, |
| 12371 | .tested = TEST_BAD_PREW, |
| 12372 | .probe = probe_spi_rdid, |
| 12373 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 12374 | .write = NULL, |
| 12375 | .read = NULL, |
| 12376 | }, |
| 12377 | |
| 12378 | { |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 12379 | .vendor = "Winbond", |
| 12380 | .name = "unknown Winbond (ex Nexcom) SPI chip", |
| 12381 | .bustype = BUS_SPI, |
| 12382 | .manufacture_id = WINBOND_NEX_ID, |
| 12383 | .model_id = GENERIC_DEVICE_ID, |
| 12384 | .total_size = 0, |
| 12385 | .page_size = 256, |
| 12386 | .tested = TEST_BAD_PREW, |
| 12387 | .probe = probe_spi_rdid, |
| 12388 | .probe_timing = TIMING_ZERO, |
| 12389 | .write = NULL, |
| 12390 | .read = NULL, |
| 12391 | }, |
| 12392 | |
| 12393 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 12394 | .vendor = "Generic", |
| 12395 | .name = "unknown SPI chip (RDID)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12396 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 12397 | .manufacture_id = GENERIC_MANUF_ID, |
| 12398 | .model_id = GENERIC_DEVICE_ID, |
| 12399 | .total_size = 0, |
| 12400 | .page_size = 256, |
| 12401 | .tested = TEST_BAD_PREW, |
| 12402 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 12403 | .write = NULL, |
| 12404 | }, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 12405 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 12406 | { |
| 12407 | .vendor = "Generic", |
| 12408 | .name = "unknown SPI chip (REMS)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12409 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 12410 | .manufacture_id = GENERIC_MANUF_ID, |
| 12411 | .model_id = GENERIC_DEVICE_ID, |
| 12412 | .total_size = 0, |
| 12413 | .page_size = 256, |
| 12414 | .tested = TEST_BAD_PREW, |
| 12415 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 12416 | .write = NULL, |
| 12417 | }, |
| 12418 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12419 | { NULL } |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 12420 | }; |