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 */ |
| 3859 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 3860 | .tested = TEST_OK_PR, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3861 | .probe = probe_spi_rdid, |
| 3862 | .probe_timing = TIMING_ZERO, |
| 3863 | .block_erasers = |
| 3864 | { |
| 3865 | { |
| 3866 | .eraseblocks = { {4 * 1024, 512} }, |
| 3867 | .block_erase = spi_block_erase_20, |
| 3868 | }, { |
| 3869 | .eraseblocks = { {64 * 1024, 32} }, |
| 3870 | .block_erase = spi_block_erase_d8, |
| 3871 | }, { |
| 3872 | .eraseblocks = { {1024 * 2048, 1} }, |
| 3873 | .block_erase = spi_block_erase_60, |
| 3874 | }, { |
| 3875 | .eraseblocks = { {1024 * 2048, 1} }, |
| 3876 | .block_erase = spi_block_erase_c7, |
| 3877 | } |
| 3878 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3879 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3880 | .unlock = spi_disable_blockprotect, |
| 3881 | .write = spi_chip_write_256, |
| 3882 | .read = spi_chip_read, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 3883 | .voltage = {2700, 3600}, |
| 3884 | }, |
| 3885 | |
| 3886 | { |
| 3887 | .vendor = "Eon", |
| 3888 | .name = "EN25QH32", |
| 3889 | .bustype = BUS_SPI, |
| 3890 | .manufacture_id = EON_ID_NOPREFIX, |
| 3891 | .model_id = EON_EN25QH32, |
| 3892 | .total_size = 4096, |
| 3893 | .page_size = 256, |
| 3894 | /* supports SFDP */ |
| 3895 | /* OTP: 512B total; enter 0x3A */ |
| 3896 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 3897 | .tested = TEST_UNTESTED, |
| 3898 | .probe = probe_spi_rdid, |
| 3899 | .probe_timing = TIMING_ZERO, |
| 3900 | .block_erasers = |
| 3901 | { |
| 3902 | { |
| 3903 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3904 | .block_erase = spi_block_erase_20, |
| 3905 | }, { |
| 3906 | .eraseblocks = { {64 * 1024, 64} }, |
| 3907 | .block_erase = spi_block_erase_d8, |
| 3908 | }, { |
| 3909 | .eraseblocks = { {1024 * 4096, 1} }, |
| 3910 | .block_erase = spi_block_erase_60, |
| 3911 | }, { |
| 3912 | .eraseblocks = { {1024 * 4096, 1} }, |
| 3913 | .block_erase = spi_block_erase_c7, |
| 3914 | } |
| 3915 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3916 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 3917 | .unlock = spi_disable_blockprotect, |
| 3918 | .write = spi_chip_write_256, |
| 3919 | .read = spi_chip_read, |
| 3920 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 3921 | }, |
| 3922 | |
| 3923 | { |
| 3924 | .vendor = "Eon", |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 3925 | .name = "EN29F010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3926 | .bustype = BUS_PARALLEL, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 3927 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3928 | .model_id = EON_EN29F010, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 3929 | .total_size = 128, |
| 3930 | .page_size = 128, |
| 3931 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 3932 | .tested = TEST_OK_PRE, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 3933 | .probe = probe_jedec, |
| 3934 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3935 | .block_erasers = |
| 3936 | { |
| 3937 | { |
| 3938 | .eraseblocks = { {16 * 1024, 8} }, |
| 3939 | .block_erase = erase_sector_jedec, |
| 3940 | }, |
| 3941 | { |
| 3942 | .eraseblocks = { {128 * 1024, 1} }, |
| 3943 | .block_erase = erase_chip_block_jedec, |
| 3944 | }, |
| 3945 | }, |
| 3946 | .write = write_jedec_1, |
| 3947 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3948 | .voltage = {4500, 5500}, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 3949 | }, |
| 3950 | |
| 3951 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 3952 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3953 | .name = "EN29F002(A)(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3954 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3955 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3956 | .model_id = EON_EN29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3957 | .total_size = 256, |
| 3958 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3959 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 3960 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3961 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3962 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3963 | .block_erasers = |
| 3964 | { |
| 3965 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 3966 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3967 | {16 * 1024, 1}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 3968 | {8 * 1024, 2}, |
| 3969 | {32 * 1024, 1}, |
| 3970 | {64 * 1024, 3}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3971 | }, |
| 3972 | .block_erase = erase_sector_jedec, |
| 3973 | }, { |
| 3974 | .eraseblocks = { {256 * 1024, 1} }, |
| 3975 | .block_erase = erase_chip_block_jedec, |
| 3976 | }, |
| 3977 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 3978 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3979 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3980 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3981 | }, |
| 3982 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3983 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 3984 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3985 | .name = "EN29F002(A)(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3986 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3987 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3988 | .model_id = EON_EN29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3989 | .total_size = 256, |
| 3990 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3991 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 3992 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3993 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3994 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3995 | .block_erasers = |
| 3996 | { |
| 3997 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 3998 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3999 | {64 * 1024, 3}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 4000 | {32 * 1024, 1}, |
| 4001 | {8 * 1024, 2}, |
| 4002 | {16 * 1024, 1}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4003 | }, |
| 4004 | .block_erase = erase_sector_jedec, |
| 4005 | }, { |
| 4006 | .eraseblocks = { {256 * 1024, 1} }, |
| 4007 | .block_erase = erase_chip_block_jedec, |
| 4008 | }, |
| 4009 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 4010 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4011 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4012 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4013 | }, |
| 4014 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4015 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 4016 | .vendor = "Eon", |
| 4017 | .name = "EN29LV640B", |
| 4018 | .bustype = BUS_PARALLEL, |
| 4019 | .manufacture_id = EON_ID, |
| 4020 | .model_id = EON_EN29LV640B, |
| 4021 | .total_size = 8192, |
| 4022 | .page_size = 8192, |
| 4023 | .feature_bits = 0, |
| 4024 | .tested = TEST_OK_PREW, |
| 4025 | .probe = probe_en29lv640b, |
| 4026 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4027 | .block_erasers = |
| 4028 | { |
| 4029 | { |
| 4030 | .eraseblocks = { |
| 4031 | {8 * 1024, 8}, |
| 4032 | {64 * 1024, 127}, |
| 4033 | }, |
| 4034 | .block_erase = block_erase_en29lv640b, |
| 4035 | }, { |
| 4036 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4037 | .block_erase = block_erase_chip_en29lv640b, |
| 4038 | }, |
| 4039 | }, |
| 4040 | .write = write_en29lv640b, |
| 4041 | .read = read_memmapped, |
| 4042 | .voltage = {2700, 3600}, |
| 4043 | }, |
| 4044 | |
| 4045 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4046 | .vendor = "Fujitsu", |
| 4047 | .name = "MBM29F004BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4048 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4049 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4050 | .model_id = FUJITSU_MBM29F004BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4051 | .total_size = 512, |
| 4052 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4053 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4054 | .tested = TEST_UNTESTED, |
| 4055 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4056 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4057 | .block_erasers = |
| 4058 | { |
| 4059 | { |
| 4060 | .eraseblocks = { |
| 4061 | {16 * 1024, 1}, |
| 4062 | {8 * 1024, 2}, |
| 4063 | {32 * 1024, 1}, |
| 4064 | {64 * 1024, 7}, |
| 4065 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4066 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4067 | }, { |
| 4068 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4069 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4070 | }, |
| 4071 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4072 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4073 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4074 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4075 | }, |
| 4076 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4077 | { |
| 4078 | .vendor = "Fujitsu", |
| 4079 | .name = "MBM29F004TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4080 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4081 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4082 | .model_id = FUJITSU_MBM29F004TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4083 | .total_size = 512, |
| 4084 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4085 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4086 | .tested = TEST_UNTESTED, |
| 4087 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4088 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4089 | .block_erasers = |
| 4090 | { |
| 4091 | { |
| 4092 | .eraseblocks = { |
| 4093 | {64 * 1024, 7}, |
| 4094 | {32 * 1024, 1}, |
| 4095 | {8 * 1024, 2}, |
| 4096 | {16 * 1024, 1}, |
| 4097 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4098 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4099 | }, { |
| 4100 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4101 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4102 | }, |
| 4103 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4104 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4105 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4106 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4107 | }, |
| 4108 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4109 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4110 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4111 | .vendor = "Fujitsu", |
| 4112 | .name = "MBM29F400BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4113 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4114 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4115 | .model_id = FUJITSU_MBM29F400BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4116 | .total_size = 512, |
| 4117 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4118 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 4119 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4120 | .probe = probe_m29f400bt, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 4121 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4122 | .block_erasers = |
| 4123 | { |
| 4124 | { |
| 4125 | .eraseblocks = { |
| 4126 | {16 * 1024, 1}, |
| 4127 | {8 * 1024, 2}, |
| 4128 | {32 * 1024, 1}, |
| 4129 | {64 * 1024, 7}, |
| 4130 | }, |
| 4131 | .block_erase = block_erase_m29f400bt, |
| 4132 | }, { |
| 4133 | .eraseblocks = { {512 * 1024, 1} }, |
| 4134 | .block_erase = block_erase_chip_m29f400bt, |
| 4135 | }, |
| 4136 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 4137 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4138 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 4139 | .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] | 4140 | }, |
| 4141 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4142 | { |
| 4143 | .vendor = "Fujitsu", |
| 4144 | .name = "MBM29F400TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4145 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4146 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4147 | .model_id = FUJITSU_MBM29F400TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4148 | .total_size = 512, |
| 4149 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4150 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4151 | .tested = TEST_UNTESTED, |
| 4152 | .probe = probe_m29f400bt, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 4153 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4154 | .block_erasers = |
| 4155 | { |
| 4156 | { |
| 4157 | .eraseblocks = { |
| 4158 | {64 * 1024, 7}, |
| 4159 | {32 * 1024, 1}, |
| 4160 | {8 * 1024, 2}, |
| 4161 | {16 * 1024, 1}, |
| 4162 | }, |
| 4163 | .block_erase = block_erase_m29f400bt, |
| 4164 | }, { |
| 4165 | .eraseblocks = { {512 * 1024, 1} }, |
| 4166 | .block_erase = block_erase_chip_m29f400bt, |
| 4167 | }, |
| 4168 | }, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 4169 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4170 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 4171 | .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] | 4172 | }, |
| 4173 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4174 | { |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4175 | .vendor = "GigaDevice", |
| 4176 | .name = "GD25Q20", |
| 4177 | .bustype = BUS_SPI, |
| 4178 | .manufacture_id = GIGADEVICE_ID, |
| 4179 | .model_id = GIGADEVICE_GD25Q20, |
| 4180 | .total_size = 256, |
| 4181 | .page_size = 256, |
| 4182 | .feature_bits = FEATURE_WRSR_WREN, |
| 4183 | .tested = TEST_UNTESTED, |
| 4184 | .probe = probe_spi_rdid, |
| 4185 | .probe_timing = TIMING_ZERO, |
| 4186 | .block_erasers = |
| 4187 | { |
| 4188 | { |
| 4189 | .eraseblocks = { {4 * 1024, 64} }, |
| 4190 | .block_erase = spi_block_erase_20, |
| 4191 | }, { |
| 4192 | .eraseblocks = { {32 * 1024, 8} }, |
| 4193 | .block_erase = spi_block_erase_52, |
| 4194 | }, { |
| 4195 | .eraseblocks = { {64 * 1024, 4} }, |
| 4196 | .block_erase = spi_block_erase_d8, |
| 4197 | }, { |
| 4198 | .eraseblocks = { {256 * 1024, 1} }, |
| 4199 | .block_erase = spi_block_erase_60, |
| 4200 | }, { |
| 4201 | .eraseblocks = { {256 * 1024, 1} }, |
| 4202 | .block_erase = spi_block_erase_c7, |
| 4203 | } |
| 4204 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4205 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4206 | .unlock = spi_disable_blockprotect, |
| 4207 | .write = spi_chip_write_256, |
| 4208 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4209 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4210 | }, |
| 4211 | |
| 4212 | { |
| 4213 | .vendor = "GigaDevice", |
| 4214 | .name = "GD25Q40", |
| 4215 | .bustype = BUS_SPI, |
| 4216 | .manufacture_id = GIGADEVICE_ID, |
| 4217 | .model_id = GIGADEVICE_GD25Q40, |
| 4218 | .total_size = 512, |
| 4219 | .page_size = 256, |
| 4220 | .feature_bits = FEATURE_WRSR_WREN, |
| 4221 | .tested = TEST_UNTESTED, |
| 4222 | .probe = probe_spi_rdid, |
| 4223 | .probe_timing = TIMING_ZERO, |
| 4224 | .block_erasers = |
| 4225 | { |
| 4226 | { |
| 4227 | .eraseblocks = { {4 * 1024, 128} }, |
| 4228 | .block_erase = spi_block_erase_20, |
| 4229 | }, { |
| 4230 | .eraseblocks = { {32 * 1024, 16} }, |
| 4231 | .block_erase = spi_block_erase_52, |
| 4232 | }, { |
| 4233 | .eraseblocks = { {64 * 1024, 8} }, |
| 4234 | .block_erase = spi_block_erase_d8, |
| 4235 | }, { |
| 4236 | .eraseblocks = { {512 * 1024, 1} }, |
| 4237 | .block_erase = spi_block_erase_60, |
| 4238 | }, { |
| 4239 | .eraseblocks = { {512 * 1024, 1} }, |
| 4240 | .block_erase = spi_block_erase_c7, |
| 4241 | } |
| 4242 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4243 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4244 | .unlock = spi_disable_blockprotect, |
| 4245 | .write = spi_chip_write_256, |
| 4246 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4247 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4248 | }, |
| 4249 | |
| 4250 | { |
| 4251 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4252 | .name = "GD25Q80(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4253 | .bustype = BUS_SPI, |
| 4254 | .manufacture_id = GIGADEVICE_ID, |
| 4255 | .model_id = GIGADEVICE_GD25Q80, |
| 4256 | .total_size = 1024, |
| 4257 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4258 | /* 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] | 4259 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4260 | .tested = TEST_OK_PREW, |
| 4261 | .probe = probe_spi_rdid, |
| 4262 | .probe_timing = TIMING_ZERO, |
| 4263 | .block_erasers = |
| 4264 | { |
| 4265 | { |
| 4266 | .eraseblocks = { {4 * 1024, 256} }, |
| 4267 | .block_erase = spi_block_erase_20, |
| 4268 | }, { |
| 4269 | .eraseblocks = { {32 * 1024, 32} }, |
| 4270 | .block_erase = spi_block_erase_52, |
| 4271 | }, { |
| 4272 | .eraseblocks = { {64 * 1024, 16} }, |
| 4273 | .block_erase = spi_block_erase_d8, |
| 4274 | }, { |
| 4275 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4276 | .block_erase = spi_block_erase_60, |
| 4277 | }, { |
| 4278 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4279 | .block_erase = spi_block_erase_c7, |
| 4280 | } |
| 4281 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4282 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4283 | .unlock = spi_disable_blockprotect, |
| 4284 | .write = spi_chip_write_256, |
| 4285 | .read = spi_chip_read, |
| 4286 | .voltage = {2700, 3600}, |
| 4287 | }, |
| 4288 | |
| 4289 | { |
| 4290 | .vendor = "GigaDevice", |
| 4291 | .name = "GD25Q16", |
| 4292 | .bustype = BUS_SPI, |
| 4293 | .manufacture_id = GIGADEVICE_ID, |
| 4294 | .model_id = GIGADEVICE_GD25Q16, |
| 4295 | .total_size = 2048, |
| 4296 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4297 | /* 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] | 4298 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4299 | .tested = TEST_UNTESTED, |
| 4300 | .probe = probe_spi_rdid, |
| 4301 | .probe_timing = TIMING_ZERO, |
| 4302 | .block_erasers = |
| 4303 | { |
| 4304 | { |
| 4305 | .eraseblocks = { {4 * 1024, 512} }, |
| 4306 | .block_erase = spi_block_erase_20, |
| 4307 | }, { |
| 4308 | .eraseblocks = { {32 * 1024, 64} }, |
| 4309 | .block_erase = spi_block_erase_52, |
| 4310 | }, { |
| 4311 | .eraseblocks = { {64 * 1024, 32} }, |
| 4312 | .block_erase = spi_block_erase_d8, |
| 4313 | }, { |
| 4314 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4315 | .block_erase = spi_block_erase_60, |
| 4316 | }, { |
| 4317 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4318 | .block_erase = spi_block_erase_c7, |
| 4319 | } |
| 4320 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4321 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4322 | .unlock = spi_disable_blockprotect, |
| 4323 | .write = spi_chip_write_256, |
| 4324 | .read = spi_chip_read, |
| 4325 | .voltage = {2700, 3600}, |
| 4326 | }, |
| 4327 | |
| 4328 | { |
| 4329 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4330 | .name = "GD25Q32(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4331 | .bustype = BUS_SPI, |
| 4332 | .manufacture_id = GIGADEVICE_ID, |
| 4333 | .model_id = GIGADEVICE_GD25Q32, |
| 4334 | .total_size = 4096, |
| 4335 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4336 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4337 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4338 | .tested = TEST_UNTESTED, |
| 4339 | .probe = probe_spi_rdid, |
| 4340 | .probe_timing = TIMING_ZERO, |
| 4341 | .block_erasers = |
| 4342 | { |
| 4343 | { |
| 4344 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4345 | .block_erase = spi_block_erase_20, |
| 4346 | }, { |
| 4347 | .eraseblocks = { {32 * 1024, 128} }, |
| 4348 | .block_erase = spi_block_erase_52, |
| 4349 | }, { |
| 4350 | .eraseblocks = { {64 * 1024, 64} }, |
| 4351 | .block_erase = spi_block_erase_d8, |
| 4352 | }, { |
| 4353 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4354 | .block_erase = spi_block_erase_60, |
| 4355 | }, { |
| 4356 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4357 | .block_erase = spi_block_erase_c7, |
| 4358 | } |
| 4359 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4360 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4361 | .unlock = spi_disable_blockprotect, |
| 4362 | .write = spi_chip_write_256, |
| 4363 | .read = spi_chip_read, |
| 4364 | .voltage = {2700, 3600}, |
| 4365 | }, |
| 4366 | |
| 4367 | { |
| 4368 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4369 | .name = "GD25Q64(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4370 | .bustype = BUS_SPI, |
| 4371 | .manufacture_id = GIGADEVICE_ID, |
| 4372 | .model_id = GIGADEVICE_GD25Q64, |
| 4373 | .total_size = 8192, |
| 4374 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4375 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4376 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4377 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4378 | .probe = probe_spi_rdid, |
| 4379 | .probe_timing = TIMING_ZERO, |
| 4380 | .block_erasers = |
| 4381 | { |
| 4382 | { |
| 4383 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4384 | .block_erase = spi_block_erase_20, |
| 4385 | }, { |
| 4386 | .eraseblocks = { {32 * 1024, 256} }, |
| 4387 | .block_erase = spi_block_erase_52, |
| 4388 | }, { |
| 4389 | .eraseblocks = { {64 * 1024, 128} }, |
| 4390 | .block_erase = spi_block_erase_d8, |
| 4391 | }, { |
| 4392 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4393 | .block_erase = spi_block_erase_60, |
| 4394 | }, { |
| 4395 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4396 | .block_erase = spi_block_erase_c7, |
| 4397 | } |
| 4398 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4399 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4400 | .unlock = spi_disable_blockprotect, |
| 4401 | .write = spi_chip_write_256, |
| 4402 | .read = spi_chip_read, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4403 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4404 | }, |
| 4405 | |
| 4406 | { |
| 4407 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4408 | .name = "GD25Q128B", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4409 | .bustype = BUS_SPI, |
| 4410 | .manufacture_id = GIGADEVICE_ID, |
| 4411 | .model_id = GIGADEVICE_GD25Q128, |
| 4412 | .total_size = 16384, |
| 4413 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4414 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4415 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4416 | .tested = TEST_UNTESTED, |
| 4417 | .probe = probe_spi_rdid, |
| 4418 | .probe_timing = TIMING_ZERO, |
| 4419 | .block_erasers = |
| 4420 | { |
| 4421 | { |
| 4422 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4423 | .block_erase = spi_block_erase_20, |
| 4424 | }, { |
| 4425 | .eraseblocks = { {32 * 1024, 512} }, |
| 4426 | .block_erase = spi_block_erase_52, |
| 4427 | }, { |
| 4428 | .eraseblocks = { {64 * 1024, 256} }, |
| 4429 | .block_erase = spi_block_erase_d8, |
| 4430 | }, { |
| 4431 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4432 | .block_erase = spi_block_erase_60, |
| 4433 | }, { |
| 4434 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4435 | .block_erase = spi_block_erase_c7, |
| 4436 | } |
| 4437 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4438 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4439 | .unlock = spi_disable_blockprotect, |
| 4440 | .write = spi_chip_write_256, |
| 4441 | .read = spi_chip_read, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4442 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4443 | }, |
| 4444 | |
| 4445 | { |
Bryan Freed | 5bfef9d | 2012-09-17 00:05:44 +0000 | [diff] [blame] | 4446 | .vendor = "GigaDevice", |
| 4447 | .name = "GD25LQ32", |
| 4448 | .bustype = BUS_SPI, |
| 4449 | .manufacture_id = GIGADEVICE_ID, |
| 4450 | .model_id = GIGADEVICE_GD25LQ32, |
| 4451 | .total_size = 4096, |
| 4452 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4453 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 4454 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Bryan Freed | 5bfef9d | 2012-09-17 00:05:44 +0000 | [diff] [blame] | 4455 | .tested = TEST_OK_PREW, |
| 4456 | .probe = probe_spi_rdid, |
| 4457 | .probe_timing = TIMING_ZERO, |
| 4458 | .block_erasers = |
| 4459 | { |
| 4460 | { |
| 4461 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4462 | .block_erase = spi_block_erase_20, |
| 4463 | }, { |
| 4464 | .eraseblocks = { {32 * 1024, 128} }, |
| 4465 | .block_erase = spi_block_erase_52, |
| 4466 | }, { |
| 4467 | .eraseblocks = { {64 * 1024, 64} }, |
| 4468 | .block_erase = spi_block_erase_d8, |
| 4469 | }, { |
| 4470 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4471 | .block_erase = spi_block_erase_60, |
| 4472 | }, { |
| 4473 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4474 | .block_erase = spi_block_erase_c7, |
| 4475 | } |
| 4476 | }, |
Stefan Tauner | 278ba6e | 2013-06-28 21:28:27 +0000 | [diff] [blame] | 4477 | .printlock = spi_prettyprint_status_register_default_bp4, |
| 4478 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Bryan Freed | 5bfef9d | 2012-09-17 00:05:44 +0000 | [diff] [blame] | 4479 | .unlock = spi_disable_blockprotect, |
| 4480 | .write = spi_chip_write_256, |
| 4481 | .read = spi_chip_read, |
| 4482 | .voltage = {1700, 1950}, |
| 4483 | }, |
| 4484 | |
| 4485 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 4486 | .vendor = "Hyundai", |
| 4487 | .name = "HY29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4488 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 4489 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4490 | .model_id = HYUNDAI_HY29F002T, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 4491 | .total_size = 256, |
| 4492 | .page_size = 256 * 1024, |
| 4493 | .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] | 4494 | .tested = TEST_OK_PRE, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 4495 | .probe = probe_jedec, |
| 4496 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4497 | .block_erasers = |
| 4498 | { |
| 4499 | { |
| 4500 | .eraseblocks = { |
| 4501 | {64 * 1024, 3}, |
| 4502 | {32 * 1024, 1}, |
| 4503 | {8 * 1024, 2}, |
| 4504 | {16 * 1024, 1}, |
| 4505 | }, |
| 4506 | .block_erase = erase_sector_jedec, |
| 4507 | }, { |
| 4508 | .eraseblocks = { {256 * 1024, 1} }, |
| 4509 | .block_erase = erase_chip_block_jedec, |
| 4510 | }, |
| 4511 | }, |
| 4512 | .write = write_jedec_1, |
| 4513 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 4514 | .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] | 4515 | }, |
| 4516 | |
| 4517 | { |
| 4518 | .vendor = "Hyundai", |
| 4519 | .name = "HY29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4520 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 4521 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4522 | .model_id = HYUNDAI_HY29F002B, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 4523 | .total_size = 256, |
| 4524 | .page_size = 256 * 1024, |
| 4525 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
| 4526 | .tested = TEST_UNTESTED, |
| 4527 | .probe = probe_jedec, |
| 4528 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4529 | .block_erasers = |
| 4530 | { |
| 4531 | { |
| 4532 | .eraseblocks = { |
| 4533 | {16 * 1024, 1}, |
| 4534 | {8 * 1024, 2}, |
| 4535 | {32 * 1024, 1}, |
| 4536 | {64 * 1024, 3}, |
| 4537 | }, |
| 4538 | .block_erase = erase_sector_jedec, |
| 4539 | }, { |
| 4540 | .eraseblocks = { {256 * 1024, 1} }, |
| 4541 | .block_erase = erase_chip_block_jedec, |
| 4542 | }, |
| 4543 | }, |
| 4544 | .write = write_jedec_1, |
| 4545 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 4546 | .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] | 4547 | }, |
| 4548 | |
| 4549 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 4550 | .vendor = "Hyundai", |
| 4551 | .name = "HY29F040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4552 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 4553 | .manufacture_id = HYUNDAI_ID, |
| 4554 | .model_id = HYUNDAI_HY29F040A, |
| 4555 | .total_size = 512, |
| 4556 | .page_size = 64 * 1024, |
| 4557 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 4558 | .tested = TEST_UNTESTED, |
| 4559 | .probe = probe_jedec, |
| 4560 | .probe_timing = TIMING_ZERO, |
| 4561 | .block_erasers = |
| 4562 | { |
| 4563 | { |
| 4564 | .eraseblocks = { {64 * 1024, 8} }, |
| 4565 | .block_erase = erase_sector_jedec, |
| 4566 | }, { |
| 4567 | .eraseblocks = { {512 * 1024, 1} }, |
| 4568 | .block_erase = erase_chip_block_jedec, |
| 4569 | }, |
| 4570 | }, |
| 4571 | .write = write_jedec_1, |
| 4572 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 4573 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 4574 | }, |
| 4575 | |
| 4576 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4577 | .vendor = "Intel", |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 4578 | .name = "25F160S33B8", |
| 4579 | .bustype = BUS_SPI, |
| 4580 | .manufacture_id = INTEL_ID, |
| 4581 | .model_id = INTEL_25F160S33B8, |
| 4582 | .total_size = 2048, |
| 4583 | .page_size = 256, |
| 4584 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 4585 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4586 | .tested = TEST_UNTESTED, |
| 4587 | .probe = probe_spi_rdid, |
| 4588 | .probe_timing = TIMING_ZERO, |
| 4589 | .block_erasers = |
| 4590 | { |
| 4591 | { |
| 4592 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 4593 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 4594 | * have no effect on the memory contents, but sets a flag in the SR. |
| 4595 | .eraseblocks = { |
| 4596 | {8 * 1024, 8}, |
| 4597 | {64 * 1024, 31} // inaccessible |
| 4598 | }, |
| 4599 | .block_erase = spi_block_erase_40, |
| 4600 | }, { */ |
| 4601 | .eraseblocks = { {64 * 1024, 32} }, |
| 4602 | .block_erase = spi_block_erase_d8, |
| 4603 | }, { |
| 4604 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4605 | .block_erase = spi_block_erase_c7, |
| 4606 | } |
| 4607 | }, |
| 4608 | .printlock = spi_prettyprint_status_register_s33, |
| 4609 | .unlock = spi_disable_blockprotect_s33, |
| 4610 | .write = spi_chip_write_256, |
| 4611 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 4612 | .voltage = {2700, 3600}, |
| 4613 | }, |
| 4614 | |
| 4615 | { |
| 4616 | .vendor = "Intel", |
| 4617 | .name = "25F160S33T8", |
| 4618 | .bustype = BUS_SPI, |
| 4619 | .manufacture_id = INTEL_ID, |
| 4620 | .model_id = INTEL_25F160S33T8, |
| 4621 | .total_size = 2048, |
| 4622 | .page_size = 256, |
| 4623 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 4624 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4625 | .tested = TEST_UNTESTED, |
| 4626 | .probe = probe_spi_rdid, |
| 4627 | .probe_timing = TIMING_ZERO, |
| 4628 | .block_erasers = |
| 4629 | { |
| 4630 | { |
| 4631 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 4632 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 4633 | * have no effect on the memory contents, but sets a flag in the SR. |
| 4634 | .eraseblocks = { |
| 4635 | {64 * 1024, 31}, // inaccessible |
| 4636 | {8 * 1024, 8} |
| 4637 | }, |
| 4638 | .block_erase = spi_block_erase_40, |
| 4639 | }, { */ |
| 4640 | .eraseblocks = { {64 * 1024, 32} }, |
| 4641 | .block_erase = spi_block_erase_d8, |
| 4642 | }, { |
| 4643 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4644 | .block_erase = spi_block_erase_c7, |
| 4645 | } |
| 4646 | }, |
| 4647 | .printlock = spi_prettyprint_status_register_s33, |
| 4648 | .unlock = spi_disable_blockprotect_s33, |
| 4649 | .write = spi_chip_write_256, |
| 4650 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 4651 | .voltage = {2700, 3600}, |
| 4652 | }, |
| 4653 | |
| 4654 | { |
| 4655 | .vendor = "Intel", |
| 4656 | .name = "25F320S33B8", |
| 4657 | .bustype = BUS_SPI, |
| 4658 | .manufacture_id = INTEL_ID, |
| 4659 | .model_id = INTEL_25F320S33B8, |
| 4660 | .total_size = 4096, |
| 4661 | .page_size = 256, |
| 4662 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 4663 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4664 | .tested = TEST_UNTESTED, |
| 4665 | .probe = probe_spi_rdid, |
| 4666 | .probe_timing = TIMING_ZERO, |
| 4667 | .block_erasers = |
| 4668 | { |
| 4669 | { |
| 4670 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 4671 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 4672 | * have no effect on the memory contents, but sets a flag in the SR. |
| 4673 | .eraseblocks = { |
| 4674 | {8 * 1024, 8}, |
| 4675 | {64 * 1024, 63} // inaccessible |
| 4676 | }, |
| 4677 | .block_erase = spi_block_erase_40, |
| 4678 | }, { */ |
| 4679 | .eraseblocks = { {64 * 1024, 64} }, |
| 4680 | .block_erase = spi_block_erase_d8, |
| 4681 | }, { |
| 4682 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4683 | .block_erase = spi_block_erase_c7, |
| 4684 | } |
| 4685 | }, |
| 4686 | .printlock = spi_prettyprint_status_register_s33, |
| 4687 | .unlock = spi_disable_blockprotect_s33, |
| 4688 | .write = spi_chip_write_256, |
| 4689 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 4690 | .voltage = {2700, 3600}, |
| 4691 | }, |
| 4692 | |
| 4693 | { |
| 4694 | .vendor = "Intel", |
| 4695 | .name = "25F320S33T8", |
| 4696 | .bustype = BUS_SPI, |
| 4697 | .manufacture_id = INTEL_ID, |
| 4698 | .model_id = INTEL_25F320S33T8, |
| 4699 | .total_size = 4096, |
| 4700 | .page_size = 256, |
| 4701 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 4702 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4703 | .tested = TEST_UNTESTED, |
| 4704 | .probe = probe_spi_rdid, |
| 4705 | .probe_timing = TIMING_ZERO, |
| 4706 | .block_erasers = |
| 4707 | { |
| 4708 | { |
| 4709 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 4710 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 4711 | * have no effect on the memory contents, but sets a flag in the SR. |
| 4712 | .eraseblocks = { |
| 4713 | {64 * 1024, 63}, // inaccessible |
| 4714 | {8 * 1024, 8} |
| 4715 | }, |
| 4716 | .block_erase = spi_block_erase_40, |
| 4717 | }, { */ |
| 4718 | .eraseblocks = { {64 * 1024, 64} }, |
| 4719 | .block_erase = spi_block_erase_d8, |
| 4720 | }, { |
| 4721 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4722 | .block_erase = spi_block_erase_c7, |
| 4723 | } |
| 4724 | }, |
| 4725 | .printlock = spi_prettyprint_status_register_s33, |
| 4726 | .unlock = spi_disable_blockprotect_s33, |
| 4727 | .write = spi_chip_write_256, |
| 4728 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 4729 | .voltage = {2700, 3600}, |
| 4730 | }, |
| 4731 | |
| 4732 | { |
| 4733 | .vendor = "Intel", |
| 4734 | .name = "25F640S33B8", |
| 4735 | .bustype = BUS_SPI, |
| 4736 | .manufacture_id = INTEL_ID, |
| 4737 | .model_id = INTEL_25F640S33B8, |
| 4738 | .total_size = 8192, |
| 4739 | .page_size = 256, |
| 4740 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 4741 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4742 | .tested = TEST_UNTESTED, |
| 4743 | .probe = probe_spi_rdid, |
| 4744 | .probe_timing = TIMING_ZERO, |
| 4745 | .block_erasers = |
| 4746 | { |
| 4747 | { |
| 4748 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 4749 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 4750 | * have no effect on the memory contents, but sets a flag in the SR. |
| 4751 | .eraseblocks = { |
| 4752 | {8 * 1024, 8}, |
| 4753 | {64 * 1024, 127} // inaccessible |
| 4754 | }, |
| 4755 | .block_erase = spi_block_erase_40, |
| 4756 | }, { */ |
| 4757 | .eraseblocks = { {64 * 1024, 128} }, |
| 4758 | .block_erase = spi_block_erase_d8, |
| 4759 | }, { |
| 4760 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4761 | .block_erase = spi_block_erase_c7, |
| 4762 | } |
| 4763 | }, |
| 4764 | .printlock = spi_prettyprint_status_register_s33, |
| 4765 | .unlock = spi_disable_blockprotect_s33, |
| 4766 | .write = spi_chip_write_256, |
| 4767 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 4768 | .voltage = {2700, 3600}, |
| 4769 | }, |
| 4770 | |
| 4771 | { |
| 4772 | .vendor = "Intel", |
| 4773 | .name = "25F640S33T8", |
| 4774 | .bustype = BUS_SPI, |
| 4775 | .manufacture_id = INTEL_ID, |
| 4776 | .model_id = INTEL_25F640S33T8, |
| 4777 | .total_size = 8192, |
| 4778 | .page_size = 256, |
| 4779 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 4780 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4781 | .tested = TEST_UNTESTED, |
| 4782 | .probe = probe_spi_rdid, |
| 4783 | .probe_timing = TIMING_ZERO, |
| 4784 | .block_erasers = |
| 4785 | { |
| 4786 | { |
| 4787 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 4788 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 4789 | * have no effect on the memory contents, but sets a flag in the SR. |
| 4790 | .eraseblocks = { |
| 4791 | {64 * 1024, 127}, // inaccessible |
| 4792 | {8 * 1024, 8} |
| 4793 | }, |
| 4794 | .block_erase = spi_block_erase_40, |
| 4795 | }, { */ |
| 4796 | .eraseblocks = { {64 * 1024, 128} }, |
| 4797 | .block_erase = spi_block_erase_d8, |
| 4798 | }, { |
| 4799 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4800 | .block_erase = spi_block_erase_c7, |
| 4801 | } |
| 4802 | }, |
| 4803 | .printlock = spi_prettyprint_status_register_s33, |
| 4804 | .unlock = spi_disable_blockprotect_s33, |
| 4805 | .write = spi_chip_write_256, |
| 4806 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 4807 | .voltage = {2700, 3600}, |
| 4808 | }, |
| 4809 | |
| 4810 | { |
| 4811 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4812 | .name = "28F001BN/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4813 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 4814 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4815 | .model_id = INTEL_28F001B, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 4816 | .total_size = 128, |
| 4817 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 4818 | .tested = TEST_UNTESTED, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 4819 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4820 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4821 | .block_erasers = |
| 4822 | { |
| 4823 | { |
| 4824 | .eraseblocks = { |
| 4825 | {8 * 1024, 1}, |
| 4826 | {4 * 1024, 2}, |
| 4827 | {112 * 1024, 1}, |
| 4828 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 4829 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4830 | }, |
| 4831 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 4832 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 4833 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4834 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 4835 | }, |
| 4836 | |
| 4837 | { |
| 4838 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4839 | .name = "28F001BN/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4840 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 4841 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4842 | .model_id = INTEL_28F001T, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 4843 | .total_size = 128, |
| 4844 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 4845 | .tested = TEST_OK_PR, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 4846 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4847 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4848 | .block_erasers = |
| 4849 | { |
| 4850 | { |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 4851 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4852 | {112 * 1024, 1}, |
| 4853 | {4 * 1024, 2}, |
| 4854 | {8 * 1024, 1}, |
| 4855 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 4856 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4857 | }, |
| 4858 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 4859 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 4860 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4861 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 4862 | }, |
| 4863 | |
| 4864 | { |
| 4865 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4866 | .name = "28F002BC/BL/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4867 | .bustype = BUS_PARALLEL, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 4868 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4869 | .model_id = INTEL_28F002T, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 4870 | .total_size = 256, |
| 4871 | .page_size = 256 * 1024, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 4872 | .tested = TEST_OK_PRE, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 4873 | .probe = probe_82802ab, |
| 4874 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4875 | .block_erasers = |
| 4876 | { |
| 4877 | { |
| 4878 | .eraseblocks = { |
| 4879 | {128 * 1024, 1}, |
| 4880 | {96 * 1024, 1}, |
| 4881 | {8 * 1024, 2}, |
| 4882 | {16 * 1024, 1}, |
| 4883 | }, |
| 4884 | .block_erase = erase_block_82802ab, |
| 4885 | }, |
| 4886 | }, |
| 4887 | .write = write_82802ab, |
| 4888 | .read = read_memmapped, |
| 4889 | }, |
| 4890 | |
| 4891 | { |
| 4892 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4893 | .name = "28F008S3/S5/SC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4894 | .bustype = BUS_PARALLEL, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 4895 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4896 | .model_id = INTEL_28F004S3, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 4897 | .total_size = 512, |
| 4898 | .page_size = 256, |
| 4899 | .tested = TEST_UNTESTED, |
| 4900 | .probe = probe_82802ab, |
| 4901 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 4902 | .block_erasers = |
| 4903 | { |
| 4904 | { |
| 4905 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 4906 | .block_erase = erase_block_82802ab, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 4907 | }, |
| 4908 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 4909 | .unlock = unlock_28f004s5, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 4910 | .write = write_82802ab, |
| 4911 | .read = read_memmapped, |
| 4912 | }, |
| 4913 | |
| 4914 | { |
| 4915 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4916 | .name = "28F004B5/BE/BV/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4917 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 4918 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4919 | .model_id = INTEL_28F004B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 4920 | .total_size = 512, |
| 4921 | .page_size = 128 * 1024, /* maximal block size */ |
| 4922 | .tested = TEST_UNTESTED, |
| 4923 | .probe = probe_82802ab, |
| 4924 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4925 | .block_erasers = |
| 4926 | { |
| 4927 | { |
| 4928 | .eraseblocks = { |
| 4929 | {16 * 1024, 1}, |
| 4930 | {8 * 1024, 2}, |
| 4931 | {96 * 1024, 1}, |
| 4932 | {128 * 1024, 3}, |
| 4933 | }, |
| 4934 | .block_erase = erase_block_82802ab, |
| 4935 | }, |
| 4936 | }, |
| 4937 | .write = write_82802ab, |
| 4938 | .read = read_memmapped, |
| 4939 | }, |
| 4940 | |
| 4941 | { |
| 4942 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4943 | .name = "28F004B5/BE/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4944 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 4945 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4946 | .model_id = INTEL_28F004T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 4947 | .total_size = 512, |
| 4948 | .page_size = 128 * 1024, /* maximal block size */ |
| 4949 | .tested = TEST_UNTESTED, |
| 4950 | .probe = probe_82802ab, |
| 4951 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4952 | .block_erasers = |
| 4953 | { |
| 4954 | { |
| 4955 | .eraseblocks = { |
| 4956 | {128 * 1024, 3}, |
| 4957 | {96 * 1024, 1}, |
| 4958 | {8 * 1024, 2}, |
| 4959 | {16 * 1024, 1}, |
| 4960 | }, |
| 4961 | .block_erase = erase_block_82802ab, |
| 4962 | }, |
| 4963 | }, |
| 4964 | .write = write_82802ab, |
| 4965 | .read = read_memmapped, |
| 4966 | }, |
| 4967 | |
| 4968 | { |
| 4969 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4970 | .name = "28F400BV/BX/CE/CV-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4971 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 4972 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4973 | .model_id = INTEL_28F400B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 4974 | .total_size = 512, |
| 4975 | .page_size = 128 * 1024, /* maximal block size */ |
| 4976 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 4977 | .tested = TEST_UNTESTED, |
| 4978 | .probe = probe_82802ab, |
| 4979 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4980 | .block_erasers = |
| 4981 | { |
| 4982 | { |
| 4983 | .eraseblocks = { |
| 4984 | {16 * 1024, 1}, |
| 4985 | {8 * 1024, 2}, |
| 4986 | {96 * 1024, 1}, |
| 4987 | {128 * 1024, 3}, |
| 4988 | }, |
| 4989 | .block_erase = erase_block_82802ab, |
| 4990 | }, |
| 4991 | }, |
| 4992 | .write = write_82802ab, |
| 4993 | .read = read_memmapped, |
| 4994 | }, |
| 4995 | |
| 4996 | { |
| 4997 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 4998 | .name = "28F400BV/BX/CE/CV-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4999 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5000 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5001 | .model_id = INTEL_28F400T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5002 | .total_size = 512, |
| 5003 | .page_size = 128 * 1024, /* maximal block size */ |
| 5004 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 5005 | .tested = TEST_UNTESTED, |
| 5006 | .probe = probe_82802ab, |
| 5007 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5008 | .block_erasers = |
| 5009 | { |
| 5010 | { |
| 5011 | .eraseblocks = { |
| 5012 | {128 * 1024, 3}, |
| 5013 | {96 * 1024, 1}, |
| 5014 | {8 * 1024, 2}, |
| 5015 | {16 * 1024, 1}, |
| 5016 | }, |
| 5017 | .block_erase = erase_block_82802ab, |
| 5018 | }, |
| 5019 | }, |
| 5020 | .write = write_82802ab, |
| 5021 | .read = read_memmapped, |
| 5022 | }, |
| 5023 | |
| 5024 | { |
| 5025 | .vendor = "Intel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5026 | .name = "82802AB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5027 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5028 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5029 | .model_id = INTEL_82802AB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5030 | .total_size = 512, |
| 5031 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5032 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 5033 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5034 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5035 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5036 | .block_erasers = |
| 5037 | { |
| 5038 | { |
| 5039 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5040 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5041 | }, |
| 5042 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5043 | .unlock = unlock_82802ab, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5044 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5045 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5046 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5047 | }, |
| 5048 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5049 | { |
| 5050 | .vendor = "Intel", |
| 5051 | .name = "82802AC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5052 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5053 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5054 | .model_id = INTEL_82802AC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5055 | .total_size = 1024, |
| 5056 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5057 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5058 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5059 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5060 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5061 | .block_erasers = |
| 5062 | { |
| 5063 | { |
| 5064 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5065 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5066 | }, |
| 5067 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5068 | .unlock = unlock_82802ab, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5069 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5070 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5071 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5072 | }, |
| 5073 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5074 | { |
| 5075 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5076 | .name = "MX25L512(E)/MX25V512(C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5077 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5078 | .manufacture_id = MACRONIX_ID, |
| 5079 | .model_id = MACRONIX_MX25L512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5080 | .total_size = 64, |
| 5081 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5082 | /* MX25L512E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5083 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5084 | .tested = TEST_UNTESTED, |
| 5085 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5086 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5087 | .block_erasers = |
| 5088 | { |
| 5089 | { |
| 5090 | .eraseblocks = { {4 * 1024, 16} }, |
| 5091 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5092 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5093 | .eraseblocks = { {64 * 1024, 1} }, |
| 5094 | .block_erase = spi_block_erase_52, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5095 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5096 | .eraseblocks = { {64 * 1024, 1} }, |
| 5097 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5098 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5099 | .eraseblocks = { {64 * 1024, 1} }, |
| 5100 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5101 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5102 | .eraseblocks = { {64 * 1024, 1} }, |
| 5103 | .block_erase = spi_block_erase_c7, |
| 5104 | }, |
| 5105 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5106 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5107 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5108 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5109 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */ |
| 5110 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5111 | }, |
| 5112 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5113 | { |
| 5114 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5115 | .name = "MX25L1005(C)/MX25L1006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5116 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5117 | .manufacture_id = MACRONIX_ID, |
| 5118 | .model_id = MACRONIX_MX25L1005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5119 | .total_size = 128, |
| 5120 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5121 | /* MX25L1006E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5122 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 5123 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5124 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5125 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5126 | .block_erasers = |
| 5127 | { |
| 5128 | { |
| 5129 | .eraseblocks = { {4 * 1024, 32} }, |
| 5130 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5131 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5132 | .eraseblocks = { {64 * 1024, 2} }, |
| 5133 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5134 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5135 | .eraseblocks = { {128 * 1024, 1} }, |
| 5136 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5137 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5138 | .eraseblocks = { {128 * 1024, 1} }, |
| 5139 | .block_erase = spi_block_erase_c7, |
| 5140 | }, |
| 5141 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5142 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5143 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5144 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5145 | .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] | 5146 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5147 | }, |
| 5148 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5149 | { |
| 5150 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5151 | .name = "MX25L2005(C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5152 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5153 | .manufacture_id = MACRONIX_ID, |
| 5154 | .model_id = MACRONIX_MX25L2005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5155 | .total_size = 256, |
| 5156 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5157 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5158 | .tested = TEST_UNTESTED, |
| 5159 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5160 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5161 | .block_erasers = |
| 5162 | { |
| 5163 | { |
| 5164 | .eraseblocks = { {4 * 1024, 64} }, |
| 5165 | .block_erase = spi_block_erase_20, |
| 5166 | }, { |
| 5167 | .eraseblocks = { {64 * 1024, 4} }, |
| 5168 | .block_erase = spi_block_erase_52, |
| 5169 | }, { |
| 5170 | .eraseblocks = { {64 * 1024, 4} }, |
| 5171 | .block_erase = spi_block_erase_d8, |
| 5172 | }, { |
| 5173 | .eraseblocks = { {256 * 1024, 1} }, |
| 5174 | .block_erase = spi_block_erase_60, |
| 5175 | }, { |
| 5176 | .eraseblocks = { {256 * 1024, 1} }, |
| 5177 | .block_erase = spi_block_erase_c7, |
| 5178 | }, |
| 5179 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5180 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5181 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5182 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5183 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5184 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5185 | }, |
| 5186 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5187 | { |
| 5188 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5189 | .name = "MX25L4005(A/C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5190 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5191 | .manufacture_id = MACRONIX_ID, |
| 5192 | .model_id = MACRONIX_MX25L4005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5193 | .total_size = 512, |
| 5194 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5195 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 5196 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5197 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5198 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5199 | .block_erasers = |
| 5200 | { |
| 5201 | { |
| 5202 | .eraseblocks = { {4 * 1024, 128} }, |
| 5203 | .block_erase = spi_block_erase_20, |
| 5204 | }, { |
| 5205 | .eraseblocks = { {64 * 1024, 8} }, |
| 5206 | .block_erase = spi_block_erase_52, |
| 5207 | }, { |
| 5208 | .eraseblocks = { {64 * 1024, 8} }, |
| 5209 | .block_erase = spi_block_erase_d8, |
| 5210 | }, { |
| 5211 | .eraseblocks = { {512 * 1024, 1} }, |
| 5212 | .block_erase = spi_block_erase_60, |
| 5213 | }, { |
| 5214 | .eraseblocks = { {512 * 1024, 1} }, |
| 5215 | .block_erase = spi_block_erase_c7, |
| 5216 | }, |
| 5217 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5218 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5219 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5220 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5221 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5222 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5223 | }, |
| 5224 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5225 | { |
| 5226 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5227 | .name = "MX25L8005/MX25V8005", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5228 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5229 | .manufacture_id = MACRONIX_ID, |
| 5230 | .model_id = MACRONIX_MX25L8005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5231 | .total_size = 1024, |
| 5232 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5233 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 5234 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5235 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5236 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5237 | .block_erasers = |
| 5238 | { |
| 5239 | { |
| 5240 | .eraseblocks = { {4 * 1024, 256} }, |
| 5241 | .block_erase = spi_block_erase_20, |
| 5242 | }, { |
| 5243 | .eraseblocks = { {64 * 1024, 16} }, |
| 5244 | .block_erase = spi_block_erase_52, |
| 5245 | }, { |
| 5246 | .eraseblocks = { {64 * 1024, 16} }, |
| 5247 | .block_erase = spi_block_erase_d8, |
| 5248 | }, { |
| 5249 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5250 | .block_erase = spi_block_erase_60, |
| 5251 | }, { |
| 5252 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5253 | .block_erase = spi_block_erase_c7, |
| 5254 | }, |
| 5255 | }, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5256 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5257 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5258 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5259 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 5260 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5261 | }, |
| 5262 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5263 | { |
| 5264 | .vendor = "Macronix", |
| 5265 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5266 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5267 | .manufacture_id = MACRONIX_ID, |
| 5268 | .model_id = MACRONIX_MX25L1605, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5269 | .total_size = 2048, |
| 5270 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5271 | .feature_bits = FEATURE_WRSR_WREN, |
Sven Schnelle | 4bd8a40 | 2011-03-07 10:59:06 +0000 | [diff] [blame] | 5272 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5273 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5274 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5275 | .block_erasers = |
| 5276 | { |
| 5277 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5278 | .eraseblocks = { {64 * 1024, 32} }, |
| 5279 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5280 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5281 | .eraseblocks = { {64 * 1024, 32} }, |
| 5282 | .block_erase = spi_block_erase_d8, |
| 5283 | }, { |
| 5284 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5285 | .block_erase = spi_block_erase_60, |
| 5286 | }, { |
| 5287 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5288 | .block_erase = spi_block_erase_c7, |
| 5289 | }, |
| 5290 | }, |
| 5291 | .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */ |
| 5292 | .unlock = spi_disable_blockprotect, |
| 5293 | .write = spi_chip_write_256, |
| 5294 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 5295 | .voltage = {2700, 3600}, |
| 5296 | }, |
| 5297 | |
| 5298 | { |
| 5299 | .vendor = "Macronix", |
| 5300 | .name = "MX25L1605A/MX25L1606E", |
| 5301 | .bustype = BUS_SPI, |
| 5302 | .manufacture_id = MACRONIX_ID, |
| 5303 | .model_id = MACRONIX_MX25L1605, |
| 5304 | .total_size = 2048, |
| 5305 | .page_size = 256, |
| 5306 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */ |
| 5307 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5308 | .tested = TEST_OK_PREW, |
| 5309 | .probe = probe_spi_rdid, |
| 5310 | .probe_timing = TIMING_ZERO, |
| 5311 | .block_erasers = |
| 5312 | { |
| 5313 | { |
| 5314 | .eraseblocks = { {4 * 1024, 512} }, |
| 5315 | .block_erase = spi_block_erase_20, |
| 5316 | }, { |
| 5317 | .eraseblocks = { {64 * 1024, 32} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5318 | .block_erase = spi_block_erase_52, |
| 5319 | }, { |
| 5320 | .eraseblocks = { {64 * 1024, 32} }, |
| 5321 | .block_erase = spi_block_erase_d8, |
| 5322 | }, { |
| 5323 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5324 | .block_erase = spi_block_erase_60, |
| 5325 | }, { |
| 5326 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5327 | .block_erase = spi_block_erase_c7, |
| 5328 | }, |
| 5329 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5330 | .printlock = spi_prettyprint_status_register_default_bp3, /* MX25L1605A bp2 only */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5331 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5332 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5333 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 5334 | .voltage = {2700, 3600}, |
| 5335 | }, |
| 5336 | |
| 5337 | { |
| 5338 | .vendor = "Macronix", |
| 5339 | .name = "MX25L1605D/MX25L1608D", |
| 5340 | .bustype = BUS_SPI, |
| 5341 | .manufacture_id = MACRONIX_ID, |
| 5342 | .model_id = MACRONIX_MX25L1605, |
| 5343 | .total_size = 2048, |
| 5344 | .page_size = 256, |
| 5345 | .feature_bits = FEATURE_WRSR_WREN, |
| 5346 | .tested = TEST_OK_PREW, |
| 5347 | .probe = probe_spi_rdid, |
| 5348 | .probe_timing = TIMING_ZERO, |
| 5349 | .block_erasers = |
| 5350 | { |
| 5351 | { |
| 5352 | .eraseblocks = { {4 * 1024, 512} }, |
| 5353 | .block_erase = spi_block_erase_20, |
| 5354 | }, { |
| 5355 | .eraseblocks = { {64 * 1024, 32} }, |
| 5356 | .block_erase = spi_block_erase_d8, |
| 5357 | }, { |
| 5358 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5359 | .block_erase = spi_block_erase_60, |
| 5360 | }, { |
| 5361 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5362 | .block_erase = spi_block_erase_c7, |
| 5363 | }, |
| 5364 | }, |
| 5365 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: Continously Program (CP) mode */ |
| 5366 | .unlock = spi_disable_blockprotect, |
| 5367 | .write = spi_chip_write_256, |
| 5368 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5369 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5370 | }, |
| 5371 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5372 | { |
| 5373 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 5374 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5375 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5376 | .manufacture_id = MACRONIX_ID, |
| 5377 | .model_id = MACRONIX_MX25L1635D, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 5378 | .total_size = 2048, |
| 5379 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5380 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 5381 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 5382 | .tested = TEST_UNTESTED, |
| 5383 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5384 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5385 | .block_erasers = |
| 5386 | { |
| 5387 | { |
| 5388 | .eraseblocks = { {4 * 1024, 512} }, |
| 5389 | .block_erase = spi_block_erase_20, |
| 5390 | }, { |
| 5391 | .eraseblocks = { {64 * 1024, 32} }, |
| 5392 | .block_erase = spi_block_erase_d8, |
| 5393 | }, { |
| 5394 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5395 | .block_erase = spi_block_erase_60, |
| 5396 | }, { |
| 5397 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5398 | .block_erase = spi_block_erase_c7, |
| 5399 | } |
| 5400 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5401 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5402 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5403 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5404 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5405 | .voltage = {2700, 3600}, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 5406 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 5407 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 5408 | { |
| 5409 | .vendor = "Macronix", |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 5410 | .name = "MX25L1635E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5411 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5412 | .manufacture_id = MACRONIX_ID, |
| 5413 | .model_id = MACRONIX_MX25L1635E, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 5414 | .total_size = 2048, |
| 5415 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5416 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 5417 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 5418 | .tested = TEST_UNTESTED, |
| 5419 | .probe = probe_spi_rdid, |
| 5420 | .probe_timing = TIMING_ZERO, |
| 5421 | .block_erasers = |
| 5422 | { |
| 5423 | { |
| 5424 | .eraseblocks = { {4 * 1024, 512} }, |
| 5425 | .block_erase = spi_block_erase_20, |
| 5426 | }, { |
| 5427 | .eraseblocks = { {64 * 1024, 32} }, |
| 5428 | .block_erase = spi_block_erase_d8, |
| 5429 | }, { |
| 5430 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5431 | .block_erase = spi_block_erase_60, |
| 5432 | }, { |
| 5433 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5434 | .block_erase = spi_block_erase_c7, |
| 5435 | } |
| 5436 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5437 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 5438 | .unlock = spi_disable_blockprotect, |
| 5439 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5440 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5441 | .voltage = {2700, 3600}, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 5442 | }, |
| 5443 | |
| 5444 | { |
| 5445 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5446 | .name = "MX25L3205(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5447 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5448 | .manufacture_id = MACRONIX_ID, |
| 5449 | .model_id = MACRONIX_MX25L3205, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5450 | .total_size = 4096, |
| 5451 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5452 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 5453 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5454 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5455 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5456 | .block_erasers = |
| 5457 | { |
| 5458 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5459 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5460 | .block_erase = spi_block_erase_20, |
| 5461 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5462 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5463 | .block_erase = spi_block_erase_d8, |
| 5464 | }, { |
| 5465 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5466 | .block_erase = spi_block_erase_60, |
| 5467 | }, { |
| 5468 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5469 | .block_erase = spi_block_erase_c7, |
| 5470 | }, |
| 5471 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5472 | .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5473 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5474 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5475 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 5476 | .voltage = {2700, 3600}, |
| 5477 | }, |
| 5478 | |
| 5479 | { |
| 5480 | .vendor = "Macronix", |
| 5481 | .name = "MX25L3205D/MX25L3208D", |
| 5482 | .bustype = BUS_SPI, |
| 5483 | .manufacture_id = MACRONIX_ID, |
| 5484 | .model_id = MACRONIX_MX25L3205, |
| 5485 | .total_size = 4096, |
| 5486 | .page_size = 256, |
| 5487 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 5488 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5489 | .tested = TEST_OK_PREW, |
| 5490 | .probe = probe_spi_rdid, |
| 5491 | .probe_timing = TIMING_ZERO, |
| 5492 | .block_erasers = |
| 5493 | { |
| 5494 | { |
| 5495 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5496 | .block_erase = spi_block_erase_20, |
| 5497 | }, { |
| 5498 | .eraseblocks = { {64 * 1024, 64} }, |
| 5499 | .block_erase = spi_block_erase_d8, |
| 5500 | }, { |
| 5501 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5502 | .block_erase = spi_block_erase_60, |
| 5503 | }, { |
| 5504 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5505 | .block_erase = spi_block_erase_c7, |
| 5506 | }, |
| 5507 | }, |
| 5508 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: CP mode */ |
| 5509 | .unlock = spi_disable_blockprotect, |
| 5510 | .write = spi_chip_write_256, |
| 5511 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 5512 | .voltage = {2700, 3600}, |
| 5513 | }, |
| 5514 | |
| 5515 | { |
| 5516 | .vendor = "Macronix", |
| 5517 | .name = "MX25L3206E", |
| 5518 | .bustype = BUS_SPI, |
| 5519 | .manufacture_id = MACRONIX_ID, |
| 5520 | .model_id = MACRONIX_MX25L3205, |
| 5521 | .total_size = 4096, |
| 5522 | .page_size = 256, |
| 5523 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 5524 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5525 | .tested = TEST_OK_PREW, |
| 5526 | .probe = probe_spi_rdid, |
| 5527 | .probe_timing = TIMING_ZERO, |
| 5528 | .block_erasers = |
| 5529 | { |
| 5530 | { |
| 5531 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5532 | .block_erase = spi_block_erase_20, |
| 5533 | }, { |
| 5534 | .eraseblocks = { {64 * 1024, 64} }, |
| 5535 | .block_erase = spi_block_erase_d8, |
| 5536 | }, { |
| 5537 | .eraseblocks = { {64 * 1024, 64} }, |
| 5538 | .block_erase = spi_block_erase_52, |
| 5539 | }, { |
| 5540 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5541 | .block_erase = spi_block_erase_60, |
| 5542 | }, { |
| 5543 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5544 | .block_erase = spi_block_erase_c7, |
| 5545 | }, |
| 5546 | }, |
| 5547 | .printlock = spi_prettyprint_status_register_default_bp3, |
| 5548 | .unlock = spi_disable_blockprotect, |
| 5549 | .write = spi_chip_write_256, |
| 5550 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5551 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5552 | }, |
| 5553 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5554 | { |
| 5555 | .vendor = "Macronix", |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 5556 | .name = "MX25L3235D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5557 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5558 | .manufacture_id = MACRONIX_ID, |
| 5559 | .model_id = MACRONIX_MX25L3235D, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 5560 | .total_size = 4096, |
| 5561 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5562 | /* OTP: 256B total; enter 0xB1, exit 0xC1 */ |
| 5563 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 5564 | .tested = TEST_UNTESTED, |
| 5565 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5566 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5567 | .block_erasers = |
| 5568 | { |
| 5569 | { |
| 5570 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5571 | .block_erase = spi_block_erase_20, |
| 5572 | }, { |
| 5573 | .eraseblocks = { {64 * 1024, 64} }, |
| 5574 | .block_erase = spi_block_erase_d8, |
| 5575 | }, { |
| 5576 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5577 | .block_erase = spi_block_erase_60, |
| 5578 | }, { |
| 5579 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5580 | .block_erase = spi_block_erase_c7, |
| 5581 | } |
| 5582 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5583 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5584 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5585 | .write = spi_chip_write_256, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 5586 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5587 | .voltage = {2700, 3600}, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 5588 | }, |
| 5589 | |
| 5590 | { |
| 5591 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5592 | .name = "MX25L6405(D)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5593 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5594 | .manufacture_id = MACRONIX_ID, |
| 5595 | .model_id = MACRONIX_MX25L6405, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5596 | .total_size = 8192, |
| 5597 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5598 | /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */ |
| 5599 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 5600 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5601 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5602 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5603 | .block_erasers = |
| 5604 | { |
| 5605 | { |
| 5606 | .eraseblocks = { {64 * 1024, 128} }, |
| 5607 | .block_erase = spi_block_erase_20, |
| 5608 | }, { |
| 5609 | .eraseblocks = { {64 * 1024, 128} }, |
| 5610 | .block_erase = spi_block_erase_d8, |
| 5611 | }, { |
| 5612 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5613 | .block_erase = spi_block_erase_60, |
| 5614 | }, { |
| 5615 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5616 | .block_erase = spi_block_erase_c7, |
| 5617 | } |
| 5618 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5619 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 has different meanings */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5620 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5621 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5622 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5623 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5624 | }, |
| 5625 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5626 | { |
| 5627 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5628 | .name = "MX25L6406E/MX25L6436E", |
| 5629 | .bustype = BUS_SPI, |
| 5630 | .manufacture_id = MACRONIX_ID, |
| 5631 | .model_id = MACRONIX_MX25L6405, |
| 5632 | .total_size = 8192, |
| 5633 | .page_size = 256, |
| 5634 | /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */ |
| 5635 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5636 | .tested = TEST_OK_PREW, |
| 5637 | .probe = probe_spi_rdid, |
| 5638 | .probe_timing = TIMING_ZERO, |
| 5639 | .block_erasers = |
| 5640 | { |
| 5641 | { |
| 5642 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5643 | .block_erase = spi_block_erase_20, |
| 5644 | }, { |
| 5645 | .eraseblocks = { {64 * 1024, 128} }, |
| 5646 | .block_erase = spi_block_erase_d8, |
| 5647 | }, { |
| 5648 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5649 | .block_erase = spi_block_erase_60, |
| 5650 | }, { |
| 5651 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5652 | .block_erase = spi_block_erase_c7, |
| 5653 | } |
| 5654 | }, |
| 5655 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 for 36E is quad enable */ |
| 5656 | .unlock = spi_disable_blockprotect, |
| 5657 | .write = spi_chip_write_256, |
| 5658 | .read = spi_chip_read, |
| 5659 | .voltage = {2700, 3600}, |
| 5660 | }, |
| 5661 | |
| 5662 | { |
| 5663 | .vendor = "Macronix", |
| 5664 | .name = "MX25L6445E", |
| 5665 | .bustype = BUS_SPI, |
| 5666 | .manufacture_id = MACRONIX_ID, |
| 5667 | .model_id = MACRONIX_MX25L6405, |
| 5668 | .total_size = 8192, |
| 5669 | .page_size = 256, |
| 5670 | /* supports SFDP */ |
| 5671 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 5672 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5673 | .tested = TEST_OK_PREW, |
| 5674 | .probe = probe_spi_rdid, |
| 5675 | .probe_timing = TIMING_ZERO, |
| 5676 | .block_erasers = |
| 5677 | { |
| 5678 | { |
| 5679 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5680 | .block_erase = spi_block_erase_20, |
| 5681 | }, { |
| 5682 | .eraseblocks = { {32 * 1024, 256} }, |
| 5683 | .block_erase = spi_block_erase_52, |
| 5684 | }, { |
| 5685 | .eraseblocks = { {64 * 1024, 128} }, |
| 5686 | .block_erase = spi_block_erase_d8, |
| 5687 | }, { |
| 5688 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5689 | .block_erase = spi_block_erase_60, |
| 5690 | }, { |
| 5691 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5692 | .block_erase = spi_block_erase_c7, |
| 5693 | } |
| 5694 | }, |
| 5695 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 5696 | .unlock = spi_disable_blockprotect, |
| 5697 | .write = spi_chip_write_256, |
| 5698 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5699 | .voltage = {2700, 3600}, |
| 5700 | }, |
| 5701 | |
| 5702 | { |
| 5703 | .vendor = "Macronix", |
| 5704 | .name = "MX25L12805(D)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5705 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5706 | .manufacture_id = MACRONIX_ID, |
| 5707 | .model_id = MACRONIX_MX25L12805, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 5708 | .total_size = 16384, |
| 5709 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5710 | /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */ |
| 5711 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5712 | .tested = TEST_OK_PROBE, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 5713 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5714 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5715 | .block_erasers = |
| 5716 | { |
| 5717 | { |
| 5718 | .eraseblocks = { {4 * 1024, 4096} }, |
| 5719 | .block_erase = spi_block_erase_20, |
| 5720 | }, { |
| 5721 | .eraseblocks = { {64 * 1024, 256} }, |
| 5722 | .block_erase = spi_block_erase_d8, |
| 5723 | }, { |
| 5724 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5725 | .block_erase = spi_block_erase_60, |
| 5726 | }, { |
| 5727 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5728 | .block_erase = spi_block_erase_c7, |
| 5729 | } |
| 5730 | }, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5731 | .printlock = spi_prettyprint_status_register_default_bp3, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5732 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5733 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 5734 | .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5735 | .voltage = {2700, 3600}, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 5736 | }, |
| 5737 | |
| 5738 | { |
| 5739 | .vendor = "Macronix", |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 5740 | .name = "MX25U1635E", |
| 5741 | .bustype = BUS_SPI, |
| 5742 | .manufacture_id = MACRONIX_ID, |
| 5743 | .model_id = MACRONIX_MX25U1635E, |
| 5744 | .total_size = 2048, |
| 5745 | .page_size = 256, |
| 5746 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 5747 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 5748 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5749 | .tested = TEST_UNTESTED, |
| 5750 | .probe = probe_spi_rdid, |
| 5751 | .probe_timing = TIMING_ZERO, |
| 5752 | .block_erasers = |
| 5753 | { |
| 5754 | { |
| 5755 | .eraseblocks = { {4 * 1024, 512} }, |
| 5756 | .block_erase = spi_block_erase_20, |
| 5757 | }, { |
| 5758 | .eraseblocks = { {32 * 1024, 64} }, |
| 5759 | .block_erase = spi_block_erase_52, |
| 5760 | }, { |
| 5761 | .eraseblocks = { {64 * 1024, 32} }, |
| 5762 | .block_erase = spi_block_erase_d8, |
| 5763 | }, { |
| 5764 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5765 | .block_erase = spi_block_erase_60, |
| 5766 | }, { |
| 5767 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5768 | .block_erase = spi_block_erase_c7, |
| 5769 | } |
| 5770 | }, |
| 5771 | /* TODO: security register */ |
| 5772 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 5773 | .unlock = spi_disable_blockprotect, |
| 5774 | .write = spi_chip_write_256, |
| 5775 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5776 | .voltage = {1650, 2000}, |
| 5777 | }, |
| 5778 | |
| 5779 | { |
| 5780 | .vendor = "Macronix", |
| 5781 | .name = "MX25U3235E/F", |
| 5782 | .bustype = BUS_SPI, |
| 5783 | .manufacture_id = MACRONIX_ID, |
| 5784 | .model_id = MACRONIX_MX25U3235E, |
| 5785 | .total_size = 4096, |
| 5786 | .page_size = 256, |
| 5787 | /* F model supports SFDP */ |
| 5788 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 5789 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 5790 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5791 | .tested = TEST_OK_PREW, |
| 5792 | .probe = probe_spi_rdid, |
| 5793 | .probe_timing = TIMING_ZERO, |
| 5794 | .block_erasers = |
| 5795 | { |
| 5796 | { |
| 5797 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5798 | .block_erase = spi_block_erase_20, |
| 5799 | }, { |
| 5800 | .eraseblocks = { {32 * 1024, 128} }, |
| 5801 | .block_erase = spi_block_erase_52, |
| 5802 | }, { |
| 5803 | .eraseblocks = { {64 * 1024, 64} }, |
| 5804 | .block_erase = spi_block_erase_d8, |
| 5805 | }, { |
| 5806 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5807 | .block_erase = spi_block_erase_60, |
| 5808 | }, { |
| 5809 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5810 | .block_erase = spi_block_erase_c7, |
| 5811 | } |
| 5812 | }, |
| 5813 | /* TODO: security register */ |
| 5814 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 5815 | .unlock = spi_disable_blockprotect, |
| 5816 | .write = spi_chip_write_256, |
| 5817 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5818 | .voltage = {1650, 2000}, |
| 5819 | }, |
| 5820 | |
| 5821 | { |
| 5822 | .vendor = "Macronix", |
| 5823 | .name = "MX25U6435E/F", |
| 5824 | .bustype = BUS_SPI, |
| 5825 | .manufacture_id = MACRONIX_ID, |
| 5826 | .model_id = MACRONIX_MX25U6435E, |
| 5827 | .total_size = 8192, |
| 5828 | .page_size = 256, |
| 5829 | /* F model supports SFDP */ |
| 5830 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 5831 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 5832 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5833 | .tested = TEST_UNTESTED, |
| 5834 | .probe = probe_spi_rdid, |
| 5835 | .probe_timing = TIMING_ZERO, |
| 5836 | .block_erasers = |
| 5837 | { |
| 5838 | { |
| 5839 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5840 | .block_erase = spi_block_erase_20, |
| 5841 | }, { |
| 5842 | .eraseblocks = { {32 * 1024, 256} }, |
| 5843 | .block_erase = spi_block_erase_52, |
| 5844 | }, { |
| 5845 | .eraseblocks = { {64 * 1024, 128} }, |
| 5846 | .block_erase = spi_block_erase_d8, |
| 5847 | }, { |
| 5848 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5849 | .block_erase = spi_block_erase_60, |
| 5850 | }, { |
| 5851 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5852 | .block_erase = spi_block_erase_c7, |
| 5853 | } |
| 5854 | }, |
| 5855 | /* TODO: security register */ |
| 5856 | .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */ |
| 5857 | .unlock = spi_disable_blockprotect, |
| 5858 | .write = spi_chip_write_256, |
| 5859 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5860 | .voltage = {1650, 2000}, |
| 5861 | }, |
| 5862 | |
| 5863 | { |
| 5864 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 5865 | .name = "MX29F001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5866 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5867 | .manufacture_id = MACRONIX_ID, |
| 5868 | .model_id = MACRONIX_MX29F001B, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 5869 | .total_size = 128, |
| 5870 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5871 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5872 | .tested = TEST_UNTESTED, |
| 5873 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 5874 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5875 | .block_erasers = |
| 5876 | { |
| 5877 | { |
| 5878 | .eraseblocks = { |
| 5879 | {8 * 1024, 1}, |
| 5880 | {4 * 1024, 2}, |
| 5881 | {8 * 1024, 2}, |
| 5882 | {32 * 1024, 1}, |
| 5883 | {64 * 1024, 1}, |
| 5884 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5885 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5886 | }, { |
| 5887 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5888 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5889 | } |
| 5890 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5891 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 5892 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5893 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 5894 | }, |
| 5895 | |
| 5896 | { |
| 5897 | .vendor = "Macronix", |
| 5898 | .name = "MX29F001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5899 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5900 | .manufacture_id = MACRONIX_ID, |
| 5901 | .model_id = MACRONIX_MX29F001T, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 5902 | .total_size = 128, |
| 5903 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5904 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stefan Tauner | 74c6ec6 | 2011-05-18 01:31:46 +0000 | [diff] [blame] | 5905 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5906 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 5907 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5908 | .block_erasers = |
| 5909 | { |
| 5910 | { |
| 5911 | .eraseblocks = { |
| 5912 | {64 * 1024, 1}, |
| 5913 | {32 * 1024, 1}, |
| 5914 | {8 * 1024, 2}, |
| 5915 | {4 * 1024, 2}, |
| 5916 | {8 * 1024, 1}, |
| 5917 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5918 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5919 | }, { |
| 5920 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5921 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5922 | } |
| 5923 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5924 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 5925 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5926 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 5927 | }, |
| 5928 | |
| 5929 | { |
| 5930 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 5931 | .name = "MX29F002(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5932 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5933 | .manufacture_id = MACRONIX_ID, |
| 5934 | .model_id = MACRONIX_MX29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5935 | .total_size = 256, |
| 5936 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5937 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5938 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5939 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 5940 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5941 | .block_erasers = |
| 5942 | { |
| 5943 | { |
| 5944 | .eraseblocks = { |
| 5945 | {16 * 1024, 1}, |
| 5946 | {8 * 1024, 2}, |
| 5947 | {32 * 1024, 1}, |
| 5948 | {64 * 1024, 3}, |
| 5949 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5950 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5951 | }, { |
| 5952 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5953 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5954 | }, |
| 5955 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5956 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5957 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5958 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5959 | }, |
| 5960 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5961 | { |
| 5962 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 5963 | .name = "MX29F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5964 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5965 | .manufacture_id = MACRONIX_ID, |
| 5966 | .model_id = MACRONIX_MX29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5967 | .total_size = 256, |
| 5968 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5969 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 5970 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5971 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 5972 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5973 | .block_erasers = |
| 5974 | { |
| 5975 | { |
| 5976 | .eraseblocks = { |
| 5977 | {64 * 1024, 3}, |
| 5978 | {32 * 1024, 1}, |
| 5979 | {8 * 1024, 2}, |
| 5980 | {16 * 1024, 1}, |
| 5981 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5982 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5983 | }, { |
| 5984 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5985 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5986 | }, |
| 5987 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5988 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5989 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5990 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5991 | }, |
| 5992 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5993 | { |
| 5994 | .vendor = "Macronix", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 5995 | .name = "MX29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5996 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 5997 | .manufacture_id = MACRONIX_ID, |
| 5998 | .model_id = MACRONIX_MX29F040, |
| 5999 | .total_size = 512, |
| 6000 | .page_size = 64 * 1024, |
| 6001 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6002 | .tested = TEST_UNTESTED, |
| 6003 | .probe = probe_jedec, |
| 6004 | .probe_timing = TIMING_ZERO, |
| 6005 | .block_erasers = |
| 6006 | { |
| 6007 | { |
| 6008 | .eraseblocks = { {64 * 1024, 8} }, |
| 6009 | .block_erase = erase_sector_jedec, |
| 6010 | }, { |
| 6011 | .eraseblocks = { {512 * 1024, 1} }, |
| 6012 | .block_erase = erase_chip_block_jedec, |
| 6013 | }, |
| 6014 | }, |
| 6015 | .write = write_jedec_1, |
| 6016 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6017 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6018 | }, |
| 6019 | |
| 6020 | { |
| 6021 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 6022 | .name = "MX29LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6023 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6024 | .manufacture_id = MACRONIX_ID, |
| 6025 | .model_id = MACRONIX_MX29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6026 | .total_size = 512, |
| 6027 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6028 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6029 | .tested = TEST_UNTESTED, |
| 6030 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6031 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6032 | .block_erasers = |
| 6033 | { |
| 6034 | { |
| 6035 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6036 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6037 | }, { |
| 6038 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6039 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6040 | }, |
| 6041 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6042 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6043 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6044 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 6045 | }, |
| 6046 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6047 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6048 | .vendor = "MoselVitelic", |
| 6049 | .name = "V29C51000B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6050 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6051 | .manufacture_id = SYNCMOS_MVC_ID, |
| 6052 | .model_id = MVC_V29C51000B, |
| 6053 | .total_size = 64, |
| 6054 | .page_size = 512, |
| 6055 | .feature_bits = FEATURE_EITHER_RESET, |
| 6056 | .tested = TEST_UNTESTED, |
| 6057 | .probe = probe_jedec, |
| 6058 | .probe_timing = TIMING_ZERO, |
| 6059 | .block_erasers = |
| 6060 | { |
| 6061 | { |
| 6062 | .eraseblocks = { {512, 128} }, |
| 6063 | .block_erase = erase_sector_jedec, |
| 6064 | }, { |
| 6065 | .eraseblocks = { {64 * 1024, 1} }, |
| 6066 | .block_erase = erase_chip_block_jedec, |
| 6067 | }, |
| 6068 | }, |
| 6069 | .write = write_jedec_1, |
| 6070 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6071 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6072 | }, |
| 6073 | |
| 6074 | { |
| 6075 | .vendor = "MoselVitelic", |
| 6076 | .name = "V29C51000T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6077 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6078 | .manufacture_id = SYNCMOS_MVC_ID, |
| 6079 | .model_id = MVC_V29C51000T, |
| 6080 | .total_size = 64, |
| 6081 | .page_size = 512, |
| 6082 | .feature_bits = FEATURE_EITHER_RESET, |
| 6083 | .tested = TEST_UNTESTED, |
| 6084 | .probe = probe_jedec, |
| 6085 | .probe_timing = TIMING_ZERO, |
| 6086 | .block_erasers = |
| 6087 | { |
| 6088 | { |
| 6089 | .eraseblocks = { {512, 128} }, |
| 6090 | .block_erase = erase_sector_jedec, |
| 6091 | }, { |
| 6092 | .eraseblocks = { {64 * 1024, 1} }, |
| 6093 | .block_erase = erase_chip_block_jedec, |
| 6094 | }, |
| 6095 | }, |
| 6096 | .write = write_jedec_1, |
| 6097 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6098 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6099 | }, |
| 6100 | |
| 6101 | { |
| 6102 | .vendor = "MoselVitelic", |
| 6103 | .name = "V29C51400B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6104 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6105 | .manufacture_id = SYNCMOS_MVC_ID, |
| 6106 | .model_id = MVC_V29C51400B, |
| 6107 | .total_size = 512, |
| 6108 | .page_size = 1024, |
| 6109 | .feature_bits = FEATURE_EITHER_RESET, |
| 6110 | .tested = TEST_UNTESTED, |
| 6111 | .probe = probe_jedec, |
| 6112 | .probe_timing = TIMING_ZERO, |
| 6113 | .block_erasers = |
| 6114 | { |
| 6115 | { |
| 6116 | .eraseblocks = { {1024, 512} }, |
| 6117 | .block_erase = erase_sector_jedec, |
| 6118 | }, { |
| 6119 | .eraseblocks = { {512 * 1024, 1} }, |
| 6120 | .block_erase = erase_chip_block_jedec, |
| 6121 | }, |
| 6122 | }, |
| 6123 | .write = write_jedec_1, |
| 6124 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6125 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6126 | }, |
| 6127 | |
| 6128 | { |
| 6129 | .vendor = "MoselVitelic", |
| 6130 | .name = "V29C51400T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6131 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6132 | .manufacture_id = SYNCMOS_MVC_ID, |
| 6133 | .model_id = MVC_V29C51400T, |
| 6134 | .total_size = 512, |
| 6135 | .page_size = 1024, |
| 6136 | .feature_bits = FEATURE_EITHER_RESET, |
| 6137 | .tested = TEST_UNTESTED, |
| 6138 | .probe = probe_jedec, |
| 6139 | .probe_timing = TIMING_ZERO, |
| 6140 | .block_erasers = |
| 6141 | { |
| 6142 | { |
| 6143 | .eraseblocks = { {1024, 512} }, |
| 6144 | .block_erase = erase_sector_jedec, |
| 6145 | }, { |
| 6146 | .eraseblocks = { {512 * 1024, 1} }, |
| 6147 | .block_erase = erase_chip_block_jedec, |
| 6148 | }, |
| 6149 | }, |
| 6150 | .write = write_jedec_1, |
| 6151 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6152 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6153 | }, |
| 6154 | |
| 6155 | { |
| 6156 | .vendor = "MoselVitelic", |
| 6157 | .name = "V29LC51000", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6158 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6159 | .manufacture_id = SYNCMOS_MVC_ID, |
| 6160 | .model_id = MVC_V29LC51000, |
| 6161 | .total_size = 64, |
| 6162 | .page_size = 512, |
| 6163 | .feature_bits = FEATURE_EITHER_RESET, |
| 6164 | .tested = TEST_UNTESTED, |
| 6165 | .probe = probe_jedec, |
| 6166 | .probe_timing = TIMING_ZERO, |
| 6167 | .block_erasers = |
| 6168 | { |
| 6169 | { |
| 6170 | .eraseblocks = { {512, 128} }, |
| 6171 | .block_erase = erase_sector_jedec, |
| 6172 | }, { |
| 6173 | .eraseblocks = { {64 * 1024, 1} }, |
| 6174 | .block_erase = erase_chip_block_jedec, |
| 6175 | }, |
| 6176 | }, |
| 6177 | .write = write_jedec_1, |
| 6178 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6179 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6180 | }, |
| 6181 | |
| 6182 | { |
| 6183 | .vendor = "MoselVitelic", |
| 6184 | .name = "V29LC51001", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6185 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6186 | .manufacture_id = SYNCMOS_MVC_ID, |
| 6187 | .model_id = MVC_V29LC51001, |
| 6188 | .total_size = 128, |
| 6189 | .page_size = 512, |
| 6190 | .feature_bits = FEATURE_EITHER_RESET, |
| 6191 | .tested = TEST_UNTESTED, |
| 6192 | .probe = probe_jedec, |
| 6193 | .probe_timing = TIMING_ZERO, |
| 6194 | .block_erasers = |
| 6195 | { |
| 6196 | { |
| 6197 | .eraseblocks = { {512, 256} }, |
| 6198 | .block_erase = erase_sector_jedec, |
| 6199 | }, { |
| 6200 | .eraseblocks = { {128 * 1024, 1} }, |
| 6201 | .block_erase = erase_chip_block_jedec, |
| 6202 | }, |
| 6203 | }, |
| 6204 | .write = write_jedec_1, |
| 6205 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6206 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6207 | }, |
| 6208 | |
| 6209 | { |
| 6210 | .vendor = "MoselVitelic", |
| 6211 | .name = "V29LC51002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6212 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6213 | .manufacture_id = SYNCMOS_MVC_ID, |
| 6214 | .model_id = MVC_V29LC51002, |
| 6215 | .total_size = 256, |
| 6216 | .page_size = 512, |
| 6217 | .feature_bits = FEATURE_EITHER_RESET, |
| 6218 | .tested = TEST_UNTESTED, |
| 6219 | .probe = probe_jedec, |
| 6220 | .probe_timing = TIMING_ZERO, |
| 6221 | .block_erasers = |
| 6222 | { |
| 6223 | { |
| 6224 | .eraseblocks = { {512, 512} }, |
| 6225 | .block_erase = erase_sector_jedec, |
| 6226 | }, { |
| 6227 | .eraseblocks = { {256 * 1024, 1} }, |
| 6228 | .block_erase = erase_chip_block_jedec, |
| 6229 | }, |
| 6230 | }, |
| 6231 | .write = write_jedec_1, |
| 6232 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6233 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 6234 | }, |
| 6235 | |
| 6236 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6237 | .vendor = "Numonyx", |
| 6238 | .name = "M25PE10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6239 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6240 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 6241 | .model_id = ST_M25PE10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6242 | .total_size = 128, |
| 6243 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6244 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6245 | .tested = TEST_UNTESTED, |
| 6246 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6247 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6248 | .block_erasers = |
| 6249 | { |
| 6250 | { |
| 6251 | .eraseblocks = { {4 * 1024, 32} }, |
| 6252 | .block_erase = spi_block_erase_20, |
| 6253 | }, { |
| 6254 | .eraseblocks = { {64 * 1024, 2} }, |
| 6255 | .block_erase = spi_block_erase_d8, |
| 6256 | }, { |
| 6257 | .eraseblocks = { {128 * 1024, 1} }, |
| 6258 | .block_erase = spi_block_erase_c7, |
| 6259 | } |
| 6260 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6261 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6262 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6263 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6264 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6265 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6266 | }, |
| 6267 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6268 | { |
| 6269 | .vendor = "Numonyx", |
| 6270 | .name = "M25PE20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6271 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6272 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 6273 | .model_id = ST_M25PE20, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6274 | .total_size = 256, |
| 6275 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6276 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6277 | .tested = TEST_UNTESTED, |
| 6278 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6279 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6280 | .block_erasers = |
| 6281 | { |
| 6282 | { |
| 6283 | .eraseblocks = { {4 * 1024, 64} }, |
| 6284 | .block_erase = spi_block_erase_20, |
| 6285 | }, { |
| 6286 | .eraseblocks = { {64 * 1024, 4} }, |
| 6287 | .block_erase = spi_block_erase_d8, |
| 6288 | }, { |
| 6289 | .eraseblocks = { {256 * 1024, 1} }, |
| 6290 | .block_erase = spi_block_erase_c7, |
| 6291 | } |
| 6292 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6293 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6294 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6295 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6296 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6297 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6298 | }, |
| 6299 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6300 | { |
| 6301 | .vendor = "Numonyx", |
| 6302 | .name = "M25PE40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6303 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6304 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 6305 | .model_id = ST_M25PE40, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6306 | .total_size = 512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6307 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6308 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6309 | .tested = TEST_UNTESTED, |
| 6310 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6311 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6312 | .block_erasers = |
| 6313 | { |
| 6314 | { |
| 6315 | .eraseblocks = { {4 * 1024, 128} }, |
| 6316 | .block_erase = spi_block_erase_20, |
| 6317 | }, { |
| 6318 | .eraseblocks = { {64 * 1024, 8} }, |
| 6319 | .block_erase = spi_block_erase_d8, |
| 6320 | }, { |
| 6321 | .eraseblocks = { {512 * 1024, 1} }, |
| 6322 | .block_erase = spi_block_erase_c7, |
| 6323 | } |
| 6324 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6325 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6326 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6327 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6328 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6329 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6330 | }, |
| 6331 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6332 | { |
| 6333 | .vendor = "Numonyx", |
| 6334 | .name = "M25PE80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6335 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6336 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 6337 | .model_id = ST_M25PE80, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6338 | .total_size = 1024, |
| 6339 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6340 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 6341 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6342 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6343 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6344 | .block_erasers = |
| 6345 | { |
| 6346 | { |
| 6347 | .eraseblocks = { {4 * 1024, 256} }, |
| 6348 | .block_erase = spi_block_erase_20, |
| 6349 | }, { |
| 6350 | .eraseblocks = { {64 * 1024, 16} }, |
| 6351 | .block_erase = spi_block_erase_d8, |
| 6352 | }, { |
| 6353 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6354 | .block_erase = spi_block_erase_c7, |
| 6355 | } |
| 6356 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6357 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6358 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6359 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6360 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6361 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6362 | }, |
| 6363 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6364 | { |
| 6365 | .vendor = "Numonyx", |
| 6366 | .name = "M25PE16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6367 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6368 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 6369 | .model_id = ST_M25PE16, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6370 | .total_size = 2048, |
| 6371 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6372 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6373 | .tested = TEST_UNTESTED, |
| 6374 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6375 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6376 | .block_erasers = |
| 6377 | { |
| 6378 | { |
| 6379 | .eraseblocks = { {4 * 1024, 512} }, |
| 6380 | .block_erase = spi_block_erase_20, |
| 6381 | }, { |
| 6382 | .eraseblocks = { {64 * 1024, 32} }, |
| 6383 | .block_erase = spi_block_erase_d8, |
| 6384 | }, { |
| 6385 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6386 | .block_erase = spi_block_erase_c7, |
| 6387 | } |
| 6388 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6389 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6390 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6391 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6392 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6393 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6394 | }, |
| 6395 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6396 | { |
Niklas Söderlund | ae4294f | 2012-04-14 21:04:03 +0000 | [diff] [blame] | 6397 | .vendor = "Numonyx", |
Stefan Tauner | d956f82 | 2012-10-26 16:49:15 +0000 | [diff] [blame] | 6398 | .name = "N25Q016", |
| 6399 | .bustype = BUS_SPI, |
| 6400 | .manufacture_id = ST_ID, |
| 6401 | .model_id = ST_N25Q016__1E, |
| 6402 | .total_size = 2048, |
| 6403 | .page_size = 256, |
| 6404 | /* supports SFDP */ |
| 6405 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 6406 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6407 | .tested = TEST_UNTESTED, |
| 6408 | .probe = probe_spi_rdid, |
| 6409 | .probe_timing = TIMING_ZERO, |
| 6410 | .block_erasers = |
| 6411 | { |
| 6412 | { |
| 6413 | .eraseblocks = { {4 * 1024, 512} }, |
| 6414 | .block_erase = spi_block_erase_20, |
| 6415 | }, { |
| 6416 | .eraseblocks = { {32 * 1024, 64} }, |
| 6417 | .block_erase = spi_block_erase_52, |
| 6418 | }, { |
| 6419 | .eraseblocks = { {64 * 1024, 32} }, |
| 6420 | .block_erase = spi_block_erase_d8, |
| 6421 | }, { |
| 6422 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6423 | .block_erase = spi_block_erase_c7, |
| 6424 | } |
| 6425 | }, |
| 6426 | .unlock = spi_disable_blockprotect, |
| 6427 | .write = spi_chip_write_256, |
| 6428 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6429 | .voltage = {1700, 2000}, |
| 6430 | }, |
| 6431 | |
| 6432 | { |
| 6433 | .vendor = "Numonyx", |
| 6434 | .name = "N25Q032..1E", |
| 6435 | .bustype = BUS_SPI, |
| 6436 | .manufacture_id = ST_ID, |
| 6437 | .model_id = ST_N25Q032__1E, |
| 6438 | .total_size = 4096, |
| 6439 | .page_size = 256, |
| 6440 | /* supports SFDP */ |
| 6441 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 6442 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6443 | .tested = TEST_UNTESTED, |
| 6444 | .probe = probe_spi_rdid, |
| 6445 | .probe_timing = TIMING_ZERO, |
| 6446 | .block_erasers = |
| 6447 | { |
| 6448 | { |
| 6449 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6450 | .block_erase = spi_block_erase_20, |
| 6451 | }, { |
| 6452 | .eraseblocks = { {64 * 1024, 64} }, |
| 6453 | .block_erase = spi_block_erase_d8, |
| 6454 | }, { |
| 6455 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6456 | .block_erase = spi_block_erase_c7, |
| 6457 | } |
| 6458 | }, |
| 6459 | .unlock = spi_disable_blockprotect, |
| 6460 | .write = spi_chip_write_256, |
| 6461 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6462 | .voltage = {1700, 2000}, |
| 6463 | }, |
| 6464 | |
| 6465 | { |
| 6466 | .vendor = "Numonyx", |
| 6467 | .name = "N25Q032..3E", |
| 6468 | .bustype = BUS_SPI, |
| 6469 | .manufacture_id = ST_ID, |
| 6470 | .model_id = ST_N25Q032__3E, |
| 6471 | .total_size = 4096, |
| 6472 | .page_size = 256, |
| 6473 | /* supports SFDP */ |
| 6474 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 6475 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6476 | .tested = TEST_UNTESTED, |
| 6477 | .probe = probe_spi_rdid, |
| 6478 | .probe_timing = TIMING_ZERO, |
| 6479 | .block_erasers = |
| 6480 | { |
| 6481 | { |
| 6482 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6483 | .block_erase = spi_block_erase_20, |
| 6484 | }, { |
| 6485 | .eraseblocks = { {64 * 1024, 64} }, |
| 6486 | .block_erase = spi_block_erase_d8, |
| 6487 | }, { |
| 6488 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6489 | .block_erase = spi_block_erase_c7, |
| 6490 | } |
| 6491 | }, |
| 6492 | .unlock = spi_disable_blockprotect, |
| 6493 | .write = spi_chip_write_256, |
| 6494 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6495 | .voltage = {2700, 3600}, |
| 6496 | }, |
| 6497 | |
| 6498 | { |
| 6499 | .vendor = "Numonyx", |
David Hendricks | 99f947d | 2012-10-04 14:41:20 +0000 | [diff] [blame] | 6500 | .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
Niklas Söderlund | ae4294f | 2012-04-14 21:04:03 +0000 | [diff] [blame] | 6501 | .bustype = BUS_SPI, |
| 6502 | .manufacture_id = ST_ID, |
David Hendricks | 99f947d | 2012-10-04 14:41:20 +0000 | [diff] [blame] | 6503 | .model_id = ST_N25Q064__1E, |
Niklas Söderlund | ae4294f | 2012-04-14 21:04:03 +0000 | [diff] [blame] | 6504 | .total_size = 8192, |
| 6505 | .page_size = 256, |
David Hendricks | 99f947d | 2012-10-04 14:41:20 +0000 | [diff] [blame] | 6506 | /* supports SFDP */ |
| 6507 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 6508 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6509 | .tested = TEST_UNTESTED, |
| 6510 | .probe = probe_spi_rdid, |
| 6511 | .probe_timing = TIMING_ZERO, |
| 6512 | .block_erasers = |
| 6513 | { |
| 6514 | { |
| 6515 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 6516 | .block_erase = spi_block_erase_20, |
| 6517 | }, { |
| 6518 | .eraseblocks = { {64 * 1024, 128} }, |
| 6519 | .block_erase = spi_block_erase_d8, |
| 6520 | }, { |
| 6521 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6522 | .block_erase = spi_block_erase_c7, |
| 6523 | } |
| 6524 | }, |
| 6525 | .unlock = spi_disable_blockprotect, |
| 6526 | .write = spi_chip_write_256, |
Stefan Tauner | d956f82 | 2012-10-26 16:49:15 +0000 | [diff] [blame] | 6527 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
David Hendricks | 99f947d | 2012-10-04 14:41:20 +0000 | [diff] [blame] | 6528 | .voltage = {1700, 2000}, |
| 6529 | }, |
| 6530 | |
| 6531 | { |
| 6532 | .vendor = "Numonyx", |
| 6533 | .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 6534 | .bustype = BUS_SPI, |
| 6535 | .manufacture_id = ST_ID, |
| 6536 | .model_id = ST_N25Q064__3E, |
| 6537 | .total_size = 8192, |
| 6538 | .page_size = 256, |
| 6539 | /* supports SFDP */ |
| 6540 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 6541 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Niklas Söderlund | ae4294f | 2012-04-14 21:04:03 +0000 | [diff] [blame] | 6542 | .tested = TEST_OK_PREW, |
| 6543 | .probe = probe_spi_rdid, |
| 6544 | .probe_timing = TIMING_ZERO, |
| 6545 | .block_erasers = |
| 6546 | { |
| 6547 | { |
| 6548 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 6549 | .block_erase = spi_block_erase_20, |
| 6550 | }, { |
| 6551 | .eraseblocks = { {64 * 1024, 128} }, |
| 6552 | .block_erase = spi_block_erase_d8, |
| 6553 | }, { |
| 6554 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6555 | .block_erase = spi_block_erase_c7, |
| 6556 | } |
| 6557 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6558 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Niklas Söderlund | ae4294f | 2012-04-14 21:04:03 +0000 | [diff] [blame] | 6559 | .unlock = spi_disable_blockprotect, |
| 6560 | .write = spi_chip_write_256, |
Stefan Tauner | d956f82 | 2012-10-26 16:49:15 +0000 | [diff] [blame] | 6561 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
David Hendricks | 99f947d | 2012-10-04 14:41:20 +0000 | [diff] [blame] | 6562 | .voltage = {2700, 3600}, |
Niklas Söderlund | ae4294f | 2012-04-14 21:04:03 +0000 | [diff] [blame] | 6563 | }, |
| 6564 | |
| 6565 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6566 | .vendor = "PMC", |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 6567 | .name = "Pm25LD256C", |
| 6568 | .bustype = BUS_SPI, |
| 6569 | .manufacture_id = PMC_ID, |
| 6570 | .model_id = PMC_PM25LD256C, |
| 6571 | .total_size = 32, |
| 6572 | .page_size = 256, |
| 6573 | .feature_bits = FEATURE_WRSR_WREN, |
| 6574 | .tested = TEST_UNTESTED, |
| 6575 | .probe = probe_spi_rdid, |
| 6576 | .probe_timing = TIMING_ZERO, |
| 6577 | .block_erasers = |
| 6578 | { |
| 6579 | { |
| 6580 | .eraseblocks = { {4 * 1024, 8} }, |
| 6581 | .block_erase = spi_block_erase_20, |
| 6582 | }, { |
| 6583 | .eraseblocks = { {4 * 1024, 8} }, |
| 6584 | .block_erase = spi_block_erase_d7, |
| 6585 | }, { |
| 6586 | .eraseblocks = { {32 * 1024, 1} }, |
| 6587 | .block_erase = spi_block_erase_d8, |
| 6588 | }, { |
| 6589 | .eraseblocks = { {32 * 1024, 1} }, |
| 6590 | .block_erase = spi_block_erase_60, |
| 6591 | }, { |
| 6592 | .eraseblocks = { {32 * 1024, 1} }, |
| 6593 | .block_erase = spi_block_erase_c7, |
| 6594 | } |
| 6595 | }, |
| 6596 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 6597 | .unlock = spi_disable_blockprotect, |
| 6598 | .write = spi_chip_write_256, |
| 6599 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 6600 | .voltage = {2700, 3600}, |
| 6601 | }, |
| 6602 | { |
| 6603 | .vendor = "PMC", |
| 6604 | .name = "Pm25LD512(C)", |
| 6605 | .bustype = BUS_SPI, |
| 6606 | .manufacture_id = PMC_ID, |
| 6607 | .model_id = PMC_PM25LD512, |
| 6608 | .total_size = 64, |
| 6609 | .page_size = 256, |
| 6610 | .feature_bits = FEATURE_WRSR_WREN, |
| 6611 | .tested = TEST_OK_PREW, |
| 6612 | .probe = probe_spi_rdid, |
| 6613 | .probe_timing = TIMING_ZERO, |
| 6614 | .block_erasers = |
| 6615 | { |
| 6616 | { |
| 6617 | .eraseblocks = { {4 * 1024, 16} }, |
| 6618 | .block_erase = spi_block_erase_20, |
| 6619 | }, { |
| 6620 | .eraseblocks = { {4 * 1024, 16} }, |
| 6621 | .block_erase = spi_block_erase_d7, |
| 6622 | }, { |
| 6623 | .eraseblocks = { {32 * 1024, 2} }, |
| 6624 | .block_erase = spi_block_erase_d8, |
| 6625 | }, { |
| 6626 | .eraseblocks = { {64 * 1024, 1} }, |
| 6627 | .block_erase = spi_block_erase_60, |
| 6628 | }, { |
| 6629 | .eraseblocks = { {64 * 1024, 1} }, |
| 6630 | .block_erase = spi_block_erase_c7, |
| 6631 | } |
| 6632 | }, |
| 6633 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 6634 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 6635 | .write = spi_chip_write_256, |
| 6636 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 6637 | .voltage = {2300, 3600}, |
| 6638 | }, |
| 6639 | |
| 6640 | { |
| 6641 | .vendor = "PMC", |
| 6642 | .name = "Pm25LD010(C)", |
| 6643 | .bustype = BUS_SPI, |
| 6644 | .manufacture_id = PMC_ID, |
| 6645 | .model_id = PMC_PM25LD010, |
| 6646 | .total_size = 128, |
| 6647 | .page_size = 256, |
| 6648 | .feature_bits = FEATURE_WRSR_WREN, |
| 6649 | .tested = TEST_UNTESTED, |
| 6650 | .probe = probe_spi_rdid, |
| 6651 | .probe_timing = TIMING_ZERO, |
| 6652 | .block_erasers = |
| 6653 | { |
| 6654 | { |
| 6655 | .eraseblocks = { {4 * 1024, 32} }, |
| 6656 | .block_erase = spi_block_erase_20, |
| 6657 | }, { |
| 6658 | .eraseblocks = { {4 * 1024, 32} }, |
| 6659 | .block_erase = spi_block_erase_d7, |
| 6660 | }, { |
| 6661 | .eraseblocks = { {32 * 1024, 4} }, |
| 6662 | .block_erase = spi_block_erase_d8, |
| 6663 | }, { |
| 6664 | .eraseblocks = { {128 * 1024, 1} }, |
| 6665 | .block_erase = spi_block_erase_60, |
| 6666 | }, { |
| 6667 | .eraseblocks = { {128 * 1024, 1} }, |
| 6668 | .block_erase = spi_block_erase_c7, |
| 6669 | } |
| 6670 | }, |
| 6671 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 6672 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 6673 | .write = spi_chip_write_256, |
| 6674 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 6675 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */ |
| 6676 | }, |
| 6677 | |
| 6678 | { |
| 6679 | .vendor = "PMC", |
| 6680 | .name = "Pm25LD020(C)", |
| 6681 | .bustype = BUS_SPI, |
| 6682 | .manufacture_id = PMC_ID, |
| 6683 | .model_id = PMC_PM25LD020, |
| 6684 | .total_size = 256, |
| 6685 | .page_size = 256, |
| 6686 | .feature_bits = FEATURE_WRSR_WREN, |
| 6687 | .tested = TEST_UNTESTED, |
| 6688 | .probe = probe_spi_rdid, |
| 6689 | .probe_timing = TIMING_ZERO, |
| 6690 | .block_erasers = |
| 6691 | { |
| 6692 | { |
| 6693 | .eraseblocks = { {4 * 1024, 64} }, |
| 6694 | .block_erase = spi_block_erase_20, |
| 6695 | }, { |
| 6696 | .eraseblocks = { {4 * 1024, 64} }, |
| 6697 | .block_erase = spi_block_erase_d7, |
| 6698 | }, { |
| 6699 | .eraseblocks = { {64 * 1024, 4} }, |
| 6700 | .block_erase = spi_block_erase_d8, |
| 6701 | }, { |
| 6702 | .eraseblocks = { {256 * 1024, 1} }, |
| 6703 | .block_erase = spi_block_erase_60, |
| 6704 | }, { |
| 6705 | .eraseblocks = { {256 * 1024, 1} }, |
| 6706 | .block_erase = spi_block_erase_c7, |
| 6707 | } |
| 6708 | }, |
| 6709 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 6710 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 6711 | .write = spi_chip_write_256, |
| 6712 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 6713 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */ |
| 6714 | }, |
| 6715 | |
| 6716 | { |
| 6717 | .vendor = "PMC", |
| 6718 | .name = "Pm25LD040(C)", |
| 6719 | .bustype = BUS_SPI, |
| 6720 | .manufacture_id = PMC_ID, |
| 6721 | .model_id = PMC_PM25LV040, |
| 6722 | .total_size = 512, |
| 6723 | .page_size = 256, |
| 6724 | .feature_bits = FEATURE_WRSR_WREN, |
| 6725 | .tested = TEST_UNTESTED, |
| 6726 | .probe = probe_spi_rdid, |
| 6727 | .probe_timing = TIMING_ZERO, |
| 6728 | .block_erasers = |
| 6729 | { |
| 6730 | { |
| 6731 | .eraseblocks = { {4 * 1024, 128} }, |
| 6732 | .block_erase = spi_block_erase_20, |
| 6733 | }, { |
| 6734 | .eraseblocks = { {4 * 1024, 128} }, |
| 6735 | .block_erase = spi_block_erase_d7, |
| 6736 | }, { |
| 6737 | .eraseblocks = { {64 * 1024, 8} }, |
| 6738 | .block_erase = spi_block_erase_d8, |
| 6739 | }, { |
| 6740 | .eraseblocks = { {512 * 1024, 1} }, |
| 6741 | .block_erase = spi_block_erase_60, |
| 6742 | }, { |
| 6743 | .eraseblocks = { {512 * 1024, 1} }, |
| 6744 | .block_erase = spi_block_erase_c7, |
| 6745 | } |
| 6746 | }, |
| 6747 | .printlock = spi_prettyprint_status_register_default_bp2, |
| 6748 | .unlock = spi_disable_blockprotect, |
| 6749 | .write = spi_chip_write_256, |
| 6750 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 6751 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */ |
| 6752 | }, |
| 6753 | |
| 6754 | { |
| 6755 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 6756 | .name = "Pm25LV512(A)", |
| 6757 | .bustype = BUS_SPI, |
| 6758 | .manufacture_id = PMC_ID, |
| 6759 | .model_id = PMC_PM25LV512, |
| 6760 | .total_size = 64, |
| 6761 | .page_size = 256, |
| 6762 | .feature_bits = FEATURE_WRSR_WREN, |
| 6763 | .tested = TEST_UNTESTED, |
| 6764 | .probe = probe_spi_res3, |
| 6765 | .probe_timing = TIMING_ZERO, |
| 6766 | .block_erasers = |
| 6767 | { |
| 6768 | { |
| 6769 | .eraseblocks = { {4 * 1024, 16} }, |
| 6770 | .block_erase = spi_block_erase_d7, |
| 6771 | }, { |
| 6772 | .eraseblocks = { {32 * 1024, 2} }, |
| 6773 | .block_erase = spi_block_erase_d8, |
| 6774 | }, { |
| 6775 | .eraseblocks = { {64 * 1024, 1} }, |
| 6776 | .block_erase = spi_block_erase_c7, |
| 6777 | } |
| 6778 | }, |
| 6779 | .printlock = spi_prettyprint_status_register_default_bp1, |
| 6780 | .unlock = spi_disable_blockprotect, |
| 6781 | .write = spi_chip_write_256, |
| 6782 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6783 | .voltage = {2700, 3600}, |
| 6784 | }, |
| 6785 | |
| 6786 | { |
| 6787 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6788 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6789 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6790 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6791 | .model_id = PMC_PM25LV010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6792 | .total_size = 128, |
| 6793 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6794 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6795 | .tested = TEST_UNTESTED, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 6796 | .probe = probe_spi_res3, |
| 6797 | .probe_timing = TIMING_ZERO, |
| 6798 | .block_erasers = |
| 6799 | { |
| 6800 | { |
| 6801 | .eraseblocks = { {4 * 1024, 32} }, |
| 6802 | .block_erase = spi_block_erase_d7, |
| 6803 | }, { |
| 6804 | .eraseblocks = { {32 * 1024, 4} }, |
| 6805 | .block_erase = spi_block_erase_d8, |
| 6806 | }, { |
| 6807 | .eraseblocks = { {128 * 1024, 1} }, |
| 6808 | .block_erase = spi_block_erase_c7, |
| 6809 | } |
| 6810 | }, |
| 6811 | .printlock = spi_prettyprint_status_register_default_bp1, |
| 6812 | .unlock = spi_disable_blockprotect, |
| 6813 | .write = spi_chip_write_256, |
| 6814 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6815 | .voltage = {2700, 3600}, |
| 6816 | }, |
| 6817 | |
| 6818 | { |
| 6819 | .vendor = "PMC", |
| 6820 | .name = "Pm25LV010A", |
| 6821 | .bustype = BUS_SPI, |
| 6822 | .manufacture_id = PMC_ID, |
| 6823 | .model_id = PMC_PM25LV010, |
| 6824 | .total_size = 128, |
| 6825 | .page_size = 256, |
| 6826 | .feature_bits = FEATURE_WRSR_WREN, |
| 6827 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6828 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6829 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6830 | .block_erasers = |
| 6831 | { |
| 6832 | { |
| 6833 | .eraseblocks = { {4 * 1024, 32} }, |
| 6834 | .block_erase = spi_block_erase_d7, |
| 6835 | }, { |
| 6836 | .eraseblocks = { {32 * 1024, 4} }, |
| 6837 | .block_erase = spi_block_erase_d8, |
| 6838 | }, { |
| 6839 | .eraseblocks = { {128 * 1024, 1} }, |
| 6840 | .block_erase = spi_block_erase_c7, |
| 6841 | } |
| 6842 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 6843 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6844 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6845 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 6846 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6847 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6848 | }, |
| 6849 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6850 | { |
| 6851 | .vendor = "PMC", |
| 6852 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6853 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6854 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6855 | .model_id = PMC_PM25LV020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6856 | .total_size = 256, |
| 6857 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6858 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6859 | .tested = TEST_UNTESTED, |
| 6860 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6861 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6862 | .block_erasers = |
| 6863 | { |
| 6864 | { |
| 6865 | .eraseblocks = { {4 * 1024, 64} }, |
| 6866 | .block_erase = spi_block_erase_d7, |
| 6867 | }, { |
| 6868 | .eraseblocks = { {64 * 1024, 4} }, |
| 6869 | .block_erase = spi_block_erase_d8, |
| 6870 | }, { |
| 6871 | .eraseblocks = { {256 * 1024, 1} }, |
| 6872 | .block_erase = spi_block_erase_c7, |
| 6873 | } |
| 6874 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 6875 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6876 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6877 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6878 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6879 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6880 | }, |
| 6881 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6882 | { |
| 6883 | .vendor = "PMC", |
| 6884 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6885 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6886 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6887 | .model_id = PMC_PM25LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6888 | .total_size = 512, |
| 6889 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6890 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 6891 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6892 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6893 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6894 | .block_erasers = |
| 6895 | { |
| 6896 | { |
| 6897 | .eraseblocks = { {4 * 1024, 128} }, |
| 6898 | .block_erase = spi_block_erase_d7, |
| 6899 | }, { |
| 6900 | .eraseblocks = { {64 * 1024, 8} }, |
| 6901 | .block_erase = spi_block_erase_d8, |
| 6902 | }, { |
| 6903 | .eraseblocks = { {512 * 1024, 1} }, |
| 6904 | .block_erase = spi_block_erase_c7, |
| 6905 | } |
| 6906 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 6907 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6908 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6909 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 6910 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6911 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6912 | }, |
| 6913 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6914 | { |
| 6915 | .vendor = "PMC", |
| 6916 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6917 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6918 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6919 | .model_id = PMC_PM25LV080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6920 | .total_size = 1024, |
| 6921 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6922 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6923 | .tested = TEST_UNTESTED, |
| 6924 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6925 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6926 | .block_erasers = |
| 6927 | { |
| 6928 | { |
| 6929 | .eraseblocks = { {4 * 1024, 256} }, |
| 6930 | .block_erase = spi_block_erase_d7, |
| 6931 | }, { |
| 6932 | .eraseblocks = { {4 * 1024, 256} }, |
| 6933 | .block_erase = spi_block_erase_20, |
| 6934 | }, { |
| 6935 | .eraseblocks = { {64 * 1024, 16} }, |
| 6936 | .block_erase = spi_block_erase_d8, |
| 6937 | }, { |
| 6938 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6939 | .block_erase = spi_block_erase_60, |
| 6940 | }, { |
| 6941 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6942 | .block_erase = spi_block_erase_c7, |
| 6943 | } |
| 6944 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 6945 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6946 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6947 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 6948 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6949 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6950 | }, |
| 6951 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6952 | { |
| 6953 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 6954 | .name = "Pm25LV016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6955 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6956 | .manufacture_id = PMC_ID, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 6957 | .model_id = PMC_PM25LV016B, |
| 6958 | .total_size = 2048, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6959 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 6960 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6961 | .tested = TEST_UNTESTED, |
| 6962 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6963 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6964 | .block_erasers = |
| 6965 | { |
| 6966 | { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 6967 | .eraseblocks = { {4 * 1024, 512} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6968 | .block_erase = spi_block_erase_d7, |
| 6969 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 6970 | .eraseblocks = { {4 * 1024, 512} }, |
| 6971 | .block_erase = spi_block_erase_20, |
| 6972 | }, { |
| 6973 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6974 | .block_erase = spi_block_erase_d8, |
| 6975 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 6976 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6977 | .block_erase = spi_block_erase_60, |
| 6978 | }, { |
| 6979 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 6980 | .block_erase = spi_block_erase_c7, |
| 6981 | } |
| 6982 | }, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 6983 | .printlock = spi_prettyprint_status_register_default_bp2, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6984 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6985 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 6986 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6987 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6988 | }, |
| 6989 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6990 | { |
| 6991 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 6992 | .name = "Pm29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6993 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 6994 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6995 | .model_id = PMC_PM29F002T, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 6996 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 6997 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6998 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 6999 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7000 | .probe = probe_jedec, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 7001 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7002 | .block_erasers = |
| 7003 | { |
| 7004 | { |
| 7005 | .eraseblocks = { |
| 7006 | {128 * 1024, 1}, |
| 7007 | {96 * 1024, 1}, |
| 7008 | {8 * 1024, 2}, |
| 7009 | {16 * 1024, 1}, |
| 7010 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7011 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7012 | }, { |
| 7013 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7014 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7015 | }, |
| 7016 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7017 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 7018 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7019 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 7020 | }, |
| 7021 | |
| 7022 | { |
| 7023 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7024 | .name = "Pm29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7025 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 7026 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7027 | .model_id = PMC_PM29F002B, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 7028 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7029 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7030 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 7031 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7032 | .probe = probe_jedec, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 7033 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7034 | .block_erasers = |
| 7035 | { |
| 7036 | { |
| 7037 | .eraseblocks = { |
| 7038 | {16 * 1024, 1}, |
| 7039 | {8 * 1024, 2}, |
| 7040 | {96 * 1024, 1}, |
| 7041 | {128 * 1024, 1}, |
| 7042 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7043 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7044 | }, { |
| 7045 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7046 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7047 | }, |
| 7048 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7049 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 7050 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7051 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 7052 | }, |
| 7053 | |
| 7054 | { |
| 7055 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 7056 | .name = "Pm39LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7057 | .bustype = BUS_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 7058 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7059 | .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] | 7060 | .total_size = 128, |
| 7061 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7062 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 7063 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 7064 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 7065 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7066 | .block_erasers = |
| 7067 | { |
| 7068 | { |
| 7069 | .eraseblocks = { {4 * 1024, 32} }, |
| 7070 | .block_erase = erase_sector_jedec, |
| 7071 | }, { |
| 7072 | .eraseblocks = { {64 * 1024, 2} }, |
| 7073 | .block_erase = erase_block_jedec, |
| 7074 | }, { |
| 7075 | .eraseblocks = { {128 * 1024, 1} }, |
| 7076 | .block_erase = erase_chip_block_jedec, |
| 7077 | } |
| 7078 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7079 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 7080 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7081 | .voltage = {2700, 3600}, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 7082 | }, |
| 7083 | |
| 7084 | { |
| 7085 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 7086 | .name = "Pm39LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7087 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 7088 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7089 | .model_id = PMC_PM39LV020, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 7090 | .total_size = 256, |
| 7091 | .page_size = 4096, |
| 7092 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 7093 | .tested = TEST_UNTESTED, |
| 7094 | .probe = probe_jedec, |
| 7095 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7096 | .block_erasers = |
| 7097 | { |
| 7098 | { |
| 7099 | .eraseblocks = { {4 * 1024, 64} }, |
| 7100 | .block_erase = erase_sector_jedec, |
| 7101 | }, { |
| 7102 | .eraseblocks = { {64 * 1024, 4} }, |
| 7103 | .block_erase = erase_block_jedec, |
| 7104 | }, { |
| 7105 | .eraseblocks = { {256 * 1024, 1} }, |
| 7106 | .block_erase = erase_chip_block_jedec, |
| 7107 | } |
| 7108 | }, |
| 7109 | .write = write_jedec_1, |
| 7110 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7111 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 7112 | }, |
| 7113 | |
| 7114 | { |
| 7115 | .vendor = "PMC", |
| 7116 | .name = "Pm39LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7117 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 7118 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7119 | .model_id = PMC_PM39LV040, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 7120 | .total_size = 512, |
| 7121 | .page_size = 4096, |
| 7122 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 7123 | .tested = TEST_OK_PR, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 7124 | .probe = probe_jedec, |
| 7125 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7126 | .block_erasers = |
| 7127 | { |
| 7128 | { |
| 7129 | .eraseblocks = { {4 * 1024, 128} }, |
| 7130 | .block_erase = erase_sector_jedec, |
| 7131 | }, { |
| 7132 | .eraseblocks = { {64 * 1024, 8} }, |
| 7133 | .block_erase = erase_block_jedec, |
| 7134 | }, { |
| 7135 | .eraseblocks = { {512 * 1024, 1} }, |
| 7136 | .block_erase = erase_chip_block_jedec, |
| 7137 | } |
| 7138 | }, |
| 7139 | .write = write_jedec_1, |
| 7140 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7141 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 7142 | }, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 7143 | |
| 7144 | { |
| 7145 | .vendor = "PMC", |
| 7146 | .name = "Pm39LV512", |
| 7147 | .bustype = BUS_PARALLEL, |
| 7148 | .manufacture_id = PMC_ID_NOPREFIX, |
| 7149 | .model_id = PMC_PM39LV512, |
| 7150 | .total_size = 64, |
| 7151 | .page_size = 4096, |
| 7152 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 7153 | .tested = TEST_OK_PREW, |
| 7154 | .probe = probe_jedec, |
| 7155 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7156 | .block_erasers = |
| 7157 | { |
| 7158 | { |
| 7159 | .eraseblocks = { {4 * 1024, 16} }, |
| 7160 | .block_erase = erase_sector_jedec, |
| 7161 | }, { |
| 7162 | .eraseblocks = { {64 * 1024, 1} }, |
| 7163 | .block_erase = erase_block_jedec, |
| 7164 | }, { |
| 7165 | .eraseblocks = { {64 * 1024, 1} }, |
| 7166 | .block_erase = erase_chip_block_jedec, |
| 7167 | } |
| 7168 | }, |
| 7169 | .write = write_jedec_1, |
| 7170 | .read = read_memmapped, |
| 7171 | .voltage = {2700, 3600}, |
| 7172 | }, |
| 7173 | |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 7174 | { |
| 7175 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7176 | .name = "Pm49FL002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7177 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7178 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7179 | .model_id = PMC_PM49FL002, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7180 | .total_size = 256, |
| 7181 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7182 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 7183 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 7184 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 7185 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7186 | .block_erasers = |
| 7187 | { |
| 7188 | { |
| 7189 | .eraseblocks = { {4 * 1024, 64} }, |
| 7190 | .block_erase = erase_sector_jedec, |
| 7191 | }, { |
| 7192 | .eraseblocks = { {16 * 1024, 16} }, |
| 7193 | .block_erase = erase_block_jedec, |
| 7194 | }, { |
| 7195 | .eraseblocks = { {256 * 1024, 1} }, |
| 7196 | .block_erase = erase_chip_block_jedec, |
| 7197 | } |
| 7198 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 7199 | .unlock = unlock_49fl00x, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 7200 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7201 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7202 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7203 | }, |
| 7204 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7205 | { |
| 7206 | .vendor = "PMC", |
| 7207 | .name = "Pm49FL004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7208 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7209 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7210 | .model_id = PMC_PM49FL004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7211 | .total_size = 512, |
| 7212 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7213 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 7214 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 7215 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 7216 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7217 | .block_erasers = |
| 7218 | { |
| 7219 | { |
| 7220 | .eraseblocks = { {4 * 1024, 128} }, |
| 7221 | .block_erase = erase_sector_jedec, |
| 7222 | }, { |
| 7223 | .eraseblocks = { {64 * 1024, 8} }, |
| 7224 | .block_erase = erase_block_jedec, |
| 7225 | }, { |
| 7226 | .eraseblocks = { {512 * 1024, 1} }, |
| 7227 | .block_erase = erase_chip_block_jedec, |
| 7228 | } |
| 7229 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 7230 | .unlock = unlock_49fl00x, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 7231 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7232 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7233 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7234 | }, |
| 7235 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7236 | { |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 7237 | .vendor = "Sanyo", |
| 7238 | .name = "LF25FW203A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7239 | .bustype = BUS_SPI, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 7240 | .manufacture_id = SANYO_ID, |
| 7241 | .model_id = SANYO_LE25FW203A, |
| 7242 | .total_size = 2048, |
| 7243 | .page_size = 256, |
| 7244 | .tested = TEST_UNTESTED, |
| 7245 | .probe = probe_spi_rdid, |
| 7246 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7247 | .block_erasers = |
| 7248 | { |
| 7249 | { |
| 7250 | .eraseblocks = { {64 * 1024, 32} }, |
| 7251 | .block_erase = spi_block_erase_d8, |
| 7252 | }, { |
| 7253 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7254 | .block_erase = spi_block_erase_c7, |
| 7255 | } |
| 7256 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7257 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7258 | .unlock = spi_disable_blockprotect, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 7259 | .write = spi_chip_write_256, |
| 7260 | .read = spi_chip_read, |
| 7261 | }, |
| 7262 | |
| 7263 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7264 | .vendor = "Sharp", |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 7265 | .name = "LH28F008BJT-BTLZ1", |
| 7266 | .bustype = BUS_PARALLEL, |
| 7267 | .manufacture_id = SHARP_ID, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 7268 | .model_id = SHARP_LH28F008BJ__PB, |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 7269 | .total_size = 1024, |
| 7270 | .page_size = 64 * 1024, |
| 7271 | .tested = TEST_OK_PREW, |
| 7272 | .probe = probe_82802ab, |
| 7273 | .probe_timing = TIMING_ZERO, |
| 7274 | .block_erasers = |
| 7275 | { |
| 7276 | { |
| 7277 | .eraseblocks = { |
| 7278 | {8 * 1024, 8}, |
| 7279 | {64 * 1024, 15} |
| 7280 | }, |
| 7281 | .block_erase = erase_block_82802ab, |
| 7282 | }, { |
| 7283 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7284 | .block_erase = erase_sector_49lfxxxc, |
| 7285 | } |
| 7286 | }, |
| 7287 | .unlock = unlock_lh28f008bjt, |
| 7288 | .write = write_82802ab, |
| 7289 | .read = read_memmapped, |
| 7290 | .voltage = {2700, 3600}, |
| 7291 | }, |
| 7292 | |
| 7293 | { |
| 7294 | .vendor = "Sharp", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7295 | .name = "LHF00L04", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7296 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7297 | .manufacture_id = SHARP_ID, |
| 7298 | .model_id = SHARP_LHF00L04, |
| 7299 | .total_size = 1024, |
| 7300 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7301 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7302 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7303 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 7304 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 7305 | .block_erasers = |
| 7306 | { |
| 7307 | { |
| 7308 | .eraseblocks = { |
| 7309 | {64 * 1024, 15}, |
| 7310 | {8 * 1024, 8} |
| 7311 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7312 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 7313 | }, { |
| 7314 | .eraseblocks = { |
| 7315 | {1024 * 1024, 1} |
| 7316 | }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7317 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 7318 | }, |
| 7319 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 7320 | .unlock = unlock_82802ab, |
| 7321 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7322 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7323 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7324 | }, |
| 7325 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7326 | { |
| 7327 | .vendor = "Spansion", |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 7328 | .name = "S25FL004A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7329 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 7330 | .manufacture_id = SPANSION_ID, |
| 7331 | .model_id = SPANSION_S25FL004A, |
| 7332 | .total_size = 512, |
| 7333 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7334 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 7335 | .tested = TEST_UNTESTED, |
| 7336 | .probe = probe_spi_rdid, |
| 7337 | .probe_timing = TIMING_ZERO, |
| 7338 | .block_erasers = |
| 7339 | { |
| 7340 | { |
| 7341 | .eraseblocks = { {64 * 1024, 8} }, |
| 7342 | .block_erase = spi_block_erase_d8, |
| 7343 | }, { |
| 7344 | .eraseblocks = { {512 * 1024, 1} }, |
| 7345 | .block_erase = spi_block_erase_c7, |
| 7346 | } |
| 7347 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7348 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 7349 | .unlock = spi_disable_blockprotect, |
| 7350 | .write = spi_chip_write_256, |
| 7351 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7352 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 7353 | }, |
| 7354 | |
| 7355 | { |
| 7356 | .vendor = "Spansion", |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 7357 | .name = "S25FL008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7358 | .bustype = BUS_SPI, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 7359 | .manufacture_id = SPANSION_ID, |
| 7360 | .model_id = SPANSION_S25FL008A, |
| 7361 | .total_size = 1024, |
| 7362 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7363 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 7364 | .tested = TEST_OK_PRE, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 7365 | .probe = probe_spi_rdid, |
| 7366 | .probe_timing = TIMING_ZERO, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 7367 | .block_erasers = |
| 7368 | { |
| 7369 | { |
| 7370 | .eraseblocks = { {64 * 1024, 16} }, |
| 7371 | .block_erase = spi_block_erase_d8, |
| 7372 | }, { |
| 7373 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7374 | .block_erase = spi_block_erase_c7, |
| 7375 | } |
| 7376 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7377 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7378 | .unlock = spi_disable_blockprotect, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 7379 | .write = spi_chip_write_256, |
| 7380 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7381 | .voltage = {2700, 3600}, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 7382 | }, |
| 7383 | |
| 7384 | { |
| 7385 | .vendor = "Spansion", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7386 | .name = "S25FL016A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7387 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7388 | .manufacture_id = SPANSION_ID, |
| 7389 | .model_id = SPANSION_S25FL016A, |
| 7390 | .total_size = 2048, |
| 7391 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7392 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 7393 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7394 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7395 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 7396 | .block_erasers = |
| 7397 | { |
| 7398 | { |
| 7399 | .eraseblocks = { {64 * 1024, 32} }, |
| 7400 | .block_erase = spi_block_erase_d8, |
| 7401 | }, { |
| 7402 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7403 | .block_erase = spi_block_erase_c7, |
| 7404 | } |
| 7405 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7406 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7407 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7408 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7409 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7410 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7411 | }, |
| 7412 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7413 | { |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 7414 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 7415 | .name = "S25FL032A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7416 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 7417 | .manufacture_id = SPANSION_ID, |
| 7418 | .model_id = SPANSION_S25FL032A, |
| 7419 | .total_size = 4096, |
| 7420 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7421 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 7422 | .tested = TEST_OK_PREW, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 7423 | .probe = probe_spi_rdid, |
| 7424 | .probe_timing = TIMING_ZERO, |
| 7425 | .block_erasers = |
| 7426 | { |
| 7427 | { |
| 7428 | .eraseblocks = { {64 * 1024, 64} }, |
| 7429 | .block_erase = spi_block_erase_d8, |
| 7430 | }, { |
| 7431 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7432 | .block_erase = spi_block_erase_c7, |
| 7433 | } |
| 7434 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7435 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 7436 | .unlock = spi_disable_blockprotect, |
| 7437 | .write = spi_chip_write_256, |
| 7438 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7439 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 7440 | }, |
| 7441 | |
| 7442 | { |
| 7443 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 7444 | .name = "S25FL064A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7445 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 7446 | .manufacture_id = SPANSION_ID, |
| 7447 | .model_id = SPANSION_S25FL064A, |
| 7448 | .total_size = 8192, |
| 7449 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7450 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 7451 | .tested = TEST_OK_PREW, |
| 7452 | .probe = probe_spi_rdid, |
| 7453 | .probe_timing = TIMING_ZERO, |
| 7454 | .block_erasers = |
| 7455 | { |
| 7456 | { |
| 7457 | .eraseblocks = { {64 * 1024, 128} }, |
| 7458 | .block_erase = spi_block_erase_d8, |
| 7459 | }, { |
| 7460 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7461 | .block_erase = spi_block_erase_c7, |
| 7462 | } |
| 7463 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7464 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 7465 | .unlock = spi_disable_blockprotect, |
| 7466 | .write = spi_chip_write_256, |
| 7467 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7468 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 7469 | }, |
| 7470 | |
| 7471 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7472 | .vendor = "SST", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 7473 | .name = "SST25LF040A", |
| 7474 | .bustype = BUS_SPI, |
| 7475 | .manufacture_id = SST_ID, |
| 7476 | .model_id = SST_SST25VF040_REMS, |
| 7477 | .total_size = 512, |
| 7478 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7479 | .feature_bits = FEATURE_WRSR_EWSR, |
Uwe Hermann | 4335ec8 | 2011-09-07 20:20:25 +0000 | [diff] [blame] | 7480 | .tested = TEST_OK_PREW, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 7481 | .probe = probe_spi_res2, |
| 7482 | .probe_timing = TIMING_ZERO, |
| 7483 | .block_erasers = |
| 7484 | { |
| 7485 | { |
| 7486 | .eraseblocks = { {4 * 1024, 128} }, |
| 7487 | .block_erase = spi_block_erase_20, |
| 7488 | }, { |
| 7489 | .eraseblocks = { {32 * 1024, 16} }, |
| 7490 | .block_erase = spi_block_erase_52, |
| 7491 | }, { |
| 7492 | .eraseblocks = { {512 * 1024, 1} }, |
| 7493 | .block_erase = spi_block_erase_60, |
| 7494 | }, |
| 7495 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7496 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 7497 | .unlock = spi_disable_blockprotect, |
| 7498 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 7499 | .read = spi_chip_read, |
| 7500 | .voltage = {3000, 3600}, |
| 7501 | }, |
| 7502 | |
| 7503 | { |
| 7504 | .vendor = "SST", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 7505 | .name = "SST25LF080(A)", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 7506 | .bustype = BUS_SPI, |
| 7507 | .manufacture_id = SST_ID, |
| 7508 | .model_id = SST_SST25VF080_REMS, |
| 7509 | .total_size = 1024, |
| 7510 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 7511 | .feature_bits = FEATURE_WRSR_EITHER, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 7512 | .tested = TEST_UNTESTED, |
| 7513 | .probe = probe_spi_res2, |
| 7514 | .probe_timing = TIMING_ZERO, |
| 7515 | .block_erasers = |
| 7516 | { |
| 7517 | { |
| 7518 | .eraseblocks = { {4 * 1024, 256} }, |
| 7519 | .block_erase = spi_block_erase_20, |
| 7520 | }, { |
| 7521 | .eraseblocks = { {32 * 1024, 32} }, |
| 7522 | .block_erase = spi_block_erase_52, |
| 7523 | }, { |
| 7524 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7525 | .block_erase = spi_block_erase_60, |
| 7526 | }, |
| 7527 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7528 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 7529 | .unlock = spi_disable_blockprotect, |
| 7530 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 7531 | .read = spi_chip_read, |
| 7532 | .voltage = {3000, 3600}, |
| 7533 | }, |
| 7534 | |
| 7535 | { |
| 7536 | .vendor = "SST", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 7537 | .name = "SST25VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7538 | .bustype = BUS_SPI, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 7539 | .manufacture_id = SST_ID, |
| 7540 | .model_id = SST_SST25VF010_REMS, |
| 7541 | .total_size = 128, |
| 7542 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7543 | .feature_bits = FEATURE_WRSR_EWSR, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 7544 | .tested = TEST_OK_PREW, |
| 7545 | .probe = probe_spi_rems, |
| 7546 | .probe_timing = TIMING_ZERO, |
| 7547 | .block_erasers = |
| 7548 | { |
| 7549 | { |
| 7550 | .eraseblocks = { {4 * 1024, 32} }, |
| 7551 | .block_erase = spi_block_erase_20, |
| 7552 | }, { |
| 7553 | .eraseblocks = { {32 * 1024, 4} }, |
| 7554 | .block_erase = spi_block_erase_52, |
| 7555 | }, { |
| 7556 | .eraseblocks = { {128 * 1024, 1} }, |
| 7557 | .block_erase = spi_block_erase_60, |
| 7558 | }, |
| 7559 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7560 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 7561 | .unlock = spi_disable_blockprotect, |
| 7562 | .write = spi_chip_write_1, |
| 7563 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7564 | .voltage = {2700, 3600}, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 7565 | }, |
| 7566 | |
| 7567 | { |
| 7568 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7569 | .name = "SST25VF016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7570 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7571 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7572 | .model_id = SST_SST25VF016B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7573 | .total_size = 2048, |
| 7574 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 7575 | .feature_bits = FEATURE_WRSR_EITHER, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 7576 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7577 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7578 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 7579 | .block_erasers = |
| 7580 | { |
| 7581 | { |
| 7582 | .eraseblocks = { {4 * 1024, 512} }, |
| 7583 | .block_erase = spi_block_erase_20, |
| 7584 | }, { |
| 7585 | .eraseblocks = { {32 * 1024, 64} }, |
| 7586 | .block_erase = spi_block_erase_52, |
| 7587 | }, { |
| 7588 | .eraseblocks = { {64 * 1024, 32} }, |
| 7589 | .block_erase = spi_block_erase_d8, |
| 7590 | }, { |
| 7591 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7592 | .block_erase = spi_block_erase_60, |
| 7593 | }, { |
| 7594 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7595 | .block_erase = spi_block_erase_c7, |
| 7596 | }, |
| 7597 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7598 | .printlock = spi_prettyprint_status_register_sst25vf016, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7599 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 7600 | .write = spi_aai_write, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7601 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7602 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7603 | }, |
| 7604 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7605 | { |
| 7606 | .vendor = "SST", |
| 7607 | .name = "SST25VF032B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7608 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7609 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7610 | .model_id = SST_SST25VF032B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7611 | .total_size = 4096, |
| 7612 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7613 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | fcf6a8c | 2011-05-18 01:32:00 +0000 | [diff] [blame] | 7614 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7615 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7616 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 7617 | .block_erasers = |
| 7618 | { |
| 7619 | { |
| 7620 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7621 | .block_erase = spi_block_erase_20, |
| 7622 | }, { |
| 7623 | .eraseblocks = { {32 * 1024, 128} }, |
| 7624 | .block_erase = spi_block_erase_52, |
| 7625 | }, { |
| 7626 | .eraseblocks = { {64 * 1024, 64} }, |
| 7627 | .block_erase = spi_block_erase_d8, |
| 7628 | }, { |
| 7629 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7630 | .block_erase = spi_block_erase_60, |
| 7631 | }, { |
| 7632 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7633 | .block_erase = spi_block_erase_c7, |
| 7634 | }, |
| 7635 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7636 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7637 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 7638 | .write = spi_aai_write, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 7639 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7640 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 7641 | }, |
| 7642 | |
| 7643 | { |
| 7644 | .vendor = "SST", |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 7645 | .name = "SST25VF064C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7646 | .bustype = BUS_SPI, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 7647 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7648 | .model_id = SST_SST25VF064C, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 7649 | .total_size = 8192, |
| 7650 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7651 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 7652 | .tested = TEST_OK_PREW, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 7653 | .probe = probe_spi_rdid, |
| 7654 | .probe_timing = TIMING_ZERO, |
| 7655 | .block_erasers = |
| 7656 | { |
| 7657 | { |
| 7658 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7659 | .block_erase = spi_block_erase_20, |
| 7660 | }, { |
| 7661 | .eraseblocks = { {32 * 1024, 256} }, |
| 7662 | .block_erase = spi_block_erase_52, |
| 7663 | }, { |
| 7664 | .eraseblocks = { {64 * 1024, 128} }, |
| 7665 | .block_erase = spi_block_erase_d8, |
| 7666 | }, { |
| 7667 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7668 | .block_erase = spi_block_erase_60, |
| 7669 | }, { |
| 7670 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7671 | .block_erase = spi_block_erase_c7, |
| 7672 | }, |
| 7673 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7674 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 7675 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 7676 | .write = spi_chip_write_256, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 7677 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7678 | .voltage = {2700, 3600}, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 7679 | }, |
| 7680 | |
| 7681 | { |
| 7682 | .vendor = "SST", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 7683 | .name = "SST25VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7684 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 7685 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7686 | .model_id = SST_SST25VF040_REMS, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 7687 | .total_size = 512, |
| 7688 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7689 | .feature_bits = FEATURE_WRSR_EWSR, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 7690 | .tested = TEST_OK_PR, |
| 7691 | .probe = probe_spi_rems, |
| 7692 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 7693 | .block_erasers = |
| 7694 | { |
| 7695 | { |
| 7696 | .eraseblocks = { {4 * 1024, 128} }, |
| 7697 | .block_erase = spi_block_erase_20, |
| 7698 | }, { |
| 7699 | .eraseblocks = { {32 * 1024, 16} }, |
| 7700 | .block_erase = spi_block_erase_52, |
| 7701 | }, { |
| 7702 | .eraseblocks = { {512 * 1024, 1} }, |
| 7703 | .block_erase = spi_block_erase_60, |
| 7704 | }, |
| 7705 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7706 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7707 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 7708 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7709 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7710 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7711 | }, |
| 7712 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7713 | { |
| 7714 | .vendor = "SST", |
| 7715 | .name = "SST25VF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7716 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7717 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7718 | .model_id = SST_SST25VF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7719 | .total_size = 512, |
| 7720 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7721 | .feature_bits = FEATURE_WRSR_EWSR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7722 | .tested = TEST_UNTESTED, |
| 7723 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7724 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 7725 | .block_erasers = |
| 7726 | { |
| 7727 | { |
| 7728 | .eraseblocks = { {4 * 1024, 128} }, |
| 7729 | .block_erase = spi_block_erase_20, |
| 7730 | }, { |
| 7731 | .eraseblocks = { {32 * 1024, 16} }, |
| 7732 | .block_erase = spi_block_erase_52, |
| 7733 | }, { |
| 7734 | .eraseblocks = { {64 * 1024, 8} }, |
| 7735 | .block_erase = spi_block_erase_d8, |
| 7736 | }, { |
| 7737 | .eraseblocks = { {512 * 1024, 1} }, |
| 7738 | .block_erase = spi_block_erase_60, |
| 7739 | }, { |
| 7740 | .eraseblocks = { {512 * 1024, 1} }, |
| 7741 | .block_erase = spi_block_erase_c7, |
| 7742 | }, |
| 7743 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7744 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7745 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 7746 | .write = spi_aai_write, |
Zheng Bao | 0677dff | 2009-02-25 08:07:33 +0000 | [diff] [blame] | 7747 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7748 | .voltage = {2700, 3600}, |
Zheng Bao | 0677dff | 2009-02-25 08:07:33 +0000 | [diff] [blame] | 7749 | }, |
| 7750 | |
| 7751 | { |
| 7752 | .vendor = "SST", |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 7753 | .name = "SST25VF040B.REMS", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7754 | .bustype = BUS_SPI, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 7755 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7756 | .model_id = SST_SST25VF040B_REMS, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 7757 | .total_size = 512, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 7758 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7759 | .feature_bits = FEATURE_WRSR_EWSR, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 7760 | .tested = TEST_OK_PR, |
| 7761 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7762 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 7763 | .block_erasers = |
| 7764 | { |
| 7765 | { |
| 7766 | .eraseblocks = { {4 * 1024, 128} }, |
| 7767 | .block_erase = spi_block_erase_20, |
| 7768 | }, { |
| 7769 | .eraseblocks = { {32 * 1024, 16} }, |
| 7770 | .block_erase = spi_block_erase_52, |
| 7771 | }, { |
| 7772 | .eraseblocks = { {64 * 1024, 8} }, |
| 7773 | .block_erase = spi_block_erase_d8, |
| 7774 | }, { |
| 7775 | .eraseblocks = { {512 * 1024, 1} }, |
| 7776 | .block_erase = spi_block_erase_60, |
| 7777 | }, { |
| 7778 | .eraseblocks = { {512 * 1024, 1} }, |
| 7779 | .block_erase = spi_block_erase_c7, |
| 7780 | }, |
| 7781 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7782 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7783 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 7784 | .write = spi_aai_write, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 7785 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7786 | .voltage = {2700, 3600}, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 7787 | }, |
| 7788 | |
| 7789 | { |
| 7790 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7791 | .name = "SST25VF080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7792 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7793 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7794 | .model_id = SST_SST25VF080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7795 | .total_size = 1024, |
| 7796 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 7797 | .feature_bits = FEATURE_WRSR_EWSR, |
John Schmerge | c965c2d | 2011-05-18 11:28:47 +0000 | [diff] [blame] | 7798 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7799 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7800 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 7801 | .block_erasers = |
| 7802 | { |
| 7803 | { |
| 7804 | .eraseblocks = { {4 * 1024, 256} }, |
| 7805 | .block_erase = spi_block_erase_20, |
| 7806 | }, { |
| 7807 | .eraseblocks = { {32 * 1024, 32} }, |
| 7808 | .block_erase = spi_block_erase_52, |
| 7809 | }, { |
| 7810 | .eraseblocks = { {64 * 1024, 16} }, |
| 7811 | .block_erase = spi_block_erase_d8, |
| 7812 | }, { |
| 7813 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7814 | .block_erase = spi_block_erase_60, |
| 7815 | }, { |
| 7816 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7817 | .block_erase = spi_block_erase_c7, |
| 7818 | }, |
| 7819 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7820 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7821 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 7822 | .write = spi_aai_write, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7823 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7824 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7825 | }, |
| 7826 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7827 | { |
| 7828 | .vendor = "SST", |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 7829 | .name = "SST25WF512", |
| 7830 | .bustype = BUS_SPI, |
| 7831 | .manufacture_id = SST_ID, |
| 7832 | .model_id = SST_SST25WF512, |
| 7833 | .total_size = 64, |
| 7834 | .page_size = 256, |
| 7835 | .feature_bits = FEATURE_WRSR_EITHER, |
| 7836 | .tested = TEST_UNTESTED, |
| 7837 | .probe = probe_spi_rdid, |
| 7838 | .probe_timing = TIMING_ZERO, |
| 7839 | .block_erasers = |
| 7840 | { |
| 7841 | { |
| 7842 | .eraseblocks = { {4 * 1024, 16} }, |
| 7843 | .block_erase = spi_block_erase_20, |
| 7844 | }, { |
| 7845 | .eraseblocks = { {32 * 1024, 2} }, |
| 7846 | .block_erase = spi_block_erase_52, |
| 7847 | }, { |
| 7848 | .eraseblocks = { {1024 * 64, 1} }, |
| 7849 | .block_erase = spi_block_erase_60, |
| 7850 | }, { |
| 7851 | .eraseblocks = { {1024 * 64, 1} }, |
| 7852 | .block_erase = spi_block_erase_c7, |
| 7853 | }, |
| 7854 | }, |
| 7855 | .unlock = spi_disable_blockprotect, |
| 7856 | .write = spi_aai_write, |
| 7857 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7858 | .voltage = {1650, 1950}, |
| 7859 | }, |
| 7860 | |
| 7861 | { |
| 7862 | .vendor = "SST", |
| 7863 | .name = "SST25WF010", |
| 7864 | .bustype = BUS_SPI, |
| 7865 | .manufacture_id = SST_ID, |
| 7866 | .model_id = SST_SST25WF010, |
| 7867 | .total_size = 128, |
| 7868 | .page_size = 256, |
| 7869 | .feature_bits = FEATURE_WRSR_EITHER, |
| 7870 | .tested = TEST_UNTESTED, |
| 7871 | .probe = probe_spi_rdid, |
| 7872 | .probe_timing = TIMING_ZERO, |
| 7873 | .block_erasers = |
| 7874 | { |
| 7875 | { |
| 7876 | .eraseblocks = { {4 * 1024, 32} }, |
| 7877 | .block_erase = spi_block_erase_20, |
| 7878 | }, { |
| 7879 | .eraseblocks = { {32 * 1024, 4} }, |
| 7880 | .block_erase = spi_block_erase_52, |
| 7881 | }, { |
| 7882 | .eraseblocks = { {1024 * 128, 1} }, |
| 7883 | .block_erase = spi_block_erase_60, |
| 7884 | }, { |
| 7885 | .eraseblocks = { {1024 * 128, 1} }, |
| 7886 | .block_erase = spi_block_erase_c7, |
| 7887 | }, |
| 7888 | }, |
| 7889 | .unlock = spi_disable_blockprotect, |
| 7890 | .write = spi_aai_write, |
| 7891 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7892 | .voltage = {1650, 1950}, |
| 7893 | }, |
| 7894 | |
| 7895 | { |
| 7896 | .vendor = "SST", |
| 7897 | .name = "SST25WF020", |
| 7898 | .bustype = BUS_SPI, |
| 7899 | .manufacture_id = SST_ID, |
| 7900 | .model_id = SST_SST25WF020, |
| 7901 | .total_size = 256, |
| 7902 | .page_size = 256, |
| 7903 | .feature_bits = FEATURE_WRSR_EITHER, |
| 7904 | .tested = TEST_UNTESTED, |
| 7905 | .probe = probe_spi_rdid, |
| 7906 | .probe_timing = TIMING_ZERO, |
| 7907 | .block_erasers = |
| 7908 | { |
| 7909 | { |
| 7910 | .eraseblocks = { {4 * 1024, 64} }, |
| 7911 | .block_erase = spi_block_erase_20, |
| 7912 | }, { |
| 7913 | .eraseblocks = { {32 * 1024, 8} }, |
| 7914 | .block_erase = spi_block_erase_52, |
| 7915 | }, { |
| 7916 | .eraseblocks = { {64 * 1024, 4} }, |
| 7917 | .block_erase = spi_block_erase_d8, |
| 7918 | }, { |
| 7919 | .eraseblocks = { {1024 * 256, 1} }, |
| 7920 | .block_erase = spi_block_erase_60, |
| 7921 | }, { |
| 7922 | .eraseblocks = { {1024 * 256, 1} }, |
| 7923 | .block_erase = spi_block_erase_c7, |
| 7924 | }, |
| 7925 | }, |
| 7926 | .unlock = spi_disable_blockprotect, |
| 7927 | .write = spi_aai_write, |
| 7928 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7929 | .voltage = {1650, 1950}, |
| 7930 | }, |
| 7931 | |
| 7932 | { |
| 7933 | .vendor = "SST", |
| 7934 | .name = "SST25WF040", |
| 7935 | .bustype = BUS_SPI, |
| 7936 | .manufacture_id = SST_ID, |
| 7937 | .model_id = SST_SST25WF040, |
| 7938 | .total_size = 512, |
| 7939 | .page_size = 256, |
| 7940 | .feature_bits = FEATURE_WRSR_EITHER, |
| 7941 | .tested = TEST_UNTESTED, |
| 7942 | .probe = probe_spi_rdid, |
| 7943 | .probe_timing = TIMING_ZERO, |
| 7944 | .block_erasers = |
| 7945 | { |
| 7946 | { |
| 7947 | .eraseblocks = { {4 * 1024, 128} }, |
| 7948 | .block_erase = spi_block_erase_20, |
| 7949 | }, { |
| 7950 | .eraseblocks = { {32 * 1024, 16} }, |
| 7951 | .block_erase = spi_block_erase_52, |
| 7952 | }, { |
| 7953 | .eraseblocks = { {64 * 1024, 8} }, |
| 7954 | .block_erase = spi_block_erase_d8, |
| 7955 | }, { |
| 7956 | .eraseblocks = { {1024 * 512, 1} }, |
| 7957 | .block_erase = spi_block_erase_60, |
| 7958 | }, { |
| 7959 | .eraseblocks = { {1024 * 512, 1} }, |
| 7960 | .block_erase = spi_block_erase_c7, |
| 7961 | }, |
| 7962 | }, |
| 7963 | .unlock = spi_disable_blockprotect, |
| 7964 | .write = spi_aai_write, |
| 7965 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7966 | .voltage = {1650, 1950}, |
| 7967 | }, |
| 7968 | |
| 7969 | { |
| 7970 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7971 | .name = "SST28SF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7972 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7973 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7974 | .model_id = SST_SST28SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7975 | .total_size = 512, |
| 7976 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7977 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7978 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 7979 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 7980 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 7981 | .block_erasers = |
| 7982 | { |
| 7983 | { |
| 7984 | .eraseblocks = { {128, 4096} }, |
| 7985 | .block_erase = erase_sector_28sf040, |
| 7986 | }, { |
| 7987 | .eraseblocks = { {512 * 1024, 1} }, |
| 7988 | .block_erase = erase_chip_28sf040, |
| 7989 | } |
| 7990 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 7991 | .unlock = unprotect_28sf040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7992 | .write = write_28sf040, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7993 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7994 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7995 | }, |
| 7996 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7997 | { |
| 7998 | .vendor = "SST", |
| 7999 | .name = "SST29EE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8000 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8001 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8002 | .model_id = SST_SST29EE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8003 | .total_size = 128, |
| 8004 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8005 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 8006 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8007 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 8008 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8009 | .block_erasers = |
| 8010 | { |
| 8011 | { |
| 8012 | .eraseblocks = { {128 * 1024, 1} }, |
| 8013 | .block_erase = erase_chip_block_jedec, |
| 8014 | } |
| 8015 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8016 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8017 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8018 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8019 | }, |
| 8020 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8021 | { |
| 8022 | .vendor = "SST", |
| 8023 | .name = "SST29LE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8024 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8025 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8026 | .model_id = SST_SST29LE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8027 | .total_size = 128, |
| 8028 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8029 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8030 | .tested = TEST_UNTESTED, |
| 8031 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 8032 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8033 | .block_erasers = |
| 8034 | { |
| 8035 | { |
| 8036 | .eraseblocks = { {128 * 1024, 1} }, |
| 8037 | .block_erase = erase_chip_block_jedec, |
| 8038 | } |
| 8039 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8040 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8041 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8042 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8043 | }, |
| 8044 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8045 | { |
| 8046 | .vendor = "SST", |
| 8047 | .name = "SST29EE020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8048 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8049 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8050 | .model_id = SST_SST29EE020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8051 | .total_size = 256, |
| 8052 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8053 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 8054 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8055 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8056 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8057 | .block_erasers = |
| 8058 | { |
| 8059 | { |
| 8060 | .eraseblocks = { {256 * 1024, 1} }, |
| 8061 | .block_erase = erase_chip_block_jedec, |
| 8062 | } |
| 8063 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8064 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8065 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8066 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8067 | }, |
| 8068 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8069 | { |
| 8070 | .vendor = "SST", |
| 8071 | .name = "SST29LE020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8072 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8073 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8074 | .model_id = SST_SST29LE020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8075 | .total_size = 256, |
| 8076 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8077 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 8078 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8079 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 8080 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8081 | .block_erasers = |
| 8082 | { |
| 8083 | { |
| 8084 | .eraseblocks = { {256 * 1024, 1} }, |
| 8085 | .block_erase = erase_chip_block_jedec, |
| 8086 | } |
| 8087 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8088 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8089 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8090 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8091 | }, |
| 8092 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8093 | { |
| 8094 | .vendor = "SST", |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 8095 | .name = "SST39SF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8096 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 8097 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8098 | .model_id = SST_SST39SF512, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 8099 | .total_size = 64, |
| 8100 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8101 | .feature_bits = FEATURE_EITHER_RESET, |
Idwer Vollering | 7913fb4 | 2011-03-07 15:32:58 +0000 | [diff] [blame] | 8102 | .tested = TEST_OK_PREW, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 8103 | .probe = probe_jedec, |
| 8104 | .probe_timing = 1, /* 150 ns */ |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 8105 | .block_erasers = |
| 8106 | { |
| 8107 | { |
| 8108 | .eraseblocks = { {4 * 1024, 16} }, |
| 8109 | .block_erase = erase_sector_jedec, |
| 8110 | }, { |
| 8111 | .eraseblocks = { {64 * 1024, 1} }, |
| 8112 | .block_erase = erase_chip_block_jedec, |
| 8113 | } |
| 8114 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8115 | .write = write_jedec_1, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 8116 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8117 | .voltage = {4500, 5500}, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 8118 | }, |
| 8119 | |
| 8120 | { |
| 8121 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8122 | .name = "SST39SF010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8123 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8124 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8125 | .model_id = SST_SST39SF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8126 | .total_size = 128, |
| 8127 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8128 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 8129 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8130 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 8131 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8132 | .block_erasers = |
| 8133 | { |
| 8134 | { |
| 8135 | .eraseblocks = { {4 * 1024, 32} }, |
| 8136 | .block_erase = erase_sector_jedec, |
| 8137 | }, { |
| 8138 | .eraseblocks = { {128 * 1024, 1} }, |
| 8139 | .block_erase = erase_chip_block_jedec, |
| 8140 | } |
| 8141 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8142 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8143 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8144 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8145 | }, |
| 8146 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8147 | { |
| 8148 | .vendor = "SST", |
| 8149 | .name = "SST39SF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8150 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8151 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8152 | .model_id = SST_SST39SF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8153 | .total_size = 256, |
| 8154 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8155 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 8156 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8157 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 8158 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8159 | .block_erasers = |
| 8160 | { |
| 8161 | { |
| 8162 | .eraseblocks = { {4 * 1024, 64} }, |
| 8163 | .block_erase = erase_sector_jedec, |
| 8164 | }, { |
| 8165 | .eraseblocks = { {256 * 1024, 1} }, |
| 8166 | .block_erase = erase_chip_block_jedec, |
| 8167 | } |
| 8168 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8169 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8170 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8171 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8172 | }, |
| 8173 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8174 | { |
| 8175 | .vendor = "SST", |
| 8176 | .name = "SST39SF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8177 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8178 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8179 | .model_id = SST_SST39SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8180 | .total_size = 512, |
| 8181 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8182 | .feature_bits = FEATURE_EITHER_RESET, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 8183 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8184 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 8185 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8186 | .block_erasers = |
| 8187 | { |
| 8188 | { |
| 8189 | .eraseblocks = { {4 * 1024, 128} }, |
| 8190 | .block_erase = erase_sector_jedec, |
| 8191 | }, { |
| 8192 | .eraseblocks = { {512 * 1024, 1} }, |
| 8193 | .block_erase = erase_chip_block_jedec, |
| 8194 | } |
| 8195 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8196 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8197 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8198 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8199 | }, |
| 8200 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8201 | { |
| 8202 | .vendor = "SST", |
| 8203 | .name = "SST39VF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8204 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8205 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8206 | .model_id = SST_SST39VF512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8207 | .total_size = 64, |
| 8208 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8209 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 8210 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8211 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 8212 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8213 | .block_erasers = |
| 8214 | { |
| 8215 | { |
| 8216 | .eraseblocks = { {4 * 1024, 16} }, |
| 8217 | .block_erase = erase_sector_jedec, |
| 8218 | }, { |
| 8219 | .eraseblocks = { {64 * 1024, 1} }, |
| 8220 | .block_erase = erase_chip_block_jedec, |
| 8221 | } |
| 8222 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8223 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8224 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8225 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8226 | }, |
| 8227 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8228 | { |
| 8229 | .vendor = "SST", |
| 8230 | .name = "SST39VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8231 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8232 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8233 | .model_id = SST_SST39VF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8234 | .total_size = 128, |
| 8235 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8236 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 8237 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8238 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 8239 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8240 | .block_erasers = |
| 8241 | { |
| 8242 | { |
| 8243 | .eraseblocks = { {4 * 1024, 32} }, |
| 8244 | .block_erase = erase_sector_jedec, |
| 8245 | }, { |
| 8246 | .eraseblocks = { {128 * 1024, 1} }, |
| 8247 | .block_erase = erase_chip_block_jedec, |
| 8248 | } |
| 8249 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8250 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8251 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8252 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8253 | }, |
| 8254 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8255 | { |
| 8256 | .vendor = "SST", |
| 8257 | .name = "SST39VF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8258 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8259 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8260 | .model_id = SST_SST39VF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8261 | .total_size = 256, |
| 8262 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8263 | .feature_bits = FEATURE_EITHER_RESET, |
| 8264 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8265 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 8266 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8267 | .block_erasers = |
| 8268 | { |
| 8269 | { |
| 8270 | .eraseblocks = { {4 * 1024, 64} }, |
| 8271 | .block_erase = erase_sector_jedec, |
| 8272 | }, { |
| 8273 | .eraseblocks = { {256 * 1024, 1} }, |
| 8274 | .block_erase = erase_chip_block_jedec, |
| 8275 | } |
| 8276 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8277 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8278 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8279 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8280 | }, |
| 8281 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8282 | { |
| 8283 | .vendor = "SST", |
| 8284 | .name = "SST39VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8285 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8286 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8287 | .model_id = SST_SST39VF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8288 | .total_size = 512, |
| 8289 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8290 | .feature_bits = FEATURE_EITHER_RESET, |
| 8291 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8292 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 8293 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8294 | .block_erasers = |
| 8295 | { |
| 8296 | { |
| 8297 | .eraseblocks = { {4 * 1024, 128} }, |
| 8298 | .block_erase = erase_sector_jedec, |
| 8299 | }, { |
| 8300 | .eraseblocks = { {512 * 1024, 1} }, |
| 8301 | .block_erase = erase_chip_block_jedec, |
| 8302 | } |
| 8303 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8304 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8305 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8306 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 8307 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8308 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8309 | { |
| 8310 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 8311 | .name = "SST39VF080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8312 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 8313 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8314 | .model_id = SST_SST39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 8315 | .total_size = 1024, |
| 8316 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8317 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 8318 | .tested = TEST_UNTESTED, |
| 8319 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 8320 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8321 | .block_erasers = |
| 8322 | { |
| 8323 | { |
| 8324 | .eraseblocks = { {4 * 1024, 256} }, |
| 8325 | .block_erase = erase_sector_jedec, |
| 8326 | }, { |
| 8327 | .eraseblocks = { {64 * 1024, 16} }, |
| 8328 | .block_erase = erase_block_jedec, |
| 8329 | }, { |
| 8330 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8331 | .block_erase = erase_chip_block_jedec, |
| 8332 | } |
| 8333 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8334 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8335 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8336 | .voltage = {2700, 3600}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 8337 | }, |
| 8338 | |
| 8339 | { |
| 8340 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8341 | .name = "SST49LF002A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8342 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8343 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8344 | .model_id = SST_SST49LF002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8345 | .total_size = 256, |
| 8346 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8347 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 8348 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8349 | .probe = probe_jedec, |
| 8350 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8351 | .block_erasers = |
| 8352 | { |
| 8353 | { |
| 8354 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 8355 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8356 | }, { |
| 8357 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 8358 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8359 | }, { |
| 8360 | .eraseblocks = { {256 * 1024, 1} }, |
| 8361 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 8362 | } |
| 8363 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8364 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 8365 | .unlock = unlock_sst_fwhub, |
| 8366 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8367 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8368 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8369 | }, |
| 8370 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8371 | { |
| 8372 | .vendor = "SST", |
| 8373 | .name = "SST49LF003A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8374 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8375 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8376 | .model_id = SST_SST49LF003A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8377 | .total_size = 384, |
| 8378 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8379 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 8380 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8381 | .probe = probe_jedec, |
| 8382 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8383 | .block_erasers = |
| 8384 | { |
| 8385 | { |
| 8386 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 8387 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8388 | }, { |
| 8389 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 8390 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8391 | }, { |
| 8392 | .eraseblocks = { {384 * 1024, 1} }, |
| 8393 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 8394 | } |
| 8395 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8396 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 8397 | .unlock = unlock_sst_fwhub, |
| 8398 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8399 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8400 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8401 | }, |
| 8402 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8403 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 8404 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 8405 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 8406 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8407 | .vendor = "SST", |
| 8408 | .name = "SST49LF004A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8409 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8410 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8411 | .model_id = SST_SST49LF004A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8412 | .total_size = 512, |
| 8413 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8414 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 8415 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8416 | .probe = probe_jedec, |
| 8417 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 8418 | .block_erasers = |
| 8419 | { |
| 8420 | { |
| 8421 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 8422 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 8423 | }, { |
| 8424 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 8425 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 8426 | }, { |
| 8427 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8428 | .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] | 8429 | }, |
| 8430 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8431 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 8432 | .unlock = unlock_sst_fwhub, |
| 8433 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8434 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8435 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8436 | }, |
| 8437 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8438 | { |
| 8439 | .vendor = "SST", |
| 8440 | .name = "SST49LF004C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8441 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8442 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8443 | .model_id = SST_SST49LF004C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8444 | .total_size = 512, |
| 8445 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8446 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8447 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8448 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 8449 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8450 | .block_erasers = |
| 8451 | { |
| 8452 | { |
| 8453 | .eraseblocks = { {4 * 1024, 128} }, |
| 8454 | .block_erase = erase_sector_49lfxxxc, |
| 8455 | }, { |
| 8456 | .eraseblocks = { |
| 8457 | {64 * 1024, 7}, |
| 8458 | {32 * 1024, 1}, |
| 8459 | {8 * 1024, 2}, |
| 8460 | {16 * 1024, 1}, |
| 8461 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 8462 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8463 | } |
| 8464 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 8465 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 8466 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8467 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8468 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8469 | }, |
| 8470 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8471 | { |
| 8472 | .vendor = "SST", |
| 8473 | .name = "SST49LF008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8474 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8475 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8476 | .model_id = SST_SST49LF008A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8477 | .total_size = 1024, |
| 8478 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8479 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 8480 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8481 | .probe = probe_jedec, |
| 8482 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8483 | .block_erasers = |
| 8484 | { |
| 8485 | { |
| 8486 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 8487 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8488 | }, { |
| 8489 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 8490 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8491 | }, { |
| 8492 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8493 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 8494 | } |
| 8495 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8496 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 8497 | .unlock = unlock_sst_fwhub, |
| 8498 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8499 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8500 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8501 | }, |
| 8502 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8503 | { |
| 8504 | .vendor = "SST", |
| 8505 | .name = "SST49LF008C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8506 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8507 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8508 | .model_id = SST_SST49LF008C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8509 | .total_size = 1024, |
| 8510 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8511 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8512 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8513 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 8514 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8515 | .block_erasers = |
| 8516 | { |
| 8517 | { |
| 8518 | .eraseblocks = { {4 * 1024, 256} }, |
| 8519 | .block_erase = erase_sector_49lfxxxc, |
| 8520 | }, { |
| 8521 | .eraseblocks = { |
| 8522 | {64 * 1024, 15}, |
| 8523 | {32 * 1024, 1}, |
| 8524 | {8 * 1024, 2}, |
| 8525 | {16 * 1024, 1}, |
| 8526 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 8527 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8528 | } |
| 8529 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 8530 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 8531 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8532 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8533 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8534 | }, |
| 8535 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8536 | { |
| 8537 | .vendor = "SST", |
| 8538 | .name = "SST49LF016C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8539 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8540 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8541 | .model_id = SST_SST49LF016C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8542 | .total_size = 2048, |
| 8543 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8544 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | 2abab94 | 2012-04-27 20:41:23 +0000 | [diff] [blame] | 8545 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8546 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 8547 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8548 | .block_erasers = |
| 8549 | { |
| 8550 | { |
| 8551 | .eraseblocks = { {4 * 1024, 512} }, |
| 8552 | .block_erase = erase_sector_49lfxxxc, |
| 8553 | }, { |
| 8554 | .eraseblocks = { |
| 8555 | {64 * 1024, 31}, |
| 8556 | {32 * 1024, 1}, |
| 8557 | {8 * 1024, 2}, |
| 8558 | {16 * 1024, 1}, |
| 8559 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 8560 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8561 | } |
| 8562 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 8563 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 8564 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8565 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8566 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8567 | }, |
| 8568 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8569 | { |
| 8570 | .vendor = "SST", |
| 8571 | .name = "SST49LF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8572 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8573 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8574 | .model_id = SST_SST49LF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8575 | .total_size = 256, |
| 8576 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8577 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 8578 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8579 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 8580 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8581 | .block_erasers = |
| 8582 | { |
| 8583 | { |
| 8584 | .eraseblocks = { {4 * 1024, 64} }, |
| 8585 | .block_erase = erase_sector_jedec, |
| 8586 | }, { |
| 8587 | .eraseblocks = { {16 * 1024, 16} }, |
| 8588 | .block_erase = erase_block_jedec, |
| 8589 | }, { |
| 8590 | .eraseblocks = { {256 * 1024, 1} }, |
| 8591 | .block_erase = NULL, |
| 8592 | } |
| 8593 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8594 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8595 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8596 | .voltage = {3000, 3600}, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 8597 | }, |
| 8598 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8599 | { |
| 8600 | .vendor = "SST", |
| 8601 | .name = "SST49LF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8602 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8603 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8604 | .model_id = SST_SST49LF020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8605 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 8606 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8607 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 8608 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8609 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 8610 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8611 | .block_erasers = |
| 8612 | { |
| 8613 | { |
| 8614 | .eraseblocks = { {4 * 1024, 64} }, |
| 8615 | .block_erase = erase_sector_jedec, |
| 8616 | }, { |
| 8617 | .eraseblocks = { {16 * 1024, 16} }, |
| 8618 | .block_erase = erase_block_jedec, |
| 8619 | }, { |
| 8620 | .eraseblocks = { {256 * 1024, 1} }, |
| 8621 | .block_erase = NULL, |
| 8622 | } |
| 8623 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8624 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8625 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8626 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8627 | }, |
| 8628 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8629 | { |
| 8630 | .vendor = "SST", |
| 8631 | .name = "SST49LF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8632 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8633 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8634 | .model_id = SST_SST49LF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8635 | .total_size = 512, |
| 8636 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8637 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 8638 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8639 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 8640 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8641 | .block_erasers = |
| 8642 | { |
| 8643 | { |
| 8644 | .eraseblocks = { {4 * 1024, 128} }, |
| 8645 | .block_erase = erase_sector_jedec, |
| 8646 | }, { |
| 8647 | .eraseblocks = { {64 * 1024, 8} }, |
| 8648 | .block_erase = erase_block_jedec, |
| 8649 | }, { |
| 8650 | .eraseblocks = { {512 * 1024, 1} }, |
| 8651 | .block_erase = NULL, |
| 8652 | } |
| 8653 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8654 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8655 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8656 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8657 | }, |
| 8658 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8659 | { |
| 8660 | .vendor = "SST", |
| 8661 | .name = "SST49LF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8662 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8663 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8664 | .model_id = SST_SST49LF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8665 | .total_size = 512, |
| 8666 | .page_size = 64 * 1024, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 8667 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 8668 | .tested = TEST_OK_PREW, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8669 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8670 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8671 | .block_erasers = |
| 8672 | { |
| 8673 | { |
| 8674 | .eraseblocks = { {4 * 1024, 128} }, |
| 8675 | .block_erase = erase_sector_jedec, |
| 8676 | }, { |
| 8677 | .eraseblocks = { {64 * 1024, 8} }, |
| 8678 | .block_erase = erase_block_jedec, |
| 8679 | }, { |
| 8680 | .eraseblocks = { {512 * 1024, 1} }, |
| 8681 | .block_erase = NULL, |
| 8682 | } |
| 8683 | }, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 8684 | .unlock = unlock_82802ab, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8685 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8686 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8687 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8688 | }, |
| 8689 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8690 | { |
| 8691 | .vendor = "SST", |
| 8692 | .name = "SST49LF080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8693 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8694 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8695 | .model_id = SST_SST49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8696 | .total_size = 1024, |
| 8697 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8698 | .feature_bits = FEATURE_EITHER_RESET, |
Brandon Dowdy | f07bf32 | 2011-03-06 18:31:11 +0000 | [diff] [blame] | 8699 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8700 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 8701 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8702 | .block_erasers = |
| 8703 | { |
| 8704 | { |
| 8705 | .eraseblocks = { {4 * 1024, 256} }, |
| 8706 | .block_erase = erase_sector_jedec, |
| 8707 | }, { |
| 8708 | .eraseblocks = { {64 * 1024, 16} }, |
| 8709 | .block_erase = erase_block_jedec, |
| 8710 | }, { |
| 8711 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8712 | .block_erase = NULL, |
| 8713 | } |
| 8714 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8715 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8716 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8717 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8718 | }, |
| 8719 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8720 | { |
| 8721 | .vendor = "SST", |
| 8722 | .name = "SST49LF160C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8723 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8724 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8725 | .model_id = SST_SST49LF160C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8726 | .total_size = 2048, |
| 8727 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8728 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 8729 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 8730 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 8731 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8732 | .block_erasers = |
| 8733 | { |
| 8734 | { |
| 8735 | .eraseblocks = { {4 * 1024, 512} }, |
| 8736 | .block_erase = erase_sector_49lfxxxc, |
| 8737 | }, { |
| 8738 | .eraseblocks = { |
| 8739 | {64 * 1024, 31}, |
| 8740 | {32 * 1024, 1}, |
| 8741 | {8 * 1024, 2}, |
| 8742 | {16 * 1024, 1}, |
| 8743 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 8744 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 8745 | } |
| 8746 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 8747 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 8748 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8749 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8750 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8751 | }, |
| 8752 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8753 | { |
| 8754 | .vendor = "ST", |
| 8755 | .name = "M25P05-A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8756 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8757 | .manufacture_id = ST_ID, |
| 8758 | .model_id = ST_M25P05A, |
| 8759 | .total_size = 64, |
| 8760 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8761 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8762 | .tested = TEST_UNTESTED, |
| 8763 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8764 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8765 | .block_erasers = |
| 8766 | { |
| 8767 | { |
| 8768 | .eraseblocks = { {32 * 1024, 2} }, |
| 8769 | .block_erase = spi_block_erase_d8, |
| 8770 | }, { |
| 8771 | .eraseblocks = { {64 * 1024, 1} }, |
| 8772 | .block_erase = spi_block_erase_c7, |
| 8773 | } |
| 8774 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8775 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8776 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8777 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8778 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8779 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8780 | }, |
| 8781 | |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 8782 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 8783 | * 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] | 8784 | * 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] | 8785 | * only is successful if RDID does not work. |
| 8786 | */ |
| 8787 | { |
| 8788 | .vendor = "ST", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 8789 | .name = "M25P05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8790 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 8791 | .manufacture_id = 0, /* Not used. */ |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 8792 | .model_id = ST_M25P05_RES, |
| 8793 | .total_size = 64, |
| 8794 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8795 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 8796 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 8797 | .probe = probe_spi_res1, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 8798 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8799 | .block_erasers = |
| 8800 | { |
| 8801 | { |
| 8802 | .eraseblocks = { {32 * 1024, 2} }, |
| 8803 | .block_erase = spi_block_erase_d8, |
| 8804 | }, { |
| 8805 | .eraseblocks = { {64 * 1024, 1} }, |
| 8806 | .block_erase = spi_block_erase_c7, |
| 8807 | } |
| 8808 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8809 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8810 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 8811 | .write = spi_chip_write_1, /* 128 */ |
| 8812 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8813 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 8814 | }, |
| 8815 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8816 | { |
| 8817 | .vendor = "ST", |
| 8818 | .name = "M25P10-A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8819 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8820 | .manufacture_id = ST_ID, |
| 8821 | .model_id = ST_M25P10A, |
| 8822 | .total_size = 128, |
| 8823 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8824 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 8825 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8826 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8827 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8828 | .block_erasers = |
| 8829 | { |
| 8830 | { |
| 8831 | .eraseblocks = { {32 * 1024, 4} }, |
| 8832 | .block_erase = spi_block_erase_d8, |
| 8833 | }, { |
| 8834 | .eraseblocks = { {128 * 1024, 1} }, |
| 8835 | .block_erase = spi_block_erase_c7, |
| 8836 | } |
| 8837 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8838 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8839 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8840 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8841 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8842 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8843 | }, |
| 8844 | |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 8845 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 8846 | { |
| 8847 | .vendor = "ST", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 8848 | .name = "M25P10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8849 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 8850 | .manufacture_id = 0, /* Not used. */ |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 8851 | .model_id = ST_M25P10_RES, |
| 8852 | .total_size = 128, |
| 8853 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8854 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 8855 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 8856 | .probe = probe_spi_res1, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 8857 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8858 | .block_erasers = |
| 8859 | { |
| 8860 | { |
| 8861 | .eraseblocks = { {32 * 1024, 4} }, |
| 8862 | .block_erase = spi_block_erase_d8, |
| 8863 | }, { |
| 8864 | .eraseblocks = { {128 * 1024, 1} }, |
| 8865 | .block_erase = spi_block_erase_c7, |
| 8866 | } |
| 8867 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8868 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8869 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 8870 | .write = spi_chip_write_1, /* 128 */ |
| 8871 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8872 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 8873 | }, |
| 8874 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8875 | { |
Kyösti Mälkki | c54adc5 | 2013-03-04 01:20:28 +0000 | [diff] [blame] | 8876 | .vendor = "ST", /* Numonyx */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8877 | .name = "M25P20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8878 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8879 | .manufacture_id = ST_ID, |
| 8880 | .model_id = ST_M25P20, |
| 8881 | .total_size = 256, |
| 8882 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8883 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8884 | .tested = TEST_UNTESTED, |
| 8885 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8886 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8887 | .block_erasers = |
| 8888 | { |
| 8889 | { |
| 8890 | .eraseblocks = { {64 * 1024, 4} }, |
| 8891 | .block_erase = spi_block_erase_d8, |
| 8892 | }, { |
| 8893 | .eraseblocks = { {256 * 1024, 1} }, |
| 8894 | .block_erase = spi_block_erase_c7, |
| 8895 | } |
| 8896 | }, |
Kyösti Mälkki | c54adc5 | 2013-03-04 01:20:28 +0000 | [diff] [blame] | 8897 | .printlock = spi_prettyprint_status_register_default_bp1, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8898 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8899 | .write = spi_chip_write_256, |
Kyösti Mälkki | c54adc5 | 2013-03-04 01:20:28 +0000 | [diff] [blame] | 8900 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8901 | .voltage = {2700, 3600}, |
| 8902 | }, |
| 8903 | |
| 8904 | { |
| 8905 | .vendor = "ST", |
| 8906 | .name = "M25P20-old", |
| 8907 | .bustype = BUS_SPI, |
| 8908 | .manufacture_id = 0, /* Not used. */ |
| 8909 | .model_id = ST_M25P20_RES, |
| 8910 | .total_size = 256, |
| 8911 | .page_size = 256, |
| 8912 | .feature_bits = FEATURE_WRSR_WREN, |
| 8913 | .tested = TEST_OK_PREW, |
| 8914 | .probe = probe_spi_res1, |
| 8915 | .probe_timing = TIMING_ZERO, |
| 8916 | .block_erasers = |
| 8917 | { |
| 8918 | { |
| 8919 | .eraseblocks = { {64 * 1024, 4} }, |
| 8920 | .block_erase = spi_block_erase_d8, |
| 8921 | }, { |
| 8922 | .eraseblocks = { {256 * 1024, 1} }, |
| 8923 | .block_erase = spi_block_erase_c7, |
| 8924 | } |
| 8925 | }, |
| 8926 | .printlock = spi_prettyprint_status_register_default_bp1, |
| 8927 | .unlock = spi_disable_blockprotect, |
| 8928 | .write = spi_chip_write_256, |
| 8929 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8930 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8931 | }, |
| 8932 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8933 | { |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 8934 | .vendor = "ST", /* Numonyx */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8935 | .name = "M25P40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8936 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8937 | .manufacture_id = ST_ID, |
| 8938 | .model_id = ST_M25P40, |
| 8939 | .total_size = 512, |
| 8940 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8941 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 8942 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8943 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8944 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8945 | .block_erasers = |
| 8946 | { |
| 8947 | { |
| 8948 | .eraseblocks = { {64 * 1024, 8} }, |
| 8949 | .block_erase = spi_block_erase_d8, |
| 8950 | }, { |
| 8951 | .eraseblocks = { {512 * 1024, 1} }, |
| 8952 | .block_erase = spi_block_erase_c7, |
| 8953 | } |
| 8954 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8955 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8956 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8957 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8958 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8959 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8960 | }, |
| 8961 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8962 | { |
| 8963 | .vendor = "ST", |
| 8964 | .name = "M25P40-old", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8965 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 8966 | .manufacture_id = 0, /* Not used. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8967 | .model_id = ST_M25P40_RES, |
| 8968 | .total_size = 512, |
| 8969 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8970 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8971 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 8972 | .probe = probe_spi_res1, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8973 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 8974 | .block_erasers = |
| 8975 | { |
| 8976 | { |
| 8977 | .eraseblocks = { {64 * 1024, 8} }, |
| 8978 | .block_erase = spi_block_erase_d8, |
| 8979 | }, { |
| 8980 | .eraseblocks = { {512 * 1024, 1} }, |
| 8981 | .block_erase = spi_block_erase_c7, |
| 8982 | } |
| 8983 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 8984 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8985 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8986 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8987 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8988 | }, |
| 8989 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8990 | { |
| 8991 | .vendor = "ST", |
| 8992 | .name = "M25P80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8993 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8994 | .manufacture_id = ST_ID, |
| 8995 | .model_id = ST_M25P80, |
| 8996 | .total_size = 1024, |
| 8997 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8998 | .feature_bits = FEATURE_WRSR_WREN, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 8999 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9000 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9001 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9002 | .block_erasers = |
| 9003 | { |
| 9004 | { |
| 9005 | .eraseblocks = { {64 * 1024, 16} }, |
| 9006 | .block_erase = spi_block_erase_d8, |
| 9007 | }, { |
| 9008 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9009 | .block_erase = spi_block_erase_c7, |
| 9010 | } |
| 9011 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9012 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9013 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9014 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9015 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9016 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9017 | }, |
| 9018 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9019 | { |
| 9020 | .vendor = "ST", |
| 9021 | .name = "M25P16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9022 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9023 | .manufacture_id = ST_ID, |
| 9024 | .model_id = ST_M25P16, |
| 9025 | .total_size = 2048, |
| 9026 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9027 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 9028 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9029 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9030 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9031 | .block_erasers = |
| 9032 | { |
| 9033 | { |
| 9034 | .eraseblocks = { {64 * 1024, 32} }, |
| 9035 | .block_erase = spi_block_erase_d8, |
| 9036 | }, { |
| 9037 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9038 | .block_erase = spi_block_erase_c7, |
| 9039 | } |
| 9040 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9041 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9042 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9043 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9044 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9045 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9046 | }, |
| 9047 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9048 | { |
| 9049 | .vendor = "ST", |
| 9050 | .name = "M25P32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9051 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9052 | .manufacture_id = ST_ID, |
| 9053 | .model_id = ST_M25P32, |
| 9054 | .total_size = 4096, |
| 9055 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9056 | .feature_bits = FEATURE_WRSR_WREN, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 9057 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9058 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9059 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9060 | .block_erasers = |
| 9061 | { |
| 9062 | { |
| 9063 | .eraseblocks = { {64 * 1024, 64} }, |
| 9064 | .block_erase = spi_block_erase_d8, |
| 9065 | }, { |
| 9066 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9067 | .block_erase = spi_block_erase_c7, |
| 9068 | } |
| 9069 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9070 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9071 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9072 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9073 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9074 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9075 | }, |
| 9076 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9077 | { |
| 9078 | .vendor = "ST", |
| 9079 | .name = "M25P64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9080 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9081 | .manufacture_id = ST_ID, |
| 9082 | .model_id = ST_M25P64, |
| 9083 | .total_size = 8192, |
| 9084 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9085 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 9086 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9087 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9088 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9089 | .block_erasers = |
| 9090 | { |
| 9091 | { |
| 9092 | .eraseblocks = { {64 * 1024, 128} }, |
| 9093 | .block_erase = spi_block_erase_d8, |
| 9094 | }, { |
| 9095 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9096 | .block_erase = spi_block_erase_c7, |
| 9097 | } |
| 9098 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9099 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9100 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9101 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9102 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9103 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9104 | }, |
| 9105 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9106 | { |
| 9107 | .vendor = "ST", |
| 9108 | .name = "M25P128", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9109 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9110 | .manufacture_id = ST_ID, |
| 9111 | .model_id = ST_M25P128, |
| 9112 | .total_size = 16384, |
| 9113 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9114 | .feature_bits = FEATURE_WRSR_WREN, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 9115 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9116 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9117 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9118 | .block_erasers = |
| 9119 | { |
| 9120 | { |
| 9121 | .eraseblocks = { {256 * 1024, 64} }, |
| 9122 | .block_erase = spi_block_erase_d8, |
| 9123 | }, { |
| 9124 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9125 | .block_erase = spi_block_erase_c7, |
| 9126 | } |
| 9127 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9128 | .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9129 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9130 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9131 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9132 | .voltage = {2700, 3600}, |
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 = "ST", |
Carl Worth | d1dd72c | 2011-03-06 18:45:40 +0000 | [diff] [blame] | 9137 | .name = "M25PX16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9138 | .bustype = BUS_SPI, |
Carl Worth | d1dd72c | 2011-03-06 18:45:40 +0000 | [diff] [blame] | 9139 | .manufacture_id = ST_ID, |
| 9140 | .model_id = ST_M25PX16, |
| 9141 | .total_size = 2048, |
| 9142 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 9143 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9144 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl Worth | d1dd72c | 2011-03-06 18:45:40 +0000 | [diff] [blame] | 9145 | .tested = TEST_OK_PREW, |
| 9146 | .probe = probe_spi_rdid, |
| 9147 | .probe_timing = TIMING_ZERO, |
| 9148 | .block_erasers = |
| 9149 | { |
| 9150 | { |
| 9151 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 9152 | .block_erase = spi_block_erase_20, |
| 9153 | }, { |
| 9154 | .eraseblocks = { {64 * 1024, 32} }, |
| 9155 | .block_erase = spi_block_erase_d8, |
| 9156 | }, { |
| 9157 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9158 | .block_erase = spi_block_erase_c7, |
| 9159 | } |
| 9160 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9161 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl Worth | d1dd72c | 2011-03-06 18:45:40 +0000 | [diff] [blame] | 9162 | .unlock = spi_disable_blockprotect, |
| 9163 | .write = spi_chip_write_256, |
| 9164 | .read = spi_chip_read, |
| 9165 | }, |
| 9166 | |
| 9167 | { |
| 9168 | .vendor = "ST", |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 9169 | .name = "M25PX32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9170 | .bustype = BUS_SPI, |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 9171 | .manufacture_id = ST_ID, |
| 9172 | .model_id = ST_M25PX32, |
| 9173 | .total_size = 4096, |
| 9174 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9175 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 9176 | .tested = TEST_OK_PRE, |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 9177 | .probe = probe_spi_rdid, |
| 9178 | .probe_timing = TIMING_ZERO, |
| 9179 | .block_erasers = |
| 9180 | { |
| 9181 | { |
| 9182 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 9183 | .block_erase = spi_block_erase_20, |
| 9184 | }, { |
| 9185 | .eraseblocks = { {64 * 1024, 64} }, |
| 9186 | .block_erase = spi_block_erase_d8, |
| 9187 | }, { |
| 9188 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9189 | .block_erase = spi_block_erase_c7, |
| 9190 | } |
| 9191 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9192 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 9193 | .unlock = spi_disable_blockprotect, |
| 9194 | .write = spi_chip_write_256, |
| 9195 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9196 | .voltage = {2700, 3600}, |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 9197 | }, |
| 9198 | |
| 9199 | { |
| 9200 | .vendor = "ST", |
| 9201 | .name = "M25PX64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9202 | .bustype = BUS_SPI, |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 9203 | .manufacture_id = ST_ID, |
| 9204 | .model_id = ST_M25PX64, |
| 9205 | .total_size = 8192, |
| 9206 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9207 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 9208 | .tested = TEST_OK_PRE, |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 9209 | .probe = probe_spi_rdid, |
| 9210 | .probe_timing = TIMING_ZERO, |
| 9211 | .block_erasers = |
| 9212 | { |
| 9213 | { |
| 9214 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 9215 | .block_erase = spi_block_erase_20, |
| 9216 | }, { |
| 9217 | .eraseblocks = { {64 * 1024, 128} }, |
| 9218 | .block_erase = spi_block_erase_d8, |
| 9219 | }, { |
| 9220 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9221 | .block_erase = spi_block_erase_c7, |
| 9222 | } |
| 9223 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9224 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Jason Shriver | 4119e9b | 2010-09-14 13:16:01 +0000 | [diff] [blame] | 9225 | .unlock = spi_disable_blockprotect, |
| 9226 | .write = spi_chip_write_256, |
| 9227 | .read = spi_chip_read, |
| 9228 | }, |
| 9229 | |
| 9230 | { |
| 9231 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9232 | .name = "M29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9233 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9234 | .manufacture_id = ST_ID, |
| 9235 | .model_id = ST_M29F002B, |
| 9236 | .total_size = 256, |
| 9237 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9238 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9239 | .tested = TEST_UNTESTED, |
| 9240 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 9241 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9242 | .block_erasers = |
| 9243 | { |
| 9244 | { |
| 9245 | .eraseblocks = { |
| 9246 | {16 * 1024, 1}, |
| 9247 | {8 * 1024, 2}, |
| 9248 | {32 * 1024, 1}, |
| 9249 | {64 * 1024, 3}, |
| 9250 | }, |
| 9251 | .block_erase = erase_sector_jedec, |
| 9252 | }, { |
| 9253 | .eraseblocks = { {256 * 1024, 1} }, |
| 9254 | .block_erase = erase_chip_block_jedec, |
| 9255 | } |
| 9256 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9257 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9258 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9259 | .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] | 9260 | }, |
| 9261 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9262 | { |
| 9263 | .vendor = "ST", |
| 9264 | .name = "M29F002T/NT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9265 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9266 | .manufacture_id = ST_ID, |
| 9267 | .model_id = ST_M29F002T, |
| 9268 | .total_size = 256, |
| 9269 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9270 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 9271 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9272 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 9273 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9274 | .block_erasers = |
| 9275 | { |
| 9276 | { |
| 9277 | .eraseblocks = { |
| 9278 | {64 * 1024, 3}, |
| 9279 | {32 * 1024, 1}, |
| 9280 | {8 * 1024, 2}, |
| 9281 | {16 * 1024, 1}, |
| 9282 | }, |
| 9283 | .block_erase = erase_sector_jedec, |
| 9284 | }, { |
| 9285 | .eraseblocks = { {256 * 1024, 1} }, |
| 9286 | .block_erase = erase_chip_block_jedec, |
| 9287 | } |
| 9288 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9289 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9290 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9291 | .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] | 9292 | }, |
| 9293 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9294 | { |
| 9295 | .vendor = "ST", |
| 9296 | .name = "M29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9297 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9298 | .manufacture_id = ST_ID, |
| 9299 | .model_id = ST_M29F040B, |
| 9300 | .total_size = 512, |
| 9301 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9302 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 9303 | .tested = TEST_UNTESTED, |
| 9304 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9305 | .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9306 | .block_erasers = |
| 9307 | { |
| 9308 | { |
| 9309 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9310 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9311 | }, { |
| 9312 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9313 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9314 | } |
| 9315 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9316 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9317 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9318 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9319 | }, |
| 9320 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9321 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9322 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9323 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 9324 | .name = "M29F400BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9325 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 9326 | .manufacture_id = ST_ID, |
| 9327 | .model_id = ST_M29F400BB, |
| 9328 | .total_size = 512, |
| 9329 | .page_size = 64 * 1024, |
| 9330 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 9331 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 9332 | .probe = probe_m29f400bt, |
| 9333 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
| 9334 | .block_erasers = |
| 9335 | { |
| 9336 | { |
| 9337 | .eraseblocks = { |
| 9338 | {16 * 1024, 1}, |
| 9339 | {8 * 1024, 2}, |
| 9340 | {32 * 1024, 1}, |
| 9341 | {64 * 1024, 7}, |
| 9342 | }, |
| 9343 | .block_erase = block_erase_m29f400bt, |
| 9344 | }, { |
| 9345 | .eraseblocks = { {512 * 1024, 1} }, |
| 9346 | .block_erase = block_erase_chip_m29f400bt, |
| 9347 | } |
| 9348 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 9349 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 9350 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9351 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 9352 | }, |
| 9353 | { |
| 9354 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 9355 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9356 | .name = "M29F400BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9357 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9358 | .manufacture_id = ST_ID, |
| 9359 | .model_id = ST_M29F400BT, |
| 9360 | .total_size = 512, |
| 9361 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9362 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9363 | .tested = TEST_UNTESTED, |
| 9364 | .probe = probe_m29f400bt, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 9365 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9366 | .block_erasers = |
| 9367 | { |
| 9368 | { |
| 9369 | .eraseblocks = { |
| 9370 | {64 * 1024, 7}, |
| 9371 | {32 * 1024, 1}, |
| 9372 | {8 * 1024, 2}, |
| 9373 | {16 * 1024, 1}, |
| 9374 | }, |
| 9375 | .block_erase = block_erase_m29f400bt, |
| 9376 | }, { |
| 9377 | .eraseblocks = { {512 * 1024, 1} }, |
| 9378 | .block_erase = block_erase_chip_m29f400bt, |
| 9379 | } |
| 9380 | }, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 9381 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9382 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9383 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9384 | }, |
| 9385 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9386 | { |
| 9387 | .vendor = "ST", |
| 9388 | .name = "M29W010B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9389 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9390 | .manufacture_id = ST_ID, |
| 9391 | .model_id = ST_M29W010B, |
| 9392 | .total_size = 128, |
| 9393 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9394 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9395 | .tested = TEST_UNTESTED, |
| 9396 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 9397 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9398 | .block_erasers = |
| 9399 | { |
| 9400 | { |
| 9401 | .eraseblocks = { {16 * 1024, 8}, }, |
| 9402 | .block_erase = erase_sector_jedec, |
| 9403 | }, { |
| 9404 | .eraseblocks = { {128 * 1024, 1} }, |
| 9405 | .block_erase = erase_chip_block_jedec, |
| 9406 | } |
| 9407 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9408 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9409 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9410 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9411 | }, |
| 9412 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9413 | { |
| 9414 | .vendor = "ST", |
| 9415 | .name = "M29W040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9416 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9417 | .manufacture_id = ST_ID, |
| 9418 | .model_id = ST_M29W040B, |
| 9419 | .total_size = 512, |
| 9420 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9421 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9422 | .tested = TEST_UNTESTED, |
| 9423 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 9424 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9425 | .block_erasers = |
| 9426 | { |
| 9427 | { |
| 9428 | .eraseblocks = { {64 * 1024, 8}, }, |
| 9429 | .block_erase = erase_sector_jedec, |
| 9430 | }, { |
| 9431 | .eraseblocks = { {512 * 1024, 1} }, |
| 9432 | .block_erase = erase_chip_block_jedec, |
| 9433 | } |
| 9434 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9435 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9436 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9437 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9438 | }, |
| 9439 | |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 9440 | { |
| 9441 | .vendor = "ST", |
| 9442 | .name = "M29W512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9443 | .bustype = BUS_PARALLEL, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 9444 | .manufacture_id = ST_ID, |
| 9445 | .model_id = ST_M29W512B, |
| 9446 | .total_size = 64, |
| 9447 | .page_size = 64 * 1024, |
| 9448 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 9449 | .tested = TEST_OK_PRE, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 9450 | .probe = probe_jedec, |
| 9451 | .probe_timing = TIMING_ZERO, |
| 9452 | .block_erasers = |
| 9453 | { |
| 9454 | { |
| 9455 | .eraseblocks = { {64 * 1024, 1} }, |
| 9456 | .block_erase = erase_chip_block_jedec, |
| 9457 | } |
| 9458 | }, |
| 9459 | .write = write_jedec_1, |
| 9460 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9461 | .voltage = {2700, 3600}, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 9462 | }, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 9463 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9464 | { |
| 9465 | .vendor = "ST", |
| 9466 | .name = "M50FLW040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9467 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9468 | .manufacture_id = ST_ID, |
| 9469 | .model_id = ST_M50FLW040A, |
| 9470 | .total_size = 512, |
| 9471 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9472 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9473 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9474 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 9475 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9476 | .block_erasers = |
| 9477 | { |
| 9478 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 9479 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 9480 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 9481 | {64 * 1024, 5}, /* block */ |
| 9482 | {4 * 1024, 16}, /* sector */ |
| 9483 | {4 * 1024, 16}, /* sector */ |
| 9484 | }, |
| 9485 | .block_erase = NULL, |
| 9486 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9487 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9488 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9489 | } |
| 9490 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9491 | .unlock = unlock_stm50flw0x0x, |
| 9492 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9493 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9494 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9495 | }, |
| 9496 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9497 | { |
| 9498 | .vendor = "ST", |
| 9499 | .name = "M50FLW040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9500 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9501 | .manufacture_id = ST_ID, |
| 9502 | .model_id = ST_M50FLW040B, |
| 9503 | .total_size = 512, |
| 9504 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9505 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9506 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9507 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 9508 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9509 | .block_erasers = |
| 9510 | { |
| 9511 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 9512 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 9513 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 9514 | {4 * 1024, 16}, /* sector */ |
| 9515 | {64 * 1024, 5}, /* block */ |
| 9516 | {4 * 1024, 16}, /* sector */ |
| 9517 | }, |
| 9518 | .block_erase = NULL, |
| 9519 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9520 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9521 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9522 | } |
| 9523 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9524 | .unlock = unlock_stm50flw0x0x, |
| 9525 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9526 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9527 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9528 | }, |
| 9529 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9530 | { |
| 9531 | .vendor = "ST", |
| 9532 | .name = "M50FLW080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9533 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9534 | .manufacture_id = ST_ID, |
| 9535 | .model_id = ST_M50FLW080A, |
| 9536 | .total_size = 1024, |
| 9537 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9538 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 9539 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9540 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 9541 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9542 | .block_erasers = |
| 9543 | { |
| 9544 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 9545 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 9546 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 9547 | {64 * 1024, 13}, /* block */ |
| 9548 | {4 * 1024, 16}, /* sector */ |
| 9549 | {4 * 1024, 16}, /* sector */ |
| 9550 | }, |
| 9551 | .block_erase = NULL, |
| 9552 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9553 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9554 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9555 | } |
| 9556 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9557 | .unlock = unlock_stm50flw0x0x, |
| 9558 | .write = write_82802ab, |
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}, /* Also has 12V fast program & erase */ |
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 = "ST", |
| 9565 | .name = "M50FLW080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9566 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9567 | .manufacture_id = ST_ID, |
| 9568 | .model_id = ST_M50FLW080B, |
| 9569 | .total_size = 1024, |
| 9570 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9571 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9572 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9573 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 9574 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9575 | .block_erasers = |
| 9576 | { |
| 9577 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 9578 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 9579 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 9580 | {4 * 1024, 16}, /* sector */ |
| 9581 | {64 * 1024, 13}, /* block */ |
| 9582 | {4 * 1024, 16}, /* sector */ |
| 9583 | }, |
| 9584 | .block_erase = NULL, |
| 9585 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9586 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9587 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9588 | } |
| 9589 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9590 | .unlock = unlock_stm50flw0x0x, |
| 9591 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9592 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9593 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9594 | }, |
| 9595 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9596 | { |
| 9597 | .vendor = "ST", |
| 9598 | .name = "M50FW002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9599 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9600 | .manufacture_id = ST_ID, |
| 9601 | .model_id = ST_M50FW002, |
| 9602 | .total_size = 256, |
| 9603 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9604 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9605 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9606 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 9607 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9608 | .block_erasers = |
| 9609 | { |
| 9610 | { |
| 9611 | .eraseblocks = { |
| 9612 | {64 * 1024, 3}, |
| 9613 | {32 * 1024, 1}, |
| 9614 | {8 * 1024, 2}, |
| 9615 | {16 * 1024, 1}, |
| 9616 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9617 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9618 | } |
| 9619 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9620 | .unlock = unlock_stm50flw0x0x, |
| 9621 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9622 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9623 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9624 | }, |
| 9625 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9626 | { |
| 9627 | .vendor = "ST", |
| 9628 | .name = "M50FW016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9629 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9630 | .manufacture_id = ST_ID, |
| 9631 | .model_id = ST_M50FW016, |
| 9632 | .total_size = 2048, |
| 9633 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9634 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9635 | .tested = TEST_UNTESTED, |
| 9636 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 9637 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9638 | .block_erasers = |
| 9639 | { |
| 9640 | { |
| 9641 | .eraseblocks = { {64 * 1024, 32}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9642 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9643 | } |
| 9644 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9645 | .unlock = unlock_stm50flw0x0x, |
| 9646 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9647 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9648 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9649 | }, |
| 9650 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9651 | { |
| 9652 | .vendor = "ST", |
| 9653 | .name = "M50FW040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9654 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9655 | .manufacture_id = ST_ID, |
| 9656 | .model_id = ST_M50FW040, |
| 9657 | .total_size = 512, |
| 9658 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9659 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9660 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9661 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 9662 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9663 | .block_erasers = |
| 9664 | { |
| 9665 | { |
| 9666 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9667 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9668 | } |
| 9669 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9670 | .unlock = unlock_stm50flw0x0x, |
| 9671 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9672 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9673 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9674 | }, |
| 9675 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9676 | { |
| 9677 | .vendor = "ST", |
| 9678 | .name = "M50FW080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9679 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9680 | .manufacture_id = ST_ID, |
| 9681 | .model_id = ST_M50FW080, |
| 9682 | .total_size = 1024, |
| 9683 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9684 | .feature_bits = FEATURE_REGISTERMAP, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 9685 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9686 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 9687 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9688 | .block_erasers = |
| 9689 | { |
| 9690 | { |
| 9691 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9692 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9693 | } |
| 9694 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9695 | .unlock = unlock_stm50flw0x0x, |
| 9696 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9697 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9698 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9699 | }, |
| 9700 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9701 | { |
| 9702 | .vendor = "ST", |
| 9703 | .name = "M50LPW116", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9704 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9705 | .manufacture_id = ST_ID, |
| 9706 | .model_id = ST_M50LPW116, |
| 9707 | .total_size = 2048, |
| 9708 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9709 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9710 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9711 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 9712 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9713 | .block_erasers = |
| 9714 | { |
| 9715 | { |
| 9716 | .eraseblocks = { |
| 9717 | {4 * 1024, 16}, |
| 9718 | {64 * 1024, 30}, |
| 9719 | {32 * 1024, 1}, |
| 9720 | {8 * 1024, 2}, |
| 9721 | {16 * 1024, 1}, |
| 9722 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9723 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9724 | } |
| 9725 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9726 | .unlock = unlock_stm50flw0x0x, |
| 9727 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9728 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9729 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9730 | }, |
| 9731 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9732 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9733 | .vendor = "SyncMOS/MoselVitelic", |
| 9734 | .name = "{F,S,V}29C51001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9735 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9736 | .manufacture_id = SYNCMOS_MVC_ID, |
| 9737 | .model_id = SM_MVC_29C51001B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9738 | .total_size = 128, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9739 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9740 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9741 | .tested = TEST_UNTESTED, |
| 9742 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 9743 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9744 | .block_erasers = |
| 9745 | { |
| 9746 | { |
| 9747 | .eraseblocks = { {512, 256} }, |
| 9748 | .block_erase = erase_sector_jedec, |
| 9749 | }, { |
| 9750 | .eraseblocks = { {128 * 1024, 1} }, |
| 9751 | .block_erase = erase_chip_block_jedec, |
| 9752 | }, |
| 9753 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9754 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9755 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9756 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9757 | }, |
| 9758 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9759 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9760 | .vendor = "SyncMOS/MoselVitelic", |
| 9761 | .name = "{F,S,V}29C51001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9762 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9763 | .manufacture_id = SYNCMOS_MVC_ID, |
| 9764 | .model_id = SM_MVC_29C51001T, |
| 9765 | .total_size = 128, |
| 9766 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9767 | .feature_bits = FEATURE_EITHER_RESET, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9768 | .tested = TEST_UNTESTED, |
| 9769 | .probe = probe_jedec, |
| 9770 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 9771 | .block_erasers = |
| 9772 | { |
| 9773 | { |
| 9774 | .eraseblocks = { {512, 256} }, |
| 9775 | .block_erase = erase_sector_jedec, |
| 9776 | }, { |
| 9777 | .eraseblocks = { {128 * 1024, 1} }, |
| 9778 | .block_erase = erase_chip_block_jedec, |
| 9779 | }, |
| 9780 | }, |
| 9781 | .write = write_jedec_1, |
| 9782 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9783 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9784 | }, |
| 9785 | |
| 9786 | { |
| 9787 | .vendor = "SyncMOS/MoselVitelic", |
| 9788 | .name = "{F,S,V}29C51002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9789 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9790 | .manufacture_id = SYNCMOS_MVC_ID, |
| 9791 | .model_id = SM_MVC_29C51002B, |
| 9792 | .total_size = 256, |
| 9793 | .page_size = 512, |
| 9794 | .feature_bits = FEATURE_EITHER_RESET, |
| 9795 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9796 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 9797 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9798 | .block_erasers = |
| 9799 | { |
| 9800 | { |
| 9801 | .eraseblocks = { {512, 512} }, |
| 9802 | .block_erase = erase_sector_jedec, |
| 9803 | }, { |
| 9804 | .eraseblocks = { {256 * 1024, 1} }, |
| 9805 | .block_erase = erase_chip_block_jedec, |
| 9806 | }, |
| 9807 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9808 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9809 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9810 | }, |
| 9811 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9812 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9813 | .vendor = "SyncMOS/MoselVitelic", |
| 9814 | .name = "{F,S,V}29C51002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9815 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9816 | .manufacture_id = SYNCMOS_MVC_ID, |
| 9817 | .model_id = SM_MVC_29C51002T, |
| 9818 | .total_size = 256, |
| 9819 | .page_size = 512, |
| 9820 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 9821 | .tested = TEST_OK_PREW, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9822 | .probe = probe_jedec, |
| 9823 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 9824 | .block_erasers = |
| 9825 | { |
| 9826 | { |
| 9827 | .eraseblocks = { {512, 512} }, |
| 9828 | .block_erase = erase_sector_jedec, |
| 9829 | }, { |
| 9830 | .eraseblocks = { {256 * 1024, 1} }, |
| 9831 | .block_erase = erase_chip_block_jedec, |
| 9832 | }, |
| 9833 | }, |
| 9834 | .write = write_jedec_1, |
| 9835 | .read = read_memmapped, |
| 9836 | }, |
| 9837 | |
| 9838 | { |
| 9839 | .vendor = "SyncMOS/MoselVitelic", |
| 9840 | .name = "{F,S,V}29C51004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9841 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9842 | .manufacture_id = SYNCMOS_MVC_ID, |
| 9843 | .model_id = SM_MVC_29C51004B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9844 | .total_size = 512, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9845 | .page_size = 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9846 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9847 | .tested = TEST_UNTESTED, |
| 9848 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 9849 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9850 | .block_erasers = |
| 9851 | { |
| 9852 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9853 | .eraseblocks = { {1024, 512} }, |
| 9854 | .block_erase = erase_sector_jedec, |
| 9855 | }, { |
| 9856 | .eraseblocks = { {512 * 1024, 1} }, |
| 9857 | .block_erase = erase_chip_block_jedec, |
| 9858 | }, |
| 9859 | }, |
| 9860 | .write = write_jedec_1, |
| 9861 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9862 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9863 | }, |
| 9864 | |
| 9865 | { |
| 9866 | .vendor = "SyncMOS/MoselVitelic", |
| 9867 | .name = "{F,S,V}29C51004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9868 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9869 | .manufacture_id = SYNCMOS_MVC_ID, |
| 9870 | .model_id = SM_MVC_29C51004T, |
| 9871 | .total_size = 512, |
| 9872 | .page_size = 1024, |
| 9873 | .feature_bits = FEATURE_EITHER_RESET, |
| 9874 | .tested = TEST_UNTESTED, |
| 9875 | .probe = probe_jedec, |
| 9876 | .probe_timing = TIMING_ZERO, |
| 9877 | .block_erasers = |
| 9878 | { |
| 9879 | { |
| 9880 | .eraseblocks = { {1024, 512} }, |
| 9881 | .block_erase = erase_sector_jedec, |
| 9882 | }, { |
| 9883 | .eraseblocks = { {512 * 1024, 1} }, |
| 9884 | .block_erase = erase_chip_block_jedec, |
| 9885 | }, |
| 9886 | }, |
| 9887 | .write = write_jedec_1, |
| 9888 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9889 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9890 | }, |
| 9891 | |
| 9892 | { |
| 9893 | .vendor = "SyncMOS/MoselVitelic", |
| 9894 | .name = "{S,V}29C31004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9895 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9896 | .manufacture_id = SYNCMOS_MVC_ID, |
| 9897 | .model_id = SM_MVC_29C31004B, |
| 9898 | .total_size = 512, |
| 9899 | .page_size = 1024, |
| 9900 | .feature_bits = FEATURE_EITHER_RESET, |
| 9901 | .tested = TEST_UNTESTED, |
| 9902 | .probe = probe_jedec, |
| 9903 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 9904 | .block_erasers = |
| 9905 | { |
| 9906 | { |
| 9907 | .eraseblocks = { {1024, 512} }, |
| 9908 | .block_erase = erase_sector_jedec, |
| 9909 | }, { |
| 9910 | .eraseblocks = { {512 * 1024, 1} }, |
| 9911 | .block_erase = erase_chip_block_jedec, |
| 9912 | }, |
| 9913 | }, |
| 9914 | .write = write_jedec_1, |
| 9915 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9916 | .voltage = {3000, 3600}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9917 | }, |
| 9918 | |
| 9919 | { |
| 9920 | .vendor = "SyncMOS/MoselVitelic", |
| 9921 | .name = "{S,V}29C31004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9922 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9923 | .manufacture_id = SYNCMOS_MVC_ID, |
| 9924 | .model_id = SM_MVC_29C31004T, |
| 9925 | .total_size = 512, |
| 9926 | .page_size = 1024, |
| 9927 | .feature_bits = FEATURE_EITHER_RESET, |
| 9928 | .tested = TEST_UNTESTED, |
| 9929 | .probe = probe_jedec, |
| 9930 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 9931 | .block_erasers = |
| 9932 | { |
| 9933 | { |
| 9934 | .eraseblocks = { {1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9935 | .block_erase = erase_sector_jedec, |
| 9936 | }, { |
| 9937 | .eraseblocks = { {512 * 1024, 1} }, |
| 9938 | .block_erase = erase_chip_block_jedec, |
| 9939 | }, |
| 9940 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9941 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9942 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9943 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9944 | }, |
| 9945 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9946 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 9947 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 9948 | .name = "TMS29F002RB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9949 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 9950 | .manufacture_id = TI_OLD_ID, |
| 9951 | .model_id = TI_TMS29F002RB, |
| 9952 | .total_size = 256, |
| 9953 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9954 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 9955 | .tested = TEST_UNTESTED, |
| 9956 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 9957 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9958 | .block_erasers = |
| 9959 | { |
| 9960 | { |
| 9961 | .eraseblocks = { |
| 9962 | {16 * 1024, 1}, |
| 9963 | {8 * 1024, 2}, |
| 9964 | {32 * 1024, 1}, |
| 9965 | {64 * 1024, 3}, |
| 9966 | }, |
| 9967 | .block_erase = erase_sector_jedec, |
| 9968 | }, { |
| 9969 | .eraseblocks = { {256 * 1024, 1} }, |
| 9970 | .block_erase = erase_chip_block_jedec, |
| 9971 | }, |
| 9972 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9973 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 9974 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9975 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 9976 | }, |
| 9977 | |
| 9978 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 9979 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 9980 | .name = "TMS29F002RT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9981 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 9982 | .manufacture_id = TI_OLD_ID, |
| 9983 | .model_id = TI_TMS29F002RT, |
| 9984 | .total_size = 256, |
| 9985 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9986 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 9987 | .tested = TEST_UNTESTED, |
| 9988 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 9989 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 9990 | .block_erasers = |
| 9991 | { |
| 9992 | { |
| 9993 | .eraseblocks = { |
| 9994 | {64 * 1024, 3}, |
| 9995 | {32 * 1024, 1}, |
| 9996 | {8 * 1024, 2}, |
| 9997 | {16 * 1024, 1}, |
| 9998 | }, |
| 9999 | .block_erase = erase_sector_jedec, |
| 10000 | }, { |
| 10001 | .eraseblocks = { {256 * 1024, 1} }, |
| 10002 | .block_erase = erase_chip_block_jedec, |
| 10003 | }, |
| 10004 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10005 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 10006 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10007 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 10008 | }, |
| 10009 | |
| 10010 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10011 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 10012 | .name = "W25Q80.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10013 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 10014 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 10015 | .model_id = WINBOND_NEX_W25Q80_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 10016 | .total_size = 1024, |
| 10017 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 10018 | /* supports SFDP */ |
| 10019 | /* 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] | 10020 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 10021 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 10022 | .probe = probe_spi_rdid, |
| 10023 | .probe_timing = TIMING_ZERO, |
| 10024 | .block_erasers = |
| 10025 | { |
| 10026 | { |
| 10027 | .eraseblocks = { {4 * 1024, 256} }, |
| 10028 | .block_erase = spi_block_erase_20, |
| 10029 | }, { |
| 10030 | .eraseblocks = { {32 * 1024, 32} }, |
| 10031 | .block_erase = spi_block_erase_52, |
| 10032 | }, { |
| 10033 | .eraseblocks = { {64 * 1024, 16} }, |
| 10034 | .block_erase = spi_block_erase_d8, |
| 10035 | }, { |
| 10036 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10037 | .block_erase = spi_block_erase_60, |
| 10038 | }, { |
| 10039 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10040 | .block_erase = spi_block_erase_c7, |
| 10041 | } |
| 10042 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10043 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10044 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 10045 | .write = spi_chip_write_256, |
| 10046 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10047 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 10048 | }, |
| 10049 | |
| 10050 | { |
| 10051 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 10052 | .name = "W25Q16.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10053 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 10054 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 10055 | .model_id = WINBOND_NEX_W25Q16_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 10056 | .total_size = 2048, |
| 10057 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 10058 | /* supports SFDP */ |
| 10059 | /* 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] | 10060 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 10061 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 10062 | .probe = probe_spi_rdid, |
| 10063 | .probe_timing = TIMING_ZERO, |
| 10064 | .block_erasers = |
| 10065 | { |
| 10066 | { |
| 10067 | .eraseblocks = { {4 * 1024, 512} }, |
| 10068 | .block_erase = spi_block_erase_20, |
| 10069 | }, { |
| 10070 | .eraseblocks = { {32 * 1024, 64} }, |
| 10071 | .block_erase = spi_block_erase_52, |
| 10072 | }, { |
| 10073 | .eraseblocks = { {64 * 1024, 32} }, |
| 10074 | .block_erase = spi_block_erase_d8, |
| 10075 | }, { |
| 10076 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10077 | .block_erase = spi_block_erase_60, |
| 10078 | }, { |
| 10079 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10080 | .block_erase = spi_block_erase_c7, |
| 10081 | } |
| 10082 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10083 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10084 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 10085 | .write = spi_chip_write_256, |
| 10086 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10087 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 10088 | }, |
| 10089 | |
| 10090 | { |
| 10091 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 10092 | .name = "W25Q32.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10093 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 10094 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 10095 | .model_id = WINBOND_NEX_W25Q32_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 10096 | .total_size = 4096, |
| 10097 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 10098 | /* supports SFDP */ |
| 10099 | /* 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] | 10100 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 10101 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 10102 | .probe = probe_spi_rdid, |
| 10103 | .probe_timing = TIMING_ZERO, |
| 10104 | .block_erasers = |
| 10105 | { |
| 10106 | { |
| 10107 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10108 | .block_erase = spi_block_erase_20, |
| 10109 | }, { |
| 10110 | .eraseblocks = { {32 * 1024, 128} }, |
| 10111 | .block_erase = spi_block_erase_52, |
| 10112 | }, { |
| 10113 | .eraseblocks = { {64 * 1024, 64} }, |
| 10114 | .block_erase = spi_block_erase_d8, |
| 10115 | }, { |
| 10116 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10117 | .block_erase = spi_block_erase_60, |
| 10118 | }, { |
| 10119 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10120 | .block_erase = spi_block_erase_c7, |
| 10121 | } |
| 10122 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10123 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10124 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 10125 | .write = spi_chip_write_256, |
| 10126 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10127 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 10128 | }, |
| 10129 | |
| 10130 | { |
| 10131 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 10132 | .name = "W25Q64.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10133 | .bustype = BUS_SPI, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 10134 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 10135 | .model_id = WINBOND_NEX_W25Q64_V, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 10136 | .total_size = 8192, |
| 10137 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 10138 | /* supports SFDP */ |
| 10139 | /* 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] | 10140 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 10141 | .tested = TEST_OK_PREW, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 10142 | .probe = probe_spi_rdid, |
| 10143 | .probe_timing = TIMING_ZERO, |
| 10144 | .block_erasers = |
| 10145 | { |
| 10146 | { |
| 10147 | .eraseblocks = { {4 * 1024, 2048} }, |
| 10148 | .block_erase = spi_block_erase_20, |
| 10149 | }, { |
| 10150 | .eraseblocks = { {32 * 1024, 256} }, |
| 10151 | .block_erase = spi_block_erase_52, |
| 10152 | }, { |
| 10153 | .eraseblocks = { {64 * 1024, 128} }, |
| 10154 | .block_erase = spi_block_erase_d8, |
| 10155 | }, { |
| 10156 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10157 | .block_erase = spi_block_erase_60, |
| 10158 | }, { |
| 10159 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10160 | .block_erase = spi_block_erase_c7, |
| 10161 | } |
| 10162 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10163 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10164 | .unlock = spi_disable_blockprotect, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 10165 | .write = spi_chip_write_256, |
| 10166 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 10167 | .voltage = {2700, 3600}, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 10168 | }, |
| 10169 | |
| 10170 | { |
| 10171 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 10172 | .name = "W25Q128.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10173 | .bustype = BUS_SPI, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 10174 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 10175 | .model_id = WINBOND_NEX_W25Q128_V, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 10176 | .total_size = 16384, |
| 10177 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 10178 | /* supports SFDP */ |
| 10179 | /* 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] | 10180 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 10181 | .tested = TEST_OK_PROBE, |
| 10182 | .probe = probe_spi_rdid, |
| 10183 | .probe_timing = TIMING_ZERO, |
| 10184 | .block_erasers = |
| 10185 | { |
| 10186 | { |
| 10187 | .eraseblocks = { {4 * 1024, 4096} }, |
| 10188 | .block_erase = spi_block_erase_20, |
| 10189 | }, { |
| 10190 | .eraseblocks = { {32 * 1024, 512} }, |
| 10191 | .block_erase = spi_block_erase_52, |
| 10192 | }, { |
| 10193 | .eraseblocks = { {64 * 1024, 256} }, |
| 10194 | .block_erase = spi_block_erase_d8, |
| 10195 | }, { |
| 10196 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 10197 | .block_erase = spi_block_erase_60, |
| 10198 | }, { |
| 10199 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 10200 | .block_erase = spi_block_erase_c7, |
| 10201 | } |
| 10202 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10203 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 10204 | .unlock = spi_disable_blockprotect, |
| 10205 | .write = spi_chip_write_256, |
| 10206 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 10207 | .voltage = {2700, 3600}, |
| 10208 | }, |
| 10209 | |
| 10210 | { |
| 10211 | .vendor = "Winbond", |
| 10212 | .name = "W25Q20.W", |
| 10213 | .bustype = BUS_SPI, |
| 10214 | .manufacture_id = WINBOND_NEX_ID, |
| 10215 | .model_id = WINBOND_NEX_W25Q20_W, |
| 10216 | .total_size = 256, |
| 10217 | .page_size = 256, |
| 10218 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 10219 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10220 | .tested = TEST_UNTESTED, |
| 10221 | .probe = probe_spi_rdid, |
| 10222 | .probe_timing = TIMING_ZERO, |
| 10223 | .block_erasers = |
| 10224 | { |
| 10225 | { |
| 10226 | .eraseblocks = { {4 * 1024, 64} }, |
| 10227 | .block_erase = spi_block_erase_20, |
| 10228 | }, { |
| 10229 | .eraseblocks = { {32 * 1024, 8} }, |
| 10230 | .block_erase = spi_block_erase_52, |
| 10231 | }, { |
| 10232 | .eraseblocks = { {64 * 1024, 4} }, |
| 10233 | .block_erase = spi_block_erase_d8, |
| 10234 | }, { |
| 10235 | .eraseblocks = { {256 * 1024, 1} }, |
| 10236 | .block_erase = spi_block_erase_60, |
| 10237 | }, { |
| 10238 | .eraseblocks = { {256 * 1024, 1} }, |
| 10239 | .block_erase = spi_block_erase_c7, |
| 10240 | } |
| 10241 | }, |
| 10242 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10243 | .unlock = spi_disable_blockprotect, |
| 10244 | .write = spi_chip_write_256, |
| 10245 | .read = spi_chip_read, |
| 10246 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 10247 | }, |
| 10248 | |
| 10249 | { |
| 10250 | .vendor = "Winbond", |
| 10251 | .name = "W25Q40.W", |
| 10252 | .bustype = BUS_SPI, |
| 10253 | .manufacture_id = WINBOND_NEX_ID, |
| 10254 | .model_id = WINBOND_NEX_W25Q40_W, |
| 10255 | .total_size = 512, |
| 10256 | .page_size = 256, |
| 10257 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 10258 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10259 | .tested = TEST_UNTESTED, |
| 10260 | .probe = probe_spi_rdid, |
| 10261 | .probe_timing = TIMING_ZERO, |
| 10262 | .block_erasers = |
| 10263 | { |
| 10264 | { |
| 10265 | .eraseblocks = { {4 * 1024, 128} }, |
| 10266 | .block_erase = spi_block_erase_20, |
| 10267 | }, { |
| 10268 | .eraseblocks = { {32 * 1024, 16} }, |
| 10269 | .block_erase = spi_block_erase_52, |
| 10270 | }, { |
| 10271 | .eraseblocks = { {64 * 1024, 8} }, |
| 10272 | .block_erase = spi_block_erase_d8, |
| 10273 | }, { |
| 10274 | .eraseblocks = { {512 * 1024, 1} }, |
| 10275 | .block_erase = spi_block_erase_60, |
| 10276 | }, { |
| 10277 | .eraseblocks = { {512 * 1024, 1} }, |
| 10278 | .block_erase = spi_block_erase_c7, |
| 10279 | } |
| 10280 | }, |
| 10281 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10282 | .unlock = spi_disable_blockprotect, |
| 10283 | .write = spi_chip_write_256, |
| 10284 | .read = spi_chip_read, |
| 10285 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 10286 | }, |
| 10287 | |
| 10288 | { |
| 10289 | .vendor = "Winbond", |
| 10290 | .name = "W25Q80.W", |
| 10291 | .bustype = BUS_SPI, |
| 10292 | .manufacture_id = WINBOND_NEX_ID, |
| 10293 | .model_id = WINBOND_NEX_W25Q80_W, |
| 10294 | .total_size = 1024, |
| 10295 | .page_size = 256, |
| 10296 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 10297 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10298 | .tested = TEST_UNTESTED, |
| 10299 | .probe = probe_spi_rdid, |
| 10300 | .probe_timing = TIMING_ZERO, |
| 10301 | .block_erasers = |
| 10302 | { |
| 10303 | { |
| 10304 | .eraseblocks = { {4 * 1024, 256} }, |
| 10305 | .block_erase = spi_block_erase_20, |
| 10306 | }, { |
| 10307 | .eraseblocks = { {32 * 1024, 32} }, |
| 10308 | .block_erase = spi_block_erase_52, |
| 10309 | }, { |
| 10310 | .eraseblocks = { {64 * 1024, 16} }, |
| 10311 | .block_erase = spi_block_erase_d8, |
| 10312 | }, { |
| 10313 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 10314 | .block_erase = spi_block_erase_60, |
| 10315 | }, { |
| 10316 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 10317 | .block_erase = spi_block_erase_c7, |
| 10318 | } |
| 10319 | }, |
| 10320 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10321 | .unlock = spi_disable_blockprotect, |
| 10322 | .write = spi_chip_write_256, |
| 10323 | .read = spi_chip_read, |
| 10324 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 10325 | }, |
| 10326 | |
| 10327 | { |
| 10328 | .vendor = "Winbond", |
| 10329 | .name = "W25Q16.W", |
| 10330 | .bustype = BUS_SPI, |
| 10331 | .manufacture_id = WINBOND_NEX_ID, |
| 10332 | .model_id = WINBOND_NEX_W25Q16_W, |
| 10333 | .total_size = 2048, |
| 10334 | .page_size = 256, |
| 10335 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 10336 | /* QPI enable 0x38, disable 0xFF */ |
| 10337 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 10338 | .tested = TEST_UNTESTED, |
| 10339 | .probe = probe_spi_rdid, |
| 10340 | .probe_timing = TIMING_ZERO, |
| 10341 | .block_erasers = |
| 10342 | { |
| 10343 | { |
| 10344 | .eraseblocks = { {4 * 1024, 512} }, |
| 10345 | .block_erase = spi_block_erase_20, |
| 10346 | }, { |
| 10347 | .eraseblocks = { {32 * 1024, 64} }, |
| 10348 | .block_erase = spi_block_erase_52, |
| 10349 | }, { |
| 10350 | .eraseblocks = { {64 * 1024, 32} }, |
| 10351 | .block_erase = spi_block_erase_d8, |
| 10352 | }, { |
| 10353 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10354 | .block_erase = spi_block_erase_60, |
| 10355 | }, { |
| 10356 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10357 | .block_erase = spi_block_erase_c7, |
| 10358 | } |
| 10359 | }, |
| 10360 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10361 | .unlock = spi_disable_blockprotect, |
| 10362 | .write = spi_chip_write_256, |
| 10363 | .read = spi_chip_read, |
| 10364 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 10365 | }, |
| 10366 | |
| 10367 | { |
| 10368 | .vendor = "Winbond", |
| 10369 | .name = "W25Q32.W", |
| 10370 | .bustype = BUS_SPI, |
| 10371 | .manufacture_id = WINBOND_NEX_ID, |
| 10372 | .model_id = WINBOND_NEX_W25Q32_W, |
| 10373 | .total_size = 4096, |
| 10374 | .page_size = 256, |
| 10375 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 10376 | /* QPI enable 0x38, disable 0xFF */ |
| 10377 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 10378 | .tested = TEST_OK_PREW, |
| 10379 | .probe = probe_spi_rdid, |
| 10380 | .probe_timing = TIMING_ZERO, |
| 10381 | .block_erasers = |
| 10382 | { |
| 10383 | { |
| 10384 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10385 | .block_erase = spi_block_erase_20, |
| 10386 | }, { |
| 10387 | .eraseblocks = { {32 * 1024, 128} }, |
| 10388 | .block_erase = spi_block_erase_52, |
| 10389 | }, { |
| 10390 | .eraseblocks = { {64 * 1024, 64} }, |
| 10391 | .block_erase = spi_block_erase_d8, |
| 10392 | }, { |
| 10393 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10394 | .block_erase = spi_block_erase_60, |
| 10395 | }, { |
| 10396 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10397 | .block_erase = spi_block_erase_c7, |
| 10398 | } |
| 10399 | }, |
| 10400 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10401 | .unlock = spi_disable_blockprotect, |
| 10402 | .write = spi_chip_write_256, |
| 10403 | .read = spi_chip_read, |
| 10404 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 10405 | }, |
| 10406 | |
| 10407 | { |
| 10408 | .vendor = "Winbond", |
| 10409 | .name = "W25Q64.W", |
| 10410 | .bustype = BUS_SPI, |
| 10411 | .manufacture_id = WINBOND_NEX_ID, |
| 10412 | .model_id = WINBOND_NEX_W25Q64_W, |
| 10413 | .total_size = 8192, |
| 10414 | .page_size = 256, |
| 10415 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 10416 | /* QPI enable 0x38, disable 0xFF */ |
| 10417 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 10418 | .tested = TEST_UNTESTED, |
| 10419 | .probe = probe_spi_rdid, |
| 10420 | .probe_timing = TIMING_ZERO, |
| 10421 | .block_erasers = |
| 10422 | { |
| 10423 | { |
| 10424 | .eraseblocks = { {4 * 1024, 2048} }, |
| 10425 | .block_erase = spi_block_erase_20, |
| 10426 | }, { |
| 10427 | .eraseblocks = { {32 * 1024, 256} }, |
| 10428 | .block_erase = spi_block_erase_52, |
| 10429 | }, { |
| 10430 | .eraseblocks = { {64 * 1024, 128} }, |
| 10431 | .block_erase = spi_block_erase_d8, |
| 10432 | }, { |
| 10433 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10434 | .block_erase = spi_block_erase_60, |
| 10435 | }, { |
| 10436 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10437 | .block_erase = spi_block_erase_c7, |
| 10438 | } |
| 10439 | }, |
| 10440 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10441 | .unlock = spi_disable_blockprotect, |
| 10442 | .write = spi_chip_write_256, |
| 10443 | .read = spi_chip_read, |
| 10444 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 10445 | }, |
| 10446 | |
| 10447 | { |
| 10448 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 10449 | .name = "W25X10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10450 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10451 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 10452 | .model_id = WINBOND_NEX_W25X10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10453 | .total_size = 128, |
| 10454 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 10455 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 10456 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10457 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10458 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 10459 | .block_erasers = |
| 10460 | { |
| 10461 | { |
| 10462 | .eraseblocks = { {4 * 1024, 32} }, |
| 10463 | .block_erase = spi_block_erase_20, |
| 10464 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 10465 | .eraseblocks = { {64 * 1024, 2} }, |
| 10466 | .block_erase = spi_block_erase_d8, |
| 10467 | }, { |
| 10468 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 10469 | .block_erase = spi_block_erase_c7, |
| 10470 | } |
| 10471 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10472 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10473 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10474 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10475 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10476 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10477 | }, |
| 10478 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10479 | { |
| 10480 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 10481 | .name = "W25X20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10482 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10483 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 10484 | .model_id = WINBOND_NEX_W25X20, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10485 | .total_size = 256, |
| 10486 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 10487 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10488 | .tested = TEST_UNTESTED, |
| 10489 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10490 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 10491 | .block_erasers = |
| 10492 | { |
| 10493 | { |
| 10494 | .eraseblocks = { {4 * 1024, 64} }, |
| 10495 | .block_erase = spi_block_erase_20, |
| 10496 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 10497 | .eraseblocks = { {64 * 1024, 4} }, |
| 10498 | .block_erase = spi_block_erase_d8, |
| 10499 | }, { |
| 10500 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 10501 | .block_erase = spi_block_erase_c7, |
| 10502 | } |
| 10503 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10504 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10505 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10506 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10507 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10508 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10509 | }, |
| 10510 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10511 | { |
| 10512 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 10513 | .name = "W25X40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10514 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10515 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 10516 | .model_id = WINBOND_NEX_W25X40, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10517 | .total_size = 512, |
| 10518 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 10519 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 10520 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10521 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10522 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 10523 | .block_erasers = |
| 10524 | { |
| 10525 | { |
| 10526 | .eraseblocks = { {4 * 1024, 128} }, |
| 10527 | .block_erase = spi_block_erase_20, |
| 10528 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 10529 | .eraseblocks = { {64 * 1024, 8} }, |
| 10530 | .block_erase = spi_block_erase_d8, |
| 10531 | }, { |
| 10532 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 10533 | .block_erase = spi_block_erase_c7, |
| 10534 | } |
| 10535 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10536 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10537 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10538 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10539 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10540 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10541 | }, |
| 10542 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10543 | { |
| 10544 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 10545 | .name = "W25X80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10546 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10547 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 10548 | .model_id = WINBOND_NEX_W25X80, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10549 | .total_size = 1024, |
| 10550 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 10551 | .feature_bits = FEATURE_WRSR_WREN, |
Yul Rottmann | 6d6ab74 | 2011-03-05 16:31:57 +0000 | [diff] [blame] | 10552 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10553 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10554 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 10555 | .block_erasers = |
| 10556 | { |
| 10557 | { |
| 10558 | .eraseblocks = { {4 * 1024, 256} }, |
| 10559 | .block_erase = spi_block_erase_20, |
| 10560 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 10561 | .eraseblocks = { {64 * 1024, 16} }, |
| 10562 | .block_erase = spi_block_erase_d8, |
| 10563 | }, { |
| 10564 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 10565 | .block_erase = spi_block_erase_c7, |
| 10566 | } |
| 10567 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10568 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10569 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10570 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10571 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10572 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10573 | }, |
| 10574 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10575 | { |
| 10576 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 10577 | .name = "W25X16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10578 | .bustype = BUS_SPI, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 10579 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 10580 | .model_id = WINBOND_NEX_W25X16, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 10581 | .total_size = 2048, |
| 10582 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 10583 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 10584 | .tested = TEST_OK_PREW, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 10585 | .probe = probe_spi_rdid, |
| 10586 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 10587 | .block_erasers = |
| 10588 | { |
| 10589 | { |
| 10590 | .eraseblocks = { {4 * 1024, 512} }, |
| 10591 | .block_erase = spi_block_erase_20, |
| 10592 | }, { |
| 10593 | .eraseblocks = { {32 * 1024, 64} }, |
| 10594 | .block_erase = spi_block_erase_52, |
| 10595 | }, { |
| 10596 | .eraseblocks = { {64 * 1024, 32} }, |
| 10597 | .block_erase = spi_block_erase_d8, |
| 10598 | }, { |
| 10599 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10600 | .block_erase = spi_block_erase_60, |
| 10601 | }, { |
| 10602 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10603 | .block_erase = spi_block_erase_c7, |
| 10604 | } |
| 10605 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10606 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10607 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 10608 | .write = spi_chip_write_256, |
| 10609 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10610 | .voltage = {2700, 3600}, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 10611 | }, |
| 10612 | |
| 10613 | { |
| 10614 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 10615 | .name = "W25X32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10616 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 10617 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 10618 | .model_id = WINBOND_NEX_W25X32, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 10619 | .total_size = 4096, |
| 10620 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 10621 | .feature_bits = FEATURE_WRSR_WREN, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 10622 | .tested = TEST_OK_PROBE, |
| 10623 | .probe = probe_spi_rdid, |
| 10624 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 10625 | .block_erasers = |
| 10626 | { |
| 10627 | { |
| 10628 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10629 | .block_erase = spi_block_erase_20, |
| 10630 | }, { |
| 10631 | .eraseblocks = { {32 * 1024, 128} }, |
| 10632 | .block_erase = spi_block_erase_52, |
| 10633 | }, { |
| 10634 | .eraseblocks = { {64 * 1024, 64} }, |
| 10635 | .block_erase = spi_block_erase_d8, |
| 10636 | }, { |
| 10637 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10638 | .block_erase = spi_block_erase_60, |
| 10639 | }, { |
| 10640 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10641 | .block_erase = spi_block_erase_c7, |
| 10642 | } |
| 10643 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10644 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10645 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 10646 | .write = spi_chip_write_256, |
| 10647 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10648 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 10649 | }, |
| 10650 | |
| 10651 | { |
| 10652 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 10653 | .name = "W25X64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10654 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 10655 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 10656 | .model_id = WINBOND_NEX_W25X64, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 10657 | .total_size = 8192, |
| 10658 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 10659 | .feature_bits = FEATURE_WRSR_WREN, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 10660 | .tested = TEST_OK_PROBE, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 10661 | .probe = probe_spi_rdid, |
| 10662 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 10663 | .block_erasers = |
| 10664 | { |
| 10665 | { |
| 10666 | .eraseblocks = { {4 * 1024, 2048} }, |
| 10667 | .block_erase = spi_block_erase_20, |
| 10668 | }, { |
| 10669 | .eraseblocks = { {32 * 1024, 256} }, |
| 10670 | .block_erase = spi_block_erase_52, |
| 10671 | }, { |
| 10672 | .eraseblocks = { {64 * 1024, 128} }, |
| 10673 | .block_erase = spi_block_erase_d8, |
| 10674 | }, { |
| 10675 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10676 | .block_erase = spi_block_erase_60, |
| 10677 | }, { |
| 10678 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10679 | .block_erase = spi_block_erase_c7, |
| 10680 | } |
| 10681 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10682 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10683 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 10684 | .write = spi_chip_write_256, |
| 10685 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10686 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 10687 | }, |
| 10688 | |
| 10689 | { |
| 10690 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 10691 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10692 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 10693 | .manufacture_id = WINBOND_ID, |
| 10694 | .model_id = WINBOND_W29C010, |
| 10695 | .total_size = 128, |
| 10696 | .page_size = 128, |
| 10697 | .feature_bits = FEATURE_LONG_RESET, |
| 10698 | .tested = TEST_OK_PRE, |
| 10699 | .probe = probe_w29ee011, |
| 10700 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */ |
| 10701 | .block_erasers = |
| 10702 | { |
| 10703 | { |
| 10704 | .eraseblocks = { {128 * 1024, 1} }, |
| 10705 | .block_erase = erase_chip_block_jedec, |
| 10706 | } |
| 10707 | }, |
| 10708 | .write = write_jedec, |
| 10709 | .read = read_memmapped, |
| 10710 | }, |
| 10711 | |
| 10712 | {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */ |
| 10713 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 10714 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10715 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10716 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 10717 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10718 | .total_size = 128, |
| 10719 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10720 | .feature_bits = FEATURE_LONG_RESET, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 10721 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10722 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10723 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 10724 | .block_erasers = |
| 10725 | { |
| 10726 | { |
| 10727 | .eraseblocks = { {128 * 1024, 1} }, |
| 10728 | .block_erase = erase_chip_block_jedec, |
| 10729 | } |
| 10730 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10731 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10732 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10733 | }, |
| 10734 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10735 | { |
| 10736 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 10737 | .name = "W29C020(C)/W29C022", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10738 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10739 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 10740 | .model_id = WINBOND_W29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10741 | .total_size = 256, |
| 10742 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10743 | .feature_bits = FEATURE_LONG_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 10744 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10745 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 10746 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 10747 | .block_erasers = |
| 10748 | { |
| 10749 | { |
| 10750 | .eraseblocks = { {256 * 1024, 1} }, |
| 10751 | .block_erase = erase_chip_block_jedec, |
| 10752 | } |
| 10753 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10754 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10755 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10756 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10757 | }, |
| 10758 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10759 | { |
| 10760 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 10761 | .name = "W29C040/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10762 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10763 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 10764 | .model_id = WINBOND_W29C040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10765 | .total_size = 512, |
| 10766 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10767 | .feature_bits = FEATURE_LONG_RESET, |
| 10768 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10769 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 10770 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 10771 | .block_erasers = |
| 10772 | { |
| 10773 | { |
| 10774 | .eraseblocks = { {512 * 1024, 1} }, |
| 10775 | .block_erase = erase_chip_block_jedec, |
| 10776 | } |
| 10777 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10778 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10779 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10780 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10781 | }, |
| 10782 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10783 | { |
| 10784 | .vendor = "Winbond", |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 10785 | .name = "W39F010", |
| 10786 | .bustype = BUS_PARALLEL, |
| 10787 | .manufacture_id = WINBOND_ID, |
| 10788 | .model_id = WINBOND_W39F010, |
| 10789 | .total_size = 128, |
| 10790 | .page_size = 4 * 1024, |
| 10791 | .feature_bits = FEATURE_EITHER_RESET, |
| 10792 | .tested = TEST_OK_PREW, |
| 10793 | .probe = probe_jedec, |
| 10794 | .probe_timing = 10, |
| 10795 | .block_erasers = |
| 10796 | { |
| 10797 | { |
| 10798 | .eraseblocks = { {4 * 1024, 32} }, |
| 10799 | .block_erase = erase_block_jedec, |
| 10800 | }, { |
| 10801 | .eraseblocks = { {128 * 1024, 1} }, |
| 10802 | .block_erase = erase_chip_block_jedec, |
| 10803 | } |
| 10804 | }, |
| 10805 | .printlock = printlock_w39f010, |
| 10806 | .write = write_jedec_1, |
| 10807 | .read = read_memmapped, |
| 10808 | .voltage = {4500, 5500}, |
| 10809 | }, |
| 10810 | |
| 10811 | { |
| 10812 | .vendor = "Winbond", |
| 10813 | .name = "W39L010", |
| 10814 | .bustype = BUS_PARALLEL, |
| 10815 | .manufacture_id = WINBOND_ID, |
| 10816 | .model_id = WINBOND_W39L010, |
| 10817 | .total_size = 128, |
| 10818 | .page_size = 4 * 1024, |
| 10819 | .feature_bits = FEATURE_EITHER_RESET, |
| 10820 | .tested = TEST_UNTESTED, |
| 10821 | .probe = probe_jedec, |
| 10822 | .probe_timing = 10, |
| 10823 | .block_erasers = |
| 10824 | { |
| 10825 | { |
| 10826 | .eraseblocks = { {4 * 1024, 32} }, |
| 10827 | .block_erase = erase_block_jedec, |
| 10828 | }, { |
| 10829 | .eraseblocks = { {128 * 1024, 1} }, |
| 10830 | .block_erase = erase_chip_block_jedec, |
| 10831 | } |
| 10832 | }, |
| 10833 | .printlock = printlock_w39l010, |
| 10834 | .write = write_jedec_1, |
| 10835 | .read = read_memmapped, |
| 10836 | .voltage = {3000, 3600}, |
| 10837 | }, |
| 10838 | |
| 10839 | { |
| 10840 | .vendor = "Winbond", |
| 10841 | .name = "W39L020", |
| 10842 | .bustype = BUS_PARALLEL, |
| 10843 | .manufacture_id = WINBOND_ID, |
| 10844 | .model_id = WINBOND_W39L020, |
| 10845 | .total_size = 256, |
| 10846 | .page_size = 4 * 1024, |
| 10847 | .feature_bits = FEATURE_EITHER_RESET, |
| 10848 | .tested = TEST_UNTESTED, |
| 10849 | .probe = probe_jedec, |
| 10850 | .probe_timing = 10, |
| 10851 | .block_erasers = |
| 10852 | { |
| 10853 | { |
| 10854 | .eraseblocks = { {4 * 1024, 64} }, |
| 10855 | .block_erase = erase_block_jedec, |
| 10856 | }, { |
| 10857 | .eraseblocks = { {64 * 1024, 4} }, |
| 10858 | .block_erase = erase_sector_jedec, |
| 10859 | }, { |
| 10860 | .eraseblocks = { {256 * 1024, 1} }, |
| 10861 | .block_erase = erase_chip_block_jedec, |
| 10862 | } |
| 10863 | }, |
| 10864 | .printlock = printlock_w39l020, |
| 10865 | .write = write_jedec_1, |
| 10866 | .read = read_memmapped, |
| 10867 | .voltage = {3000, 3600}, |
| 10868 | }, |
| 10869 | |
| 10870 | { |
| 10871 | .vendor = "Winbond", |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 10872 | .name = "W39L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10873 | .bustype = BUS_PARALLEL, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 10874 | .manufacture_id = WINBOND_ID, |
| 10875 | .model_id = WINBOND_W39L040, |
| 10876 | .total_size = 512, |
| 10877 | .page_size = 64 * 1024, |
| 10878 | .feature_bits = FEATURE_EITHER_RESET, |
| 10879 | .tested = TEST_OK_PR, |
| 10880 | .probe = probe_jedec, |
| 10881 | .probe_timing = 10, |
| 10882 | .block_erasers = |
| 10883 | { |
| 10884 | { |
| 10885 | .eraseblocks = { {4 * 1024, 128} }, |
| 10886 | .block_erase = erase_block_jedec, |
| 10887 | }, { |
| 10888 | .eraseblocks = { {64 * 1024, 8} }, |
| 10889 | .block_erase = erase_sector_jedec, |
| 10890 | }, { |
| 10891 | .eraseblocks = { {512 * 1024, 1} }, |
| 10892 | .block_erase = erase_chip_block_jedec, |
| 10893 | } |
| 10894 | }, |
| 10895 | .printlock = printlock_w39l040, |
| 10896 | .write = write_jedec_1, |
| 10897 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10898 | .voltage = {3000, 3600}, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 10899 | }, |
| 10900 | |
| 10901 | { |
| 10902 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10903 | .name = "W39V040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10904 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10905 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 10906 | .model_id = WINBOND_W39V040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10907 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 10908 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10909 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 10910 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10911 | .probe = probe_jedec, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 10912 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 10913 | .block_erasers = |
| 10914 | { |
| 10915 | { |
| 10916 | .eraseblocks = { {64 * 1024, 8} }, |
| 10917 | .block_erase = erase_sector_jedec, |
| 10918 | }, { |
| 10919 | .eraseblocks = { {512 * 1024, 1} }, |
| 10920 | .block_erase = erase_chip_block_jedec, |
| 10921 | } |
| 10922 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 10923 | .printlock = printlock_w39v040a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10924 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10925 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10926 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10927 | }, |
| 10928 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10929 | { |
| 10930 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 10931 | .name = "W39V040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10932 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10933 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 10934 | .model_id = WINBOND_W39V040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10935 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 10936 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10937 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 10938 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10939 | .probe = probe_jedec, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 10940 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 10941 | .block_erasers = |
| 10942 | { |
| 10943 | { |
| 10944 | .eraseblocks = { {64 * 1024, 8} }, |
| 10945 | .block_erase = erase_sector_jedec, |
| 10946 | }, { |
| 10947 | .eraseblocks = { {512 * 1024, 1} }, |
| 10948 | .block_erase = erase_chip_block_jedec, |
| 10949 | } |
| 10950 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 10951 | .printlock = printlock_w39v040b, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10952 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10953 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10954 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10955 | }, |
| 10956 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10957 | { |
| 10958 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 10959 | .name = "W39V040C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10960 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10961 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 10962 | .model_id = WINBOND_W39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10963 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 10964 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10965 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 10966 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10967 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 10968 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 10969 | .block_erasers = |
| 10970 | { |
| 10971 | { |
| 10972 | .eraseblocks = { {64 * 1024, 8} }, |
| 10973 | .block_erase = erase_sector_jedec, |
| 10974 | }, { |
| 10975 | .eraseblocks = { {512 * 1024, 1} }, |
| 10976 | .block_erase = erase_chip_block_jedec, |
| 10977 | } |
| 10978 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 10979 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10980 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10981 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10982 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10983 | }, |
| 10984 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10985 | { |
| 10986 | .vendor = "Winbond", |
| 10987 | .name = "W39V040FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10988 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10989 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 10990 | .model_id = WINBOND_W39V040FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10991 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 10992 | .page_size = 64 * 1024, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 10993 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 10994 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10995 | .probe = probe_jedec, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 10996 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 10997 | .block_erasers = |
| 10998 | { |
| 10999 | { |
| 11000 | .eraseblocks = { {4 * 1024, 128} }, |
| 11001 | .block_erase = erase_block_jedec, |
| 11002 | }, { |
| 11003 | .eraseblocks = { {64 * 1024, 8} }, |
| 11004 | .block_erase = erase_sector_jedec, |
| 11005 | }, { |
| 11006 | .eraseblocks = { {512 * 1024, 1} }, |
| 11007 | .block_erase = erase_chip_block_jedec, |
| 11008 | } |
| 11009 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11010 | .printlock = printlock_w39v040fa, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 11011 | .unlock = unlock_sst_fwhub, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11012 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11013 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11014 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11015 | }, |
| 11016 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11017 | { |
| 11018 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11019 | .name = "W39V040FB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11020 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11021 | .manufacture_id = WINBOND_ID, |
| 11022 | .model_id = WINBOND_W39V040B, |
| 11023 | .total_size = 512, |
| 11024 | .page_size = 64 * 1024, |
| 11025 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 11026 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11027 | .probe = probe_jedec, |
| 11028 | .probe_timing = 10, |
| 11029 | .block_erasers = |
| 11030 | { |
| 11031 | { |
| 11032 | .eraseblocks = { {64 * 1024, 8} }, |
| 11033 | .block_erase = erase_sector_jedec, |
| 11034 | }, { |
| 11035 | .eraseblocks = { {512 * 1024, 1} }, |
| 11036 | .block_erase = erase_chip_block_jedec, |
| 11037 | } |
| 11038 | }, |
| 11039 | .printlock = printlock_w39v040fb, |
Idwer Vollering | ecc6707 | 2010-12-26 23:55:12 +0000 | [diff] [blame] | 11040 | .unlock = unlock_w39v040fb, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11041 | .write = write_jedec_1, |
| 11042 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11043 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11044 | }, |
| 11045 | |
| 11046 | { |
| 11047 | .vendor = "Winbond", |
| 11048 | .name = "W39V040FC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11049 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11050 | .manufacture_id = WINBOND_ID, |
| 11051 | .model_id = WINBOND_W39V040C, |
| 11052 | .total_size = 512, |
| 11053 | .page_size = 64 * 1024, |
| 11054 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 11055 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11056 | .probe = probe_jedec, |
| 11057 | .probe_timing = 10, |
| 11058 | .block_erasers = |
| 11059 | { |
| 11060 | { |
| 11061 | .eraseblocks = { {64 * 1024, 8} }, |
| 11062 | .block_erase = erase_sector_jedec, |
| 11063 | }, { |
| 11064 | .eraseblocks = { {512 * 1024, 1} }, |
| 11065 | .block_erase = erase_chip_block_jedec, |
| 11066 | } |
| 11067 | }, |
| 11068 | .printlock = printlock_w39v040fc, |
| 11069 | .write = write_jedec_1, |
| 11070 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11071 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11072 | }, |
| 11073 | |
| 11074 | { |
| 11075 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11076 | .name = "W39V080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11077 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11078 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11079 | .model_id = WINBOND_W39V080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11080 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11081 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11082 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 11083 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11084 | .probe = probe_jedec, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 11085 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11086 | .block_erasers = |
| 11087 | { |
| 11088 | { |
| 11089 | .eraseblocks = { {64 * 1024, 16} }, |
| 11090 | .block_erase = erase_sector_jedec, |
| 11091 | }, { |
| 11092 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11093 | .block_erase = erase_chip_block_jedec, |
| 11094 | } |
| 11095 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11096 | .printlock = printlock_w39v080a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11097 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11098 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11099 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11100 | }, |
| 11101 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11102 | { |
| 11103 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11104 | .name = "W49F002U/N", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11105 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11106 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11107 | .model_id = WINBOND_W49F002U, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11108 | .total_size = 256, |
| 11109 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11110 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 11111 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11112 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11113 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11114 | .block_erasers = |
| 11115 | { |
| 11116 | { |
| 11117 | .eraseblocks = { |
| 11118 | {128 * 1024, 1}, |
| 11119 | {96 * 1024, 1}, |
| 11120 | {8 * 1024, 2}, |
| 11121 | {16 * 1024, 1}, |
| 11122 | }, |
| 11123 | .block_erase = erase_sector_jedec, |
| 11124 | }, { |
| 11125 | .eraseblocks = { {256 * 1024, 1} }, |
| 11126 | .block_erase = erase_chip_block_jedec, |
| 11127 | } |
| 11128 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11129 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11130 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11131 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11132 | }, |
| 11133 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11134 | { |
| 11135 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 11136 | .name = "W49F020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11137 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 11138 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11139 | .model_id = WINBOND_W49F020, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 11140 | .total_size = 256, |
| 11141 | .page_size = 128, |
| 11142 | .feature_bits = FEATURE_EITHER_RESET, |
| 11143 | .tested = TEST_OK_PROBE, |
| 11144 | .probe = probe_jedec, |
| 11145 | .probe_timing = 10, |
| 11146 | .block_erasers = |
| 11147 | { |
| 11148 | { |
| 11149 | .eraseblocks = { {256 * 1024, 1} }, |
| 11150 | .block_erase = erase_chip_block_jedec, |
| 11151 | } |
| 11152 | }, |
| 11153 | .write = write_jedec_1, |
| 11154 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11155 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 11156 | }, |
| 11157 | |
| 11158 | { |
| 11159 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11160 | .name = "W49V002A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11161 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11162 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11163 | .model_id = WINBOND_W49V002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11164 | .total_size = 256, |
| 11165 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11166 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 11167 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11168 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 11169 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11170 | .block_erasers = |
| 11171 | { |
| 11172 | { |
| 11173 | .eraseblocks = { |
| 11174 | {64 * 1024, 3}, |
| 11175 | {32 * 1024, 1}, |
| 11176 | {8 * 1024, 2}, |
| 11177 | {16 * 1024, 1}, |
| 11178 | }, |
| 11179 | .block_erase = erase_sector_jedec, |
| 11180 | }, { |
| 11181 | .eraseblocks = { {256 * 1024, 1} }, |
| 11182 | .block_erase = erase_chip_block_jedec, |
| 11183 | } |
| 11184 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11185 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11186 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11187 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11188 | }, |
| 11189 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11190 | { |
| 11191 | .vendor = "Winbond", |
| 11192 | .name = "W49V002FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11193 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11194 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11195 | .model_id = WINBOND_W49V002FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11196 | .total_size = 256, |
| 11197 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11198 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 11199 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11200 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11201 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11202 | .block_erasers = |
| 11203 | { |
| 11204 | { |
| 11205 | .eraseblocks = { |
| 11206 | {64 * 1024, 3}, |
| 11207 | {32 * 1024, 1}, |
| 11208 | {8 * 1024, 2}, |
| 11209 | {16 * 1024, 1}, |
| 11210 | }, |
| 11211 | .block_erase = erase_sector_jedec, |
| 11212 | }, { |
| 11213 | .eraseblocks = { {256 * 1024, 1} }, |
| 11214 | .block_erase = erase_chip_block_jedec, |
| 11215 | } |
| 11216 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11217 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11218 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11219 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11220 | }, |
| 11221 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11222 | { |
| 11223 | .vendor = "Winbond", |
| 11224 | .name = "W39V080FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11225 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11226 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11227 | .model_id = WINBOND_W39V080FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11228 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11229 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11230 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 11231 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 11232 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11233 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11234 | .block_erasers = |
| 11235 | { |
| 11236 | { |
| 11237 | .eraseblocks = { {64 * 1024, 16}, }, |
| 11238 | .block_erase = erase_sector_jedec, |
| 11239 | }, { |
| 11240 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11241 | .block_erase = erase_chip_block_jedec, |
| 11242 | } |
| 11243 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11244 | .printlock = printlock_w39v080fa, |
| 11245 | .unlock = unlock_w39v080fa, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11246 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11247 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11248 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11249 | }, |
| 11250 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11251 | { |
| 11252 | .vendor = "Winbond", |
| 11253 | .name = "W39V080FA (dual mode)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11254 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11255 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 11256 | .model_id = WINBOND_W39V080FA_DM, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11257 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 11258 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11259 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11260 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 11261 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11262 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 11263 | .block_erasers = |
| 11264 | { |
| 11265 | { |
| 11266 | .eraseblocks = { {64 * 1024, 8}, }, |
| 11267 | .block_erase = erase_sector_jedec, |
| 11268 | }, { |
| 11269 | .eraseblocks = { {512 * 1024, 1} }, |
| 11270 | .block_erase = erase_chip_block_jedec, |
| 11271 | } |
| 11272 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 11273 | .printlock = printlock_w39v080fa_dual, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11274 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11275 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11276 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11277 | }, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 11278 | |
| 11279 | { |
| 11280 | .vendor = "Unknown", |
| 11281 | .name = "SFDP-capable chip", |
| 11282 | .bustype = BUS_SPI, |
| 11283 | .manufacture_id = GENERIC_MANUF_ID, |
| 11284 | .model_id = SFDP_DEVICE_ID, |
| 11285 | /* We present our own "report this" text hence we do not |
| 11286 | * want the default "This flash part has status UNTESTED..." |
| 11287 | * text to be printed. */ |
| 11288 | .tested = TEST_OK_PREW, |
| 11289 | .probe = probe_spi_sfdp, |
| 11290 | .unlock = spi_disable_blockprotect, /* is this safe? */ |
| 11291 | .read = spi_chip_read, |
| 11292 | /* FIXME: some vendor extensions define this */ |
Carl-Daniel Hailfinger | 1c6d2ff | 2012-08-27 00:44:42 +0000 | [diff] [blame] | 11293 | .voltage = {0}, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 11294 | /* Everything below will be set by the probing function. */ |
| 11295 | .write = NULL, |
| 11296 | .total_size = 0, |
| 11297 | .page_size = 0, |
| 11298 | .feature_bits = 0, |
| 11299 | .block_erasers = {}, |
| 11300 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11301 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11302 | { |
Carl-Daniel Hailfinger | 532c717 | 2011-11-04 21:35:26 +0000 | [diff] [blame] | 11303 | .vendor = "Programmer", |
| 11304 | .name = "Opaque flash chip", |
| 11305 | .bustype = BUS_PROG, |
| 11306 | .manufacture_id = PROGMANUF_ID, |
| 11307 | .model_id = PROGDEV_ID, |
| 11308 | .total_size = 0, |
| 11309 | .page_size = 256, |
| 11310 | /* probe is assumed to work, rest will be filled in by probe */ |
| 11311 | .tested = TEST_OK_PROBE, |
| 11312 | .probe = probe_opaque, |
| 11313 | /* eraseblock sizes will be set by the probing function */ |
| 11314 | .block_erasers = |
| 11315 | { |
| 11316 | { |
| 11317 | .block_erase = erase_opaque, |
| 11318 | } |
| 11319 | }, |
| 11320 | .write = write_opaque, |
| 11321 | .read = read_opaque, |
| 11322 | }, |
| 11323 | |
| 11324 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 11325 | .vendor = "AMIC", |
| 11326 | .name = "unknown AMIC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11327 | .bustype = BUS_SPI, |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 11328 | .manufacture_id = AMIC_ID, |
| 11329 | .model_id = GENERIC_DEVICE_ID, |
| 11330 | .total_size = 0, |
| 11331 | .page_size = 256, |
| 11332 | .tested = TEST_BAD_PREW, |
| 11333 | .probe = probe_spi_rdid4, |
| 11334 | .probe_timing = TIMING_ZERO, |
| 11335 | .write = NULL, |
| 11336 | .read = NULL, |
| 11337 | }, |
| 11338 | |
| 11339 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11340 | .vendor = "Atmel", |
| 11341 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11342 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11343 | .manufacture_id = ATMEL_ID, |
| 11344 | .model_id = GENERIC_DEVICE_ID, |
| 11345 | .total_size = 0, |
| 11346 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 11347 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11348 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11349 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11350 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11351 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11352 | }, |
| 11353 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11354 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 11355 | .vendor = "Eon", |
| 11356 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11357 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11358 | .manufacture_id = EON_ID_NOPREFIX, |
| 11359 | .model_id = GENERIC_DEVICE_ID, |
| 11360 | .total_size = 0, |
| 11361 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 11362 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11363 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11364 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11365 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11366 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11367 | }, |
| 11368 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11369 | { |
| 11370 | .vendor = "Macronix", |
| 11371 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11372 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11373 | .manufacture_id = MACRONIX_ID, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11374 | .model_id = GENERIC_DEVICE_ID, |
| 11375 | .total_size = 0, |
| 11376 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 11377 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11378 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11379 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11380 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11381 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11382 | }, |
| 11383 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11384 | { |
| 11385 | .vendor = "PMC", |
| 11386 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11387 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11388 | .manufacture_id = PMC_ID, |
| 11389 | .model_id = GENERIC_DEVICE_ID, |
| 11390 | .total_size = 0, |
| 11391 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 11392 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11393 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11394 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11395 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11396 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11397 | }, |
| 11398 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11399 | { |
| 11400 | .vendor = "SST", |
| 11401 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11402 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11403 | .manufacture_id = SST_ID, |
| 11404 | .model_id = GENERIC_DEVICE_ID, |
| 11405 | .total_size = 0, |
| 11406 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 11407 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11408 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11409 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11410 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11411 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11412 | }, |
| 11413 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11414 | { |
| 11415 | .vendor = "ST", |
| 11416 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11417 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11418 | .manufacture_id = ST_ID, |
| 11419 | .model_id = GENERIC_DEVICE_ID, |
| 11420 | .total_size = 0, |
| 11421 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 11422 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11423 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11424 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11425 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11426 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11427 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 11428 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 11429 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 11430 | .vendor = "Sanyo", |
| 11431 | .name = "unknown Sanyo SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11432 | .bustype = BUS_SPI, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 11433 | .manufacture_id = SANYO_ID, |
| 11434 | .model_id = GENERIC_DEVICE_ID, |
| 11435 | .total_size = 0, |
| 11436 | .page_size = 256, |
| 11437 | .tested = TEST_BAD_PREW, |
| 11438 | .probe = probe_spi_rdid, |
| 11439 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 11440 | .write = NULL, |
| 11441 | .read = NULL, |
| 11442 | }, |
| 11443 | |
| 11444 | { |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 11445 | .vendor = "Winbond", |
| 11446 | .name = "unknown Winbond (ex Nexcom) SPI chip", |
| 11447 | .bustype = BUS_SPI, |
| 11448 | .manufacture_id = WINBOND_NEX_ID, |
| 11449 | .model_id = GENERIC_DEVICE_ID, |
| 11450 | .total_size = 0, |
| 11451 | .page_size = 256, |
| 11452 | .tested = TEST_BAD_PREW, |
| 11453 | .probe = probe_spi_rdid, |
| 11454 | .probe_timing = TIMING_ZERO, |
| 11455 | .write = NULL, |
| 11456 | .read = NULL, |
| 11457 | }, |
| 11458 | |
| 11459 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 11460 | .vendor = "Generic", |
| 11461 | .name = "unknown SPI chip (RDID)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11462 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 11463 | .manufacture_id = GENERIC_MANUF_ID, |
| 11464 | .model_id = GENERIC_DEVICE_ID, |
| 11465 | .total_size = 0, |
| 11466 | .page_size = 256, |
| 11467 | .tested = TEST_BAD_PREW, |
| 11468 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 11469 | .write = NULL, |
| 11470 | }, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 11471 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 11472 | { |
| 11473 | .vendor = "Generic", |
| 11474 | .name = "unknown SPI chip (REMS)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11475 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 11476 | .manufacture_id = GENERIC_MANUF_ID, |
| 11477 | .model_id = GENERIC_DEVICE_ID, |
| 11478 | .total_size = 0, |
| 11479 | .page_size = 256, |
| 11480 | .tested = TEST_BAD_PREW, |
| 11481 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 11482 | .write = NULL, |
| 11483 | }, |
| 11484 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11485 | { NULL } |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 11486 | }; |