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 | */ |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 35 | 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 |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 57 | */ |
| 58 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 59 | { |
| 60 | .vendor = "AMD", |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 61 | .name = "Am29F010A/B", |
| 62 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 63 | .manufacture_id = AMD_ID, |
| 64 | .model_id = AM_29F010B, /* Same as Am29F010A */ |
| 65 | .total_size = 128, |
| 66 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 67 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 68 | .tested = TEST_UNTESTED, |
| 69 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 70 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 71 | .block_erasers = |
| 72 | { |
| 73 | { |
| 74 | .eraseblocks = { {16 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 75 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 76 | }, { |
| 77 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 78 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 79 | }, |
| 80 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 81 | .write = write_jedec_1, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 82 | .read = read_memmapped, |
| 83 | }, |
| 84 | |
| 85 | { |
| 86 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 87 | .name = "Am29F002(N)BB", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 88 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 89 | .manufacture_id = AMD_ID, |
| 90 | .model_id = AM_29F002BB, |
| 91 | .total_size = 256, |
| 92 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 93 | .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 94 | .tested = TEST_UNTESTED, |
| 95 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 96 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 97 | .block_erasers = |
| 98 | { |
| 99 | { |
| 100 | .eraseblocks = { |
| 101 | {16 * 1024, 1}, |
| 102 | {8 * 1024, 2}, |
| 103 | {32 * 1024, 1}, |
| 104 | {64 * 1024, 3}, |
| 105 | }, |
| 106 | .block_erase = erase_sector_jedec, |
| 107 | }, { |
| 108 | .eraseblocks = { {256 * 1024, 1} }, |
| 109 | .block_erase = erase_chip_block_jedec, |
| 110 | }, |
| 111 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 112 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 113 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 114 | }, |
| 115 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 116 | { |
| 117 | .vendor = "AMD", |
| 118 | .name = "Am29F002(N)BT", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 119 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 120 | .manufacture_id = AMD_ID, |
| 121 | .model_id = AM_29F002BT, |
| 122 | .total_size = 256, |
| 123 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 124 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA, |
| 125 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 126 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 127 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 128 | .block_erasers = |
| 129 | { |
| 130 | { |
| 131 | .eraseblocks = { |
| 132 | {64 * 1024, 3}, |
| 133 | {32 * 1024, 1}, |
| 134 | {8 * 1024, 2}, |
| 135 | {16 * 1024, 1}, |
| 136 | }, |
| 137 | .block_erase = erase_sector_jedec, |
| 138 | }, { |
| 139 | .eraseblocks = { {256 * 1024, 1} }, |
| 140 | .block_erase = erase_chip_block_jedec, |
| 141 | }, |
| 142 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 143 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 144 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 145 | }, |
| 146 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 147 | { |
| 148 | .vendor = "AMD", |
| 149 | .name = "Am29F016D", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 150 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 151 | .manufacture_id = AMD_ID, |
| 152 | .model_id = AM_29F016D, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 153 | .total_size = 2 * 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 154 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 155 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 156 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 157 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 158 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (am29f040b.c) */ |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 159 | .block_erasers = |
| 160 | { |
| 161 | { |
| 162 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 163 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 164 | }, { |
| 165 | .eraseblocks = { {2048 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 166 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 167 | }, |
| 168 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 169 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 170 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 171 | }, |
| 172 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 173 | { |
| 174 | .vendor = "AMD", |
| 175 | .name = "Am29F040B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 176 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 177 | .manufacture_id = AMD_ID, |
| 178 | .model_id = AM_29F040B, |
| 179 | .total_size = 512, |
| 180 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 181 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 182 | .tested = TEST_UNTESTED, |
| 183 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 184 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (am29f040b.c) */ |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 185 | .block_erasers = |
| 186 | { |
| 187 | { |
| 188 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 189 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 190 | }, { |
| 191 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 192 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 193 | }, |
| 194 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 195 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 196 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 197 | }, |
| 198 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 199 | { |
| 200 | .vendor = "AMD", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 201 | .name = "Am29F080B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 202 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 203 | .manufacture_id = AMD_ID, |
| 204 | .model_id = AM_29F080B, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 205 | .total_size = 1024, |
| 206 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 207 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 208 | .tested = TEST_UNTESTED, |
| 209 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 210 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 211 | .block_erasers = |
| 212 | { |
| 213 | { |
| 214 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 215 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 216 | }, { |
| 217 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 218 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 219 | }, |
| 220 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 221 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 222 | .read = read_memmapped, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 223 | }, |
| 224 | |
| 225 | { |
| 226 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 227 | .name = "Am29LV040B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 228 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 229 | .manufacture_id = AMD_ID, |
| 230 | .model_id = AM_29LV040B, |
| 231 | .total_size = 512, |
| 232 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 233 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 234 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 235 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 236 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (am29f040b.c) */ |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 237 | .block_erasers = |
| 238 | { |
| 239 | { |
| 240 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 241 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 242 | }, { |
| 243 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 244 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 245 | }, |
| 246 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 247 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 248 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 249 | }, |
| 250 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 251 | { |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 252 | .vendor = "AMD", |
| 253 | .name = "Am29LV081B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 254 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 255 | .manufacture_id = AMD_ID, |
Carl-Daniel Hailfinger | 6d5d253 | 2009-08-10 10:14:23 +0000 | [diff] [blame] | 256 | .model_id = AM_29LV080B, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 257 | .total_size = 1024, |
| 258 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 259 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 260 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 261 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 262 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (am29f040b.c) */ |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 263 | .block_erasers = |
| 264 | { |
| 265 | { |
| 266 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 267 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 268 | }, { |
| 269 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 270 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 271 | }, |
| 272 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 273 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 274 | .read = read_memmapped, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 275 | }, |
| 276 | |
| 277 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 278 | .vendor = "AMIC", |
| 279 | .name = "A25L05PT", |
| 280 | .bustype = CHIP_BUSTYPE_SPI, |
| 281 | .manufacture_id = AMIC_ID, |
| 282 | .model_id = AMIC_A25L05PT, |
| 283 | .total_size = 64, |
| 284 | .page_size = 256, |
| 285 | .tested = TEST_UNTESTED, |
| 286 | .probe = probe_spi_rdid4, |
| 287 | .probe_timing = TIMING_ZERO, |
| 288 | .block_erasers = |
| 289 | { |
| 290 | { |
| 291 | .eraseblocks = { |
| 292 | {32 * 1024, 1}, |
| 293 | {16 * 1024, 1}, |
| 294 | {8 * 1024, 1}, |
| 295 | {4 * 1024, 2}, |
| 296 | }, |
| 297 | .block_erase = spi_block_erase_d8, |
| 298 | }, { |
| 299 | .eraseblocks = { {64 * 1024, 1} }, |
| 300 | .block_erase = spi_block_erase_c7, |
| 301 | } |
| 302 | }, |
| 303 | .unlock = spi_disable_blockprotect, |
| 304 | .write = spi_chip_write_256, |
| 305 | .read = spi_chip_read, |
| 306 | }, |
| 307 | |
| 308 | { |
| 309 | .vendor = "AMIC", |
| 310 | .name = "A25L05PU", |
| 311 | .bustype = CHIP_BUSTYPE_SPI, |
| 312 | .manufacture_id = AMIC_ID, |
| 313 | .model_id = AMIC_A25L05PU, |
| 314 | .total_size = 64, |
| 315 | .page_size = 256, |
| 316 | .tested = TEST_UNTESTED, |
| 317 | .probe = probe_spi_rdid4, |
| 318 | .probe_timing = TIMING_ZERO, |
| 319 | .block_erasers = |
| 320 | { |
| 321 | { |
| 322 | .eraseblocks = { |
| 323 | {4 * 1024, 2}, |
| 324 | {8 * 1024, 1}, |
| 325 | {16 * 1024, 1}, |
| 326 | {32 * 1024, 1}, |
| 327 | }, |
| 328 | .block_erase = spi_block_erase_d8, |
| 329 | }, { |
| 330 | .eraseblocks = { {64 * 1024, 1} }, |
| 331 | .block_erase = spi_block_erase_c7, |
| 332 | } |
| 333 | }, |
| 334 | .unlock = spi_disable_blockprotect, |
| 335 | .write = spi_chip_write_256, |
| 336 | .read = spi_chip_read, |
| 337 | }, |
| 338 | |
| 339 | { |
| 340 | .vendor = "AMIC", |
| 341 | .name = "A25L10PT", |
| 342 | .bustype = CHIP_BUSTYPE_SPI, |
| 343 | .manufacture_id = AMIC_ID, |
| 344 | .model_id = AMIC_A25L10PT, |
| 345 | .total_size = 128, |
| 346 | .page_size = 256, |
| 347 | .tested = TEST_UNTESTED, |
| 348 | .probe = probe_spi_rdid4, |
| 349 | .probe_timing = TIMING_ZERO, |
| 350 | .block_erasers = |
| 351 | { |
| 352 | { |
| 353 | .eraseblocks = { |
| 354 | {64 * 1024, 1}, |
| 355 | {32 * 1024, 1}, |
| 356 | {16 * 1024, 1}, |
| 357 | {8 * 1024, 1}, |
| 358 | {4 * 1024, 2}, |
| 359 | }, |
| 360 | .block_erase = spi_block_erase_d8, |
| 361 | }, { |
| 362 | .eraseblocks = { {128 * 1024, 1} }, |
| 363 | .block_erase = spi_block_erase_c7, |
| 364 | } |
| 365 | }, |
| 366 | .unlock = spi_disable_blockprotect, |
| 367 | .write = spi_chip_write_256, |
| 368 | .read = spi_chip_read, |
| 369 | }, |
| 370 | |
| 371 | { |
| 372 | .vendor = "AMIC", |
| 373 | .name = "A25L10PU", |
| 374 | .bustype = CHIP_BUSTYPE_SPI, |
| 375 | .manufacture_id = AMIC_ID, |
| 376 | .model_id = AMIC_A25L10PU, |
| 377 | .total_size = 128, |
| 378 | .page_size = 256, |
| 379 | .tested = TEST_UNTESTED, |
| 380 | .probe = probe_spi_rdid4, |
| 381 | .probe_timing = TIMING_ZERO, |
| 382 | .block_erasers = |
| 383 | { |
| 384 | { |
| 385 | .eraseblocks = { |
| 386 | {4 * 1024, 2}, |
| 387 | {8 * 1024, 1}, |
| 388 | {16 * 1024, 1}, |
| 389 | {32 * 1024, 1}, |
| 390 | {64 * 1024, 1}, |
| 391 | }, |
| 392 | .block_erase = spi_block_erase_d8, |
| 393 | }, { |
| 394 | .eraseblocks = { {128 * 1024, 1} }, |
| 395 | .block_erase = spi_block_erase_c7, |
| 396 | } |
| 397 | }, |
| 398 | .unlock = spi_disable_blockprotect, |
| 399 | .write = spi_chip_write_256, |
| 400 | .read = spi_chip_read, |
| 401 | }, |
| 402 | |
| 403 | { |
| 404 | .vendor = "AMIC", |
| 405 | .name = "A25L20PT", |
| 406 | .bustype = CHIP_BUSTYPE_SPI, |
| 407 | .manufacture_id = AMIC_ID, |
| 408 | .model_id = AMIC_A25L20PT, |
| 409 | .total_size = 256, |
| 410 | .page_size = 256, |
| 411 | .tested = TEST_UNTESTED, |
| 412 | .probe = probe_spi_rdid4, |
| 413 | .probe_timing = TIMING_ZERO, |
| 414 | .block_erasers = |
| 415 | { |
| 416 | { |
| 417 | .eraseblocks = { |
| 418 | {64 * 1024, 3}, |
| 419 | {32 * 1024, 1}, |
| 420 | {16 * 1024, 1}, |
| 421 | {8 * 1024, 1}, |
| 422 | {4 * 1024, 2}, |
| 423 | }, |
| 424 | .block_erase = spi_block_erase_d8, |
| 425 | }, { |
| 426 | .eraseblocks = { {256 * 1024, 1} }, |
| 427 | .block_erase = spi_block_erase_c7, |
| 428 | } |
| 429 | }, |
| 430 | .unlock = spi_disable_blockprotect, |
| 431 | .write = spi_chip_write_256, |
| 432 | .read = spi_chip_read, |
| 433 | }, |
| 434 | |
| 435 | { |
| 436 | .vendor = "AMIC", |
| 437 | .name = "A25L20PU", |
| 438 | .bustype = CHIP_BUSTYPE_SPI, |
| 439 | .manufacture_id = AMIC_ID, |
| 440 | .model_id = AMIC_A25L20PU, |
| 441 | .total_size = 256, |
| 442 | .page_size = 256, |
| 443 | .tested = TEST_UNTESTED, |
| 444 | .probe = probe_spi_rdid4, |
| 445 | .probe_timing = TIMING_ZERO, |
| 446 | .block_erasers = |
| 447 | { |
| 448 | { |
| 449 | .eraseblocks = { |
| 450 | {4 * 1024, 2}, |
| 451 | {8 * 1024, 1}, |
| 452 | {16 * 1024, 1}, |
| 453 | {32 * 1024, 1}, |
| 454 | {64 * 1024, 3}, |
| 455 | }, |
| 456 | .block_erase = spi_block_erase_d8, |
| 457 | }, { |
| 458 | .eraseblocks = { {256 * 1024, 1} }, |
| 459 | .block_erase = spi_block_erase_c7, |
| 460 | } |
| 461 | }, |
| 462 | .unlock = spi_disable_blockprotect, |
| 463 | .write = spi_chip_write_256, |
| 464 | .read = spi_chip_read, |
| 465 | }, |
| 466 | |
| 467 | /* The A25L40P{T,U} chips are distinguished by their |
| 468 | * erase block layouts, but without any distinction in RDID. |
| 469 | * This inexplicable quirk was verified by Rudolf Marek |
| 470 | * and discussed on the flashrom mailing list on 2010-07-12. |
| 471 | */ |
| 472 | { |
| 473 | .vendor = "AMIC", |
| 474 | .name = "A25L40PT", |
| 475 | .bustype = CHIP_BUSTYPE_SPI, |
| 476 | .manufacture_id = AMIC_ID, |
| 477 | .model_id = AMIC_A25L40PT, |
| 478 | .total_size = 512, |
| 479 | .page_size = 256, |
| 480 | .tested = TEST_OK_PRW, |
| 481 | .probe = probe_spi_rdid4, |
| 482 | .probe_timing = TIMING_ZERO, |
| 483 | .block_erasers = |
| 484 | { |
| 485 | { |
| 486 | .eraseblocks = { |
| 487 | {64 * 1024, 7}, |
| 488 | {32 * 1024, 1}, |
| 489 | {16 * 1024, 1}, |
| 490 | {8 * 1024, 1}, |
| 491 | {4 * 1024, 2}, |
| 492 | }, |
| 493 | .block_erase = spi_block_erase_d8, |
| 494 | }, { |
| 495 | .eraseblocks = { {512 * 1024, 1} }, |
| 496 | .block_erase = spi_block_erase_c7, |
| 497 | } |
| 498 | }, |
| 499 | .unlock = spi_disable_blockprotect, |
| 500 | .write = spi_chip_write_256, |
| 501 | .read = spi_chip_read, |
| 502 | }, |
| 503 | |
| 504 | { |
| 505 | .vendor = "AMIC", |
| 506 | .name = "A25L40PU", |
| 507 | .bustype = CHIP_BUSTYPE_SPI, |
| 508 | .manufacture_id = AMIC_ID, |
| 509 | .model_id = AMIC_A25L40PU, |
| 510 | .total_size = 512, |
| 511 | .page_size = 256, |
| 512 | .tested = TEST_OK_PRW, |
| 513 | .probe = probe_spi_rdid4, |
| 514 | .probe_timing = TIMING_ZERO, |
| 515 | .block_erasers = |
| 516 | { |
| 517 | { |
| 518 | .eraseblocks = { |
| 519 | {4 * 1024, 2}, |
| 520 | {8 * 1024, 1}, |
| 521 | {16 * 1024, 1}, |
| 522 | {32 * 1024, 1}, |
| 523 | {64 * 1024, 7}, |
| 524 | }, |
| 525 | .block_erase = spi_block_erase_d8, |
| 526 | }, { |
| 527 | .eraseblocks = { {512 * 1024, 1} }, |
| 528 | .block_erase = spi_block_erase_c7, |
| 529 | } |
| 530 | }, |
| 531 | .unlock = spi_disable_blockprotect, |
| 532 | .write = spi_chip_write_256, |
| 533 | .read = spi_chip_read, |
| 534 | }, |
| 535 | |
| 536 | { |
| 537 | .vendor = "AMIC", |
| 538 | .name = "A25L80P", |
| 539 | .bustype = CHIP_BUSTYPE_SPI, |
| 540 | .manufacture_id = AMIC_ID, |
| 541 | .model_id = AMIC_A25L80P, |
| 542 | .total_size = 1024, |
| 543 | .page_size = 256, |
| 544 | .tested = TEST_OK_PREW, |
| 545 | .probe = probe_spi_rdid4, |
| 546 | .probe_timing = TIMING_ZERO, |
| 547 | .block_erasers = |
| 548 | { |
| 549 | { |
| 550 | .eraseblocks = { |
| 551 | {4 * 1024, 2}, |
| 552 | {8 * 1024, 1}, |
| 553 | {16 * 1024, 1}, |
| 554 | {32 * 1024, 1}, |
| 555 | {64 * 1024, 15}, |
| 556 | }, |
| 557 | .block_erase = spi_block_erase_d8, |
| 558 | }, { |
| 559 | .eraseblocks = { {1024 * 1024, 1} }, |
| 560 | .block_erase = spi_block_erase_c7, |
| 561 | } |
| 562 | }, |
| 563 | .unlock = spi_disable_blockprotect, |
| 564 | .write = spi_chip_write_256, |
| 565 | .read = spi_chip_read, |
| 566 | }, |
| 567 | |
| 568 | { |
| 569 | .vendor = "AMIC", |
| 570 | .name = "A25L16PT", |
| 571 | .bustype = CHIP_BUSTYPE_SPI, |
| 572 | .manufacture_id = AMIC_ID, |
| 573 | .model_id = AMIC_A25L16PT, |
| 574 | .total_size = 2048, |
| 575 | .page_size = 256, |
| 576 | .tested = TEST_UNTESTED, |
| 577 | .probe = probe_spi_rdid4, |
| 578 | .probe_timing = TIMING_ZERO, |
| 579 | .block_erasers = |
| 580 | { |
| 581 | { |
| 582 | .eraseblocks = { |
| 583 | {64 * 1024, 31}, |
| 584 | {32 * 1024, 1}, |
| 585 | {16 * 1024, 1}, |
| 586 | {8 * 1024, 1}, |
| 587 | {4 * 1024, 2}, |
| 588 | }, |
| 589 | .block_erase = spi_block_erase_d8, |
| 590 | }, { |
| 591 | .eraseblocks = { {2048 * 1024, 1} }, |
| 592 | .block_erase = spi_block_erase_60, |
| 593 | }, { |
| 594 | .eraseblocks = { {2048 * 1024, 1} }, |
| 595 | .block_erase = spi_block_erase_c7, |
| 596 | } |
| 597 | }, |
| 598 | .unlock = spi_disable_blockprotect, |
| 599 | .write = spi_chip_write_256, |
| 600 | .read = spi_chip_read, |
| 601 | }, |
| 602 | |
| 603 | { |
| 604 | .vendor = "AMIC", |
| 605 | .name = "A25L16PU", |
| 606 | .bustype = CHIP_BUSTYPE_SPI, |
| 607 | .manufacture_id = AMIC_ID, |
| 608 | .model_id = AMIC_A25L16PU, |
| 609 | .total_size = 2048, |
| 610 | .page_size = 256, |
| 611 | .tested = TEST_OK_PRW, |
| 612 | .probe = probe_spi_rdid4, |
| 613 | .probe_timing = TIMING_ZERO, |
| 614 | .block_erasers = |
| 615 | { |
| 616 | { |
| 617 | .eraseblocks = { |
| 618 | {4 * 1024, 2}, |
| 619 | {8 * 1024, 1}, |
| 620 | {16 * 1024, 1}, |
| 621 | {32 * 1024, 1}, |
| 622 | {64 * 1024, 31}, |
| 623 | }, |
| 624 | .block_erase = spi_block_erase_d8, |
| 625 | }, { |
| 626 | .eraseblocks = { {2048 * 1024, 1} }, |
| 627 | .block_erase = spi_block_erase_60, |
| 628 | }, { |
| 629 | .eraseblocks = { {2048 * 1024, 1} }, |
| 630 | .block_erase = spi_block_erase_c7, |
| 631 | } |
| 632 | }, |
| 633 | .unlock = spi_disable_blockprotect, |
| 634 | .write = spi_chip_write_256, |
| 635 | .read = spi_chip_read, |
| 636 | }, |
| 637 | |
| 638 | { |
| 639 | .vendor = "AMIC", |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 640 | .name = "A25L512", |
| 641 | .bustype = CHIP_BUSTYPE_SPI, |
| 642 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 643 | .model_id = AMIC_A25L512, |
| 644 | .total_size = 64, |
| 645 | .page_size = 256, |
| 646 | .tested = TEST_UNTESTED, |
| 647 | .probe = probe_spi_rdid, |
| 648 | .probe_timing = TIMING_ZERO, |
| 649 | .block_erasers = |
| 650 | { |
| 651 | { |
| 652 | .eraseblocks = { { 4 * 1024, 16 } }, |
| 653 | .block_erase = spi_block_erase_20, |
| 654 | }, { |
| 655 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 656 | .block_erase = spi_block_erase_d8, |
| 657 | }, { |
| 658 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 659 | .block_erase = spi_block_erase_c7, |
| 660 | } |
| 661 | }, |
| 662 | .unlock = spi_disable_blockprotect, |
| 663 | .write = spi_chip_write_256, |
| 664 | .read = spi_chip_read, |
| 665 | }, |
| 666 | |
| 667 | { |
| 668 | .vendor = "AMIC", |
| 669 | .name = "A25L010", |
| 670 | .bustype = CHIP_BUSTYPE_SPI, |
| 671 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 672 | .model_id = AMIC_A25L010, |
| 673 | .total_size = 128, |
| 674 | .page_size = 256, |
| 675 | .tested = TEST_UNTESTED, |
| 676 | .probe = probe_spi_rdid, |
| 677 | .probe_timing = TIMING_ZERO, |
| 678 | .block_erasers = |
| 679 | { |
| 680 | { |
| 681 | .eraseblocks = { { 4 * 1024, 32 } }, |
| 682 | .block_erase = spi_block_erase_20, |
| 683 | }, { |
| 684 | .eraseblocks = { { 64 * 1024, 2 } }, |
| 685 | .block_erase = spi_block_erase_d8, |
| 686 | }, { |
| 687 | .eraseblocks = { { 128 * 1024, 1 } }, |
| 688 | .block_erase = spi_block_erase_c7, |
| 689 | } |
| 690 | }, |
| 691 | .unlock = spi_disable_blockprotect, |
| 692 | .write = spi_chip_write_256, |
| 693 | .read = spi_chip_read, |
| 694 | }, |
| 695 | |
| 696 | { |
| 697 | .vendor = "AMIC", |
| 698 | .name = "A25L020", |
| 699 | .bustype = CHIP_BUSTYPE_SPI, |
| 700 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 701 | .model_id = AMIC_A25L020, |
| 702 | .total_size = 256, |
| 703 | .page_size = 256, |
| 704 | .tested = TEST_UNTESTED, |
| 705 | .probe = probe_spi_rdid, |
| 706 | .probe_timing = TIMING_ZERO, |
| 707 | .block_erasers = |
| 708 | { |
| 709 | { |
| 710 | .eraseblocks = { { 4 * 1024, 64 } }, |
| 711 | .block_erase = spi_block_erase_20, |
| 712 | }, { |
| 713 | .eraseblocks = { { 64 * 1024, 4 } }, |
| 714 | .block_erase = spi_block_erase_d8, |
| 715 | }, { |
| 716 | .eraseblocks = { { 256 * 1024, 1 } }, |
| 717 | .block_erase = spi_block_erase_c7, |
| 718 | } |
| 719 | }, |
| 720 | .unlock = spi_disable_blockprotect, |
| 721 | .write = spi_chip_write_256, |
| 722 | .read = spi_chip_read, |
| 723 | }, |
| 724 | |
| 725 | { |
| 726 | .vendor = "AMIC", |
| 727 | .name = "A25L040", |
| 728 | .bustype = CHIP_BUSTYPE_SPI, |
| 729 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 730 | .model_id = AMIC_A25L040, |
| 731 | .total_size = 512, |
| 732 | .page_size = 256, |
| 733 | .tested = TEST_UNTESTED, |
| 734 | .probe = probe_spi_rdid, |
| 735 | .probe_timing = TIMING_ZERO, |
| 736 | .block_erasers = |
| 737 | { |
| 738 | { |
| 739 | .eraseblocks = { { 4 * 1024, 128 } }, |
| 740 | .block_erase = spi_block_erase_20, |
| 741 | }, { |
| 742 | .eraseblocks = { { 64 * 1024, 8 } }, |
| 743 | .block_erase = spi_block_erase_d8, |
| 744 | }, { |
| 745 | .eraseblocks = { { 512 * 1024, 1 } }, |
| 746 | .block_erase = spi_block_erase_c7, |
| 747 | } |
| 748 | }, |
| 749 | .unlock = spi_disable_blockprotect, |
| 750 | .write = spi_chip_write_256, |
| 751 | .read = spi_chip_read, |
| 752 | }, |
| 753 | |
| 754 | { |
| 755 | .vendor = "AMIC", |
| 756 | .name = "A25L080", |
| 757 | .bustype = CHIP_BUSTYPE_SPI, |
| 758 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 759 | .model_id = AMIC_A25L080, |
| 760 | .total_size = 1024, |
| 761 | .page_size = 256, |
| 762 | .tested = TEST_UNTESTED, |
| 763 | .probe = probe_spi_rdid, |
| 764 | .probe_timing = TIMING_ZERO, |
| 765 | .block_erasers = |
| 766 | { |
| 767 | { |
| 768 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 769 | .block_erase = spi_block_erase_20, |
| 770 | }, { |
| 771 | .eraseblocks = { { 64 * 1024, 16 } }, |
| 772 | .block_erase = spi_block_erase_d8, |
| 773 | }, { |
| 774 | .eraseblocks = { { 1024 * 1024, 1 } }, |
| 775 | .block_erase = spi_block_erase_c7, |
| 776 | } |
| 777 | }, |
| 778 | .unlock = spi_disable_blockprotect, |
| 779 | .write = spi_chip_write_256, |
| 780 | .read = spi_chip_read, |
| 781 | }, |
| 782 | |
| 783 | { |
| 784 | .vendor = "AMIC", |
| 785 | .name = "A25L016", |
| 786 | .bustype = CHIP_BUSTYPE_SPI, |
| 787 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 788 | .model_id = AMIC_A25L016, |
| 789 | .total_size = 2048, |
| 790 | .page_size = 256, |
| 791 | .tested = TEST_UNTESTED, |
| 792 | .probe = probe_spi_rdid, |
| 793 | .probe_timing = TIMING_ZERO, |
| 794 | .block_erasers = |
| 795 | { |
| 796 | { |
| 797 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 798 | .block_erase = spi_block_erase_20, |
| 799 | }, { |
| 800 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 801 | .block_erase = spi_block_erase_d8, |
| 802 | }, { |
| 803 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 804 | .block_erase = spi_block_erase_c7, |
| 805 | } |
| 806 | }, |
| 807 | .unlock = spi_disable_blockprotect, |
| 808 | .write = spi_chip_write_256, |
| 809 | .read = spi_chip_read, |
| 810 | }, |
| 811 | |
| 812 | { |
| 813 | .vendor = "AMIC", |
| 814 | .name = "A25L032", |
| 815 | .bustype = CHIP_BUSTYPE_SPI, |
| 816 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 817 | .model_id = AMIC_A25L032, |
| 818 | .total_size = 4096, |
| 819 | .page_size = 256, |
| 820 | .tested = TEST_UNTESTED, |
| 821 | .probe = probe_spi_rdid, |
| 822 | .probe_timing = TIMING_ZERO, |
| 823 | .block_erasers = |
| 824 | { |
| 825 | { |
| 826 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 827 | .block_erase = spi_block_erase_20, |
| 828 | }, { |
| 829 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 830 | .block_erase = spi_block_erase_52, |
| 831 | }, { |
| 832 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 833 | .block_erase = spi_block_erase_d8, |
| 834 | }, { |
| 835 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 836 | .block_erase = spi_block_erase_60, |
| 837 | }, { |
| 838 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 839 | .block_erase = spi_block_erase_c7, |
| 840 | } |
| 841 | }, |
| 842 | .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */ |
| 843 | .write = spi_chip_write_256, |
| 844 | .read = spi_chip_read, |
| 845 | }, |
| 846 | |
| 847 | { |
| 848 | .vendor = "AMIC", |
| 849 | .name = "A25LQ032", |
| 850 | .bustype = CHIP_BUSTYPE_SPI, |
| 851 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 852 | .model_id = AMIC_A25LQ032, |
| 853 | .total_size = 4096, |
| 854 | .page_size = 256, |
| 855 | .tested = TEST_UNTESTED, |
| 856 | .probe = probe_spi_rdid, |
| 857 | .probe_timing = TIMING_ZERO, |
| 858 | .block_erasers = |
| 859 | { |
| 860 | { |
| 861 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 862 | .block_erase = spi_block_erase_20, |
| 863 | }, { |
| 864 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 865 | .block_erase = spi_block_erase_52, |
| 866 | }, { |
| 867 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 868 | .block_erase = spi_block_erase_d8, |
| 869 | }, { |
| 870 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 871 | .block_erase = spi_block_erase_60, |
| 872 | }, { |
| 873 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 874 | .block_erase = spi_block_erase_c7, |
| 875 | } |
| 876 | }, |
| 877 | .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */ |
| 878 | .write = spi_chip_write_256, |
| 879 | .read = spi_chip_read, |
| 880 | }, |
| 881 | |
| 882 | { |
| 883 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 884 | .name = "A29002B", |
| 885 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 886 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 887 | .model_id = AMIC_A29002B, |
| 888 | .total_size = 256, |
| 889 | .page_size = 64 * 1024, |
| 890 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 891 | .tested = TEST_UNTESTED, |
| 892 | .probe = probe_jedec, |
| 893 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */ |
| 894 | .block_erasers = |
| 895 | { |
| 896 | { |
| 897 | .eraseblocks = { |
| 898 | {16 * 1024, 1}, |
| 899 | {8 * 1024, 2}, |
| 900 | {32 * 1024, 1}, |
| 901 | {64 * 1024, 3}, |
| 902 | }, |
| 903 | .block_erase = erase_sector_jedec, |
| 904 | }, { |
| 905 | .eraseblocks = { {256 * 1024, 1} }, |
| 906 | .block_erase = erase_chip_block_jedec, |
| 907 | }, |
| 908 | }, |
| 909 | .write = write_jedec_1, |
| 910 | .read = read_memmapped, |
| 911 | }, |
| 912 | |
| 913 | { |
| 914 | .vendor = "AMIC", |
| 915 | .name = "A29002T", |
| 916 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 917 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 918 | .model_id = AMIC_A29002T, |
| 919 | .total_size = 256, |
| 920 | .page_size = 64 * 1024, |
| 921 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 922 | .tested = TEST_OK_PRW, |
| 923 | .probe = probe_jedec, |
| 924 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */ |
| 925 | .block_erasers = |
| 926 | { |
| 927 | { |
| 928 | .eraseblocks = { |
| 929 | {64 * 1024, 3}, |
| 930 | {32 * 1024, 1}, |
| 931 | {8 * 1024, 2}, |
| 932 | {16 * 1024, 1}, |
| 933 | }, |
| 934 | .block_erase = erase_sector_jedec, |
| 935 | }, { |
| 936 | .eraseblocks = { {256 * 1024, 1} }, |
| 937 | .block_erase = erase_chip_block_jedec, |
| 938 | }, |
| 939 | }, |
| 940 | .write = write_jedec_1, |
| 941 | .read = read_memmapped, |
| 942 | }, |
| 943 | |
| 944 | { |
| 945 | .vendor = "AMIC", |
| 946 | .name = "A29040B", |
| 947 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 948 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 949 | .model_id = AMIC_A29040B, |
| 950 | .total_size = 512, |
| 951 | .page_size = 64 * 1024, |
| 952 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 953 | .tested = TEST_UNTESTED, |
| 954 | .probe = probe_jedec, |
| 955 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (am29f040b.c) */ |
| 956 | .block_erasers = |
| 957 | { |
| 958 | { |
| 959 | .eraseblocks = { {64 * 1024, 8} }, |
| 960 | .block_erase = erase_sector_jedec, |
| 961 | }, { |
| 962 | .eraseblocks = { {512 * 1024, 1} }, |
| 963 | .block_erase = erase_chip_block_jedec, |
| 964 | }, |
| 965 | }, |
| 966 | .write = write_jedec_1, |
| 967 | .read = read_memmapped, |
| 968 | }, |
| 969 | |
| 970 | { |
| 971 | .vendor = "AMIC", |
| 972 | .name = "A49LF040A", |
| 973 | .bustype = CHIP_BUSTYPE_LPC, |
| 974 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 975 | .model_id = AMIC_A49LF040A, |
| 976 | .total_size = 512, |
| 977 | .page_size = 64 * 1024, |
| 978 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
| 979 | .tested = TEST_OK_PREW, |
| 980 | .probe = probe_jedec, |
| 981 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
| 982 | .block_erasers = |
| 983 | { |
| 984 | { |
| 985 | .eraseblocks = { {64 * 1024, 8} }, |
| 986 | .block_erase = erase_block_jedec, |
| 987 | }, { |
| 988 | .eraseblocks = { {512 * 1024, 1} }, |
| 989 | .block_erase = erase_chip_block_jedec, |
| 990 | } |
| 991 | }, |
| 992 | .unlock = unlock_49fl00x, |
| 993 | .write = write_jedec_1, |
| 994 | .read = read_memmapped, |
| 995 | }, |
| 996 | |
| 997 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 998 | .vendor = "ASD", |
| 999 | .name = "AE49F2008", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 1000 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1001 | .manufacture_id = ASD_ID, |
| 1002 | .model_id = ASD_AE49F2008, |
| 1003 | .total_size = 256, |
| 1004 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1005 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1006 | .tested = TEST_UNTESTED, |
| 1007 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 1008 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1009 | .block_erasers = |
| 1010 | { |
| 1011 | { |
| 1012 | .eraseblocks = { |
| 1013 | {128 * 1024, 1}, |
| 1014 | {96 * 1024, 1}, |
| 1015 | {8 * 1024, 2}, |
| 1016 | {16 * 1024, 1}, |
| 1017 | }, |
| 1018 | .block_erase = erase_sector_jedec, |
| 1019 | }, { |
| 1020 | .eraseblocks = { {256 * 1024, 1} }, |
| 1021 | .block_erase = erase_chip_block_jedec, |
| 1022 | } |
| 1023 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1024 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 1025 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1026 | }, |
| 1027 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1028 | { |
| 1029 | .vendor = "Atmel", |
| 1030 | .name = "AT25DF021", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1031 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1032 | .manufacture_id = ATMEL_ID, |
| 1033 | .model_id = AT_25DF021, |
| 1034 | .total_size = 256, |
| 1035 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1036 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1037 | .tested = TEST_UNTESTED, |
| 1038 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1039 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1040 | .block_erasers = |
| 1041 | { |
| 1042 | { |
| 1043 | .eraseblocks = { {4 * 1024, 64} }, |
| 1044 | .block_erase = spi_block_erase_20, |
| 1045 | }, { |
| 1046 | .eraseblocks = { {32 * 1024, 8} }, |
| 1047 | .block_erase = spi_block_erase_52, |
| 1048 | }, { |
| 1049 | .eraseblocks = { {64 * 1024, 4} }, |
| 1050 | .block_erase = spi_block_erase_d8, |
| 1051 | }, { |
| 1052 | .eraseblocks = { {256 * 1024, 1} }, |
| 1053 | .block_erase = spi_block_erase_60, |
| 1054 | }, { |
| 1055 | .eraseblocks = { {256 * 1024, 1} }, |
| 1056 | .block_erase = spi_block_erase_c7, |
| 1057 | } |
| 1058 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1059 | .printlock = spi_prettyprint_status_register_at25df, |
| 1060 | .unlock = spi_disable_blockprotect_at25df, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1061 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1062 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1063 | }, |
| 1064 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1065 | { |
| 1066 | .vendor = "Atmel", |
| 1067 | .name = "AT25DF041A", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1068 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1069 | .manufacture_id = ATMEL_ID, |
| 1070 | .model_id = AT_25DF041A, |
| 1071 | .total_size = 512, |
| 1072 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1073 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1074 | .tested = TEST_UNTESTED, |
| 1075 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1076 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1077 | .block_erasers = |
| 1078 | { |
| 1079 | { |
| 1080 | .eraseblocks = { {4 * 1024, 128} }, |
| 1081 | .block_erase = spi_block_erase_20, |
| 1082 | }, { |
| 1083 | .eraseblocks = { {32 * 1024, 16} }, |
| 1084 | .block_erase = spi_block_erase_52, |
| 1085 | }, { |
| 1086 | .eraseblocks = { {64 * 1024, 8} }, |
| 1087 | .block_erase = spi_block_erase_d8, |
| 1088 | }, { |
| 1089 | .eraseblocks = { {512 * 1024, 1} }, |
| 1090 | .block_erase = spi_block_erase_60, |
| 1091 | }, { |
| 1092 | .eraseblocks = { {512 * 1024, 1} }, |
| 1093 | .block_erase = spi_block_erase_c7, |
| 1094 | } |
| 1095 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1096 | .printlock = spi_prettyprint_status_register_at25df, |
| 1097 | .unlock = spi_disable_blockprotect_at25df, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1098 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1099 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1100 | }, |
| 1101 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1102 | { |
| 1103 | .vendor = "Atmel", |
| 1104 | .name = "AT25DF081", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1105 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1106 | .manufacture_id = ATMEL_ID, |
| 1107 | .model_id = AT_25DF081, |
| 1108 | .total_size = 1024, |
| 1109 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1110 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1111 | .tested = TEST_UNTESTED, |
| 1112 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1113 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1114 | .block_erasers = |
| 1115 | { |
| 1116 | { |
| 1117 | .eraseblocks = { {4 * 1024, 256} }, |
| 1118 | .block_erase = spi_block_erase_20, |
| 1119 | }, { |
| 1120 | .eraseblocks = { {32 * 1024, 32} }, |
| 1121 | .block_erase = spi_block_erase_52, |
| 1122 | }, { |
| 1123 | .eraseblocks = { {64 * 1024, 16} }, |
| 1124 | .block_erase = spi_block_erase_d8, |
| 1125 | }, { |
| 1126 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1127 | .block_erase = spi_block_erase_60, |
| 1128 | }, { |
| 1129 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1130 | .block_erase = spi_block_erase_c7, |
| 1131 | } |
| 1132 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1133 | .printlock = spi_prettyprint_status_register_at25df, |
| 1134 | .unlock = spi_disable_blockprotect_at25df, |
| 1135 | .write = spi_chip_write_256, |
| 1136 | .read = spi_chip_read, |
| 1137 | }, |
| 1138 | |
| 1139 | { |
| 1140 | .vendor = "Atmel", |
| 1141 | .name = "AT25DF081A", |
| 1142 | .bustype = CHIP_BUSTYPE_SPI, |
| 1143 | .manufacture_id = ATMEL_ID, |
| 1144 | .model_id = AT_25DF081A, |
| 1145 | .total_size = 1024, |
| 1146 | .page_size = 256, |
| 1147 | .feature_bits = FEATURE_WRSR_WREN, |
| 1148 | .tested = TEST_UNTESTED, |
| 1149 | .probe = probe_spi_rdid, |
| 1150 | .probe_timing = TIMING_ZERO, |
| 1151 | .block_erasers = |
| 1152 | { |
| 1153 | { |
| 1154 | .eraseblocks = { {4 * 1024, 256} }, |
| 1155 | .block_erase = spi_block_erase_20, |
| 1156 | }, { |
| 1157 | .eraseblocks = { {32 * 1024, 32} }, |
| 1158 | .block_erase = spi_block_erase_52, |
| 1159 | }, { |
| 1160 | .eraseblocks = { {64 * 1024, 16} }, |
| 1161 | .block_erase = spi_block_erase_d8, |
| 1162 | }, { |
| 1163 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1164 | .block_erase = spi_block_erase_60, |
| 1165 | }, { |
| 1166 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1167 | .block_erase = spi_block_erase_c7, |
| 1168 | } |
| 1169 | }, |
| 1170 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1171 | .unlock = spi_disable_blockprotect_at25df_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1172 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1173 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1174 | }, |
| 1175 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1176 | { |
| 1177 | .vendor = "Atmel", |
| 1178 | .name = "AT25DF161", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1179 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1180 | .manufacture_id = ATMEL_ID, |
| 1181 | .model_id = AT_25DF161, |
| 1182 | .total_size = 2048, |
| 1183 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1184 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1185 | .tested = TEST_UNTESTED, |
| 1186 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1187 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1188 | .block_erasers = |
| 1189 | { |
| 1190 | { |
| 1191 | .eraseblocks = { {4 * 1024, 512} }, |
| 1192 | .block_erase = spi_block_erase_20, |
| 1193 | }, { |
| 1194 | .eraseblocks = { {32 * 1024, 64} }, |
| 1195 | .block_erase = spi_block_erase_52, |
| 1196 | }, { |
| 1197 | .eraseblocks = { {64 * 1024, 32} }, |
| 1198 | .block_erase = spi_block_erase_d8, |
| 1199 | }, { |
| 1200 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1201 | .block_erase = spi_block_erase_60, |
| 1202 | }, { |
| 1203 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1204 | .block_erase = spi_block_erase_c7, |
| 1205 | } |
| 1206 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1207 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1208 | .unlock = spi_disable_blockprotect_at25df_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1209 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1210 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1211 | }, |
| 1212 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1213 | { |
| 1214 | .vendor = "Atmel", |
| 1215 | .name = "AT25DF321", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1216 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1217 | .manufacture_id = ATMEL_ID, |
| 1218 | .model_id = AT_25DF321, |
| 1219 | .total_size = 4096, |
| 1220 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1221 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1222 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1223 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1224 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1225 | .block_erasers = |
| 1226 | { |
| 1227 | { |
| 1228 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1229 | .block_erase = spi_block_erase_20, |
| 1230 | }, { |
| 1231 | .eraseblocks = { {32 * 1024, 128} }, |
| 1232 | .block_erase = spi_block_erase_52, |
| 1233 | }, { |
| 1234 | .eraseblocks = { {64 * 1024, 64} }, |
| 1235 | .block_erase = spi_block_erase_d8, |
| 1236 | }, { |
| 1237 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1238 | .block_erase = spi_block_erase_60, |
| 1239 | }, { |
| 1240 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1241 | .block_erase = spi_block_erase_c7, |
| 1242 | } |
| 1243 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1244 | .printlock = spi_prettyprint_status_register_at25df, |
| 1245 | .unlock = spi_disable_blockprotect_at25df, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1246 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1247 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1248 | }, |
| 1249 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1250 | { |
| 1251 | .vendor = "Atmel", |
| 1252 | .name = "AT25DF321A", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1253 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1254 | .manufacture_id = ATMEL_ID, |
| 1255 | .model_id = AT_25DF321A, |
| 1256 | .total_size = 4096, |
| 1257 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1258 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1259 | .tested = TEST_UNTESTED, |
| 1260 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1261 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1262 | .block_erasers = |
| 1263 | { |
| 1264 | { |
| 1265 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1266 | .block_erase = spi_block_erase_20, |
| 1267 | }, { |
| 1268 | .eraseblocks = { {32 * 1024, 128} }, |
| 1269 | .block_erase = spi_block_erase_52, |
| 1270 | }, { |
| 1271 | .eraseblocks = { {64 * 1024, 64} }, |
| 1272 | .block_erase = spi_block_erase_d8, |
| 1273 | }, { |
| 1274 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1275 | .block_erase = spi_block_erase_60, |
| 1276 | }, { |
| 1277 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1278 | .block_erase = spi_block_erase_c7, |
| 1279 | } |
| 1280 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1281 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1282 | .unlock = spi_disable_blockprotect_at25df_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1283 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1284 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1285 | }, |
| 1286 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1287 | { |
| 1288 | .vendor = "Atmel", |
| 1289 | .name = "AT25DF641", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1290 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1291 | .manufacture_id = ATMEL_ID, |
| 1292 | .model_id = AT_25DF641, |
| 1293 | .total_size = 8192, |
| 1294 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1295 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1296 | .tested = TEST_UNTESTED, |
| 1297 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1298 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1299 | .block_erasers = |
| 1300 | { |
| 1301 | { |
| 1302 | .eraseblocks = { {4 * 1024, 2048} }, |
| 1303 | .block_erase = spi_block_erase_20, |
| 1304 | }, { |
| 1305 | .eraseblocks = { {32 * 1024, 256} }, |
| 1306 | .block_erase = spi_block_erase_52, |
| 1307 | }, { |
| 1308 | .eraseblocks = { {64 * 1024, 128} }, |
| 1309 | .block_erase = spi_block_erase_d8, |
| 1310 | }, { |
| 1311 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1312 | .block_erase = spi_block_erase_60, |
| 1313 | }, { |
| 1314 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1315 | .block_erase = spi_block_erase_c7, |
| 1316 | } |
| 1317 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1318 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1319 | .unlock = spi_disable_blockprotect_at25df_sec, |
| 1320 | .write = spi_chip_write_256, |
| 1321 | .read = spi_chip_read, |
| 1322 | }, |
| 1323 | |
| 1324 | { |
| 1325 | .vendor = "Atmel", |
| 1326 | .name = "AT25DQ161", |
| 1327 | .bustype = CHIP_BUSTYPE_SPI, |
| 1328 | .manufacture_id = ATMEL_ID, |
| 1329 | .model_id = AT_25DQ161, |
| 1330 | .total_size = 2048, |
| 1331 | .page_size = 256, |
| 1332 | .feature_bits = FEATURE_WRSR_WREN, |
| 1333 | .tested = TEST_UNTESTED, |
| 1334 | .probe = probe_spi_rdid, |
| 1335 | .probe_timing = TIMING_ZERO, |
| 1336 | .block_erasers = |
| 1337 | { |
| 1338 | { |
| 1339 | .eraseblocks = { {4 * 1024, 512} }, |
| 1340 | .block_erase = spi_block_erase_20, |
| 1341 | }, { |
| 1342 | .eraseblocks = { {32 * 1024, 64} }, |
| 1343 | .block_erase = spi_block_erase_52, |
| 1344 | }, { |
| 1345 | .eraseblocks = { {64 * 1024, 32} }, |
| 1346 | .block_erase = spi_block_erase_d8, |
| 1347 | }, { |
| 1348 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1349 | .block_erase = spi_block_erase_60, |
| 1350 | }, { |
| 1351 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1352 | .block_erase = spi_block_erase_c7, |
| 1353 | } |
| 1354 | }, |
| 1355 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1356 | .unlock = spi_disable_blockprotect_at25df_sec, |
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, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1359 | }, |
| 1360 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1361 | { |
| 1362 | .vendor = "Atmel", |
| 1363 | .name = "AT25F512B", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1364 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1365 | .manufacture_id = ATMEL_ID, |
| 1366 | .model_id = AT_25F512B, |
| 1367 | .total_size = 64, |
| 1368 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1369 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1370 | .tested = TEST_UNTESTED, |
| 1371 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1372 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1373 | .block_erasers = |
| 1374 | { |
| 1375 | { |
| 1376 | .eraseblocks = { {4 * 1024, 16} }, |
| 1377 | .block_erase = spi_block_erase_20, |
| 1378 | }, { |
| 1379 | .eraseblocks = { {32 * 1024, 2} }, |
| 1380 | .block_erase = spi_block_erase_52, |
| 1381 | }, { |
| 1382 | .eraseblocks = { {32 * 1024, 2} }, |
| 1383 | .block_erase = spi_block_erase_d8, |
| 1384 | }, { |
| 1385 | .eraseblocks = { {64 * 1024, 1} }, |
| 1386 | .block_erase = spi_block_erase_60, |
| 1387 | }, { |
| 1388 | .eraseblocks = { {64 * 1024, 1} }, |
| 1389 | .block_erase = spi_block_erase_c7, |
| 1390 | } |
| 1391 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1392 | .printlock = spi_prettyprint_status_register_at25f, |
| 1393 | .unlock = spi_disable_blockprotect_at25f, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1394 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1395 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1396 | }, |
| 1397 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1398 | { |
| 1399 | .vendor = "Atmel", |
| 1400 | .name = "AT25FS010", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1401 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1402 | .manufacture_id = ATMEL_ID, |
| 1403 | .model_id = AT_25FS010, |
| 1404 | .total_size = 128, |
| 1405 | .page_size = 256, |
| 1406 | .tested = TEST_UNTESTED, |
| 1407 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1408 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1409 | .block_erasers = |
| 1410 | { |
| 1411 | { |
| 1412 | .eraseblocks = { {4 * 1024, 32} }, |
| 1413 | .block_erase = spi_block_erase_20, |
| 1414 | }, { |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1415 | .eraseblocks = { {4 * 1024, 32} }, |
| 1416 | .block_erase = spi_block_erase_d7, |
| 1417 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1418 | .eraseblocks = { {32 * 1024, 4} }, |
| 1419 | .block_erase = spi_block_erase_52, |
| 1420 | }, { |
| 1421 | .eraseblocks = { {32 * 1024, 4} }, |
| 1422 | .block_erase = spi_block_erase_d8, |
| 1423 | }, { |
| 1424 | .eraseblocks = { {128 * 1024, 1} }, |
| 1425 | .block_erase = spi_block_erase_60, |
| 1426 | }, { |
| 1427 | .eraseblocks = { {128 * 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_at25fs010, |
| 1432 | .unlock = spi_disable_blockprotect_at25fs010, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1433 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1434 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1435 | }, |
| 1436 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1437 | { |
| 1438 | .vendor = "Atmel", |
| 1439 | .name = "AT25FS040", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1440 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1441 | .manufacture_id = ATMEL_ID, |
| 1442 | .model_id = AT_25FS040, |
| 1443 | .total_size = 512, |
| 1444 | .page_size = 256, |
| 1445 | .tested = TEST_UNTESTED, |
| 1446 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1447 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1448 | .block_erasers = |
| 1449 | { |
| 1450 | { |
| 1451 | .eraseblocks = { {4 * 1024, 128} }, |
| 1452 | .block_erase = spi_block_erase_20, |
| 1453 | }, { |
| 1454 | .eraseblocks = { {64 * 1024, 8} }, |
| 1455 | .block_erase = spi_block_erase_52, |
| 1456 | }, { |
| 1457 | .eraseblocks = { {64 * 1024, 8} }, |
| 1458 | .block_erase = spi_block_erase_d8, |
| 1459 | }, { |
| 1460 | .eraseblocks = { {512 * 1024, 1} }, |
| 1461 | .block_erase = spi_block_erase_60, |
| 1462 | }, { |
| 1463 | .eraseblocks = { {512 * 1024, 1} }, |
| 1464 | .block_erase = spi_block_erase_c7, |
| 1465 | } |
| 1466 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1467 | .printlock = spi_prettyprint_status_register_at25fs040, |
| 1468 | .unlock = spi_disable_blockprotect_at25fs040, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1469 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1470 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1471 | }, |
| 1472 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1473 | { |
| 1474 | .vendor = "Atmel", |
| 1475 | .name = "AT26DF041", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1476 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1477 | .manufacture_id = ATMEL_ID, |
| 1478 | .model_id = AT_26DF041, |
| 1479 | .total_size = 512, |
| 1480 | .page_size = 256, |
| 1481 | .tested = TEST_UNTESTED, |
| 1482 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1483 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1484 | .block_erasers = |
| 1485 | { |
| 1486 | { |
| 1487 | .eraseblocks = { {4 * 1024, 128} }, |
| 1488 | .block_erase = spi_block_erase_20, |
| 1489 | } |
| 1490 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1491 | .write = NULL /* Incompatible Page write */, |
| 1492 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1493 | }, |
| 1494 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1495 | { |
| 1496 | .vendor = "Atmel", |
| 1497 | .name = "AT26DF081A", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1498 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1499 | .manufacture_id = ATMEL_ID, |
| 1500 | .model_id = AT_26DF081A, |
| 1501 | .total_size = 1024, |
| 1502 | .page_size = 256, |
| 1503 | .tested = TEST_UNTESTED, |
| 1504 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1505 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1506 | .block_erasers = |
| 1507 | { |
| 1508 | { |
| 1509 | .eraseblocks = { {4 * 1024, 256} }, |
| 1510 | .block_erase = spi_block_erase_20, |
| 1511 | }, { |
| 1512 | .eraseblocks = { {32 * 1024, 32} }, |
| 1513 | .block_erase = spi_block_erase_52, |
| 1514 | }, { |
| 1515 | .eraseblocks = { {64 * 1024, 16} }, |
| 1516 | .block_erase = spi_block_erase_d8, |
| 1517 | }, { |
| 1518 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1519 | .block_erase = spi_block_erase_60, |
| 1520 | }, { |
| 1521 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1522 | .block_erase = spi_block_erase_c7, |
| 1523 | } |
| 1524 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1525 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1526 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1527 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1528 | }, |
| 1529 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1530 | { |
| 1531 | .vendor = "Atmel", |
| 1532 | .name = "AT26DF161", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1533 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1534 | .manufacture_id = ATMEL_ID, |
| 1535 | .model_id = AT_26DF161, |
| 1536 | .total_size = 2048, |
| 1537 | .page_size = 256, |
| 1538 | .tested = TEST_UNTESTED, |
| 1539 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1540 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1541 | .block_erasers = |
| 1542 | { |
| 1543 | { |
| 1544 | .eraseblocks = { {4 * 1024, 512} }, |
| 1545 | .block_erase = spi_block_erase_20, |
| 1546 | }, { |
| 1547 | .eraseblocks = { {32 * 1024, 64} }, |
| 1548 | .block_erase = spi_block_erase_52, |
| 1549 | }, { |
| 1550 | .eraseblocks = { {64 * 1024, 32} }, |
| 1551 | .block_erase = spi_block_erase_d8, |
| 1552 | }, { |
| 1553 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1554 | .block_erase = spi_block_erase_60, |
| 1555 | }, { |
| 1556 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1557 | .block_erase = spi_block_erase_c7, |
| 1558 | } |
| 1559 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1560 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1561 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1562 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1563 | }, |
| 1564 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1565 | { |
| 1566 | .vendor = "Atmel", |
| 1567 | .name = "AT26DF161A", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1568 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1569 | .manufacture_id = ATMEL_ID, |
| 1570 | .model_id = AT_26DF161A, |
| 1571 | .total_size = 2048, |
| 1572 | .page_size = 256, |
| 1573 | .tested = TEST_UNTESTED, |
| 1574 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1575 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1576 | .block_erasers = |
| 1577 | { |
| 1578 | { |
| 1579 | .eraseblocks = { {4 * 1024, 512} }, |
| 1580 | .block_erase = spi_block_erase_20, |
| 1581 | }, { |
| 1582 | .eraseblocks = { {32 * 1024, 64} }, |
| 1583 | .block_erase = spi_block_erase_52, |
| 1584 | }, { |
| 1585 | .eraseblocks = { {64 * 1024, 32} }, |
| 1586 | .block_erase = spi_block_erase_d8, |
| 1587 | }, { |
| 1588 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1589 | .block_erase = spi_block_erase_60, |
| 1590 | }, { |
| 1591 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1592 | .block_erase = spi_block_erase_c7, |
| 1593 | } |
| 1594 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1595 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1596 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1597 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1598 | }, |
| 1599 | |
| 1600 | /*The AT26DF321 has the same ID as the AT25DF321. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1601 | /*{ |
| 1602 | .vendor = "Atmel", |
| 1603 | .name = "AT26DF321", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1604 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1605 | .manufacture_id = ATMEL_ID, |
| 1606 | .model_id = AT_26DF321, |
| 1607 | .total_size = 4096, |
| 1608 | .page_size = 256, |
| 1609 | .tested = TEST_UNTESTED, |
| 1610 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1611 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1612 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1613 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1614 | .read = spi_chip_read, |
| 1615 | },*/ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1616 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1617 | { |
| 1618 | .vendor = "Atmel", |
| 1619 | .name = "AT26F004", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1620 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1621 | .manufacture_id = ATMEL_ID, |
| 1622 | .model_id = AT_26F004, |
| 1623 | .total_size = 512, |
| 1624 | .page_size = 256, |
| 1625 | .tested = TEST_UNTESTED, |
| 1626 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1627 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1628 | .block_erasers = |
| 1629 | { |
| 1630 | { |
| 1631 | .eraseblocks = { {4 * 1024, 128} }, |
| 1632 | .block_erase = spi_block_erase_20, |
| 1633 | }, { |
| 1634 | .eraseblocks = { {32 * 1024, 16} }, |
| 1635 | .block_erase = spi_block_erase_52, |
| 1636 | }, { |
| 1637 | .eraseblocks = { {64 * 1024, 8} }, |
| 1638 | .block_erase = spi_block_erase_d8, |
| 1639 | }, { |
| 1640 | .eraseblocks = { {512 * 1024, 1} }, |
| 1641 | .block_erase = spi_block_erase_60, |
| 1642 | }, { |
| 1643 | .eraseblocks = { {512 * 1024, 1} }, |
| 1644 | .block_erase = spi_block_erase_c7, |
| 1645 | } |
| 1646 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1647 | .write = NULL /* Incompatible Page write */, |
| 1648 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1649 | }, |
| 1650 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1651 | { |
| 1652 | .vendor = "Atmel", |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 1653 | .name = "AT29C512", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 1654 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 1655 | .manufacture_id = ATMEL_ID, |
| 1656 | .model_id = AT_29C512, |
| 1657 | .total_size = 64, |
| 1658 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1659 | .feature_bits = FEATURE_LONG_RESET, |
| 1660 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 1661 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 1662 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1663 | .block_erasers = |
| 1664 | { |
| 1665 | { |
| 1666 | .eraseblocks = { {64 * 1024, 1} }, |
| 1667 | .block_erase = erase_chip_block_jedec, |
| 1668 | } |
| 1669 | }, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 1670 | .write = write_jedec, |
| 1671 | .read = read_memmapped, |
| 1672 | |
| 1673 | }, |
| 1674 | |
| 1675 | { |
| 1676 | .vendor = "Atmel", |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 1677 | .name = "AT29C010A", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 1678 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 1679 | .manufacture_id = ATMEL_ID, |
| 1680 | .model_id = AT_29C010A, |
| 1681 | .total_size = 128, |
| 1682 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1683 | .feature_bits = FEATURE_LONG_RESET, |
Michael Karcher | 98eff46 | 2010-03-24 22:55:56 +0000 | [diff] [blame] | 1684 | .tested = TEST_OK_PREW, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 1685 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 1686 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1687 | .block_erasers = |
| 1688 | { |
| 1689 | { |
| 1690 | .eraseblocks = { {128 * 1024, 1} }, |
| 1691 | .block_erase = erase_chip_block_jedec, |
| 1692 | } |
| 1693 | }, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 1694 | .write = write_jedec, /* FIXME */ |
| 1695 | .read = read_memmapped, |
| 1696 | }, |
| 1697 | |
| 1698 | { |
| 1699 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1700 | .name = "AT29C020", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 1701 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1702 | .manufacture_id = ATMEL_ID, |
| 1703 | .model_id = AT_29C020, |
| 1704 | .total_size = 256, |
| 1705 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1706 | .feature_bits = FEATURE_LONG_RESET, |
| 1707 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1708 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 1709 | .probe_timing = 10000, /* 10ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1710 | .block_erasers = |
| 1711 | { |
| 1712 | { |
| 1713 | .eraseblocks = { {256 * 1024, 1} }, |
| 1714 | .block_erase = erase_chip_block_jedec, |
| 1715 | } |
| 1716 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1717 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 1718 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1719 | }, |
| 1720 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1721 | { |
| 1722 | .vendor = "Atmel", |
| 1723 | .name = "AT29C040A", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 1724 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1725 | .manufacture_id = ATMEL_ID, |
| 1726 | .model_id = AT_29C040A, |
| 1727 | .total_size = 512, |
| 1728 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1729 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1730 | .tested = TEST_UNTESTED, |
| 1731 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 1732 | .probe_timing = 10000, /* 10 ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1733 | .block_erasers = |
| 1734 | { |
| 1735 | { |
| 1736 | .eraseblocks = { {512 * 1024, 1} }, |
| 1737 | .block_erase = erase_chip_block_jedec, |
| 1738 | } |
| 1739 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1740 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 1741 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1742 | }, |
| 1743 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1744 | { |
| 1745 | .vendor = "Atmel", |
| 1746 | .name = "AT45CS1282", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1747 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1748 | .manufacture_id = ATMEL_ID, |
| 1749 | .model_id = AT_45CS1282, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1750 | .total_size = 16896 /* No power of two sizes */, |
| 1751 | .page_size = 1056 /* No power of two sizes */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1752 | .tested = TEST_BAD_READ, |
| 1753 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1754 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1755 | .write = NULL /* Incompatible Page write */, |
| 1756 | .read = NULL /* Incompatible read */, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1757 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1758 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1759 | { |
| 1760 | .vendor = "Atmel", |
| 1761 | .name = "AT45DB011D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1762 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1763 | .manufacture_id = ATMEL_ID, |
| 1764 | .model_id = AT_45DB011D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1765 | .total_size = 128 /* Size can only be determined from status register */, |
| 1766 | .page_size = 256 /* Size can only be determined from status register */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1767 | .tested = TEST_BAD_READ, |
| 1768 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1769 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1770 | .write = NULL, |
| 1771 | .read = NULL, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1772 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1773 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1774 | { |
| 1775 | .vendor = "Atmel", |
| 1776 | .name = "AT45DB021D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1777 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1778 | .manufacture_id = ATMEL_ID, |
| 1779 | .model_id = AT_45DB021D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1780 | .total_size = 256 /* Size can only be determined from status register */, |
| 1781 | .page_size = 256 /* Size can only be determined from status register */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1782 | .tested = TEST_BAD_READ, |
| 1783 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1784 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1785 | .write = NULL, |
| 1786 | .read = NULL, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1787 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1788 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1789 | { |
| 1790 | .vendor = "Atmel", |
| 1791 | .name = "AT45DB041D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1792 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1793 | .manufacture_id = ATMEL_ID, |
| 1794 | .model_id = AT_45DB041D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1795 | .total_size = 512 /* Size can only be determined from status register */, |
| 1796 | .page_size = 256 /* Size can only be determined from status register */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1797 | .tested = TEST_BAD_READ, |
| 1798 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1799 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1800 | .write = NULL, |
| 1801 | .read = NULL, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1802 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1803 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1804 | { |
| 1805 | .vendor = "Atmel", |
| 1806 | .name = "AT45DB081D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1807 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1808 | .manufacture_id = ATMEL_ID, |
| 1809 | .model_id = AT_45DB081D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1810 | .total_size = 1024 /* Size can only be determined from status register */, |
| 1811 | .page_size = 256 /* Size can only be determined from status register */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1812 | .tested = TEST_BAD_READ, |
| 1813 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1814 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1815 | .write = NULL, |
| 1816 | .read = NULL, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1817 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1818 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1819 | { |
| 1820 | .vendor = "Atmel", |
| 1821 | .name = "AT45DB161D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1822 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1823 | .manufacture_id = ATMEL_ID, |
| 1824 | .model_id = AT_45DB161D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1825 | .total_size = 2048 /* Size can only be determined from status register */, |
| 1826 | .page_size = 512 /* Size can only be determined from status register */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1827 | .tested = TEST_BAD_READ, |
| 1828 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1829 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1830 | .write = NULL, |
| 1831 | .read = NULL, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1832 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1833 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1834 | { |
| 1835 | .vendor = "Atmel", |
| 1836 | .name = "AT45DB321C", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1837 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1838 | .manufacture_id = ATMEL_ID, |
| 1839 | .model_id = AT_45DB321C, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1840 | .total_size = 4224 /* No power of two sizes */, |
| 1841 | .page_size = 528 /* No power of two sizes */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1842 | .tested = TEST_BAD_READ, |
| 1843 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1844 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1845 | .write = NULL, |
| 1846 | .read = NULL /* Incompatible read */, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1847 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1848 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1849 | { |
| 1850 | .vendor = "Atmel", |
| 1851 | .name = "AT45DB321D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1852 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1853 | .manufacture_id = ATMEL_ID, |
| 1854 | .model_id = AT_45DB321D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1855 | .total_size = 4096 /* Size can only be determined from status register */, |
| 1856 | .page_size = 512 /* Size can only be determined from status register */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1857 | .tested = TEST_BAD_READ, |
| 1858 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1859 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1860 | .write = NULL, |
| 1861 | .read = NULL, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1862 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1863 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1864 | { |
| 1865 | .vendor = "Atmel", |
| 1866 | .name = "AT45DB642D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1867 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1868 | .manufacture_id = ATMEL_ID, |
| 1869 | .model_id = AT_45DB642D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1870 | .total_size = 8192 /* Size can only be determined from status register */, |
| 1871 | .page_size = 1024 /* Size can only be determined from status register */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1872 | .tested = TEST_BAD_READ, |
| 1873 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1874 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1875 | .write = NULL, |
| 1876 | .read = NULL, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1877 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1878 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1879 | { |
| 1880 | .vendor = "Atmel", |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 1881 | .name = "AT49BV512", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 1882 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 1883 | .manufacture_id = ATMEL_ID, |
| 1884 | .model_id = AT_49BV512, |
| 1885 | .total_size = 64, |
| 1886 | .page_size = 64, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1887 | .feature_bits = FEATURE_EITHER_RESET, |
| 1888 | .tested = TEST_UNTESTED, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 1889 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 1890 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1891 | .block_erasers = |
| 1892 | { |
| 1893 | { |
| 1894 | .eraseblocks = { {64 * 1024, 1} }, |
| 1895 | .block_erase = erase_chip_block_jedec, |
| 1896 | } |
| 1897 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1898 | .write = write_jedec_1, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 1899 | .read = read_memmapped, |
| 1900 | }, |
| 1901 | |
| 1902 | { |
| 1903 | .vendor = "Atmel", |
Andrew Morgan | 1a5eaa1 | 2010-06-07 14:10:55 +0000 | [diff] [blame] | 1904 | .name = "AT49F020", |
| 1905 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 1906 | .manufacture_id = ATMEL_ID, |
| 1907 | .model_id = AT_49F020, |
| 1908 | .total_size = 256, |
| 1909 | .page_size = 256, |
| 1910 | .feature_bits = FEATURE_EITHER_RESET, |
| 1911 | .tested = TEST_OK_PREW, |
| 1912 | .probe = probe_jedec, |
| 1913 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 1914 | .block_erasers = |
| 1915 | { |
| 1916 | { |
| 1917 | .eraseblocks = { {256 * 1024, 1} }, |
| 1918 | .block_erase = erase_chip_block_jedec, |
| 1919 | } |
| 1920 | }, |
| 1921 | .write = write_jedec_1, |
| 1922 | .read = read_memmapped, |
| 1923 | }, |
| 1924 | |
| 1925 | { |
| 1926 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1927 | .name = "AT49F002(N)", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 1928 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1929 | .manufacture_id = ATMEL_ID, |
| 1930 | .model_id = AT_49F002N, |
| 1931 | .total_size = 256, |
| 1932 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1933 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1934 | .tested = TEST_UNTESTED, |
| 1935 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 1936 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1937 | .block_erasers = |
| 1938 | { |
| 1939 | { |
| 1940 | .eraseblocks = { |
| 1941 | {16 * 1024, 1}, |
| 1942 | {8 * 1024, 2}, |
| 1943 | {96 * 1024, 1}, |
| 1944 | {128 * 1024, 1}, |
| 1945 | }, |
| 1946 | .block_erase = erase_sector_jedec, |
| 1947 | }, { |
| 1948 | .eraseblocks = { {256 * 1024, 1} }, |
| 1949 | .block_erase = erase_chip_block_jedec, |
| 1950 | } |
| 1951 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1952 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 1953 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1954 | }, |
| 1955 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1956 | { |
| 1957 | .vendor = "Atmel", |
| 1958 | .name = "AT49F002(N)T", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 1959 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1960 | .manufacture_id = ATMEL_ID, |
| 1961 | .model_id = AT_49F002NT, |
| 1962 | .total_size = 256, |
| 1963 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1964 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 6093969 | 2010-03-17 00:05:59 +0000 | [diff] [blame] | 1965 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1966 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 1967 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1968 | .block_erasers = |
| 1969 | { |
| 1970 | { |
| 1971 | .eraseblocks = { |
| 1972 | {128 * 1024, 1}, |
| 1973 | {96 * 1024, 1}, |
| 1974 | {8 * 1024, 2}, |
| 1975 | {16 * 1024, 1}, |
| 1976 | }, |
| 1977 | .block_erase = erase_sector_jedec, |
| 1978 | }, { |
| 1979 | .eraseblocks = { {256 * 1024, 1} }, |
| 1980 | .block_erase = erase_chip_block_jedec, |
| 1981 | } |
| 1982 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1983 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 1984 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1985 | }, |
| 1986 | |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 1987 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1988 | .vendor = "EMST", |
| 1989 | .name = "F49B002UA", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 1990 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1991 | .manufacture_id = EMST_ID, |
| 1992 | .model_id = EMST_F49B002UA, |
| 1993 | .total_size = 256, |
| 1994 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1995 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1996 | .tested = TEST_UNTESTED, |
| 1997 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 1998 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1999 | .block_erasers = |
| 2000 | { |
| 2001 | { |
| 2002 | .eraseblocks = { |
| 2003 | {128 * 1024, 1}, |
| 2004 | {96 * 1024, 1}, |
| 2005 | {8 * 1024, 2}, |
| 2006 | {16 * 1024, 1}, |
| 2007 | }, |
| 2008 | .block_erase = erase_sector_jedec, |
| 2009 | }, { |
| 2010 | .eraseblocks = { {256 * 1024, 1} }, |
| 2011 | .block_erase = erase_chip_block_jedec, |
| 2012 | } |
| 2013 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2014 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2015 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2016 | }, |
| 2017 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2018 | { |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 2019 | .vendor = "EMST", |
| 2020 | .name = "F25L008A", |
| 2021 | .bustype = CHIP_BUSTYPE_SPI, |
| 2022 | .manufacture_id = EMST_ID, |
| 2023 | .model_id = EMST_F25L008A, |
| 2024 | .total_size = 1024, |
| 2025 | .page_size = 256, |
| 2026 | .tested = TEST_UNTESTED, |
| 2027 | .probe = probe_spi_rdid, |
| 2028 | .probe_timing = TIMING_ZERO, |
| 2029 | .block_erasers = |
| 2030 | { |
| 2031 | { |
| 2032 | .eraseblocks = { {4 * 1024, 256} }, |
| 2033 | .block_erase = spi_block_erase_20, |
| 2034 | }, { |
| 2035 | .eraseblocks = { {64 * 1024, 16} }, |
| 2036 | .block_erase = spi_block_erase_d8, |
| 2037 | }, { |
| 2038 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2039 | .block_erase = spi_block_erase_60, |
| 2040 | }, { |
| 2041 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2042 | .block_erase = spi_block_erase_c7, |
| 2043 | } |
| 2044 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2045 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 9a795d8 | 2010-07-14 16:19:05 +0000 | [diff] [blame] | 2046 | .write = spi_chip_write_1, |
Michael Karcher | 4497e86 | 2010-07-10 19:34:15 +0000 | [diff] [blame] | 2047 | .read = spi_chip_read, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 2048 | }, |
| 2049 | |
| 2050 | { |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2051 | .vendor = "Eon", |
| 2052 | .name = "EN25B05", |
| 2053 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2054 | .manufacture_id = EON_ID_NOPREFIX, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2055 | .model_id = EN_25B05, |
| 2056 | .total_size = 64, |
| 2057 | .page_size = 256, |
| 2058 | .tested = TEST_UNTESTED, |
| 2059 | .probe = probe_spi_rdid, |
| 2060 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2061 | .block_erasers = |
| 2062 | { |
| 2063 | { |
| 2064 | .eraseblocks = { |
| 2065 | {4 * 1024, 2}, |
| 2066 | {8 * 1024, 1}, |
| 2067 | {16 * 1024, 1}, |
| 2068 | {32 * 1024, 1}, |
| 2069 | }, |
| 2070 | .block_erase = spi_block_erase_d8, |
| 2071 | }, { |
| 2072 | .eraseblocks = { {64 * 1024, 1} }, |
| 2073 | .block_erase = spi_block_erase_c7, |
| 2074 | } |
| 2075 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2076 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2077 | .write = spi_chip_write_256, |
| 2078 | .read = spi_chip_read, |
| 2079 | }, |
| 2080 | |
| 2081 | { |
| 2082 | .vendor = "Eon", |
| 2083 | .name = "EN25B05T", |
| 2084 | .bustype = CHIP_BUSTYPE_SPI, |
| 2085 | .manufacture_id = EON_ID_NOPREFIX, |
| 2086 | .model_id = EN_25B05, |
| 2087 | .total_size = 64, |
| 2088 | .page_size = 256, |
| 2089 | .tested = TEST_UNTESTED, |
| 2090 | .probe = probe_spi_rdid, |
| 2091 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2092 | .block_erasers = |
| 2093 | { |
| 2094 | { |
| 2095 | .eraseblocks = { |
| 2096 | {32 * 1024, 1}, |
| 2097 | {16 * 1024, 1}, |
| 2098 | {8 * 1024, 1}, |
| 2099 | {4 * 1024, 2}, |
| 2100 | }, |
| 2101 | .block_erase = spi_block_erase_d8, |
| 2102 | }, { |
| 2103 | .eraseblocks = { {64 * 1024, 1} }, |
| 2104 | .block_erase = spi_block_erase_c7, |
| 2105 | } |
| 2106 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2107 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2108 | .write = spi_chip_write_256, |
| 2109 | .read = spi_chip_read, |
| 2110 | }, |
| 2111 | |
| 2112 | { |
| 2113 | .vendor = "Eon", |
| 2114 | .name = "EN25B10", |
| 2115 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2116 | .manufacture_id = EON_ID_NOPREFIX, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2117 | .model_id = EN_25B10, |
| 2118 | .total_size = 128, |
| 2119 | .page_size = 256, |
| 2120 | .tested = TEST_UNTESTED, |
| 2121 | .probe = probe_spi_rdid, |
| 2122 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2123 | .block_erasers = |
| 2124 | { |
| 2125 | { |
| 2126 | .eraseblocks = { |
| 2127 | {4 * 1024, 2}, |
| 2128 | {8 * 1024, 1}, |
| 2129 | {16 * 1024, 1}, |
| 2130 | {32 * 1024, 3}, |
| 2131 | }, |
| 2132 | .block_erase = spi_block_erase_d8, |
| 2133 | }, { |
| 2134 | .eraseblocks = { {128 * 1024, 1} }, |
| 2135 | .block_erase = spi_block_erase_c7, |
| 2136 | } |
| 2137 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2138 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2139 | .write = spi_chip_write_256, |
| 2140 | .read = spi_chip_read, |
| 2141 | }, |
| 2142 | |
| 2143 | { |
| 2144 | .vendor = "Eon", |
| 2145 | .name = "EN25B10T", |
| 2146 | .bustype = CHIP_BUSTYPE_SPI, |
| 2147 | .manufacture_id = EON_ID_NOPREFIX, |
| 2148 | .model_id = EN_25B10, |
| 2149 | .total_size = 128, |
| 2150 | .page_size = 256, |
| 2151 | .tested = TEST_UNTESTED, |
| 2152 | .probe = probe_spi_rdid, |
| 2153 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2154 | .block_erasers = |
| 2155 | { |
| 2156 | { |
| 2157 | .eraseblocks = { |
| 2158 | {32 * 1024, 3}, |
| 2159 | {16 * 1024, 1}, |
| 2160 | {8 * 1024, 1}, |
| 2161 | {4 * 1024, 2}, |
| 2162 | }, |
| 2163 | .block_erase = spi_block_erase_d8, |
| 2164 | }, { |
| 2165 | .eraseblocks = { {128 * 1024, 1} }, |
| 2166 | .block_erase = spi_block_erase_c7, |
| 2167 | } |
| 2168 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2169 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2170 | .write = spi_chip_write_256, |
| 2171 | .read = spi_chip_read, |
| 2172 | }, |
| 2173 | |
| 2174 | { |
| 2175 | .vendor = "Eon", |
| 2176 | .name = "EN25B20", |
| 2177 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2178 | .manufacture_id = EON_ID_NOPREFIX, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2179 | .model_id = EN_25B20, |
| 2180 | .total_size = 256, |
| 2181 | .page_size = 256, |
| 2182 | .tested = TEST_UNTESTED, |
| 2183 | .probe = probe_spi_rdid, |
| 2184 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2185 | .block_erasers = |
| 2186 | { |
| 2187 | { |
| 2188 | .eraseblocks = { |
| 2189 | {4 * 1024, 2}, |
| 2190 | {8 * 1024, 1}, |
| 2191 | {16 * 1024, 1}, |
| 2192 | {32 * 1024, 1}, |
| 2193 | {64 * 1024, 3} |
| 2194 | }, |
| 2195 | .block_erase = spi_block_erase_d8, |
| 2196 | }, { |
| 2197 | .eraseblocks = { {256 * 1024, 1} }, |
| 2198 | .block_erase = spi_block_erase_c7, |
| 2199 | } |
| 2200 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2201 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2202 | .write = spi_chip_write_256, |
| 2203 | .read = spi_chip_read, |
| 2204 | }, |
| 2205 | |
| 2206 | { |
| 2207 | .vendor = "Eon", |
| 2208 | .name = "EN25B20T", |
| 2209 | .bustype = CHIP_BUSTYPE_SPI, |
| 2210 | .manufacture_id = EON_ID_NOPREFIX, |
| 2211 | .model_id = EN_25B20, |
| 2212 | .total_size = 256, |
| 2213 | .page_size = 256, |
| 2214 | .tested = TEST_UNTESTED, |
| 2215 | .probe = probe_spi_rdid, |
| 2216 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2217 | .block_erasers = |
| 2218 | { |
| 2219 | { |
| 2220 | .eraseblocks = { |
| 2221 | {64 * 1024, 3}, |
| 2222 | {32 * 1024, 1}, |
| 2223 | {16 * 1024, 1}, |
| 2224 | {8 * 1024, 1}, |
| 2225 | {4 * 1024, 2}, |
| 2226 | }, |
| 2227 | .block_erase = spi_block_erase_d8, |
| 2228 | }, { |
| 2229 | .eraseblocks = { {256 * 1024, 1} }, |
| 2230 | .block_erase = spi_block_erase_c7, |
| 2231 | } |
| 2232 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2233 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2234 | .write = spi_chip_write_256, |
| 2235 | .read = spi_chip_read, |
| 2236 | }, |
| 2237 | |
| 2238 | { |
| 2239 | .vendor = "Eon", |
| 2240 | .name = "EN25B40", |
| 2241 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2242 | .manufacture_id = EON_ID_NOPREFIX, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2243 | .model_id = EN_25B40, |
| 2244 | .total_size = 512, |
| 2245 | .page_size = 256, |
| 2246 | .tested = TEST_UNTESTED, |
| 2247 | .probe = probe_spi_rdid, |
| 2248 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2249 | .block_erasers = |
| 2250 | { |
| 2251 | { |
| 2252 | .eraseblocks = { |
| 2253 | {4 * 1024, 2}, |
| 2254 | {8 * 1024, 1}, |
| 2255 | {16 * 1024, 1}, |
| 2256 | {32 * 1024, 1}, |
| 2257 | {64 * 1024, 7} |
| 2258 | }, |
| 2259 | .block_erase = spi_block_erase_d8, |
| 2260 | }, { |
| 2261 | .eraseblocks = { {512 * 1024, 1} }, |
| 2262 | .block_erase = spi_block_erase_c7, |
| 2263 | } |
| 2264 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2265 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2266 | .write = spi_chip_write_256, |
| 2267 | .read = spi_chip_read, |
| 2268 | }, |
| 2269 | |
| 2270 | { |
| 2271 | .vendor = "Eon", |
| 2272 | .name = "EN25B40T", |
| 2273 | .bustype = CHIP_BUSTYPE_SPI, |
| 2274 | .manufacture_id = EON_ID_NOPREFIX, |
| 2275 | .model_id = EN_25B40, |
| 2276 | .total_size = 512, |
| 2277 | .page_size = 256, |
| 2278 | .tested = TEST_UNTESTED, |
| 2279 | .probe = probe_spi_rdid, |
| 2280 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2281 | .block_erasers = |
| 2282 | { |
| 2283 | { |
| 2284 | .eraseblocks = { |
| 2285 | {64 * 1024, 7}, |
| 2286 | {32 * 1024, 1}, |
| 2287 | {16 * 1024, 1}, |
| 2288 | {8 * 1024, 1}, |
| 2289 | {4 * 1024, 2}, |
| 2290 | }, |
| 2291 | .block_erase = spi_block_erase_d8, |
| 2292 | }, { |
| 2293 | .eraseblocks = { {512 * 1024, 1} }, |
| 2294 | .block_erase = spi_block_erase_c7, |
| 2295 | } |
| 2296 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2297 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2298 | .write = spi_chip_write_256, |
| 2299 | .read = spi_chip_read, |
| 2300 | }, |
| 2301 | |
| 2302 | { |
| 2303 | .vendor = "Eon", |
| 2304 | .name = "EN25B80", |
| 2305 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2306 | .manufacture_id = EON_ID_NOPREFIX, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2307 | .model_id = EN_25B80, |
| 2308 | .total_size = 1024, |
| 2309 | .page_size = 256, |
| 2310 | .tested = TEST_UNTESTED, |
| 2311 | .probe = probe_spi_rdid, |
| 2312 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2313 | .block_erasers = |
| 2314 | { |
| 2315 | { |
| 2316 | .eraseblocks = { |
| 2317 | {4 * 1024, 2}, |
| 2318 | {8 * 1024, 1}, |
| 2319 | {16 * 1024, 1}, |
| 2320 | {32 * 1024, 1}, |
| 2321 | {64 * 1024, 15} |
| 2322 | }, |
| 2323 | .block_erase = spi_block_erase_d8, |
| 2324 | }, { |
| 2325 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2326 | .block_erase = spi_block_erase_c7, |
| 2327 | } |
| 2328 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2329 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2330 | .write = spi_chip_write_256, |
| 2331 | .read = spi_chip_read, |
| 2332 | }, |
| 2333 | |
| 2334 | { |
| 2335 | .vendor = "Eon", |
| 2336 | .name = "EN25B80T", |
| 2337 | .bustype = CHIP_BUSTYPE_SPI, |
| 2338 | .manufacture_id = EON_ID_NOPREFIX, |
| 2339 | .model_id = EN_25B80, |
| 2340 | .total_size = 1024, |
| 2341 | .page_size = 256, |
| 2342 | .tested = TEST_UNTESTED, |
| 2343 | .probe = probe_spi_rdid, |
| 2344 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2345 | .block_erasers = |
| 2346 | { |
| 2347 | { |
| 2348 | .eraseblocks = { |
| 2349 | {64 * 1024, 15}, |
| 2350 | {32 * 1024, 1}, |
| 2351 | {16 * 1024, 1}, |
| 2352 | {8 * 1024, 1}, |
| 2353 | {4 * 1024, 2}, |
| 2354 | }, |
| 2355 | .block_erase = spi_block_erase_d8, |
| 2356 | }, { |
| 2357 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2358 | .block_erase = spi_block_erase_c7, |
| 2359 | } |
| 2360 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2361 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2362 | .write = spi_chip_write_256, |
| 2363 | .read = spi_chip_read, |
| 2364 | }, |
| 2365 | |
| 2366 | { |
| 2367 | .vendor = "Eon", |
| 2368 | .name = "EN25B16", |
| 2369 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2370 | .manufacture_id = EON_ID_NOPREFIX, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2371 | .model_id = EN_25B16, |
| 2372 | .total_size = 2048, |
| 2373 | .page_size = 256, |
| 2374 | .tested = TEST_UNTESTED, |
| 2375 | .probe = probe_spi_rdid, |
| 2376 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2377 | .block_erasers = |
| 2378 | { |
| 2379 | { |
| 2380 | .eraseblocks = { |
| 2381 | {4 * 1024, 2}, |
| 2382 | {8 * 1024, 1}, |
| 2383 | {16 * 1024, 1}, |
| 2384 | {32 * 1024, 1}, |
| 2385 | {64 * 1024, 31}, |
| 2386 | }, |
| 2387 | .block_erase = spi_block_erase_d8, |
| 2388 | }, { |
| 2389 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2390 | .block_erase = spi_block_erase_c7, |
| 2391 | } |
| 2392 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2393 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2394 | .write = spi_chip_write_256, |
| 2395 | .read = spi_chip_read, |
| 2396 | }, |
| 2397 | |
| 2398 | { |
| 2399 | .vendor = "Eon", |
| 2400 | .name = "EN25B16T", |
| 2401 | .bustype = CHIP_BUSTYPE_SPI, |
| 2402 | .manufacture_id = EON_ID_NOPREFIX, |
| 2403 | .model_id = EN_25B16, |
| 2404 | .total_size = 2048, |
| 2405 | .page_size = 256, |
| 2406 | .tested = TEST_UNTESTED, |
| 2407 | .probe = probe_spi_rdid, |
| 2408 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2409 | .block_erasers = |
| 2410 | { |
| 2411 | { |
| 2412 | .eraseblocks = { |
| 2413 | {64 * 1024, 31}, |
| 2414 | {32 * 1024, 1}, |
| 2415 | {16 * 1024, 1}, |
| 2416 | {8 * 1024, 1}, |
| 2417 | {4 * 1024, 2}, |
| 2418 | }, |
| 2419 | .block_erase = spi_block_erase_d8, |
| 2420 | }, { |
| 2421 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2422 | .block_erase = spi_block_erase_c7, |
| 2423 | } |
| 2424 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2425 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2426 | .write = spi_chip_write_256, |
| 2427 | .read = spi_chip_read, |
| 2428 | }, |
| 2429 | |
| 2430 | { |
| 2431 | .vendor = "Eon", |
| 2432 | .name = "EN25B32", |
| 2433 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2434 | .manufacture_id = EON_ID_NOPREFIX, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2435 | .model_id = EN_25B32, |
| 2436 | .total_size = 4096, |
| 2437 | .page_size = 256, |
| 2438 | .tested = TEST_UNTESTED, |
| 2439 | .probe = probe_spi_rdid, |
| 2440 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2441 | .block_erasers = |
| 2442 | { |
| 2443 | { |
| 2444 | .eraseblocks = { |
| 2445 | {4 * 1024, 2}, |
| 2446 | {8 * 1024, 1}, |
| 2447 | {16 * 1024, 1}, |
| 2448 | {32 * 1024, 1}, |
| 2449 | {64 * 1024, 63}, |
| 2450 | }, |
| 2451 | .block_erase = spi_block_erase_d8, |
| 2452 | }, { |
| 2453 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 2454 | .block_erase = spi_block_erase_c7, |
| 2455 | } |
| 2456 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2457 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2458 | .write = spi_chip_write_256, |
| 2459 | .read = spi_chip_read, |
| 2460 | }, |
| 2461 | |
| 2462 | { |
| 2463 | .vendor = "Eon", |
| 2464 | .name = "EN25B32T", |
| 2465 | .bustype = CHIP_BUSTYPE_SPI, |
| 2466 | .manufacture_id = EON_ID_NOPREFIX, |
| 2467 | .model_id = EN_25B32, |
| 2468 | .total_size = 4096, |
| 2469 | .page_size = 256, |
| 2470 | .tested = TEST_UNTESTED, |
| 2471 | .probe = probe_spi_rdid, |
| 2472 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2473 | .block_erasers = |
| 2474 | { |
| 2475 | { |
| 2476 | .eraseblocks = { |
| 2477 | {64 * 1024, 63}, |
| 2478 | {32 * 1024, 1}, |
| 2479 | {16 * 1024, 1}, |
| 2480 | {8 * 1024, 1}, |
| 2481 | {4 * 1024, 2}, |
| 2482 | }, |
| 2483 | .block_erase = spi_block_erase_d8, |
| 2484 | }, { |
| 2485 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 2486 | .block_erase = spi_block_erase_c7, |
| 2487 | } |
| 2488 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2489 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2490 | .write = spi_chip_write_256, |
| 2491 | .read = spi_chip_read, |
| 2492 | }, |
| 2493 | |
| 2494 | { |
| 2495 | .vendor = "Eon", |
| 2496 | .name = "EN25B64", |
| 2497 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2498 | .manufacture_id = EON_ID_NOPREFIX, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2499 | .model_id = EN_25B64, |
| 2500 | .total_size = 8192, |
| 2501 | .page_size = 256, |
| 2502 | .tested = TEST_UNTESTED, |
| 2503 | .probe = probe_spi_rdid, |
| 2504 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2505 | .block_erasers = |
| 2506 | { |
| 2507 | { |
| 2508 | .eraseblocks = { |
| 2509 | {4 * 1024, 2}, |
| 2510 | {8 * 1024, 1}, |
| 2511 | {16 * 1024, 1}, |
| 2512 | {32 * 1024, 1}, |
| 2513 | {64 * 1024, 127}, |
| 2514 | }, |
| 2515 | .block_erase = spi_block_erase_d8, |
| 2516 | }, { |
| 2517 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 2518 | .block_erase = spi_block_erase_c7, |
| 2519 | } |
| 2520 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2521 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2522 | .write = spi_chip_write_256, |
| 2523 | .read = spi_chip_read, |
| 2524 | }, |
| 2525 | |
| 2526 | { |
| 2527 | .vendor = "Eon", |
| 2528 | .name = "EN25B64T", |
| 2529 | .bustype = CHIP_BUSTYPE_SPI, |
| 2530 | .manufacture_id = EON_ID_NOPREFIX, |
| 2531 | .model_id = EN_25B64, |
| 2532 | .total_size = 8192, |
| 2533 | .page_size = 256, |
| 2534 | .tested = TEST_UNTESTED, |
| 2535 | .probe = probe_spi_rdid, |
| 2536 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2537 | .block_erasers = |
| 2538 | { |
| 2539 | { |
| 2540 | .eraseblocks = { |
| 2541 | {64 * 1024, 127}, |
| 2542 | {32 * 1024, 1}, |
| 2543 | {16 * 1024, 1}, |
| 2544 | {8 * 1024, 1}, |
| 2545 | {4 * 1024, 2}, |
| 2546 | }, |
| 2547 | .block_erase = spi_block_erase_d8, |
| 2548 | }, { |
| 2549 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 2550 | .block_erase = spi_block_erase_c7, |
| 2551 | } |
| 2552 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2553 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2554 | .write = spi_chip_write_256, |
| 2555 | .read = spi_chip_read, |
| 2556 | }, |
| 2557 | |
| 2558 | { |
| 2559 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2560 | .name = "EN25D16", |
| 2561 | .bustype = CHIP_BUSTYPE_SPI, |
| 2562 | .manufacture_id = EON_ID_NOPREFIX, |
| 2563 | .model_id = EN_25D16, |
| 2564 | .total_size = 2048, |
| 2565 | .page_size = 256, |
| 2566 | .tested = TEST_UNTESTED, |
| 2567 | .probe = probe_spi_rdid, |
| 2568 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2569 | .block_erasers = |
| 2570 | { |
| 2571 | { |
| 2572 | .eraseblocks = { {4 * 1024, 512} }, |
| 2573 | .block_erase = spi_block_erase_20, |
| 2574 | }, { |
| 2575 | .eraseblocks = { {64 * 1024, 32} }, |
| 2576 | .block_erase = spi_block_erase_d8, |
| 2577 | }, { |
| 2578 | .eraseblocks = { {64 * 1024, 32} }, |
| 2579 | .block_erase = spi_block_erase_52, |
| 2580 | }, { |
| 2581 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2582 | .block_erase = spi_block_erase_60, |
| 2583 | }, { |
| 2584 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2585 | .block_erase = spi_block_erase_c7, |
| 2586 | } |
| 2587 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2588 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2589 | .write = spi_chip_write_256, |
| 2590 | .read = spi_chip_read, |
| 2591 | }, |
| 2592 | |
| 2593 | { |
| 2594 | .vendor = "Eon", |
| 2595 | .name = "EN25F05", |
| 2596 | .bustype = CHIP_BUSTYPE_SPI, |
| 2597 | .manufacture_id = EON_ID_NOPREFIX, |
| 2598 | .model_id = EN_25F05, |
| 2599 | .total_size = 64, |
| 2600 | .page_size = 256, |
| 2601 | .tested = TEST_UNTESTED, |
| 2602 | .probe = probe_spi_rdid, |
| 2603 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2604 | .block_erasers = |
| 2605 | { |
| 2606 | { |
| 2607 | .eraseblocks = { {4 * 1024, 16} }, |
| 2608 | .block_erase = spi_block_erase_20, |
| 2609 | }, { |
| 2610 | .eraseblocks = { {32 * 1024, 2} }, |
| 2611 | .block_erase = spi_block_erase_d8, |
| 2612 | }, { |
| 2613 | .eraseblocks = { {32 * 1024, 2} }, |
| 2614 | .block_erase = spi_block_erase_52, |
| 2615 | }, { |
| 2616 | .eraseblocks = { {64 * 1024, 1} }, |
| 2617 | .block_erase = spi_block_erase_60, |
| 2618 | }, { |
| 2619 | .eraseblocks = { {64 * 1024, 1} }, |
| 2620 | .block_erase = spi_block_erase_c7, |
| 2621 | } |
| 2622 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2623 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2624 | .write = spi_chip_write_256, |
| 2625 | .read = spi_chip_read, |
| 2626 | }, |
| 2627 | |
| 2628 | { |
| 2629 | .vendor = "Eon", |
| 2630 | .name = "EN25F10", |
| 2631 | .bustype = CHIP_BUSTYPE_SPI, |
| 2632 | .manufacture_id = EON_ID_NOPREFIX, |
| 2633 | .model_id = EN_25F10, |
| 2634 | .total_size = 128, |
| 2635 | .page_size = 256, |
| 2636 | .tested = TEST_UNTESTED, |
| 2637 | .probe = probe_spi_rdid, |
| 2638 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2639 | .block_erasers = |
| 2640 | { |
| 2641 | { |
| 2642 | .eraseblocks = { {4 * 1024, 32} }, |
| 2643 | .block_erase = spi_block_erase_20, |
| 2644 | }, { |
| 2645 | .eraseblocks = { {32 * 1024, 4} }, |
| 2646 | .block_erase = spi_block_erase_d8, |
| 2647 | }, { |
| 2648 | .eraseblocks = { {32 * 1024, 4} }, |
| 2649 | .block_erase = spi_block_erase_52, |
| 2650 | }, { |
| 2651 | .eraseblocks = { {128 * 1024, 1} }, |
| 2652 | .block_erase = spi_block_erase_60, |
| 2653 | }, { |
| 2654 | .eraseblocks = { {128 * 1024, 1} }, |
| 2655 | .block_erase = spi_block_erase_c7, |
| 2656 | } |
| 2657 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2658 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2659 | .write = spi_chip_write_256, |
| 2660 | .read = spi_chip_read, |
| 2661 | }, |
| 2662 | |
| 2663 | { |
| 2664 | .vendor = "Eon", |
| 2665 | .name = "EN25F20", |
| 2666 | .bustype = CHIP_BUSTYPE_SPI, |
| 2667 | .manufacture_id = EON_ID_NOPREFIX, |
| 2668 | .model_id = EN_25F20, |
| 2669 | .total_size = 256, |
| 2670 | .page_size = 256, |
| 2671 | .tested = TEST_UNTESTED, |
| 2672 | .probe = probe_spi_rdid, |
| 2673 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2674 | .block_erasers = |
| 2675 | { |
| 2676 | { |
| 2677 | .eraseblocks = { {4 * 1024, 64} }, |
| 2678 | .block_erase = spi_block_erase_20, |
| 2679 | }, { |
| 2680 | .eraseblocks = { {64 * 1024, 4} }, |
| 2681 | .block_erase = spi_block_erase_d8, |
| 2682 | }, { |
| 2683 | .eraseblocks = { {64 * 1024, 4} }, |
| 2684 | .block_erase = spi_block_erase_52, |
| 2685 | }, { |
| 2686 | .eraseblocks = { {256 * 1024, 1} }, |
| 2687 | .block_erase = spi_block_erase_60, |
| 2688 | }, { |
| 2689 | .eraseblocks = { {256 * 1024, 1} }, |
| 2690 | .block_erase = spi_block_erase_c7, |
| 2691 | } |
| 2692 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2693 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2694 | .write = spi_chip_write_256, |
| 2695 | .read = spi_chip_read, |
| 2696 | }, |
| 2697 | |
| 2698 | { |
| 2699 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2700 | .name = "EN25F40", |
| 2701 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2702 | .manufacture_id = EON_ID_NOPREFIX, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2703 | .model_id = EN_25F40, |
| 2704 | .total_size = 512, |
| 2705 | .page_size = 256, |
Carl-Daniel Hailfinger | faaa2b2 | 2009-06-22 10:06:28 +0000 | [diff] [blame] | 2706 | .tested = TEST_OK_PROBE, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2707 | .probe = probe_spi_rdid, |
| 2708 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2709 | .block_erasers = |
| 2710 | { |
| 2711 | { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2712 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2713 | .block_erase = spi_block_erase_20, |
| 2714 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2715 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2716 | .block_erase = spi_block_erase_d8, |
| 2717 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2718 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2719 | .block_erase = spi_block_erase_60, |
| 2720 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2721 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2722 | .block_erase = spi_block_erase_c7, |
| 2723 | }, |
| 2724 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2725 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2726 | .write = spi_chip_write_256, |
| 2727 | .read = spi_chip_read, |
| 2728 | }, |
| 2729 | |
| 2730 | { |
| 2731 | .vendor = "Eon", |
| 2732 | .name = "EN25F80", |
| 2733 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2734 | .manufacture_id = EON_ID_NOPREFIX, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2735 | .model_id = EN_25F80, |
| 2736 | .total_size = 1024, |
| 2737 | .page_size = 256, |
Uwe Hermann | ea5425b | 2010-05-30 17:00:19 +0000 | [diff] [blame] | 2738 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2739 | .probe = probe_spi_rdid, |
| 2740 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2741 | .block_erasers = |
| 2742 | { |
| 2743 | { |
| 2744 | .eraseblocks = { {4 * 1024, 256} }, |
| 2745 | .block_erase = spi_block_erase_20, |
| 2746 | }, { |
| 2747 | .eraseblocks = { {64 * 1024, 16} }, |
| 2748 | .block_erase = spi_block_erase_d8, |
| 2749 | }, { |
| 2750 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2751 | .block_erase = spi_block_erase_60, |
| 2752 | }, { |
| 2753 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2754 | .block_erase = spi_block_erase_c7, |
| 2755 | } |
| 2756 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2757 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2758 | .write = spi_chip_write_256, |
| 2759 | .read = spi_chip_read, |
| 2760 | }, |
| 2761 | |
| 2762 | { |
| 2763 | .vendor = "Eon", |
| 2764 | .name = "EN25F16", |
| 2765 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2766 | .manufacture_id = EON_ID_NOPREFIX, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2767 | .model_id = EN_25F16, |
| 2768 | .total_size = 2048, |
| 2769 | .page_size = 256, |
| 2770 | .tested = TEST_UNTESTED, |
| 2771 | .probe = probe_spi_rdid, |
| 2772 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2773 | .block_erasers = |
| 2774 | { |
| 2775 | { |
| 2776 | .eraseblocks = { {4 * 1024, 512} }, |
| 2777 | .block_erase = spi_block_erase_20, |
| 2778 | }, { |
| 2779 | .eraseblocks = { {64 * 1024, 32} }, |
| 2780 | .block_erase = spi_block_erase_d8, |
| 2781 | }, { |
| 2782 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2783 | .block_erase = spi_block_erase_60, |
| 2784 | }, { |
| 2785 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2786 | .block_erase = spi_block_erase_c7, |
| 2787 | } |
| 2788 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2789 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2790 | .write = spi_chip_write_256, |
| 2791 | .read = spi_chip_read, |
| 2792 | }, |
| 2793 | |
| 2794 | { |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2795 | .vendor = "Eon", |
| 2796 | .name = "EN25F32", |
| 2797 | .bustype = CHIP_BUSTYPE_SPI, |
| 2798 | .manufacture_id = EON_ID_NOPREFIX, |
| 2799 | .model_id = EN_25F32, |
| 2800 | .total_size = 4096, |
| 2801 | .page_size = 256, |
| 2802 | .tested = TEST_UNTESTED, |
| 2803 | .probe = probe_spi_rdid, |
| 2804 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2805 | .block_erasers = |
| 2806 | { |
| 2807 | { |
| 2808 | .eraseblocks = { {4 * 1024, 1024} }, |
| 2809 | .block_erase = spi_block_erase_20, |
| 2810 | }, { |
| 2811 | .eraseblocks = { {64 * 1024, 64} }, |
| 2812 | .block_erase = spi_block_erase_d8, |
| 2813 | }, { |
| 2814 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 2815 | .block_erase = spi_block_erase_60, |
| 2816 | }, { |
| 2817 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 2818 | .block_erase = spi_block_erase_c7, |
| 2819 | } |
| 2820 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2821 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2822 | .write = spi_chip_write_256, |
| 2823 | .read = spi_chip_read, |
| 2824 | }, |
| 2825 | |
| 2826 | { |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 2827 | .vendor = "Eon", |
| 2828 | .name = "EN29F010", |
| 2829 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 2830 | .manufacture_id = EON_ID, |
| 2831 | .model_id = EN_29F010, |
| 2832 | .total_size = 128, |
| 2833 | .page_size = 128, |
| 2834 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 2835 | .tested = TEST_OK_PREW, |
| 2836 | .probe = probe_jedec, |
| 2837 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2838 | .block_erasers = |
| 2839 | { |
| 2840 | { |
| 2841 | .eraseblocks = { {16 * 1024, 8} }, |
| 2842 | .block_erase = erase_sector_jedec, |
| 2843 | }, |
| 2844 | { |
| 2845 | .eraseblocks = { {128 * 1024, 1} }, |
| 2846 | .block_erase = erase_chip_block_jedec, |
| 2847 | }, |
| 2848 | }, |
| 2849 | .write = write_jedec_1, |
| 2850 | .read = read_memmapped, |
| 2851 | }, |
| 2852 | |
| 2853 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 2854 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2855 | .name = "EN29F002(A)(N)B", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 2856 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2857 | .manufacture_id = EON_ID, |
| 2858 | .model_id = EN_29F002B, |
| 2859 | .total_size = 256, |
| 2860 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2861 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Michael Karcher | b90c221 | 2010-03-24 22:56:14 +0000 | [diff] [blame] | 2862 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2863 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2864 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2865 | .block_erasers = |
| 2866 | { |
| 2867 | { |
| 2868 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2869 | {16 * 1024, 1}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 2870 | {8 * 1024, 2}, |
| 2871 | {32 * 1024, 1}, |
| 2872 | {64 * 1024, 3}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2873 | }, |
| 2874 | .block_erase = erase_sector_jedec, |
| 2875 | }, { |
| 2876 | .eraseblocks = { {256 * 1024, 1} }, |
| 2877 | .block_erase = erase_chip_block_jedec, |
| 2878 | }, |
| 2879 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 2880 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2881 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2882 | }, |
| 2883 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2884 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 2885 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2886 | .name = "EN29F002(A)(N)T", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 2887 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2888 | .manufacture_id = EON_ID, |
| 2889 | .model_id = EN_29F002T, |
| 2890 | .total_size = 256, |
| 2891 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2892 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Uwe Hermann | 6093969 | 2010-03-17 00:05:59 +0000 | [diff] [blame] | 2893 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2894 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2895 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2896 | .block_erasers = |
| 2897 | { |
| 2898 | { |
| 2899 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2900 | {64 * 1024, 3}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 2901 | {32 * 1024, 1}, |
| 2902 | {8 * 1024, 2}, |
| 2903 | {16 * 1024, 1}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2904 | }, |
| 2905 | .block_erase = erase_sector_jedec, |
| 2906 | }, { |
| 2907 | .eraseblocks = { {256 * 1024, 1} }, |
| 2908 | .block_erase = erase_chip_block_jedec, |
| 2909 | }, |
| 2910 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 2911 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2912 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2913 | }, |
| 2914 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2915 | { |
| 2916 | .vendor = "Fujitsu", |
| 2917 | .name = "MBM29F004BC", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 2918 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2919 | .manufacture_id = FUJITSU_ID, |
| 2920 | .model_id = MBM29F004BC, |
| 2921 | .total_size = 512, |
| 2922 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2923 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2924 | .tested = TEST_UNTESTED, |
| 2925 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2926 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2927 | .block_erasers = |
| 2928 | { |
| 2929 | { |
| 2930 | .eraseblocks = { |
| 2931 | {16 * 1024, 1}, |
| 2932 | {8 * 1024, 2}, |
| 2933 | {32 * 1024, 1}, |
| 2934 | {64 * 1024, 7}, |
| 2935 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2936 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2937 | }, { |
| 2938 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2939 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2940 | }, |
| 2941 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2942 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2943 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2944 | }, |
| 2945 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2946 | { |
| 2947 | .vendor = "Fujitsu", |
| 2948 | .name = "MBM29F004TC", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 2949 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2950 | .manufacture_id = FUJITSU_ID, |
| 2951 | .model_id = MBM29F004TC, |
| 2952 | .total_size = 512, |
| 2953 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2954 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2955 | .tested = TEST_UNTESTED, |
| 2956 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2957 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2958 | .block_erasers = |
| 2959 | { |
| 2960 | { |
| 2961 | .eraseblocks = { |
| 2962 | {64 * 1024, 7}, |
| 2963 | {32 * 1024, 1}, |
| 2964 | {8 * 1024, 2}, |
| 2965 | {16 * 1024, 1}, |
| 2966 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2967 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2968 | }, { |
| 2969 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2970 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2971 | }, |
| 2972 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2973 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2974 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2975 | }, |
| 2976 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2977 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2978 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2979 | .vendor = "Fujitsu", |
| 2980 | .name = "MBM29F400BC", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 2981 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2982 | .manufacture_id = FUJITSU_ID, |
| 2983 | .model_id = MBM29F400BC, |
| 2984 | .total_size = 512, |
| 2985 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2986 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 2987 | .tested = TEST_BAD_WRITE, /* Implicit eraseblock layout in write_m29f400bt is broken. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2988 | .probe = probe_m29f400bt, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2989 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2990 | .block_erasers = |
| 2991 | { |
| 2992 | { |
| 2993 | .eraseblocks = { |
| 2994 | {16 * 1024, 1}, |
| 2995 | {8 * 1024, 2}, |
| 2996 | {32 * 1024, 1}, |
| 2997 | {64 * 1024, 7}, |
| 2998 | }, |
| 2999 | .block_erase = block_erase_m29f400bt, |
| 3000 | }, { |
| 3001 | .eraseblocks = { {512 * 1024, 1} }, |
| 3002 | .block_erase = block_erase_chip_m29f400bt, |
| 3003 | }, |
| 3004 | }, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 3005 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3006 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3007 | }, |
| 3008 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3009 | { |
| 3010 | .vendor = "Fujitsu", |
| 3011 | .name = "MBM29F400TC", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 3012 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3013 | .manufacture_id = FUJITSU_ID, |
| 3014 | .model_id = MBM29F400TC, |
| 3015 | .total_size = 512, |
| 3016 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3017 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3018 | .tested = TEST_UNTESTED, |
| 3019 | .probe = probe_m29f400bt, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 3020 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3021 | .block_erasers = |
| 3022 | { |
| 3023 | { |
| 3024 | .eraseblocks = { |
| 3025 | {64 * 1024, 7}, |
| 3026 | {32 * 1024, 1}, |
| 3027 | {8 * 1024, 2}, |
| 3028 | {16 * 1024, 1}, |
| 3029 | }, |
| 3030 | .block_erase = block_erase_m29f400bt, |
| 3031 | }, { |
| 3032 | .eraseblocks = { {512 * 1024, 1} }, |
| 3033 | .block_erase = block_erase_chip_m29f400bt, |
| 3034 | }, |
| 3035 | }, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 3036 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3037 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3038 | }, |
| 3039 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3040 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 3041 | .vendor = "Hyundai", |
| 3042 | .name = "HY29F002T", |
| 3043 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3044 | .manufacture_id = HYUNDAI_ID, |
| 3045 | .model_id = HY_29F002T, |
| 3046 | .total_size = 256, |
| 3047 | .page_size = 256 * 1024, |
| 3048 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
| 3049 | .tested = TEST_OK_PREW, |
| 3050 | .probe = probe_jedec, |
| 3051 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3052 | .block_erasers = |
| 3053 | { |
| 3054 | { |
| 3055 | .eraseblocks = { |
| 3056 | {64 * 1024, 3}, |
| 3057 | {32 * 1024, 1}, |
| 3058 | {8 * 1024, 2}, |
| 3059 | {16 * 1024, 1}, |
| 3060 | }, |
| 3061 | .block_erase = erase_sector_jedec, |
| 3062 | }, { |
| 3063 | .eraseblocks = { {256 * 1024, 1} }, |
| 3064 | .block_erase = erase_chip_block_jedec, |
| 3065 | }, |
| 3066 | }, |
| 3067 | .write = write_jedec_1, |
| 3068 | .read = read_memmapped, |
| 3069 | }, |
| 3070 | |
| 3071 | { |
| 3072 | .vendor = "Hyundai", |
| 3073 | .name = "HY29F002B", |
| 3074 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3075 | .manufacture_id = HYUNDAI_ID, |
| 3076 | .model_id = HY_29F002B, |
| 3077 | .total_size = 256, |
| 3078 | .page_size = 256 * 1024, |
| 3079 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
| 3080 | .tested = TEST_UNTESTED, |
| 3081 | .probe = probe_jedec, |
| 3082 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3083 | .block_erasers = |
| 3084 | { |
| 3085 | { |
| 3086 | .eraseblocks = { |
| 3087 | {16 * 1024, 1}, |
| 3088 | {8 * 1024, 2}, |
| 3089 | {32 * 1024, 1}, |
| 3090 | {64 * 1024, 3}, |
| 3091 | }, |
| 3092 | .block_erase = erase_sector_jedec, |
| 3093 | }, { |
| 3094 | .eraseblocks = { {256 * 1024, 1} }, |
| 3095 | .block_erase = erase_chip_block_jedec, |
| 3096 | }, |
| 3097 | }, |
| 3098 | .write = write_jedec_1, |
| 3099 | .read = read_memmapped, |
| 3100 | }, |
| 3101 | |
| 3102 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3103 | .vendor = "Intel", |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 3104 | .name = "28F001BX-B", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 3105 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 3106 | .manufacture_id = INTEL_ID, |
| 3107 | .model_id = P28F001BXB, |
| 3108 | .total_size = 128, |
| 3109 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 3110 | .tested = TEST_UNTESTED, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 3111 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3112 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3113 | .block_erasers = |
| 3114 | { |
| 3115 | { |
| 3116 | .eraseblocks = { |
| 3117 | {8 * 1024, 1}, |
| 3118 | {4 * 1024, 2}, |
| 3119 | {112 * 1024, 1}, |
| 3120 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 3121 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3122 | }, |
| 3123 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 3124 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 3125 | .read = read_memmapped, |
| 3126 | }, |
| 3127 | |
| 3128 | { |
| 3129 | .vendor = "Intel", |
| 3130 | .name = "28F001BX-T", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 3131 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 3132 | .manufacture_id = INTEL_ID, |
| 3133 | .model_id = P28F001BXT, |
| 3134 | .total_size = 128, |
| 3135 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 3136 | .tested = TEST_UNTESTED, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 3137 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3138 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3139 | .block_erasers = |
| 3140 | { |
| 3141 | { |
| 3142 | .eraseblocks = { |
| 3143 | {112 * 1024, 1}, |
| 3144 | {4 * 1024, 2}, |
| 3145 | {8 * 1024, 1}, |
| 3146 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 3147 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3148 | }, |
| 3149 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 3150 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 3151 | .read = read_memmapped, |
| 3152 | }, |
| 3153 | |
| 3154 | { |
| 3155 | .vendor = "Intel", |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 3156 | .name = "28F002BC-T", |
| 3157 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3158 | .manufacture_id = INTEL_ID, |
| 3159 | .model_id = P28F002BC, |
| 3160 | .total_size = 256, |
| 3161 | .page_size = 256 * 1024, |
| 3162 | .tested = TEST_UNTESTED, |
| 3163 | .probe = probe_82802ab, |
| 3164 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3165 | .block_erasers = |
| 3166 | { |
| 3167 | { |
| 3168 | .eraseblocks = { |
| 3169 | {128 * 1024, 1}, |
| 3170 | {96 * 1024, 1}, |
| 3171 | {8 * 1024, 2}, |
| 3172 | {16 * 1024, 1}, |
| 3173 | }, |
| 3174 | .block_erase = erase_block_82802ab, |
| 3175 | }, |
| 3176 | }, |
| 3177 | .write = write_82802ab, |
| 3178 | .read = read_memmapped, |
| 3179 | }, |
| 3180 | |
| 3181 | { |
| 3182 | .vendor = "Intel", |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 3183 | .name = "28F004S5", |
| 3184 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3185 | .manufacture_id = INTEL_ID, |
| 3186 | .model_id = E_28F004S5, |
| 3187 | .total_size = 512, |
| 3188 | .page_size = 256, |
| 3189 | .tested = TEST_UNTESTED, |
| 3190 | .probe = probe_82802ab, |
| 3191 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 3192 | .block_erasers = |
| 3193 | { |
| 3194 | { |
| 3195 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 3196 | .block_erase = erase_block_82802ab, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 3197 | }, |
| 3198 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 3199 | .unlock = unlock_28f004s5, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 3200 | .write = write_82802ab, |
| 3201 | .read = read_memmapped, |
| 3202 | }, |
| 3203 | |
| 3204 | { |
| 3205 | .vendor = "Intel", |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 3206 | .name = "28F004BV/BE-B", |
| 3207 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3208 | .manufacture_id = INTEL_ID, |
| 3209 | .model_id = P28F004BB, |
| 3210 | .total_size = 512, |
| 3211 | .page_size = 128 * 1024, /* maximal block size */ |
| 3212 | .tested = TEST_UNTESTED, |
| 3213 | .probe = probe_82802ab, |
| 3214 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3215 | .block_erasers = |
| 3216 | { |
| 3217 | { |
| 3218 | .eraseblocks = { |
| 3219 | {16 * 1024, 1}, |
| 3220 | {8 * 1024, 2}, |
| 3221 | {96 * 1024, 1}, |
| 3222 | {128 * 1024, 3}, |
| 3223 | }, |
| 3224 | .block_erase = erase_block_82802ab, |
| 3225 | }, |
| 3226 | }, |
| 3227 | .write = write_82802ab, |
| 3228 | .read = read_memmapped, |
| 3229 | }, |
| 3230 | |
| 3231 | { |
| 3232 | .vendor = "Intel", |
| 3233 | .name = "28F004BV/BE-T", |
| 3234 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3235 | .manufacture_id = INTEL_ID, |
| 3236 | .model_id = P28F004BT, |
| 3237 | .total_size = 512, |
| 3238 | .page_size = 128 * 1024, /* maximal block size */ |
| 3239 | .tested = TEST_UNTESTED, |
| 3240 | .probe = probe_82802ab, |
| 3241 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3242 | .block_erasers = |
| 3243 | { |
| 3244 | { |
| 3245 | .eraseblocks = { |
| 3246 | {128 * 1024, 3}, |
| 3247 | {96 * 1024, 1}, |
| 3248 | {8 * 1024, 2}, |
| 3249 | {16 * 1024, 1}, |
| 3250 | }, |
| 3251 | .block_erase = erase_block_82802ab, |
| 3252 | }, |
| 3253 | }, |
| 3254 | .write = write_82802ab, |
| 3255 | .read = read_memmapped, |
| 3256 | }, |
| 3257 | |
| 3258 | { |
| 3259 | .vendor = "Intel", |
| 3260 | .name = "28F400BV/CV/CE-B", |
| 3261 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3262 | .manufacture_id = INTEL_ID, |
| 3263 | .model_id = P28F400BB, |
| 3264 | .total_size = 512, |
| 3265 | .page_size = 128 * 1024, /* maximal block size */ |
| 3266 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 3267 | .tested = TEST_UNTESTED, |
| 3268 | .probe = probe_82802ab, |
| 3269 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3270 | .block_erasers = |
| 3271 | { |
| 3272 | { |
| 3273 | .eraseblocks = { |
| 3274 | {16 * 1024, 1}, |
| 3275 | {8 * 1024, 2}, |
| 3276 | {96 * 1024, 1}, |
| 3277 | {128 * 1024, 3}, |
| 3278 | }, |
| 3279 | .block_erase = erase_block_82802ab, |
| 3280 | }, |
| 3281 | }, |
| 3282 | .write = write_82802ab, |
| 3283 | .read = read_memmapped, |
| 3284 | }, |
| 3285 | |
| 3286 | { |
| 3287 | .vendor = "Intel", |
| 3288 | .name = "28F400BV/CV/CE-T", |
| 3289 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3290 | .manufacture_id = INTEL_ID, |
| 3291 | .model_id = P28F400BT, |
| 3292 | .total_size = 512, |
| 3293 | .page_size = 128 * 1024, /* maximal block size */ |
| 3294 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 3295 | .tested = TEST_UNTESTED, |
| 3296 | .probe = probe_82802ab, |
| 3297 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3298 | .block_erasers = |
| 3299 | { |
| 3300 | { |
| 3301 | .eraseblocks = { |
| 3302 | {128 * 1024, 3}, |
| 3303 | {96 * 1024, 1}, |
| 3304 | {8 * 1024, 2}, |
| 3305 | {16 * 1024, 1}, |
| 3306 | }, |
| 3307 | .block_erase = erase_block_82802ab, |
| 3308 | }, |
| 3309 | }, |
| 3310 | .write = write_82802ab, |
| 3311 | .read = read_memmapped, |
| 3312 | }, |
| 3313 | |
| 3314 | { |
| 3315 | .vendor = "Intel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3316 | .name = "82802AB", |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 3317 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3318 | .manufacture_id = INTEL_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 3319 | .model_id = I_82802AB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3320 | .total_size = 512, |
| 3321 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 3322 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 3323 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3324 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3325 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3326 | .block_erasers = |
| 3327 | { |
| 3328 | { |
| 3329 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 3330 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3331 | }, |
| 3332 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 3333 | .unlock = unlock_82802ab, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3334 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3335 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3336 | }, |
| 3337 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3338 | { |
| 3339 | .vendor = "Intel", |
| 3340 | .name = "82802AC", |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 3341 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3342 | .manufacture_id = INTEL_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 3343 | .model_id = I_82802AC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3344 | .total_size = 1024, |
| 3345 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 3346 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 3347 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3348 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3349 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3350 | .block_erasers = |
| 3351 | { |
| 3352 | { |
| 3353 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 3354 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3355 | }, |
| 3356 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 3357 | .unlock = unlock_82802ab, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3358 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3359 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3360 | }, |
| 3361 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3362 | { |
| 3363 | .vendor = "Macronix", |
| 3364 | .name = "MX25L512", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3365 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3366 | .manufacture_id = MX_ID, |
| 3367 | .model_id = MX_25L512, |
| 3368 | .total_size = 64, |
| 3369 | .page_size = 256, |
| 3370 | .tested = TEST_UNTESTED, |
| 3371 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3372 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 3373 | .block_erasers = |
| 3374 | { |
| 3375 | { |
| 3376 | .eraseblocks = { {4 * 1024, 16} }, |
| 3377 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3378 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 3379 | .eraseblocks = { {64 * 1024, 1} }, |
| 3380 | .block_erase = spi_block_erase_52, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3381 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 3382 | .eraseblocks = { {64 * 1024, 1} }, |
| 3383 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3384 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 3385 | .eraseblocks = { {64 * 1024, 1} }, |
| 3386 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3387 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 3388 | .eraseblocks = { {64 * 1024, 1} }, |
| 3389 | .block_erase = spi_block_erase_c7, |
| 3390 | }, |
| 3391 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3392 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3393 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3394 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3395 | }, |
| 3396 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3397 | { |
| 3398 | .vendor = "Macronix", |
| 3399 | .name = "MX25L1005", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3400 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3401 | .manufacture_id = MX_ID, |
| 3402 | .model_id = MX_25L1005, |
| 3403 | .total_size = 128, |
| 3404 | .page_size = 256, |
| 3405 | .tested = TEST_UNTESTED, |
| 3406 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3407 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 3408 | .block_erasers = |
| 3409 | { |
| 3410 | { |
| 3411 | .eraseblocks = { {4 * 1024, 32} }, |
| 3412 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3413 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 3414 | .eraseblocks = { {64 * 1024, 2} }, |
| 3415 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3416 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 3417 | .eraseblocks = { {128 * 1024, 1} }, |
| 3418 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3419 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 3420 | .eraseblocks = { {128 * 1024, 1} }, |
| 3421 | .block_erase = spi_block_erase_c7, |
| 3422 | }, |
| 3423 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3424 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3425 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3426 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3427 | }, |
| 3428 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3429 | { |
| 3430 | .vendor = "Macronix", |
| 3431 | .name = "MX25L2005", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3432 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3433 | .manufacture_id = MX_ID, |
| 3434 | .model_id = MX_25L2005, |
| 3435 | .total_size = 256, |
| 3436 | .page_size = 256, |
| 3437 | .tested = TEST_UNTESTED, |
| 3438 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3439 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3440 | .block_erasers = |
| 3441 | { |
| 3442 | { |
| 3443 | .eraseblocks = { {4 * 1024, 64} }, |
| 3444 | .block_erase = spi_block_erase_20, |
| 3445 | }, { |
| 3446 | .eraseblocks = { {64 * 1024, 4} }, |
| 3447 | .block_erase = spi_block_erase_52, |
| 3448 | }, { |
| 3449 | .eraseblocks = { {64 * 1024, 4} }, |
| 3450 | .block_erase = spi_block_erase_d8, |
| 3451 | }, { |
| 3452 | .eraseblocks = { {256 * 1024, 1} }, |
| 3453 | .block_erase = spi_block_erase_60, |
| 3454 | }, { |
| 3455 | .eraseblocks = { {256 * 1024, 1} }, |
| 3456 | .block_erase = spi_block_erase_c7, |
| 3457 | }, |
| 3458 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3459 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3460 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3461 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3462 | }, |
| 3463 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3464 | { |
| 3465 | .vendor = "Macronix", |
| 3466 | .name = "MX25L4005", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3467 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3468 | .manufacture_id = MX_ID, |
| 3469 | .model_id = MX_25L4005, |
| 3470 | .total_size = 512, |
| 3471 | .page_size = 256, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3472 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3473 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3474 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3475 | .block_erasers = |
| 3476 | { |
| 3477 | { |
| 3478 | .eraseblocks = { {4 * 1024, 128} }, |
| 3479 | .block_erase = spi_block_erase_20, |
| 3480 | }, { |
| 3481 | .eraseblocks = { {64 * 1024, 8} }, |
| 3482 | .block_erase = spi_block_erase_52, |
| 3483 | }, { |
| 3484 | .eraseblocks = { {64 * 1024, 8} }, |
| 3485 | .block_erase = spi_block_erase_d8, |
| 3486 | }, { |
| 3487 | .eraseblocks = { {512 * 1024, 1} }, |
| 3488 | .block_erase = spi_block_erase_60, |
| 3489 | }, { |
| 3490 | .eraseblocks = { {512 * 1024, 1} }, |
| 3491 | .block_erase = spi_block_erase_c7, |
| 3492 | }, |
| 3493 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3494 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3495 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3496 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3497 | }, |
| 3498 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3499 | { |
| 3500 | .vendor = "Macronix", |
| 3501 | .name = "MX25L8005", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3502 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3503 | .manufacture_id = MX_ID, |
| 3504 | .model_id = MX_25L8005, |
| 3505 | .total_size = 1024, |
| 3506 | .page_size = 256, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3507 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3508 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3509 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3510 | .block_erasers = |
| 3511 | { |
| 3512 | { |
| 3513 | .eraseblocks = { {4 * 1024, 256} }, |
| 3514 | .block_erase = spi_block_erase_20, |
| 3515 | }, { |
| 3516 | .eraseblocks = { {64 * 1024, 16} }, |
| 3517 | .block_erase = spi_block_erase_52, |
| 3518 | }, { |
| 3519 | .eraseblocks = { {64 * 1024, 16} }, |
| 3520 | .block_erase = spi_block_erase_d8, |
| 3521 | }, { |
| 3522 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3523 | .block_erase = spi_block_erase_60, |
| 3524 | }, { |
| 3525 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3526 | .block_erase = spi_block_erase_c7, |
| 3527 | }, |
| 3528 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3529 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3530 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3531 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3532 | }, |
| 3533 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3534 | { |
| 3535 | .vendor = "Macronix", |
| 3536 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3537 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3538 | .manufacture_id = MX_ID, |
| 3539 | .model_id = MX_25L1605, |
| 3540 | .total_size = 2048, |
| 3541 | .page_size = 256, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3542 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3543 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3544 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 3545 | .block_erasers = |
| 3546 | { |
| 3547 | { |
| 3548 | .eraseblocks = { {4 * 1024, 512} }, |
| 3549 | .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */ |
| 3550 | }, { |
| 3551 | .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */ |
| 3552 | .block_erase = spi_block_erase_52, |
| 3553 | }, { |
| 3554 | .eraseblocks = { {64 * 1024, 32} }, |
| 3555 | .block_erase = spi_block_erase_d8, |
| 3556 | }, { |
| 3557 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3558 | .block_erase = spi_block_erase_60, |
| 3559 | }, { |
| 3560 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3561 | .block_erase = spi_block_erase_c7, |
| 3562 | }, |
| 3563 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3564 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3565 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3566 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3567 | }, |
| 3568 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3569 | { |
| 3570 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 3571 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3572 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 3573 | .manufacture_id = MX_ID, |
| 3574 | .model_id = MX_25L1635D, |
| 3575 | .total_size = 2048, |
| 3576 | .page_size = 256, |
| 3577 | .tested = TEST_UNTESTED, |
| 3578 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3579 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3580 | .block_erasers = |
| 3581 | { |
| 3582 | { |
| 3583 | .eraseblocks = { {4 * 1024, 512} }, |
| 3584 | .block_erase = spi_block_erase_20, |
| 3585 | }, { |
| 3586 | .eraseblocks = { {64 * 1024, 32} }, |
| 3587 | .block_erase = spi_block_erase_d8, |
| 3588 | }, { |
| 3589 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3590 | .block_erase = spi_block_erase_60, |
| 3591 | }, { |
| 3592 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3593 | .block_erase = spi_block_erase_c7, |
| 3594 | } |
| 3595 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3596 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3597 | .write = spi_chip_write_256, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 3598 | .read = spi_chip_read, |
| 3599 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 3600 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 3601 | { |
| 3602 | .vendor = "Macronix", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3603 | .name = "MX25L3205", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3604 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3605 | .manufacture_id = MX_ID, |
| 3606 | .model_id = MX_25L3205, |
| 3607 | .total_size = 4096, |
| 3608 | .page_size = 256, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3609 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3610 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3611 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3612 | .block_erasers = |
| 3613 | { |
| 3614 | { |
| 3615 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3616 | .block_erase = spi_block_erase_20, |
| 3617 | }, { |
| 3618 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3619 | .block_erase = spi_block_erase_d8, |
| 3620 | }, { |
| 3621 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3622 | .block_erase = spi_block_erase_60, |
| 3623 | }, { |
| 3624 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3625 | .block_erase = spi_block_erase_c7, |
| 3626 | }, |
| 3627 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3628 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3629 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3630 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3631 | }, |
| 3632 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3633 | { |
| 3634 | .vendor = "Macronix", |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 3635 | .name = "MX25L3235D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3636 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 3637 | .manufacture_id = MX_ID, |
| 3638 | .model_id = MX_25L3235D, |
| 3639 | .total_size = 4096, |
| 3640 | .page_size = 256, |
| 3641 | .tested = TEST_UNTESTED, |
| 3642 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3643 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3644 | .block_erasers = |
| 3645 | { |
| 3646 | { |
| 3647 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3648 | .block_erase = spi_block_erase_20, |
| 3649 | }, { |
| 3650 | .eraseblocks = { {64 * 1024, 64} }, |
| 3651 | .block_erase = spi_block_erase_d8, |
| 3652 | }, { |
| 3653 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3654 | .block_erase = spi_block_erase_60, |
| 3655 | }, { |
| 3656 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3657 | .block_erase = spi_block_erase_c7, |
| 3658 | } |
| 3659 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3660 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3661 | .write = spi_chip_write_256, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 3662 | .read = spi_chip_read, |
| 3663 | }, |
| 3664 | |
| 3665 | { |
| 3666 | .vendor = "Macronix", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3667 | .name = "MX25L6405", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3668 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3669 | .manufacture_id = MX_ID, |
| 3670 | .model_id = MX_25L6405, |
| 3671 | .total_size = 8192, |
| 3672 | .page_size = 256, |
Carl-Daniel Hailfinger | 452b3e3 | 2009-06-22 11:14:43 +0000 | [diff] [blame] | 3673 | .tested = TEST_OK_PROBE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3674 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3675 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3676 | .block_erasers = |
| 3677 | { |
| 3678 | { |
| 3679 | .eraseblocks = { {64 * 1024, 128} }, |
| 3680 | .block_erase = spi_block_erase_20, |
| 3681 | }, { |
| 3682 | .eraseblocks = { {64 * 1024, 128} }, |
| 3683 | .block_erase = spi_block_erase_d8, |
| 3684 | }, { |
| 3685 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3686 | .block_erase = spi_block_erase_60, |
| 3687 | }, { |
| 3688 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3689 | .block_erase = spi_block_erase_c7, |
| 3690 | } |
| 3691 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3692 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3693 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3694 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3695 | }, |
| 3696 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3697 | { |
| 3698 | .vendor = "Macronix", |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 3699 | .name = "MX25L12805", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3700 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 3701 | .manufacture_id = MX_ID, |
| 3702 | .model_id = MX_25L12805, |
| 3703 | .total_size = 16384, |
| 3704 | .page_size = 256, |
| 3705 | .tested = TEST_UNTESTED, |
| 3706 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3707 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3708 | .block_erasers = |
| 3709 | { |
| 3710 | { |
| 3711 | .eraseblocks = { {4 * 1024, 4096} }, |
| 3712 | .block_erase = spi_block_erase_20, |
| 3713 | }, { |
| 3714 | .eraseblocks = { {64 * 1024, 256} }, |
| 3715 | .block_erase = spi_block_erase_d8, |
| 3716 | }, { |
| 3717 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 3718 | .block_erase = spi_block_erase_60, |
| 3719 | }, { |
| 3720 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 3721 | .block_erase = spi_block_erase_c7, |
| 3722 | } |
| 3723 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3724 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3725 | .write = spi_chip_write_256, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 3726 | .read = spi_chip_read, |
| 3727 | }, |
| 3728 | |
| 3729 | { |
| 3730 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 3731 | .name = "MX29F001B", |
| 3732 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3733 | .manufacture_id = MX_ID, |
| 3734 | .model_id = MX_29F001B, |
| 3735 | .total_size = 128, |
| 3736 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3737 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 3738 | .tested = TEST_UNTESTED, |
| 3739 | .probe = probe_jedec, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 3740 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3741 | .block_erasers = |
| 3742 | { |
| 3743 | { |
| 3744 | .eraseblocks = { |
| 3745 | {8 * 1024, 1}, |
| 3746 | {4 * 1024, 2}, |
| 3747 | {8 * 1024, 2}, |
| 3748 | {32 * 1024, 1}, |
| 3749 | {64 * 1024, 1}, |
| 3750 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3751 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3752 | }, { |
| 3753 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3754 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3755 | } |
| 3756 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 3757 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 3758 | .read = read_memmapped, |
| 3759 | }, |
| 3760 | |
| 3761 | { |
| 3762 | .vendor = "Macronix", |
| 3763 | .name = "MX29F001T", |
| 3764 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3765 | .manufacture_id = MX_ID, |
| 3766 | .model_id = MX_29F001T, |
| 3767 | .total_size = 128, |
| 3768 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3769 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 3770 | .tested = TEST_UNTESTED, |
| 3771 | .probe = probe_jedec, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 3772 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3773 | .block_erasers = |
| 3774 | { |
| 3775 | { |
| 3776 | .eraseblocks = { |
| 3777 | {64 * 1024, 1}, |
| 3778 | {32 * 1024, 1}, |
| 3779 | {8 * 1024, 2}, |
| 3780 | {4 * 1024, 2}, |
| 3781 | {8 * 1024, 1}, |
| 3782 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3783 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3784 | }, { |
| 3785 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3786 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3787 | } |
| 3788 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 3789 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 3790 | .read = read_memmapped, |
| 3791 | }, |
| 3792 | |
| 3793 | { |
| 3794 | .vendor = "Macronix", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3795 | .name = "MX29F002B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 3796 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3797 | .manufacture_id = MX_ID, |
| 3798 | .model_id = MX_29F002B, |
| 3799 | .total_size = 256, |
| 3800 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3801 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3802 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3803 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 3804 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3805 | .block_erasers = |
| 3806 | { |
| 3807 | { |
| 3808 | .eraseblocks = { |
| 3809 | {16 * 1024, 1}, |
| 3810 | {8 * 1024, 2}, |
| 3811 | {32 * 1024, 1}, |
| 3812 | {64 * 1024, 3}, |
| 3813 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3814 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3815 | }, { |
| 3816 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3817 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3818 | }, |
| 3819 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 3820 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3821 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3822 | }, |
| 3823 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3824 | { |
| 3825 | .vendor = "Macronix", |
| 3826 | .name = "MX29F002T", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 3827 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3828 | .manufacture_id = MX_ID, |
| 3829 | .model_id = MX_29F002T, |
| 3830 | .total_size = 256, |
| 3831 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3832 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Uwe Hermann | 6093969 | 2010-03-17 00:05:59 +0000 | [diff] [blame] | 3833 | .tested = TEST_OK_PRW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3834 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 3835 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3836 | .block_erasers = |
| 3837 | { |
| 3838 | { |
| 3839 | .eraseblocks = { |
| 3840 | {64 * 1024, 3}, |
| 3841 | {32 * 1024, 1}, |
| 3842 | {8 * 1024, 2}, |
| 3843 | {16 * 1024, 1}, |
| 3844 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3845 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3846 | }, { |
| 3847 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3848 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3849 | }, |
| 3850 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 3851 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3852 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3853 | }, |
| 3854 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3855 | { |
| 3856 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 3857 | .name = "MX29LV040", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 3858 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3859 | .manufacture_id = MX_ID, |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 3860 | .model_id = MX_29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3861 | .total_size = 512, |
| 3862 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3863 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 3864 | .tested = TEST_UNTESTED, |
| 3865 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 3866 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3867 | .block_erasers = |
| 3868 | { |
| 3869 | { |
| 3870 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3871 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3872 | }, { |
| 3873 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3874 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3875 | }, |
| 3876 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 3877 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3878 | .read = read_memmapped, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 3879 | }, |
| 3880 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3881 | { |
| 3882 | .vendor = "Numonyx", |
| 3883 | .name = "M25PE10", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3884 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3885 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 3886 | .model_id = ST_M25PE10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3887 | .total_size = 128, |
| 3888 | .page_size = 256, |
| 3889 | .tested = TEST_UNTESTED, |
| 3890 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3891 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 3892 | .block_erasers = |
| 3893 | { |
| 3894 | { |
| 3895 | .eraseblocks = { {4 * 1024, 32} }, |
| 3896 | .block_erase = spi_block_erase_20, |
| 3897 | }, { |
| 3898 | .eraseblocks = { {64 * 1024, 2} }, |
| 3899 | .block_erase = spi_block_erase_d8, |
| 3900 | }, { |
| 3901 | .eraseblocks = { {128 * 1024, 1} }, |
| 3902 | .block_erase = spi_block_erase_c7, |
| 3903 | } |
| 3904 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3905 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3906 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3907 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3908 | }, |
| 3909 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3910 | { |
| 3911 | .vendor = "Numonyx", |
| 3912 | .name = "M25PE20", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3913 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3914 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 3915 | .model_id = ST_M25PE20, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3916 | .total_size = 256, |
| 3917 | .page_size = 256, |
| 3918 | .tested = TEST_UNTESTED, |
| 3919 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3920 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 3921 | .block_erasers = |
| 3922 | { |
| 3923 | { |
| 3924 | .eraseblocks = { {4 * 1024, 64} }, |
| 3925 | .block_erase = spi_block_erase_20, |
| 3926 | }, { |
| 3927 | .eraseblocks = { {64 * 1024, 4} }, |
| 3928 | .block_erase = spi_block_erase_d8, |
| 3929 | }, { |
| 3930 | .eraseblocks = { {256 * 1024, 1} }, |
| 3931 | .block_erase = spi_block_erase_c7, |
| 3932 | } |
| 3933 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3934 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3935 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3936 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3937 | }, |
| 3938 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3939 | { |
| 3940 | .vendor = "Numonyx", |
| 3941 | .name = "M25PE40", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3942 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3943 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 3944 | .model_id = ST_M25PE40, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 3945 | .total_size = 512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3946 | .page_size = 256, |
| 3947 | .tested = TEST_UNTESTED, |
| 3948 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3949 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 3950 | .block_erasers = |
| 3951 | { |
| 3952 | { |
| 3953 | .eraseblocks = { {4 * 1024, 128} }, |
| 3954 | .block_erase = spi_block_erase_20, |
| 3955 | }, { |
| 3956 | .eraseblocks = { {64 * 1024, 8} }, |
| 3957 | .block_erase = spi_block_erase_d8, |
| 3958 | }, { |
| 3959 | .eraseblocks = { {512 * 1024, 1} }, |
| 3960 | .block_erase = spi_block_erase_c7, |
| 3961 | } |
| 3962 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3963 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3964 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3965 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3966 | }, |
| 3967 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3968 | { |
| 3969 | .vendor = "Numonyx", |
| 3970 | .name = "M25PE80", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3971 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3972 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 3973 | .model_id = ST_M25PE80, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3974 | .total_size = 1024, |
| 3975 | .page_size = 256, |
| 3976 | .tested = TEST_OK_PREW, |
| 3977 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3978 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 3979 | .block_erasers = |
| 3980 | { |
| 3981 | { |
| 3982 | .eraseblocks = { {4 * 1024, 256} }, |
| 3983 | .block_erase = spi_block_erase_20, |
| 3984 | }, { |
| 3985 | .eraseblocks = { {64 * 1024, 16} }, |
| 3986 | .block_erase = spi_block_erase_d8, |
| 3987 | }, { |
| 3988 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3989 | .block_erase = spi_block_erase_c7, |
| 3990 | } |
| 3991 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3992 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3993 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3994 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3995 | }, |
| 3996 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3997 | { |
| 3998 | .vendor = "Numonyx", |
| 3999 | .name = "M25PE16", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4000 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4001 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4002 | .model_id = ST_M25PE16, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4003 | .total_size = 2048, |
| 4004 | .page_size = 256, |
| 4005 | .tested = TEST_UNTESTED, |
| 4006 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4007 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4008 | .block_erasers = |
| 4009 | { |
| 4010 | { |
| 4011 | .eraseblocks = { {4 * 1024, 512} }, |
| 4012 | .block_erase = spi_block_erase_20, |
| 4013 | }, { |
| 4014 | .eraseblocks = { {64 * 1024, 32} }, |
| 4015 | .block_erase = spi_block_erase_d8, |
| 4016 | }, { |
| 4017 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4018 | .block_erase = spi_block_erase_c7, |
| 4019 | } |
| 4020 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4021 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4022 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4023 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4024 | }, |
| 4025 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4026 | { |
| 4027 | .vendor = "PMC", |
| 4028 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4029 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4030 | .manufacture_id = PMC_ID, |
| 4031 | .model_id = PMC_25LV010, |
| 4032 | .total_size = 128, |
| 4033 | .page_size = 256, |
| 4034 | .tested = TEST_UNTESTED, |
| 4035 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4036 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4037 | .block_erasers = |
| 4038 | { |
| 4039 | { |
| 4040 | .eraseblocks = { {4 * 1024, 32} }, |
| 4041 | .block_erase = spi_block_erase_d7, |
| 4042 | }, { |
| 4043 | .eraseblocks = { {32 * 1024, 4} }, |
| 4044 | .block_erase = spi_block_erase_d8, |
| 4045 | }, { |
| 4046 | .eraseblocks = { {128 * 1024, 1} }, |
| 4047 | .block_erase = spi_block_erase_c7, |
| 4048 | } |
| 4049 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4050 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4051 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4052 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4053 | }, |
| 4054 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4055 | { |
| 4056 | .vendor = "PMC", |
| 4057 | .name = "Pm25LV016B", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4058 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4059 | .manufacture_id = PMC_ID, |
| 4060 | .model_id = PMC_25LV016B, |
| 4061 | .total_size = 2048, |
| 4062 | .page_size = 256, |
| 4063 | .tested = TEST_UNTESTED, |
| 4064 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4065 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4066 | .block_erasers = |
| 4067 | { |
| 4068 | { |
| 4069 | .eraseblocks = { {4 * 1024, 512} }, |
| 4070 | .block_erase = spi_block_erase_d7, |
| 4071 | }, { |
| 4072 | .eraseblocks = { {4 * 1024, 512} }, |
| 4073 | .block_erase = spi_block_erase_20, |
| 4074 | }, { |
| 4075 | .eraseblocks = { {64 * 1024, 32} }, |
| 4076 | .block_erase = spi_block_erase_d8, |
| 4077 | }, { |
| 4078 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4079 | .block_erase = spi_block_erase_60, |
| 4080 | }, { |
| 4081 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4082 | .block_erase = spi_block_erase_c7, |
| 4083 | } |
| 4084 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4085 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4086 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4087 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4088 | }, |
| 4089 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4090 | { |
| 4091 | .vendor = "PMC", |
| 4092 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4093 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4094 | .manufacture_id = PMC_ID, |
| 4095 | .model_id = PMC_25LV020, |
| 4096 | .total_size = 256, |
| 4097 | .page_size = 256, |
| 4098 | .tested = TEST_UNTESTED, |
| 4099 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4100 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4101 | .block_erasers = |
| 4102 | { |
| 4103 | { |
| 4104 | .eraseblocks = { {4 * 1024, 64} }, |
| 4105 | .block_erase = spi_block_erase_d7, |
| 4106 | }, { |
| 4107 | .eraseblocks = { {64 * 1024, 4} }, |
| 4108 | .block_erase = spi_block_erase_d8, |
| 4109 | }, { |
| 4110 | .eraseblocks = { {256 * 1024, 1} }, |
| 4111 | .block_erase = spi_block_erase_c7, |
| 4112 | } |
| 4113 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4114 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4115 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4116 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4117 | }, |
| 4118 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4119 | { |
| 4120 | .vendor = "PMC", |
| 4121 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4122 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4123 | .manufacture_id = PMC_ID, |
| 4124 | .model_id = PMC_25LV040, |
| 4125 | .total_size = 512, |
| 4126 | .page_size = 256, |
| 4127 | .tested = TEST_UNTESTED, |
| 4128 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4129 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4130 | .block_erasers = |
| 4131 | { |
| 4132 | { |
| 4133 | .eraseblocks = { {4 * 1024, 128} }, |
| 4134 | .block_erase = spi_block_erase_d7, |
| 4135 | }, { |
| 4136 | .eraseblocks = { {64 * 1024, 8} }, |
| 4137 | .block_erase = spi_block_erase_d8, |
| 4138 | }, { |
| 4139 | .eraseblocks = { {512 * 1024, 1} }, |
| 4140 | .block_erase = spi_block_erase_c7, |
| 4141 | } |
| 4142 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4143 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4144 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4145 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4146 | }, |
| 4147 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4148 | { |
| 4149 | .vendor = "PMC", |
| 4150 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4151 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4152 | .manufacture_id = PMC_ID, |
| 4153 | .model_id = PMC_25LV080B, |
| 4154 | .total_size = 1024, |
| 4155 | .page_size = 256, |
| 4156 | .tested = TEST_UNTESTED, |
| 4157 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4158 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4159 | .block_erasers = |
| 4160 | { |
| 4161 | { |
| 4162 | .eraseblocks = { {4 * 1024, 256} }, |
| 4163 | .block_erase = spi_block_erase_d7, |
| 4164 | }, { |
| 4165 | .eraseblocks = { {4 * 1024, 256} }, |
| 4166 | .block_erase = spi_block_erase_20, |
| 4167 | }, { |
| 4168 | .eraseblocks = { {64 * 1024, 16} }, |
| 4169 | .block_erase = spi_block_erase_d8, |
| 4170 | }, { |
| 4171 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4172 | .block_erase = spi_block_erase_60, |
| 4173 | }, { |
| 4174 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4175 | .block_erase = spi_block_erase_c7, |
| 4176 | } |
| 4177 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4178 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4179 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4180 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4181 | }, |
| 4182 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4183 | { |
| 4184 | .vendor = "PMC", |
| 4185 | .name = "Pm25LV512", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4186 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4187 | .manufacture_id = PMC_ID, |
| 4188 | .model_id = PMC_25LV512, |
| 4189 | .total_size = 64, |
| 4190 | .page_size = 256, |
| 4191 | .tested = TEST_UNTESTED, |
| 4192 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4193 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4194 | .block_erasers = |
| 4195 | { |
| 4196 | { |
| 4197 | .eraseblocks = { {4 * 1024, 16} }, |
| 4198 | .block_erase = spi_block_erase_d7, |
| 4199 | }, { |
| 4200 | .eraseblocks = { {32 * 1024, 2} }, |
| 4201 | .block_erase = spi_block_erase_d8, |
| 4202 | }, { |
| 4203 | .eraseblocks = { {64 * 1024, 1} }, |
| 4204 | .block_erase = spi_block_erase_c7, |
| 4205 | } |
| 4206 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4207 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4208 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4209 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4210 | }, |
| 4211 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4212 | { |
| 4213 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 4214 | .name = "Pm29F002T", |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 4215 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 4216 | .manufacture_id = PMC_ID_NOPREFIX, |
| 4217 | .model_id = PMC_29F002T, |
| 4218 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 4219 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4220 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 4221 | .tested = TEST_UNTESTED, |
| 4222 | .probe = probe_jedec, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 4223 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 4224 | .block_erasers = |
| 4225 | { |
| 4226 | { |
| 4227 | .eraseblocks = { |
| 4228 | {128 * 1024, 1}, |
| 4229 | {96 * 1024, 1}, |
| 4230 | {8 * 1024, 2}, |
| 4231 | {16 * 1024, 1}, |
| 4232 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4233 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 4234 | }, { |
| 4235 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4236 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 4237 | }, |
| 4238 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4239 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 4240 | .read = read_memmapped, |
| 4241 | }, |
| 4242 | |
| 4243 | { |
| 4244 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 4245 | .name = "Pm29F002B", |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 4246 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 4247 | .manufacture_id = PMC_ID_NOPREFIX, |
| 4248 | .model_id = PMC_29F002B, |
| 4249 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 4250 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4251 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 4252 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4253 | .probe = probe_jedec, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 4254 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 4255 | .block_erasers = |
| 4256 | { |
| 4257 | { |
| 4258 | .eraseblocks = { |
| 4259 | {16 * 1024, 1}, |
| 4260 | {8 * 1024, 2}, |
| 4261 | {96 * 1024, 1}, |
| 4262 | {128 * 1024, 1}, |
| 4263 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4264 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 4265 | }, { |
| 4266 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4267 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 4268 | }, |
| 4269 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4270 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 4271 | .read = read_memmapped, |
| 4272 | }, |
| 4273 | |
| 4274 | { |
| 4275 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 4276 | .name = "Pm39LV010", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4277 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 4278 | .manufacture_id = PMC_ID_NOPREFIX, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 4279 | .model_id = PMC_39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */ |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 4280 | .total_size = 128, |
| 4281 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4282 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | ea5425b | 2010-05-30 17:00:19 +0000 | [diff] [blame] | 4283 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 4284 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4285 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4286 | .block_erasers = |
| 4287 | { |
| 4288 | { |
| 4289 | .eraseblocks = { {4 * 1024, 32} }, |
| 4290 | .block_erase = erase_sector_jedec, |
| 4291 | }, { |
| 4292 | .eraseblocks = { {64 * 1024, 2} }, |
| 4293 | .block_erase = erase_block_jedec, |
| 4294 | }, { |
| 4295 | .eraseblocks = { {128 * 1024, 1} }, |
| 4296 | .block_erase = erase_chip_block_jedec, |
| 4297 | } |
| 4298 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4299 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 4300 | .read = read_memmapped, |
| 4301 | }, |
| 4302 | |
| 4303 | { |
| 4304 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 4305 | .name = "Pm39LV020", |
| 4306 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 4307 | .manufacture_id = PMC_ID_NOPREFIX, |
| 4308 | .model_id = PMC_39LV020, |
| 4309 | .total_size = 256, |
| 4310 | .page_size = 4096, |
| 4311 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 4312 | .tested = TEST_UNTESTED, |
| 4313 | .probe = probe_jedec, |
| 4314 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4315 | .block_erasers = |
| 4316 | { |
| 4317 | { |
| 4318 | .eraseblocks = { {4 * 1024, 64} }, |
| 4319 | .block_erase = erase_sector_jedec, |
| 4320 | }, { |
| 4321 | .eraseblocks = { {64 * 1024, 4} }, |
| 4322 | .block_erase = erase_block_jedec, |
| 4323 | }, { |
| 4324 | .eraseblocks = { {256 * 1024, 1} }, |
| 4325 | .block_erase = erase_chip_block_jedec, |
| 4326 | } |
| 4327 | }, |
| 4328 | .write = write_jedec_1, |
| 4329 | .read = read_memmapped, |
| 4330 | }, |
| 4331 | |
| 4332 | { |
| 4333 | .vendor = "PMC", |
| 4334 | .name = "Pm39LV040", |
| 4335 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 4336 | .manufacture_id = PMC_ID_NOPREFIX, |
| 4337 | .model_id = PMC_39LV040, |
| 4338 | .total_size = 512, |
| 4339 | .page_size = 4096, |
| 4340 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 4341 | .tested = TEST_UNTESTED, |
| 4342 | .probe = probe_jedec, |
| 4343 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4344 | .block_erasers = |
| 4345 | { |
| 4346 | { |
| 4347 | .eraseblocks = { {4 * 1024, 128} }, |
| 4348 | .block_erase = erase_sector_jedec, |
| 4349 | }, { |
| 4350 | .eraseblocks = { {64 * 1024, 8} }, |
| 4351 | .block_erase = erase_block_jedec, |
| 4352 | }, { |
| 4353 | .eraseblocks = { {512 * 1024, 1} }, |
| 4354 | .block_erase = erase_chip_block_jedec, |
| 4355 | } |
| 4356 | }, |
| 4357 | .write = write_jedec_1, |
| 4358 | .read = read_memmapped, |
| 4359 | }, |
| 4360 | |
| 4361 | { |
| 4362 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4363 | .name = "Pm49FL002", |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4364 | .bustype = CHIP_BUSTYPE_LPC | CHIP_BUSTYPE_FWH, /* A/A Mux*/ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4365 | .manufacture_id = PMC_ID_NOPREFIX, |
| 4366 | .model_id = PMC_49FL002, |
| 4367 | .total_size = 256, |
| 4368 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4369 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Russ Dill | 8c7c468 | 2010-03-09 16:53:06 +0000 | [diff] [blame] | 4370 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 4371 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4372 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4373 | .block_erasers = |
| 4374 | { |
| 4375 | { |
| 4376 | .eraseblocks = { {4 * 1024, 64} }, |
| 4377 | .block_erase = erase_sector_jedec, |
| 4378 | }, { |
| 4379 | .eraseblocks = { {16 * 1024, 16} }, |
| 4380 | .block_erase = erase_block_jedec, |
| 4381 | }, { |
| 4382 | .eraseblocks = { {256 * 1024, 1} }, |
| 4383 | .block_erase = erase_chip_block_jedec, |
| 4384 | } |
| 4385 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 4386 | .unlock = unlock_49fl00x, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 4387 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4388 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4389 | }, |
| 4390 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4391 | { |
| 4392 | .vendor = "PMC", |
| 4393 | .name = "Pm49FL004", |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4394 | .bustype = CHIP_BUSTYPE_LPC | CHIP_BUSTYPE_FWH, /* A/A Mux*/ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4395 | .manufacture_id = PMC_ID_NOPREFIX, |
| 4396 | .model_id = PMC_49FL004, |
| 4397 | .total_size = 512, |
| 4398 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4399 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Uwe Hermann | 8d341b5 | 2010-05-25 23:27:44 +0000 | [diff] [blame] | 4400 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 4401 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4402 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4403 | .block_erasers = |
| 4404 | { |
| 4405 | { |
| 4406 | .eraseblocks = { {4 * 1024, 128} }, |
| 4407 | .block_erase = erase_sector_jedec, |
| 4408 | }, { |
| 4409 | .eraseblocks = { {64 * 1024, 8} }, |
| 4410 | .block_erase = erase_block_jedec, |
| 4411 | }, { |
| 4412 | .eraseblocks = { {512 * 1024, 1} }, |
| 4413 | .block_erase = erase_chip_block_jedec, |
| 4414 | } |
| 4415 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 4416 | .unlock = unlock_49fl00x, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 4417 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4418 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4419 | }, |
| 4420 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4421 | { |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 4422 | .vendor = "Sanyo", |
| 4423 | .name = "LF25FW203A", |
| 4424 | .bustype = CHIP_BUSTYPE_SPI, |
| 4425 | .manufacture_id = SANYO_ID, |
| 4426 | .model_id = SANYO_LE25FW203A, |
| 4427 | .total_size = 2048, |
| 4428 | .page_size = 256, |
| 4429 | .tested = TEST_UNTESTED, |
| 4430 | .probe = probe_spi_rdid, |
| 4431 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4432 | .block_erasers = |
| 4433 | { |
| 4434 | { |
| 4435 | .eraseblocks = { {64 * 1024, 32} }, |
| 4436 | .block_erase = spi_block_erase_d8, |
| 4437 | }, { |
| 4438 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4439 | .block_erase = spi_block_erase_c7, |
| 4440 | } |
| 4441 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4442 | .unlock = spi_disable_blockprotect, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 4443 | .write = spi_chip_write_256, |
| 4444 | .read = spi_chip_read, |
| 4445 | }, |
| 4446 | |
| 4447 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4448 | .vendor = "Sharp", |
| 4449 | .name = "LHF00L04", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4450 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4451 | .manufacture_id = SHARP_ID, |
| 4452 | .model_id = SHARP_LHF00L04, |
| 4453 | .total_size = 1024, |
| 4454 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 4455 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4456 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 4457 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 4458 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 4459 | .block_erasers = |
| 4460 | { |
| 4461 | { |
| 4462 | .eraseblocks = { |
| 4463 | {64 * 1024, 15}, |
| 4464 | {8 * 1024, 8} |
| 4465 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 4466 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 4467 | }, { |
| 4468 | .eraseblocks = { |
| 4469 | {1024 * 1024, 1} |
| 4470 | }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4471 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 4472 | }, |
| 4473 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 4474 | .unlock = unlock_82802ab, |
| 4475 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4476 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4477 | }, |
| 4478 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4479 | { |
| 4480 | .vendor = "Spansion", |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 4481 | .name = "S25FL008A", |
| 4482 | .bustype = CHIP_BUSTYPE_SPI, |
| 4483 | .manufacture_id = SPANSION_ID, |
| 4484 | .model_id = SPANSION_S25FL008A, |
| 4485 | .total_size = 1024, |
| 4486 | .page_size = 256, |
| 4487 | .tested = TEST_OK_PREW, |
| 4488 | .probe = probe_spi_rdid, |
| 4489 | .probe_timing = TIMING_ZERO, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 4490 | .block_erasers = |
| 4491 | { |
| 4492 | { |
| 4493 | .eraseblocks = { {64 * 1024, 16} }, |
| 4494 | .block_erase = spi_block_erase_d8, |
| 4495 | }, { |
| 4496 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4497 | .block_erase = spi_block_erase_c7, |
| 4498 | } |
| 4499 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4500 | .unlock = spi_disable_blockprotect, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 4501 | .write = spi_chip_write_256, |
| 4502 | .read = spi_chip_read, |
| 4503 | }, |
| 4504 | |
| 4505 | { |
| 4506 | .vendor = "Spansion", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4507 | .name = "S25FL016A", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4508 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4509 | .manufacture_id = SPANSION_ID, |
| 4510 | .model_id = SPANSION_S25FL016A, |
| 4511 | .total_size = 2048, |
| 4512 | .page_size = 256, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4513 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4514 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4515 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 4516 | .block_erasers = |
| 4517 | { |
| 4518 | { |
| 4519 | .eraseblocks = { {64 * 1024, 32} }, |
| 4520 | .block_erase = spi_block_erase_d8, |
| 4521 | }, { |
| 4522 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4523 | .block_erase = spi_block_erase_c7, |
| 4524 | } |
| 4525 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4526 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4527 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4528 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4529 | }, |
| 4530 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4531 | { |
| 4532 | .vendor = "SST", |
| 4533 | .name = "SST25VF016B", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4534 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4535 | .manufacture_id = SST_ID, |
| 4536 | .model_id = SST_25VF016B, |
| 4537 | .total_size = 2048, |
| 4538 | .page_size = 256, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 4539 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4540 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4541 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 4542 | .block_erasers = |
| 4543 | { |
| 4544 | { |
| 4545 | .eraseblocks = { {4 * 1024, 512} }, |
| 4546 | .block_erase = spi_block_erase_20, |
| 4547 | }, { |
| 4548 | .eraseblocks = { {32 * 1024, 64} }, |
| 4549 | .block_erase = spi_block_erase_52, |
| 4550 | }, { |
| 4551 | .eraseblocks = { {64 * 1024, 32} }, |
| 4552 | .block_erase = spi_block_erase_d8, |
| 4553 | }, { |
| 4554 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4555 | .block_erase = spi_block_erase_60, |
| 4556 | }, { |
| 4557 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4558 | .block_erase = spi_block_erase_c7, |
| 4559 | }, |
| 4560 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4561 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 93bb375 | 2009-05-13 22:19:12 +0000 | [diff] [blame] | 4562 | .write = spi_chip_write_1, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4563 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4564 | }, |
| 4565 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4566 | { |
| 4567 | .vendor = "SST", |
| 4568 | .name = "SST25VF032B", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4569 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4570 | .manufacture_id = SST_ID, |
| 4571 | .model_id = SST_25VF032B, |
| 4572 | .total_size = 4096, |
| 4573 | .page_size = 256, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 4574 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4575 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4576 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 4577 | .block_erasers = |
| 4578 | { |
| 4579 | { |
| 4580 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4581 | .block_erase = spi_block_erase_20, |
| 4582 | }, { |
| 4583 | .eraseblocks = { {32 * 1024, 128} }, |
| 4584 | .block_erase = spi_block_erase_52, |
| 4585 | }, { |
| 4586 | .eraseblocks = { {64 * 1024, 64} }, |
| 4587 | .block_erase = spi_block_erase_d8, |
| 4588 | }, { |
| 4589 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4590 | .block_erase = spi_block_erase_60, |
| 4591 | }, { |
| 4592 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4593 | .block_erase = spi_block_erase_c7, |
| 4594 | }, |
| 4595 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4596 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 4597 | .write = spi_chip_write_1, |
| 4598 | .read = spi_chip_read, |
| 4599 | }, |
| 4600 | |
| 4601 | { |
| 4602 | .vendor = "SST", |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 4603 | .name = "SST25VF064C", |
| 4604 | .bustype = CHIP_BUSTYPE_SPI, |
| 4605 | .manufacture_id = SST_ID, |
| 4606 | .model_id = SST_25VF064C, |
| 4607 | .total_size = 8192, |
| 4608 | .page_size = 256, |
| 4609 | .tested = TEST_OK_PREW, |
| 4610 | .probe = probe_spi_rdid, |
| 4611 | .probe_timing = TIMING_ZERO, |
| 4612 | .block_erasers = |
| 4613 | { |
| 4614 | { |
| 4615 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4616 | .block_erase = spi_block_erase_20, |
| 4617 | }, { |
| 4618 | .eraseblocks = { {32 * 1024, 256} }, |
| 4619 | .block_erase = spi_block_erase_52, |
| 4620 | }, { |
| 4621 | .eraseblocks = { {64 * 1024, 128} }, |
| 4622 | .block_erase = spi_block_erase_d8, |
| 4623 | }, { |
| 4624 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4625 | .block_erase = spi_block_erase_60, |
| 4626 | }, { |
| 4627 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4628 | .block_erase = spi_block_erase_c7, |
| 4629 | }, |
| 4630 | }, |
| 4631 | .unlock = spi_disable_blockprotect, |
| 4632 | .write = spi_chip_write_1, |
| 4633 | .read = spi_chip_read, |
| 4634 | }, |
| 4635 | |
| 4636 | { |
| 4637 | .vendor = "SST", |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 4638 | .name = "SST25VF040.REMS", |
| 4639 | .bustype = CHIP_BUSTYPE_SPI, |
| 4640 | .manufacture_id = SST_ID, |
| 4641 | .model_id = SST_25VF040_REMS, |
| 4642 | .total_size = 512, |
| 4643 | .page_size = 256, |
| 4644 | .tested = TEST_OK_PR, |
| 4645 | .probe = probe_spi_rems, |
| 4646 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 4647 | .block_erasers = |
| 4648 | { |
| 4649 | { |
| 4650 | .eraseblocks = { {4 * 1024, 128} }, |
| 4651 | .block_erase = spi_block_erase_20, |
| 4652 | }, { |
| 4653 | .eraseblocks = { {32 * 1024, 16} }, |
| 4654 | .block_erase = spi_block_erase_52, |
| 4655 | }, { |
| 4656 | .eraseblocks = { {512 * 1024, 1} }, |
| 4657 | .block_erase = spi_block_erase_60, |
| 4658 | }, |
| 4659 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4660 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 93bb375 | 2009-05-13 22:19:12 +0000 | [diff] [blame] | 4661 | .write = spi_chip_write_1, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4662 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4663 | }, |
| 4664 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4665 | { |
| 4666 | .vendor = "SST", |
| 4667 | .name = "SST25VF040B", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4668 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4669 | .manufacture_id = SST_ID, |
| 4670 | .model_id = SST_25VF040B, |
| 4671 | .total_size = 512, |
| 4672 | .page_size = 256, |
| 4673 | .tested = TEST_UNTESTED, |
| 4674 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4675 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 4676 | .block_erasers = |
| 4677 | { |
| 4678 | { |
| 4679 | .eraseblocks = { {4 * 1024, 128} }, |
| 4680 | .block_erase = spi_block_erase_20, |
| 4681 | }, { |
| 4682 | .eraseblocks = { {32 * 1024, 16} }, |
| 4683 | .block_erase = spi_block_erase_52, |
| 4684 | }, { |
| 4685 | .eraseblocks = { {64 * 1024, 8} }, |
| 4686 | .block_erase = spi_block_erase_d8, |
| 4687 | }, { |
| 4688 | .eraseblocks = { {512 * 1024, 1} }, |
| 4689 | .block_erase = spi_block_erase_60, |
| 4690 | }, { |
| 4691 | .eraseblocks = { {512 * 1024, 1} }, |
| 4692 | .block_erase = spi_block_erase_c7, |
| 4693 | }, |
| 4694 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4695 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 93bb375 | 2009-05-13 22:19:12 +0000 | [diff] [blame] | 4696 | .write = spi_chip_write_1, |
Zheng Bao | 0677dff | 2009-02-25 08:07:33 +0000 | [diff] [blame] | 4697 | .read = spi_chip_read, |
| 4698 | }, |
| 4699 | |
| 4700 | { |
| 4701 | .vendor = "SST", |
Stefan Reinauer | 5cacf8c | 2010-06-14 12:58:06 +0000 | [diff] [blame] | 4702 | .name = "SST25LF040A.RES", |
| 4703 | .bustype = CHIP_BUSTYPE_SPI, |
| 4704 | .manufacture_id = SST_ID, |
| 4705 | .model_id = SST_25VF040_REMS, |
| 4706 | .total_size = 512, |
| 4707 | .page_size = 256, |
| 4708 | .tested = TEST_OK_PROBE, |
| 4709 | .probe = probe_spi_res2, |
| 4710 | .probe_timing = TIMING_ZERO, |
| 4711 | .block_erasers = |
| 4712 | { |
| 4713 | { |
| 4714 | .eraseblocks = { {4 * 1024, 128} }, |
| 4715 | .block_erase = spi_block_erase_20, |
| 4716 | }, { |
| 4717 | .eraseblocks = { {32 * 1024, 16} }, |
| 4718 | .block_erase = spi_block_erase_52, |
| 4719 | }, { |
| 4720 | .eraseblocks = { {512 * 1024, 1} }, |
| 4721 | .block_erase = spi_block_erase_60, |
| 4722 | }, |
| 4723 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4724 | .unlock = spi_disable_blockprotect, |
Stefan Reinauer | 5cacf8c | 2010-06-14 12:58:06 +0000 | [diff] [blame] | 4725 | .write = spi_chip_write_1, |
| 4726 | .read = spi_chip_read, |
| 4727 | }, |
| 4728 | |
| 4729 | { |
| 4730 | .vendor = "SST", |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 4731 | .name = "SST25VF040B.REMS", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4732 | .bustype = CHIP_BUSTYPE_SPI, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4733 | .manufacture_id = SST_ID, |
| 4734 | .model_id = SST_25VF040B_REMS, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 4735 | .total_size = 512, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 4736 | .page_size = 256, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 4737 | .tested = TEST_OK_PR, |
| 4738 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4739 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 4740 | .block_erasers = |
| 4741 | { |
| 4742 | { |
| 4743 | .eraseblocks = { {4 * 1024, 128} }, |
| 4744 | .block_erase = spi_block_erase_20, |
| 4745 | }, { |
| 4746 | .eraseblocks = { {32 * 1024, 16} }, |
| 4747 | .block_erase = spi_block_erase_52, |
| 4748 | }, { |
| 4749 | .eraseblocks = { {64 * 1024, 8} }, |
| 4750 | .block_erase = spi_block_erase_d8, |
| 4751 | }, { |
| 4752 | .eraseblocks = { {512 * 1024, 1} }, |
| 4753 | .block_erase = spi_block_erase_60, |
| 4754 | }, { |
| 4755 | .eraseblocks = { {512 * 1024, 1} }, |
| 4756 | .block_erase = spi_block_erase_c7, |
| 4757 | }, |
| 4758 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4759 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 93bb375 | 2009-05-13 22:19:12 +0000 | [diff] [blame] | 4760 | .write = spi_chip_write_1, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 4761 | .read = spi_chip_read, |
| 4762 | }, |
| 4763 | |
| 4764 | { |
| 4765 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4766 | .name = "SST25VF080B", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4767 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4768 | .manufacture_id = SST_ID, |
| 4769 | .model_id = SST_25VF080B, |
| 4770 | .total_size = 1024, |
| 4771 | .page_size = 256, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 4772 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4773 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4774 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 4775 | .block_erasers = |
| 4776 | { |
| 4777 | { |
| 4778 | .eraseblocks = { {4 * 1024, 256} }, |
| 4779 | .block_erase = spi_block_erase_20, |
| 4780 | }, { |
| 4781 | .eraseblocks = { {32 * 1024, 32} }, |
| 4782 | .block_erase = spi_block_erase_52, |
| 4783 | }, { |
| 4784 | .eraseblocks = { {64 * 1024, 16} }, |
| 4785 | .block_erase = spi_block_erase_d8, |
| 4786 | }, { |
| 4787 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4788 | .block_erase = spi_block_erase_60, |
| 4789 | }, { |
| 4790 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4791 | .block_erase = spi_block_erase_c7, |
| 4792 | }, |
| 4793 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4794 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4795 | .write = spi_chip_write_1, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4796 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4797 | }, |
| 4798 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4799 | { |
| 4800 | .vendor = "SST", |
| 4801 | .name = "SST28SF040A", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4802 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4803 | .manufacture_id = SST_ID, |
| 4804 | .model_id = SST_28SF040, |
| 4805 | .total_size = 512, |
| 4806 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4807 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4808 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 4809 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 4810 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4811 | .block_erasers = |
| 4812 | { |
| 4813 | { |
| 4814 | .eraseblocks = { {128, 4096} }, |
| 4815 | .block_erase = erase_sector_28sf040, |
| 4816 | }, { |
| 4817 | .eraseblocks = { {512 * 1024, 1} }, |
| 4818 | .block_erase = erase_chip_28sf040, |
| 4819 | } |
| 4820 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4821 | .write = write_28sf040, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4822 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4823 | }, |
| 4824 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4825 | { |
| 4826 | .vendor = "SST", |
| 4827 | .name = "SST29EE010", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4828 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4829 | .manufacture_id = SST_ID, |
| 4830 | .model_id = SST_29EE010, |
| 4831 | .total_size = 128, |
| 4832 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4833 | .feature_bits = FEATURE_LONG_RESET, |
Uwe Hermann | 6093969 | 2010-03-17 00:05:59 +0000 | [diff] [blame] | 4834 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4835 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4836 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4837 | .block_erasers = |
| 4838 | { |
| 4839 | { |
| 4840 | .eraseblocks = { {128 * 1024, 1} }, |
| 4841 | .block_erase = erase_chip_block_jedec, |
| 4842 | } |
| 4843 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4844 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4845 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4846 | }, |
| 4847 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4848 | { |
| 4849 | .vendor = "SST", |
| 4850 | .name = "SST29LE010", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4851 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4852 | .manufacture_id = SST_ID, |
| 4853 | .model_id = SST_29LE010, |
| 4854 | .total_size = 128, |
| 4855 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4856 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4857 | .tested = TEST_UNTESTED, |
| 4858 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4859 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4860 | .block_erasers = |
| 4861 | { |
| 4862 | { |
| 4863 | .eraseblocks = { {128 * 1024, 1} }, |
| 4864 | .block_erase = erase_chip_block_jedec, |
| 4865 | } |
| 4866 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4867 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4868 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4869 | }, |
| 4870 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4871 | { |
| 4872 | .vendor = "SST", |
| 4873 | .name = "SST29EE020A", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4874 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4875 | .manufacture_id = SST_ID, |
| 4876 | .model_id = SST_29EE020A, |
| 4877 | .total_size = 256, |
| 4878 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4879 | .feature_bits = FEATURE_LONG_RESET, |
Uwe Hermann | ea5425b | 2010-05-30 17:00:19 +0000 | [diff] [blame] | 4880 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4881 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4882 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4883 | .block_erasers = |
| 4884 | { |
| 4885 | { |
| 4886 | .eraseblocks = { {256 * 1024, 1} }, |
| 4887 | .block_erase = erase_chip_block_jedec, |
| 4888 | } |
| 4889 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4890 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4891 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4892 | }, |
| 4893 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4894 | { |
| 4895 | .vendor = "SST", |
| 4896 | .name = "SST29LE020", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4897 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4898 | .manufacture_id = SST_ID, |
| 4899 | .model_id = SST_29LE020, |
| 4900 | .total_size = 256, |
| 4901 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4902 | .feature_bits = FEATURE_LONG_RESET, |
Michael Karcher | 98eff46 | 2010-03-24 22:55:56 +0000 | [diff] [blame] | 4903 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4904 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4905 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4906 | .block_erasers = |
| 4907 | { |
| 4908 | { |
| 4909 | .eraseblocks = { {256 * 1024, 1} }, |
| 4910 | .block_erase = erase_chip_block_jedec, |
| 4911 | } |
| 4912 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4913 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4914 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4915 | }, |
| 4916 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4917 | { |
| 4918 | .vendor = "SST", |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 4919 | .name = "SST39SF512", |
| 4920 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 4921 | .manufacture_id = SST_ID, |
| 4922 | .model_id = SST_39SF512, |
| 4923 | .total_size = 64, |
| 4924 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4925 | .feature_bits = FEATURE_EITHER_RESET, |
| 4926 | .tested = TEST_UNTESTED, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 4927 | .probe = probe_jedec, |
| 4928 | .probe_timing = 1, /* 150 ns */ |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 4929 | .block_erasers = |
| 4930 | { |
| 4931 | { |
| 4932 | .eraseblocks = { {4 * 1024, 16} }, |
| 4933 | .block_erase = erase_sector_jedec, |
| 4934 | }, { |
| 4935 | .eraseblocks = { {64 * 1024, 1} }, |
| 4936 | .block_erase = erase_chip_block_jedec, |
| 4937 | } |
| 4938 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4939 | .write = write_jedec_1, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 4940 | .read = read_memmapped, |
| 4941 | }, |
| 4942 | |
| 4943 | { |
| 4944 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4945 | .name = "SST39SF010A", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4946 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4947 | .manufacture_id = SST_ID, |
| 4948 | .model_id = SST_39SF010, |
| 4949 | .total_size = 128, |
| 4950 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4951 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 6093969 | 2010-03-17 00:05:59 +0000 | [diff] [blame] | 4952 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4953 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4954 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4955 | .block_erasers = |
| 4956 | { |
| 4957 | { |
| 4958 | .eraseblocks = { {4 * 1024, 32} }, |
| 4959 | .block_erase = erase_sector_jedec, |
| 4960 | }, { |
| 4961 | .eraseblocks = { {128 * 1024, 1} }, |
| 4962 | .block_erase = erase_chip_block_jedec, |
| 4963 | } |
| 4964 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4965 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4966 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4967 | }, |
| 4968 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4969 | { |
| 4970 | .vendor = "SST", |
| 4971 | .name = "SST39SF020A", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4972 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4973 | .manufacture_id = SST_ID, |
| 4974 | .model_id = SST_39SF020, |
| 4975 | .total_size = 256, |
| 4976 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4977 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 6093969 | 2010-03-17 00:05:59 +0000 | [diff] [blame] | 4978 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4979 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4980 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4981 | .block_erasers = |
| 4982 | { |
| 4983 | { |
| 4984 | .eraseblocks = { {4 * 1024, 64} }, |
| 4985 | .block_erase = erase_sector_jedec, |
| 4986 | }, { |
| 4987 | .eraseblocks = { {256 * 1024, 1} }, |
| 4988 | .block_erase = erase_chip_block_jedec, |
| 4989 | } |
| 4990 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4991 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4992 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4993 | }, |
| 4994 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4995 | { |
| 4996 | .vendor = "SST", |
| 4997 | .name = "SST39SF040", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4998 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4999 | .manufacture_id = SST_ID, |
| 5000 | .model_id = SST_39SF040, |
| 5001 | .total_size = 512, |
| 5002 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5003 | .feature_bits = FEATURE_EITHER_RESET, |
| 5004 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5005 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5006 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5007 | .block_erasers = |
| 5008 | { |
| 5009 | { |
| 5010 | .eraseblocks = { {4 * 1024, 128} }, |
| 5011 | .block_erase = erase_sector_jedec, |
| 5012 | }, { |
| 5013 | .eraseblocks = { {512 * 1024, 1} }, |
| 5014 | .block_erase = erase_chip_block_jedec, |
| 5015 | } |
| 5016 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5017 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5018 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5019 | }, |
| 5020 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5021 | { |
| 5022 | .vendor = "SST", |
| 5023 | .name = "SST39VF512", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5024 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5025 | .manufacture_id = SST_ID, |
| 5026 | .model_id = SST_39VF512, |
| 5027 | .total_size = 64, |
| 5028 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5029 | .feature_bits = FEATURE_EITHER_RESET, |
| 5030 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5031 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5032 | .probe_timing = 1, /* 150 ns*/ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5033 | .block_erasers = |
| 5034 | { |
| 5035 | { |
| 5036 | .eraseblocks = { {4 * 1024, 16} }, |
| 5037 | .block_erase = erase_sector_jedec, |
| 5038 | }, { |
| 5039 | .eraseblocks = { {64 * 1024, 1} }, |
| 5040 | .block_erase = erase_chip_block_jedec, |
| 5041 | } |
| 5042 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5043 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5044 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5045 | }, |
| 5046 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5047 | { |
| 5048 | .vendor = "SST", |
| 5049 | .name = "SST39VF010", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5050 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5051 | .manufacture_id = SST_ID, |
| 5052 | .model_id = SST_39VF010, |
| 5053 | .total_size = 128, |
| 5054 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5055 | .feature_bits = FEATURE_EITHER_RESET, |
Guenter Knauf | 2bd007a | 2010-06-24 11:51:12 +0000 | [diff] [blame] | 5056 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5057 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5058 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5059 | .block_erasers = |
| 5060 | { |
| 5061 | { |
| 5062 | .eraseblocks = { {4 * 1024, 32} }, |
| 5063 | .block_erase = erase_sector_jedec, |
| 5064 | }, { |
| 5065 | .eraseblocks = { {128 * 1024, 1} }, |
| 5066 | .block_erase = erase_chip_block_jedec, |
| 5067 | } |
| 5068 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5069 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5070 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5071 | }, |
| 5072 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5073 | { |
| 5074 | .vendor = "SST", |
| 5075 | .name = "SST39VF020", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5076 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5077 | .manufacture_id = SST_ID, |
| 5078 | .model_id = SST_39VF020, |
| 5079 | .total_size = 256, |
| 5080 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5081 | .feature_bits = FEATURE_EITHER_RESET, |
| 5082 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5083 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5084 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5085 | .block_erasers = |
| 5086 | { |
| 5087 | { |
| 5088 | .eraseblocks = { {4 * 1024, 64} }, |
| 5089 | .block_erase = erase_sector_jedec, |
| 5090 | }, { |
| 5091 | .eraseblocks = { {256 * 1024, 1} }, |
| 5092 | .block_erase = erase_chip_block_jedec, |
| 5093 | } |
| 5094 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5095 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5096 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5097 | }, |
| 5098 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5099 | { |
| 5100 | .vendor = "SST", |
| 5101 | .name = "SST39VF040", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5102 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5103 | .manufacture_id = SST_ID, |
| 5104 | .model_id = SST_39VF040, |
| 5105 | .total_size = 512, |
| 5106 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5107 | .feature_bits = FEATURE_EITHER_RESET, |
| 5108 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5109 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5110 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5111 | .block_erasers = |
| 5112 | { |
| 5113 | { |
| 5114 | .eraseblocks = { {4 * 1024, 128} }, |
| 5115 | .block_erase = erase_sector_jedec, |
| 5116 | }, { |
| 5117 | .eraseblocks = { {512 * 1024, 1} }, |
| 5118 | .block_erase = erase_chip_block_jedec, |
| 5119 | } |
| 5120 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5121 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5122 | .read = read_memmapped, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 5123 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5124 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5125 | { |
| 5126 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 5127 | .name = "SST39VF080", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5128 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5129 | .manufacture_id = SST_ID, |
| 5130 | .model_id = SST_39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 5131 | .total_size = 1024, |
| 5132 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5133 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 5134 | .tested = TEST_UNTESTED, |
| 5135 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5136 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5137 | .block_erasers = |
| 5138 | { |
| 5139 | { |
| 5140 | .eraseblocks = { {4 * 1024, 256} }, |
| 5141 | .block_erase = erase_sector_jedec, |
| 5142 | }, { |
| 5143 | .eraseblocks = { {64 * 1024, 16} }, |
| 5144 | .block_erase = erase_block_jedec, |
| 5145 | }, { |
| 5146 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5147 | .block_erase = erase_chip_block_jedec, |
| 5148 | } |
| 5149 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5150 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5151 | .read = read_memmapped, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 5152 | }, |
| 5153 | |
| 5154 | { |
| 5155 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5156 | .name = "SST49LF002A/B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5157 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5158 | .manufacture_id = SST_ID, |
| 5159 | .model_id = SST_49LF002A, |
| 5160 | .total_size = 256, |
| 5161 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5162 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5163 | .tested = TEST_OK_PRW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5164 | .probe = probe_jedec, |
| 5165 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5166 | .block_erasers = |
| 5167 | { |
| 5168 | { |
| 5169 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5170 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5171 | }, { |
| 5172 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5173 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5174 | }, { |
| 5175 | .eraseblocks = { {256 * 1024, 1} }, |
| 5176 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 5177 | } |
| 5178 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5179 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5180 | .unlock = unlock_sst_fwhub, |
| 5181 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5182 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5183 | }, |
| 5184 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5185 | { |
| 5186 | .vendor = "SST", |
| 5187 | .name = "SST49LF003A/B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5188 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5189 | .manufacture_id = SST_ID, |
| 5190 | .model_id = SST_49LF003A, |
| 5191 | .total_size = 384, |
| 5192 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5193 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Peter Lemenkov | 45835c4 | 2009-09-25 01:09:18 +0000 | [diff] [blame] | 5194 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5195 | .probe = probe_jedec, |
| 5196 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5197 | .block_erasers = |
| 5198 | { |
| 5199 | { |
| 5200 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5201 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5202 | }, { |
| 5203 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5204 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5205 | }, { |
| 5206 | .eraseblocks = { {384 * 1024, 1} }, |
| 5207 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 5208 | } |
| 5209 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5210 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5211 | .unlock = unlock_sst_fwhub, |
| 5212 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5213 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5214 | }, |
| 5215 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5216 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 5217 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 5218 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 5219 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5220 | .vendor = "SST", |
| 5221 | .name = "SST49LF004A/B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5222 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5223 | .manufacture_id = SST_ID, |
| 5224 | .model_id = SST_49LF004A, |
| 5225 | .total_size = 512, |
| 5226 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5227 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5228 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5229 | .probe = probe_jedec, |
| 5230 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 5231 | .block_erasers = |
| 5232 | { |
| 5233 | { |
| 5234 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5235 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 5236 | }, { |
| 5237 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5238 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 5239 | }, { |
| 5240 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5241 | .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] | 5242 | }, |
| 5243 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5244 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5245 | .unlock = unlock_sst_fwhub, |
| 5246 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5247 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5248 | }, |
| 5249 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5250 | { |
| 5251 | .vendor = "SST", |
| 5252 | .name = "SST49LF004C", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5253 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5254 | .manufacture_id = SST_ID, |
| 5255 | .model_id = SST_49LF004C, |
| 5256 | .total_size = 512, |
| 5257 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5258 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5259 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5260 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 5261 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5262 | .block_erasers = |
| 5263 | { |
| 5264 | { |
| 5265 | .eraseblocks = { {4 * 1024, 128} }, |
| 5266 | .block_erase = erase_sector_49lfxxxc, |
| 5267 | }, { |
| 5268 | .eraseblocks = { |
| 5269 | {64 * 1024, 7}, |
| 5270 | {32 * 1024, 1}, |
| 5271 | {8 * 1024, 2}, |
| 5272 | {16 * 1024, 1}, |
| 5273 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 5274 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5275 | } |
| 5276 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 5277 | .unlock = unlock_49lfxxxc, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5278 | .write = write_49lfxxxc, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5279 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5280 | }, |
| 5281 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5282 | { |
| 5283 | .vendor = "SST", |
| 5284 | .name = "SST49LF008A", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5285 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5286 | .manufacture_id = SST_ID, |
| 5287 | .model_id = SST_49LF008A, |
| 5288 | .total_size = 1024, |
| 5289 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5290 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Uwe Hermann | ea5425b | 2010-05-30 17:00:19 +0000 | [diff] [blame] | 5291 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5292 | .probe = probe_jedec, |
| 5293 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5294 | .block_erasers = |
| 5295 | { |
| 5296 | { |
| 5297 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5298 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5299 | }, { |
| 5300 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5301 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5302 | }, { |
| 5303 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5304 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 5305 | } |
| 5306 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5307 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 5308 | .unlock = unlock_sst_fwhub, |
| 5309 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5310 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5311 | }, |
| 5312 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5313 | { |
| 5314 | .vendor = "SST", |
| 5315 | .name = "SST49LF008C", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5316 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5317 | .manufacture_id = SST_ID, |
| 5318 | .model_id = SST_49LF008C, |
| 5319 | .total_size = 1024, |
| 5320 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5321 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5322 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5323 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 5324 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5325 | .block_erasers = |
| 5326 | { |
| 5327 | { |
| 5328 | .eraseblocks = { {4 * 1024, 256} }, |
| 5329 | .block_erase = erase_sector_49lfxxxc, |
| 5330 | }, { |
| 5331 | .eraseblocks = { |
| 5332 | {64 * 1024, 15}, |
| 5333 | {32 * 1024, 1}, |
| 5334 | {8 * 1024, 2}, |
| 5335 | {16 * 1024, 1}, |
| 5336 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 5337 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5338 | } |
| 5339 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 5340 | .unlock = unlock_49lfxxxc, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5341 | .write = write_49lfxxxc, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5342 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5343 | }, |
| 5344 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5345 | { |
| 5346 | .vendor = "SST", |
| 5347 | .name = "SST49LF016C", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5348 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5349 | .manufacture_id = SST_ID, |
| 5350 | .model_id = SST_49LF016C, |
| 5351 | .total_size = 2048, |
| 5352 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5353 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5354 | .tested = TEST_OK_PRW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5355 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 5356 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5357 | .block_erasers = |
| 5358 | { |
| 5359 | { |
| 5360 | .eraseblocks = { {4 * 1024, 512} }, |
| 5361 | .block_erase = erase_sector_49lfxxxc, |
| 5362 | }, { |
| 5363 | .eraseblocks = { |
| 5364 | {64 * 1024, 31}, |
| 5365 | {32 * 1024, 1}, |
| 5366 | {8 * 1024, 2}, |
| 5367 | {16 * 1024, 1}, |
| 5368 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 5369 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5370 | } |
| 5371 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 5372 | .unlock = unlock_49lfxxxc, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5373 | .write = write_49lfxxxc, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5374 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5375 | }, |
| 5376 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5377 | { |
| 5378 | .vendor = "SST", |
| 5379 | .name = "SST49LF020", |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5380 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5381 | .manufacture_id = SST_ID, |
| 5382 | .model_id = SST_49LF020, |
| 5383 | .total_size = 256, |
| 5384 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5385 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 8d341b5 | 2010-05-25 23:27:44 +0000 | [diff] [blame] | 5386 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5387 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5388 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5389 | .block_erasers = |
| 5390 | { |
| 5391 | { |
| 5392 | .eraseblocks = { {4 * 1024, 64} }, |
| 5393 | .block_erase = erase_sector_jedec, |
| 5394 | }, { |
| 5395 | .eraseblocks = { {16 * 1024, 16} }, |
| 5396 | .block_erase = erase_block_jedec, |
| 5397 | }, { |
| 5398 | .eraseblocks = { {256 * 1024, 1} }, |
| 5399 | .block_erase = NULL, |
| 5400 | } |
| 5401 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5402 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5403 | .read = read_memmapped, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 5404 | }, |
| 5405 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5406 | { |
| 5407 | .vendor = "SST", |
| 5408 | .name = "SST49LF020A", |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5409 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5410 | .manufacture_id = SST_ID, |
| 5411 | .model_id = SST_49LF020A, |
| 5412 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 5413 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5414 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 8d341b5 | 2010-05-25 23:27:44 +0000 | [diff] [blame] | 5415 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5416 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5417 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5418 | .block_erasers = |
| 5419 | { |
| 5420 | { |
| 5421 | .eraseblocks = { {4 * 1024, 64} }, |
| 5422 | .block_erase = erase_sector_jedec, |
| 5423 | }, { |
| 5424 | .eraseblocks = { {16 * 1024, 16} }, |
| 5425 | .block_erase = erase_block_jedec, |
| 5426 | }, { |
| 5427 | .eraseblocks = { {256 * 1024, 1} }, |
| 5428 | .block_erase = NULL, |
| 5429 | } |
| 5430 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5431 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5432 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5433 | }, |
| 5434 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5435 | { |
| 5436 | .vendor = "SST", |
| 5437 | .name = "SST49LF040", |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5438 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5439 | .manufacture_id = SST_ID, |
| 5440 | .model_id = SST_49LF040, |
| 5441 | .total_size = 512, |
| 5442 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5443 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | ea5425b | 2010-05-30 17:00:19 +0000 | [diff] [blame] | 5444 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5445 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 5446 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5447 | .block_erasers = |
| 5448 | { |
| 5449 | { |
| 5450 | .eraseblocks = { {4 * 1024, 128} }, |
| 5451 | .block_erase = erase_sector_jedec, |
| 5452 | }, { |
| 5453 | .eraseblocks = { {64 * 1024, 8} }, |
| 5454 | .block_erase = erase_block_jedec, |
| 5455 | }, { |
| 5456 | .eraseblocks = { {512 * 1024, 1} }, |
| 5457 | .block_erase = NULL, |
| 5458 | } |
| 5459 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5460 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5461 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5462 | }, |
| 5463 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5464 | { |
| 5465 | .vendor = "SST", |
| 5466 | .name = "SST49LF040B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5467 | .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5468 | .manufacture_id = SST_ID, |
| 5469 | .model_id = SST_49LF040B, |
| 5470 | .total_size = 512, |
| 5471 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5472 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 8d341b5 | 2010-05-25 23:27:44 +0000 | [diff] [blame] | 5473 | .tested = TEST_OK_PR, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5474 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5475 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5476 | .block_erasers = |
| 5477 | { |
| 5478 | { |
| 5479 | .eraseblocks = { {4 * 1024, 128} }, |
| 5480 | .block_erase = erase_sector_jedec, |
| 5481 | }, { |
| 5482 | .eraseblocks = { {64 * 1024, 8} }, |
| 5483 | .block_erase = erase_block_jedec, |
| 5484 | }, { |
| 5485 | .eraseblocks = { {512 * 1024, 1} }, |
| 5486 | .block_erase = NULL, |
| 5487 | } |
| 5488 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5489 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5490 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5491 | }, |
| 5492 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5493 | { |
| 5494 | .vendor = "SST", |
| 5495 | .name = "SST49LF080A", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5496 | .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5497 | .manufacture_id = SST_ID, |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5498 | .model_id = SST_49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5499 | .total_size = 1024, |
| 5500 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5501 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 8d341b5 | 2010-05-25 23:27:44 +0000 | [diff] [blame] | 5502 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5503 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 5504 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5505 | .block_erasers = |
| 5506 | { |
| 5507 | { |
| 5508 | .eraseblocks = { {4 * 1024, 256} }, |
| 5509 | .block_erase = erase_sector_jedec, |
| 5510 | }, { |
| 5511 | .eraseblocks = { {64 * 1024, 16} }, |
| 5512 | .block_erase = erase_block_jedec, |
| 5513 | }, { |
| 5514 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5515 | .block_erase = NULL, |
| 5516 | } |
| 5517 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5518 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5519 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5520 | }, |
| 5521 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5522 | { |
| 5523 | .vendor = "SST", |
| 5524 | .name = "SST49LF160C", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5525 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5526 | .manufacture_id = SST_ID, |
| 5527 | .model_id = SST_49LF160C, |
| 5528 | .total_size = 2048, |
| 5529 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5530 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5531 | .tested = TEST_OK_PRW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5532 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 5533 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5534 | .block_erasers = |
| 5535 | { |
| 5536 | { |
| 5537 | .eraseblocks = { {4 * 1024, 512} }, |
| 5538 | .block_erase = erase_sector_49lfxxxc, |
| 5539 | }, { |
| 5540 | .eraseblocks = { |
| 5541 | {64 * 1024, 31}, |
| 5542 | {32 * 1024, 1}, |
| 5543 | {8 * 1024, 2}, |
| 5544 | {16 * 1024, 1}, |
| 5545 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 5546 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 5547 | } |
| 5548 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 5549 | .unlock = unlock_49lfxxxc, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5550 | .write = write_49lfxxxc, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5551 | .read = read_memmapped, |
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 = "ST", |
| 5556 | .name = "M25P05-A", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5557 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5558 | .manufacture_id = ST_ID, |
| 5559 | .model_id = ST_M25P05A, |
| 5560 | .total_size = 64, |
| 5561 | .page_size = 256, |
| 5562 | .tested = TEST_UNTESTED, |
| 5563 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5564 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5565 | .block_erasers = |
| 5566 | { |
| 5567 | { |
| 5568 | .eraseblocks = { {32 * 1024, 2} }, |
| 5569 | .block_erase = spi_block_erase_d8, |
| 5570 | }, { |
| 5571 | .eraseblocks = { {64 * 1024, 1} }, |
| 5572 | .block_erase = spi_block_erase_c7, |
| 5573 | } |
| 5574 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5575 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5576 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5577 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5578 | }, |
| 5579 | |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 5580 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 5581 | * 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] | 5582 | * 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] | 5583 | * only is successful if RDID does not work. |
| 5584 | */ |
| 5585 | { |
| 5586 | .vendor = "ST", |
| 5587 | .name = "M25P05.RES", |
| 5588 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 5589 | .manufacture_id = 0, /* Not used. */ |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 5590 | .model_id = ST_M25P05_RES, |
| 5591 | .total_size = 64, |
| 5592 | .page_size = 256, |
| 5593 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 5594 | .probe = probe_spi_res1, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 5595 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5596 | .block_erasers = |
| 5597 | { |
| 5598 | { |
| 5599 | .eraseblocks = { {32 * 1024, 2} }, |
| 5600 | .block_erase = spi_block_erase_d8, |
| 5601 | }, { |
| 5602 | .eraseblocks = { {64 * 1024, 1} }, |
| 5603 | .block_erase = spi_block_erase_c7, |
| 5604 | } |
| 5605 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5606 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 5607 | .write = spi_chip_write_1, /* 128 */ |
| 5608 | .read = spi_chip_read, |
| 5609 | }, |
| 5610 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5611 | { |
| 5612 | .vendor = "ST", |
| 5613 | .name = "M25P10-A", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5614 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5615 | .manufacture_id = ST_ID, |
| 5616 | .model_id = ST_M25P10A, |
| 5617 | .total_size = 128, |
| 5618 | .page_size = 256, |
| 5619 | .tested = TEST_UNTESTED, |
| 5620 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5621 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5622 | .block_erasers = |
| 5623 | { |
| 5624 | { |
| 5625 | .eraseblocks = { {32 * 1024, 4} }, |
| 5626 | .block_erase = spi_block_erase_d8, |
| 5627 | }, { |
| 5628 | .eraseblocks = { {128 * 1024, 1} }, |
| 5629 | .block_erase = spi_block_erase_c7, |
| 5630 | } |
| 5631 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5632 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5633 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5634 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5635 | }, |
| 5636 | |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 5637 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 5638 | { |
| 5639 | .vendor = "ST", |
| 5640 | .name = "M25P10.RES", |
| 5641 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 5642 | .manufacture_id = 0, /* Not used. */ |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 5643 | .model_id = ST_M25P10_RES, |
| 5644 | .total_size = 128, |
| 5645 | .page_size = 256, |
| 5646 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 5647 | .probe = probe_spi_res1, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 5648 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5649 | .block_erasers = |
| 5650 | { |
| 5651 | { |
| 5652 | .eraseblocks = { {32 * 1024, 4} }, |
| 5653 | .block_erase = spi_block_erase_d8, |
| 5654 | }, { |
| 5655 | .eraseblocks = { {128 * 1024, 1} }, |
| 5656 | .block_erase = spi_block_erase_c7, |
| 5657 | } |
| 5658 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5659 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 5660 | .write = spi_chip_write_1, /* 128 */ |
| 5661 | .read = spi_chip_read, |
| 5662 | }, |
| 5663 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5664 | { |
| 5665 | .vendor = "ST", |
| 5666 | .name = "M25P20", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5667 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5668 | .manufacture_id = ST_ID, |
| 5669 | .model_id = ST_M25P20, |
| 5670 | .total_size = 256, |
| 5671 | .page_size = 256, |
| 5672 | .tested = TEST_UNTESTED, |
| 5673 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5674 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5675 | .block_erasers = |
| 5676 | { |
| 5677 | { |
| 5678 | .eraseblocks = { {64 * 1024, 4} }, |
| 5679 | .block_erase = spi_block_erase_d8, |
| 5680 | }, { |
| 5681 | .eraseblocks = { {256 * 1024, 1} }, |
| 5682 | .block_erase = spi_block_erase_c7, |
| 5683 | } |
| 5684 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5685 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5686 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5687 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5688 | }, |
| 5689 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5690 | { |
| 5691 | .vendor = "ST", |
| 5692 | .name = "M25P40", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5693 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5694 | .manufacture_id = ST_ID, |
| 5695 | .model_id = ST_M25P40, |
| 5696 | .total_size = 512, |
| 5697 | .page_size = 256, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5698 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5699 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5700 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5701 | .block_erasers = |
| 5702 | { |
| 5703 | { |
| 5704 | .eraseblocks = { {64 * 1024, 8} }, |
| 5705 | .block_erase = spi_block_erase_d8, |
| 5706 | }, { |
| 5707 | .eraseblocks = { {512 * 1024, 1} }, |
| 5708 | .block_erase = spi_block_erase_c7, |
| 5709 | } |
| 5710 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5711 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5712 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5713 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5714 | }, |
| 5715 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5716 | { |
| 5717 | .vendor = "ST", |
| 5718 | .name = "M25P40-old", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5719 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 5720 | .manufacture_id = 0, /* Not used. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5721 | .model_id = ST_M25P40_RES, |
| 5722 | .total_size = 512, |
| 5723 | .page_size = 256, |
| 5724 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 5725 | .probe = probe_spi_res1, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5726 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5727 | .block_erasers = |
| 5728 | { |
| 5729 | { |
| 5730 | .eraseblocks = { {64 * 1024, 8} }, |
| 5731 | .block_erase = spi_block_erase_d8, |
| 5732 | }, { |
| 5733 | .eraseblocks = { {512 * 1024, 1} }, |
| 5734 | .block_erase = spi_block_erase_c7, |
| 5735 | } |
| 5736 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5737 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5738 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5739 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5740 | }, |
| 5741 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5742 | { |
| 5743 | .vendor = "ST", |
| 5744 | .name = "M25P80", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5745 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5746 | .manufacture_id = ST_ID, |
| 5747 | .model_id = ST_M25P80, |
| 5748 | .total_size = 1024, |
| 5749 | .page_size = 256, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5750 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5751 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5752 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5753 | .block_erasers = |
| 5754 | { |
| 5755 | { |
| 5756 | .eraseblocks = { {64 * 1024, 16} }, |
| 5757 | .block_erase = spi_block_erase_d8, |
| 5758 | }, { |
| 5759 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5760 | .block_erase = spi_block_erase_c7, |
| 5761 | } |
| 5762 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5763 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5764 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5765 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5766 | }, |
| 5767 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5768 | { |
| 5769 | .vendor = "ST", |
| 5770 | .name = "M25P16", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5771 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5772 | .manufacture_id = ST_ID, |
| 5773 | .model_id = ST_M25P16, |
| 5774 | .total_size = 2048, |
| 5775 | .page_size = 256, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5776 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5777 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5778 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5779 | .block_erasers = |
| 5780 | { |
| 5781 | { |
| 5782 | .eraseblocks = { {64 * 1024, 32} }, |
| 5783 | .block_erase = spi_block_erase_d8, |
| 5784 | }, { |
| 5785 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5786 | .block_erase = spi_block_erase_c7, |
| 5787 | } |
| 5788 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5789 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5790 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5791 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5792 | }, |
| 5793 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5794 | { |
| 5795 | .vendor = "ST", |
| 5796 | .name = "M25P32", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5797 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5798 | .manufacture_id = ST_ID, |
| 5799 | .model_id = ST_M25P32, |
| 5800 | .total_size = 4096, |
| 5801 | .page_size = 256, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5802 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5803 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5804 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5805 | .block_erasers = |
| 5806 | { |
| 5807 | { |
| 5808 | .eraseblocks = { {64 * 1024, 64} }, |
| 5809 | .block_erase = spi_block_erase_d8, |
| 5810 | }, { |
| 5811 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5812 | .block_erase = spi_block_erase_c7, |
| 5813 | } |
| 5814 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5815 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5816 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5817 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5818 | }, |
| 5819 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5820 | { |
| 5821 | .vendor = "ST", |
| 5822 | .name = "M25P64", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5823 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5824 | .manufacture_id = ST_ID, |
| 5825 | .model_id = ST_M25P64, |
| 5826 | .total_size = 8192, |
| 5827 | .page_size = 256, |
| 5828 | .tested = TEST_UNTESTED, |
| 5829 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5830 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5831 | .block_erasers = |
| 5832 | { |
| 5833 | { |
| 5834 | .eraseblocks = { {64 * 1024, 128} }, |
| 5835 | .block_erase = spi_block_erase_d8, |
| 5836 | }, { |
| 5837 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5838 | .block_erase = spi_block_erase_c7, |
| 5839 | } |
| 5840 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5841 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5842 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5843 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5844 | }, |
| 5845 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5846 | { |
| 5847 | .vendor = "ST", |
| 5848 | .name = "M25P128", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5849 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5850 | .manufacture_id = ST_ID, |
| 5851 | .model_id = ST_M25P128, |
| 5852 | .total_size = 16384, |
| 5853 | .page_size = 256, |
| 5854 | .tested = TEST_UNTESTED, |
| 5855 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5856 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5857 | .block_erasers = |
| 5858 | { |
| 5859 | { |
| 5860 | .eraseblocks = { {256 * 1024, 64} }, |
| 5861 | .block_erase = spi_block_erase_d8, |
| 5862 | }, { |
| 5863 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5864 | .block_erase = spi_block_erase_c7, |
| 5865 | } |
| 5866 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5867 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5868 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5869 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5870 | }, |
| 5871 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5872 | { |
| 5873 | .vendor = "ST", |
| 5874 | .name = "M29F002B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5875 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5876 | .manufacture_id = ST_ID, |
| 5877 | .model_id = ST_M29F002B, |
| 5878 | .total_size = 256, |
| 5879 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5880 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5881 | .tested = TEST_UNTESTED, |
| 5882 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5883 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5884 | .block_erasers = |
| 5885 | { |
| 5886 | { |
| 5887 | .eraseblocks = { |
| 5888 | {16 * 1024, 1}, |
| 5889 | {8 * 1024, 2}, |
| 5890 | {32 * 1024, 1}, |
| 5891 | {64 * 1024, 3}, |
| 5892 | }, |
| 5893 | .block_erase = erase_sector_jedec, |
| 5894 | }, { |
| 5895 | .eraseblocks = { {256 * 1024, 1} }, |
| 5896 | .block_erase = erase_chip_block_jedec, |
| 5897 | } |
| 5898 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5899 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5900 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5901 | }, |
| 5902 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5903 | { |
| 5904 | .vendor = "ST", |
| 5905 | .name = "M29F002T/NT", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5906 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5907 | .manufacture_id = ST_ID, |
| 5908 | .model_id = ST_M29F002T, |
| 5909 | .total_size = 256, |
| 5910 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5911 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
| 5912 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5913 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5914 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5915 | .block_erasers = |
| 5916 | { |
| 5917 | { |
| 5918 | .eraseblocks = { |
| 5919 | {64 * 1024, 3}, |
| 5920 | {32 * 1024, 1}, |
| 5921 | {8 * 1024, 2}, |
| 5922 | {16 * 1024, 1}, |
| 5923 | }, |
| 5924 | .block_erase = erase_sector_jedec, |
| 5925 | }, { |
| 5926 | .eraseblocks = { {256 * 1024, 1} }, |
| 5927 | .block_erase = erase_chip_block_jedec, |
| 5928 | } |
| 5929 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5930 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5931 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5932 | }, |
| 5933 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5934 | { |
| 5935 | .vendor = "ST", |
| 5936 | .name = "M29F040B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5937 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5938 | .manufacture_id = ST_ID, |
| 5939 | .model_id = ST_M29F040B, |
| 5940 | .total_size = 512, |
| 5941 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5942 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 5943 | .tested = TEST_UNTESTED, |
| 5944 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 5945 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (am29f040b.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5946 | .block_erasers = |
| 5947 | { |
| 5948 | { |
| 5949 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5950 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5951 | }, { |
| 5952 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5953 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5954 | } |
| 5955 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +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, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5958 | }, |
| 5959 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5960 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5961 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5962 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 5963 | .name = "M29F400BB", |
| 5964 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 5965 | .manufacture_id = ST_ID, |
| 5966 | .model_id = ST_M29F400BB, |
| 5967 | .total_size = 512, |
| 5968 | .page_size = 64 * 1024, |
| 5969 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
| 5970 | .tested = TEST_BAD_WRITE, /* Implicit eraseblock layout in write_m29f400bt is broken. */ |
| 5971 | .probe = probe_m29f400bt, |
| 5972 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
| 5973 | .block_erasers = |
| 5974 | { |
| 5975 | { |
| 5976 | .eraseblocks = { |
| 5977 | {16 * 1024, 1}, |
| 5978 | {8 * 1024, 2}, |
| 5979 | {32 * 1024, 1}, |
| 5980 | {64 * 1024, 7}, |
| 5981 | }, |
| 5982 | .block_erase = block_erase_m29f400bt, |
| 5983 | }, { |
| 5984 | .eraseblocks = { {512 * 1024, 1} }, |
| 5985 | .block_erase = block_erase_chip_m29f400bt, |
| 5986 | } |
| 5987 | }, |
| 5988 | .write = NULL, |
| 5989 | .read = read_memmapped, |
| 5990 | }, |
| 5991 | { |
| 5992 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 5993 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5994 | .name = "M29F400BT", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5995 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5996 | .manufacture_id = ST_ID, |
| 5997 | .model_id = ST_M29F400BT, |
| 5998 | .total_size = 512, |
| 5999 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6000 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6001 | .tested = TEST_UNTESTED, |
| 6002 | .probe = probe_m29f400bt, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 6003 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6004 | .block_erasers = |
| 6005 | { |
| 6006 | { |
| 6007 | .eraseblocks = { |
| 6008 | {64 * 1024, 7}, |
| 6009 | {32 * 1024, 1}, |
| 6010 | {8 * 1024, 2}, |
| 6011 | {16 * 1024, 1}, |
| 6012 | }, |
| 6013 | .block_erase = block_erase_m29f400bt, |
| 6014 | }, { |
| 6015 | .eraseblocks = { {512 * 1024, 1} }, |
| 6016 | .block_erase = block_erase_chip_m29f400bt, |
| 6017 | } |
| 6018 | }, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 6019 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6020 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6021 | }, |
| 6022 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6023 | { |
| 6024 | .vendor = "ST", |
| 6025 | .name = "M29W010B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6026 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6027 | .manufacture_id = ST_ID, |
| 6028 | .model_id = ST_M29W010B, |
| 6029 | .total_size = 128, |
| 6030 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6031 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6032 | .tested = TEST_UNTESTED, |
| 6033 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6034 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6035 | .block_erasers = |
| 6036 | { |
| 6037 | { |
| 6038 | .eraseblocks = { {16 * 1024, 8}, }, |
| 6039 | .block_erase = erase_sector_jedec, |
| 6040 | }, { |
| 6041 | .eraseblocks = { {128 * 1024, 1} }, |
| 6042 | .block_erase = erase_chip_block_jedec, |
| 6043 | } |
| 6044 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6045 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6046 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6047 | }, |
| 6048 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6049 | { |
| 6050 | .vendor = "ST", |
| 6051 | .name = "M29W040B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6052 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6053 | .manufacture_id = ST_ID, |
| 6054 | .model_id = ST_M29W040B, |
| 6055 | .total_size = 512, |
| 6056 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6057 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6058 | .tested = TEST_UNTESTED, |
| 6059 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6060 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6061 | .block_erasers = |
| 6062 | { |
| 6063 | { |
| 6064 | .eraseblocks = { {64 * 1024, 8}, }, |
| 6065 | .block_erase = erase_sector_jedec, |
| 6066 | }, { |
| 6067 | .eraseblocks = { {512 * 1024, 1} }, |
| 6068 | .block_erase = erase_chip_block_jedec, |
| 6069 | } |
| 6070 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6071 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6072 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6073 | }, |
| 6074 | |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 6075 | { |
| 6076 | .vendor = "ST", |
| 6077 | .name = "M29W512B", |
| 6078 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 6079 | .manufacture_id = ST_ID, |
| 6080 | .model_id = ST_M29W512B, |
| 6081 | .total_size = 64, |
| 6082 | .page_size = 64 * 1024, |
| 6083 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 6084 | .tested = TEST_OK_PREW, |
| 6085 | .probe = probe_jedec, |
| 6086 | .probe_timing = TIMING_ZERO, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 6087 | .block_erasers = |
| 6088 | { |
| 6089 | { |
| 6090 | .eraseblocks = { {64 * 1024, 1} }, |
| 6091 | .block_erase = erase_chip_block_jedec, |
| 6092 | } |
| 6093 | }, |
| 6094 | .write = write_jedec_1, |
| 6095 | .read = read_memmapped, |
| 6096 | }, |
| 6097 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6098 | { |
| 6099 | .vendor = "ST", |
| 6100 | .name = "M50FLW040A", |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6101 | .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6102 | .manufacture_id = ST_ID, |
| 6103 | .model_id = ST_M50FLW040A, |
| 6104 | .total_size = 512, |
| 6105 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6106 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6107 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6108 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 6109 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6110 | .block_erasers = |
| 6111 | { |
| 6112 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 6113 | .eraseblocks = { |
| 6114 | {4 * 1024, 16}, /* sector */ |
| 6115 | {64 * 1024, 5}, /* block */ |
| 6116 | {4 * 1024, 16}, /* sector */ |
| 6117 | {4 * 1024, 16}, /* sector */ |
| 6118 | }, |
| 6119 | .block_erase = NULL, |
| 6120 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6121 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6122 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6123 | }, { |
| 6124 | .eraseblocks = { {512 * 1024, 1} }, |
| 6125 | .block_erase = erase_chip_stm50flw0x0x, |
| 6126 | } |
| 6127 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6128 | .unlock = unlock_stm50flw0x0x, |
| 6129 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6130 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6131 | }, |
| 6132 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6133 | { |
| 6134 | .vendor = "ST", |
| 6135 | .name = "M50FLW040B", |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6136 | .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6137 | .manufacture_id = ST_ID, |
| 6138 | .model_id = ST_M50FLW040B, |
| 6139 | .total_size = 512, |
| 6140 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6141 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6142 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6143 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 6144 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6145 | .block_erasers = |
| 6146 | { |
| 6147 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 6148 | .eraseblocks = { |
| 6149 | {4 * 1024, 16}, /* sector */ |
| 6150 | {4 * 1024, 16}, /* sector */ |
| 6151 | {64 * 1024, 5}, /* block */ |
| 6152 | {4 * 1024, 16}, /* sector */ |
| 6153 | }, |
| 6154 | .block_erase = NULL, |
| 6155 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6156 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6157 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6158 | }, { |
| 6159 | .eraseblocks = { {512 * 1024, 1} }, |
| 6160 | .block_erase = erase_chip_stm50flw0x0x, |
| 6161 | } |
| 6162 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6163 | .unlock = unlock_stm50flw0x0x, |
| 6164 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6165 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6166 | }, |
| 6167 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6168 | { |
| 6169 | .vendor = "ST", |
| 6170 | .name = "M50FLW080A", |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6171 | .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6172 | .manufacture_id = ST_ID, |
| 6173 | .model_id = ST_M50FLW080A, |
| 6174 | .total_size = 1024, |
| 6175 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6176 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6177 | .tested = TEST_UNTESTED, |
| 6178 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 6179 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6180 | .block_erasers = |
| 6181 | { |
| 6182 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 6183 | .eraseblocks = { |
| 6184 | {4 * 1024, 16}, /* sector */ |
| 6185 | {64 * 1024, 13}, /* block */ |
| 6186 | {4 * 1024, 16}, /* sector */ |
| 6187 | {4 * 1024, 16}, /* sector */ |
| 6188 | }, |
| 6189 | .block_erase = NULL, |
| 6190 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6191 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6192 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6193 | }, { |
| 6194 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6195 | .block_erase = erase_chip_stm50flw0x0x, |
| 6196 | } |
| 6197 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6198 | .unlock = unlock_stm50flw0x0x, |
| 6199 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6200 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6201 | }, |
| 6202 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6203 | { |
| 6204 | .vendor = "ST", |
| 6205 | .name = "M50FLW080B", |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6206 | .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6207 | .manufacture_id = ST_ID, |
| 6208 | .model_id = ST_M50FLW080B, |
| 6209 | .total_size = 1024, |
| 6210 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6211 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6212 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6213 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 6214 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6215 | .block_erasers = |
| 6216 | { |
| 6217 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 6218 | .eraseblocks = { |
| 6219 | {4 * 1024, 16}, /* sector */ |
| 6220 | {4 * 1024, 16}, /* sector */ |
| 6221 | {64 * 1024, 13}, /* block */ |
| 6222 | {4 * 1024, 16}, /* sector */ |
| 6223 | }, |
| 6224 | .block_erase = NULL, |
| 6225 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6226 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6227 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6228 | }, { |
| 6229 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6230 | .block_erase = erase_chip_stm50flw0x0x, |
| 6231 | } |
| 6232 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6233 | .unlock = unlock_stm50flw0x0x, |
| 6234 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6235 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6236 | }, |
| 6237 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6238 | { |
| 6239 | .vendor = "ST", |
| 6240 | .name = "M50FW002", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6241 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6242 | .manufacture_id = ST_ID, |
| 6243 | .model_id = ST_M50FW002, |
| 6244 | .total_size = 256, |
| 6245 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6246 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6247 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6248 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 6249 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6250 | .block_erasers = |
| 6251 | { |
| 6252 | { |
| 6253 | .eraseblocks = { |
| 6254 | {64 * 1024, 3}, |
| 6255 | {32 * 1024, 1}, |
| 6256 | {8 * 1024, 2}, |
| 6257 | {16 * 1024, 1}, |
| 6258 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6259 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6260 | }, { |
| 6261 | .eraseblocks = { {256 * 1024, 1} }, |
| 6262 | .block_erase = erase_chip_stm50flw0x0x, |
| 6263 | } |
| 6264 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6265 | .unlock = unlock_stm50flw0x0x, |
| 6266 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6267 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6268 | }, |
| 6269 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6270 | { |
| 6271 | .vendor = "ST", |
| 6272 | .name = "M50FW016", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6273 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6274 | .manufacture_id = ST_ID, |
| 6275 | .model_id = ST_M50FW016, |
| 6276 | .total_size = 2048, |
| 6277 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6278 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6279 | .tested = TEST_UNTESTED, |
| 6280 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 6281 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6282 | .block_erasers = |
| 6283 | { |
| 6284 | { |
| 6285 | .eraseblocks = { {64 * 1024, 32}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6286 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6287 | }, { |
| 6288 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6289 | .block_erase = erase_chip_stm50flw0x0x, |
| 6290 | } |
| 6291 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6292 | .unlock = unlock_stm50flw0x0x, |
| 6293 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6294 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6295 | }, |
| 6296 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6297 | { |
| 6298 | .vendor = "ST", |
| 6299 | .name = "M50FW040", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6300 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6301 | .manufacture_id = ST_ID, |
| 6302 | .model_id = ST_M50FW040, |
| 6303 | .total_size = 512, |
| 6304 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6305 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6306 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6307 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 6308 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6309 | .block_erasers = |
| 6310 | { |
| 6311 | { |
| 6312 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6313 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6314 | }, { |
| 6315 | .eraseblocks = { {512 * 1024, 1} }, |
| 6316 | .block_erase = erase_chip_stm50flw0x0x, |
| 6317 | } |
| 6318 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6319 | .unlock = unlock_stm50flw0x0x, |
| 6320 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6321 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6322 | }, |
| 6323 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6324 | { |
| 6325 | .vendor = "ST", |
| 6326 | .name = "M50FW080", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6327 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6328 | .manufacture_id = ST_ID, |
| 6329 | .model_id = ST_M50FW080, |
| 6330 | .total_size = 1024, |
| 6331 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6332 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6333 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6334 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 6335 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6336 | .block_erasers = |
| 6337 | { |
| 6338 | { |
| 6339 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6340 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6341 | }, { |
| 6342 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6343 | .block_erase = erase_chip_stm50flw0x0x, |
| 6344 | } |
| 6345 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6346 | .unlock = unlock_stm50flw0x0x, |
| 6347 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6348 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6349 | }, |
| 6350 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6351 | { |
| 6352 | .vendor = "ST", |
| 6353 | .name = "M50LPW116", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6354 | .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6355 | .manufacture_id = ST_ID, |
| 6356 | .model_id = ST_M50LPW116, |
| 6357 | .total_size = 2048, |
| 6358 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6359 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6360 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6361 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6362 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6363 | .block_erasers = |
| 6364 | { |
| 6365 | { |
| 6366 | .eraseblocks = { |
| 6367 | {4 * 1024, 16}, |
| 6368 | {64 * 1024, 30}, |
| 6369 | {32 * 1024, 1}, |
| 6370 | {8 * 1024, 2}, |
| 6371 | {16 * 1024, 1}, |
| 6372 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6373 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6374 | }, { |
| 6375 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6376 | .block_erase = erase_chip_stm50flw0x0x, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6377 | } |
| 6378 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6379 | .unlock = unlock_stm50flw0x0x, |
| 6380 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6381 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6382 | }, |
| 6383 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6384 | { |
| 6385 | .vendor = "SyncMOS", |
| 6386 | .name = "S29C31004T", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6387 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6388 | .manufacture_id = SYNCMOS_ID, |
| 6389 | .model_id = S29C31004T, |
| 6390 | .total_size = 512, |
| 6391 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6392 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6393 | .tested = TEST_UNTESTED, |
| 6394 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6395 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6396 | .block_erasers = |
| 6397 | { |
| 6398 | { |
| 6399 | .eraseblocks = { {1 * 1024, 512} }, |
| 6400 | .block_erase = erase_sector_jedec, |
| 6401 | }, { |
| 6402 | .eraseblocks = { {512 * 1024, 1} }, |
| 6403 | .block_erase = erase_chip_block_jedec, |
| 6404 | }, |
| 6405 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6406 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6407 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6408 | }, |
| 6409 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6410 | { |
| 6411 | .vendor = "SyncMOS", |
| 6412 | .name = "S29C51001T", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6413 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6414 | .manufacture_id = SYNCMOS_ID, |
| 6415 | .model_id = S29C51001T, |
| 6416 | .total_size = 128, |
| 6417 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6418 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6419 | .tested = TEST_UNTESTED, |
| 6420 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6421 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6422 | .block_erasers = |
| 6423 | { |
| 6424 | { |
| 6425 | .eraseblocks = { {512, 256} }, |
| 6426 | .block_erase = erase_sector_jedec, |
| 6427 | }, { |
| 6428 | .eraseblocks = { {128 * 1024, 1} }, |
| 6429 | .block_erase = erase_chip_block_jedec, |
| 6430 | }, |
| 6431 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6432 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6433 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6434 | }, |
| 6435 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6436 | { |
| 6437 | .vendor = "SyncMOS", |
| 6438 | .name = "S29C51002T", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6439 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6440 | .manufacture_id = SYNCMOS_ID, |
| 6441 | .model_id = S29C51002T, |
| 6442 | .total_size = 256, |
| 6443 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6444 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 6093969 | 2010-03-17 00:05:59 +0000 | [diff] [blame] | 6445 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6446 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6447 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6448 | .block_erasers = |
| 6449 | { |
| 6450 | { |
| 6451 | .eraseblocks = { {512, 512} }, |
| 6452 | .block_erase = erase_sector_jedec, |
| 6453 | }, { |
| 6454 | .eraseblocks = { {256 * 1024, 1} }, |
| 6455 | .block_erase = erase_chip_block_jedec, |
| 6456 | }, |
| 6457 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6458 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6459 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6460 | }, |
| 6461 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6462 | { |
| 6463 | .vendor = "SyncMOS", |
| 6464 | .name = "S29C51004T", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6465 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6466 | .manufacture_id = SYNCMOS_ID, |
| 6467 | .model_id = S29C51004T, |
| 6468 | .total_size = 512, |
| 6469 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6470 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6471 | .tested = TEST_UNTESTED, |
| 6472 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6473 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6474 | .block_erasers = |
| 6475 | { |
| 6476 | { |
Sean Nelson | 012a31e | 2010-01-19 20:23:26 +0000 | [diff] [blame] | 6477 | .eraseblocks = { {1 * 1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6478 | .block_erase = erase_sector_jedec, |
| 6479 | }, { |
| 6480 | .eraseblocks = { {512 * 1024, 1} }, |
| 6481 | .block_erase = erase_chip_block_jedec, |
| 6482 | }, |
| 6483 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6484 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6485 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6486 | }, |
| 6487 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6488 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 6489 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 6490 | .name = "TMS29F002RB", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6491 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 6492 | .manufacture_id = TI_OLD_ID, |
| 6493 | .model_id = TI_TMS29F002RB, |
| 6494 | .total_size = 256, |
| 6495 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6496 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 6497 | .tested = TEST_UNTESTED, |
| 6498 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6499 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6500 | .block_erasers = |
| 6501 | { |
| 6502 | { |
| 6503 | .eraseblocks = { |
| 6504 | {16 * 1024, 1}, |
| 6505 | {8 * 1024, 2}, |
| 6506 | {32 * 1024, 1}, |
| 6507 | {64 * 1024, 3}, |
| 6508 | }, |
| 6509 | .block_erase = erase_sector_jedec, |
| 6510 | }, { |
| 6511 | .eraseblocks = { {256 * 1024, 1} }, |
| 6512 | .block_erase = erase_chip_block_jedec, |
| 6513 | }, |
| 6514 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6515 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 6516 | .read = read_memmapped, |
| 6517 | }, |
| 6518 | |
| 6519 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 6520 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 6521 | .name = "TMS29F002RT", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6522 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 6523 | .manufacture_id = TI_OLD_ID, |
| 6524 | .model_id = TI_TMS29F002RT, |
| 6525 | .total_size = 256, |
| 6526 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6527 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 6528 | .tested = TEST_UNTESTED, |
| 6529 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6530 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 6531 | .block_erasers = |
| 6532 | { |
| 6533 | { |
| 6534 | .eraseblocks = { |
| 6535 | {64 * 1024, 3}, |
| 6536 | {32 * 1024, 1}, |
| 6537 | {8 * 1024, 2}, |
| 6538 | {16 * 1024, 1}, |
| 6539 | }, |
| 6540 | .block_erase = erase_sector_jedec, |
| 6541 | }, { |
| 6542 | .eraseblocks = { {256 * 1024, 1} }, |
| 6543 | .block_erase = erase_chip_block_jedec, |
| 6544 | }, |
| 6545 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6546 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 6547 | .read = read_memmapped, |
| 6548 | }, |
| 6549 | |
| 6550 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6551 | .vendor = "Winbond", |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 6552 | .name = "W25Q80", |
| 6553 | .bustype = CHIP_BUSTYPE_SPI, |
| 6554 | .manufacture_id = WINBOND_NEX_ID, |
| 6555 | .model_id = W_25Q80, |
| 6556 | .total_size = 1024, |
| 6557 | .page_size = 256, |
| 6558 | .tested = TEST_UNTESTED, |
| 6559 | .probe = probe_spi_rdid, |
| 6560 | .probe_timing = TIMING_ZERO, |
| 6561 | .block_erasers = |
| 6562 | { |
| 6563 | { |
| 6564 | .eraseblocks = { {4 * 1024, 256} }, |
| 6565 | .block_erase = spi_block_erase_20, |
| 6566 | }, { |
| 6567 | .eraseblocks = { {32 * 1024, 32} }, |
| 6568 | .block_erase = spi_block_erase_52, |
| 6569 | }, { |
| 6570 | .eraseblocks = { {64 * 1024, 16} }, |
| 6571 | .block_erase = spi_block_erase_d8, |
| 6572 | }, { |
| 6573 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6574 | .block_erase = spi_block_erase_60, |
| 6575 | }, { |
| 6576 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6577 | .block_erase = spi_block_erase_c7, |
| 6578 | } |
| 6579 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6580 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 6581 | .write = spi_chip_write_256, |
| 6582 | .read = spi_chip_read, |
| 6583 | }, |
| 6584 | |
| 6585 | { |
| 6586 | .vendor = "Winbond", |
| 6587 | .name = "W25Q16", |
| 6588 | .bustype = CHIP_BUSTYPE_SPI, |
| 6589 | .manufacture_id = WINBOND_NEX_ID, |
| 6590 | .model_id = W_25Q16, |
| 6591 | .total_size = 2048, |
| 6592 | .page_size = 256, |
| 6593 | .tested = TEST_UNTESTED, |
| 6594 | .probe = probe_spi_rdid, |
| 6595 | .probe_timing = TIMING_ZERO, |
| 6596 | .block_erasers = |
| 6597 | { |
| 6598 | { |
| 6599 | .eraseblocks = { {4 * 1024, 512} }, |
| 6600 | .block_erase = spi_block_erase_20, |
| 6601 | }, { |
| 6602 | .eraseblocks = { {32 * 1024, 64} }, |
| 6603 | .block_erase = spi_block_erase_52, |
| 6604 | }, { |
| 6605 | .eraseblocks = { {64 * 1024, 32} }, |
| 6606 | .block_erase = spi_block_erase_d8, |
| 6607 | }, { |
| 6608 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6609 | .block_erase = spi_block_erase_60, |
| 6610 | }, { |
| 6611 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6612 | .block_erase = spi_block_erase_c7, |
| 6613 | } |
| 6614 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6615 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 6616 | .write = spi_chip_write_256, |
| 6617 | .read = spi_chip_read, |
| 6618 | }, |
| 6619 | |
| 6620 | { |
| 6621 | .vendor = "Winbond", |
| 6622 | .name = "W25Q32", |
| 6623 | .bustype = CHIP_BUSTYPE_SPI, |
| 6624 | .manufacture_id = WINBOND_NEX_ID, |
| 6625 | .model_id = W_25Q32, |
| 6626 | .total_size = 4096, |
| 6627 | .page_size = 256, |
| 6628 | .tested = TEST_UNTESTED, |
| 6629 | .probe = probe_spi_rdid, |
| 6630 | .probe_timing = TIMING_ZERO, |
| 6631 | .block_erasers = |
| 6632 | { |
| 6633 | { |
| 6634 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6635 | .block_erase = spi_block_erase_20, |
| 6636 | }, { |
| 6637 | .eraseblocks = { {32 * 1024, 128} }, |
| 6638 | .block_erase = spi_block_erase_52, |
| 6639 | }, { |
| 6640 | .eraseblocks = { {64 * 1024, 64} }, |
| 6641 | .block_erase = spi_block_erase_d8, |
| 6642 | }, { |
| 6643 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6644 | .block_erase = spi_block_erase_60, |
| 6645 | }, { |
| 6646 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6647 | .block_erase = spi_block_erase_c7, |
| 6648 | } |
| 6649 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6650 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 6651 | .write = spi_chip_write_256, |
| 6652 | .read = spi_chip_read, |
| 6653 | }, |
| 6654 | |
| 6655 | { |
| 6656 | .vendor = "Winbond", |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 6657 | .name = "W25Q64", |
| 6658 | .bustype = CHIP_BUSTYPE_SPI, |
| 6659 | .manufacture_id = WINBOND_NEX_ID, |
| 6660 | .model_id = W_25Q64, |
| 6661 | .total_size = 8192, |
| 6662 | .page_size = 256, |
| 6663 | .tested = TEST_OK_PRW, |
| 6664 | .probe = probe_spi_rdid, |
| 6665 | .probe_timing = TIMING_ZERO, |
| 6666 | .block_erasers = |
| 6667 | { |
| 6668 | { |
| 6669 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6670 | .block_erase = spi_block_erase_20, |
| 6671 | }, { |
| 6672 | .eraseblocks = { {32 * 1024, 256} }, |
| 6673 | .block_erase = spi_block_erase_52, |
| 6674 | }, { |
| 6675 | .eraseblocks = { {64 * 1024, 128} }, |
| 6676 | .block_erase = spi_block_erase_d8, |
| 6677 | }, { |
| 6678 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6679 | .block_erase = spi_block_erase_60, |
| 6680 | }, { |
| 6681 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6682 | .block_erase = spi_block_erase_c7, |
| 6683 | } |
| 6684 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6685 | .unlock = spi_disable_blockprotect, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 6686 | .write = spi_chip_write_256, |
| 6687 | .read = spi_chip_read, |
| 6688 | }, |
| 6689 | |
| 6690 | { |
| 6691 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6692 | .name = "W25x10", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 6693 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6694 | .manufacture_id = WINBOND_NEX_ID, |
| 6695 | .model_id = W_25X10, |
| 6696 | .total_size = 128, |
| 6697 | .page_size = 256, |
| 6698 | .tested = TEST_UNTESTED, |
| 6699 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6700 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6701 | .block_erasers = |
| 6702 | { |
| 6703 | { |
| 6704 | .eraseblocks = { {4 * 1024, 32} }, |
| 6705 | .block_erase = spi_block_erase_20, |
| 6706 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6707 | .eraseblocks = { {64 * 1024, 2} }, |
| 6708 | .block_erase = spi_block_erase_d8, |
| 6709 | }, { |
| 6710 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6711 | .block_erase = spi_block_erase_c7, |
| 6712 | } |
| 6713 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6714 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6715 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6716 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6717 | }, |
| 6718 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6719 | { |
| 6720 | .vendor = "Winbond", |
| 6721 | .name = "W25x20", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 6722 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6723 | .manufacture_id = WINBOND_NEX_ID, |
| 6724 | .model_id = W_25X20, |
| 6725 | .total_size = 256, |
| 6726 | .page_size = 256, |
| 6727 | .tested = TEST_UNTESTED, |
| 6728 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6729 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6730 | .block_erasers = |
| 6731 | { |
| 6732 | { |
| 6733 | .eraseblocks = { {4 * 1024, 64} }, |
| 6734 | .block_erase = spi_block_erase_20, |
| 6735 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6736 | .eraseblocks = { {64 * 1024, 4} }, |
| 6737 | .block_erase = spi_block_erase_d8, |
| 6738 | }, { |
| 6739 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6740 | .block_erase = spi_block_erase_c7, |
| 6741 | } |
| 6742 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6743 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6744 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6745 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6746 | }, |
| 6747 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6748 | { |
| 6749 | .vendor = "Winbond", |
| 6750 | .name = "W25x40", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 6751 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6752 | .manufacture_id = WINBOND_NEX_ID, |
| 6753 | .model_id = W_25X40, |
| 6754 | .total_size = 512, |
| 6755 | .page_size = 256, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6756 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6757 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6758 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6759 | .block_erasers = |
| 6760 | { |
| 6761 | { |
| 6762 | .eraseblocks = { {4 * 1024, 128} }, |
| 6763 | .block_erase = spi_block_erase_20, |
| 6764 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6765 | .eraseblocks = { {64 * 1024, 8} }, |
| 6766 | .block_erase = spi_block_erase_d8, |
| 6767 | }, { |
| 6768 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6769 | .block_erase = spi_block_erase_c7, |
| 6770 | } |
| 6771 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6772 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6773 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6774 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6775 | }, |
| 6776 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6777 | { |
| 6778 | .vendor = "Winbond", |
| 6779 | .name = "W25x80", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 6780 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6781 | .manufacture_id = WINBOND_NEX_ID, |
| 6782 | .model_id = W_25X80, |
| 6783 | .total_size = 1024, |
| 6784 | .page_size = 256, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6785 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6786 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6787 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6788 | .block_erasers = |
| 6789 | { |
| 6790 | { |
| 6791 | .eraseblocks = { {4 * 1024, 256} }, |
| 6792 | .block_erase = spi_block_erase_20, |
| 6793 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6794 | .eraseblocks = { {64 * 1024, 16} }, |
| 6795 | .block_erase = spi_block_erase_d8, |
| 6796 | }, { |
| 6797 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6798 | .block_erase = spi_block_erase_c7, |
| 6799 | } |
| 6800 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6801 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6802 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6803 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6804 | }, |
| 6805 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6806 | { |
| 6807 | .vendor = "Winbond", |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 6808 | .name = "W25x16", |
| 6809 | .bustype = CHIP_BUSTYPE_SPI, |
| 6810 | .manufacture_id = WINBOND_NEX_ID, |
| 6811 | .model_id = W_25X16, |
| 6812 | .total_size = 2048, |
| 6813 | .page_size = 256, |
| 6814 | .tested = TEST_OK_PR, |
| 6815 | .probe = probe_spi_rdid, |
| 6816 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6817 | .block_erasers = |
| 6818 | { |
| 6819 | { |
| 6820 | .eraseblocks = { {4 * 1024, 512} }, |
| 6821 | .block_erase = spi_block_erase_20, |
| 6822 | }, { |
| 6823 | .eraseblocks = { {32 * 1024, 64} }, |
| 6824 | .block_erase = spi_block_erase_52, |
| 6825 | }, { |
| 6826 | .eraseblocks = { {64 * 1024, 32} }, |
| 6827 | .block_erase = spi_block_erase_d8, |
| 6828 | }, { |
| 6829 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6830 | .block_erase = spi_block_erase_60, |
| 6831 | }, { |
| 6832 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6833 | .block_erase = spi_block_erase_c7, |
| 6834 | } |
| 6835 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6836 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 6837 | .write = spi_chip_write_256, |
| 6838 | .read = spi_chip_read, |
| 6839 | }, |
| 6840 | |
| 6841 | { |
| 6842 | .vendor = "Winbond", |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 6843 | .name = "W25x32", |
| 6844 | .bustype = CHIP_BUSTYPE_SPI, |
| 6845 | .manufacture_id = WINBOND_NEX_ID, |
| 6846 | .model_id = W_25X32, |
| 6847 | .total_size = 4096, |
| 6848 | .page_size = 256, |
| 6849 | .tested = TEST_OK_PROBE, |
| 6850 | .probe = probe_spi_rdid, |
| 6851 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6852 | .block_erasers = |
| 6853 | { |
| 6854 | { |
| 6855 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6856 | .block_erase = spi_block_erase_20, |
| 6857 | }, { |
| 6858 | .eraseblocks = { {32 * 1024, 128} }, |
| 6859 | .block_erase = spi_block_erase_52, |
| 6860 | }, { |
| 6861 | .eraseblocks = { {64 * 1024, 64} }, |
| 6862 | .block_erase = spi_block_erase_d8, |
| 6863 | }, { |
| 6864 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6865 | .block_erase = spi_block_erase_60, |
| 6866 | }, { |
| 6867 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6868 | .block_erase = spi_block_erase_c7, |
| 6869 | } |
| 6870 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6871 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 6872 | .write = spi_chip_write_256, |
| 6873 | .read = spi_chip_read, |
| 6874 | }, |
| 6875 | |
| 6876 | { |
| 6877 | .vendor = "Winbond", |
| 6878 | .name = "W25x64", |
| 6879 | .bustype = CHIP_BUSTYPE_SPI, |
| 6880 | .manufacture_id = WINBOND_NEX_ID, |
| 6881 | .model_id = W_25X64, |
| 6882 | .total_size = 8192, |
| 6883 | .page_size = 256, |
| 6884 | .tested = TEST_UNTESTED, |
| 6885 | .probe = probe_spi_rdid, |
| 6886 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6887 | .block_erasers = |
| 6888 | { |
| 6889 | { |
| 6890 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6891 | .block_erase = spi_block_erase_20, |
| 6892 | }, { |
| 6893 | .eraseblocks = { {32 * 1024, 256} }, |
| 6894 | .block_erase = spi_block_erase_52, |
| 6895 | }, { |
| 6896 | .eraseblocks = { {64 * 1024, 128} }, |
| 6897 | .block_erase = spi_block_erase_d8, |
| 6898 | }, { |
| 6899 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6900 | .block_erase = spi_block_erase_60, |
| 6901 | }, { |
| 6902 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6903 | .block_erase = spi_block_erase_c7, |
| 6904 | } |
| 6905 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6906 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 6907 | .write = spi_chip_write_256, |
| 6908 | .read = spi_chip_read, |
| 6909 | }, |
| 6910 | |
| 6911 | { |
| 6912 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6913 | .name = "W29C011", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6914 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6915 | .manufacture_id = WINBOND_ID, |
| 6916 | .model_id = W_29C011, |
| 6917 | .total_size = 128, |
| 6918 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6919 | .feature_bits = FEATURE_LONG_RESET, |
Uwe Hermann | 6093969 | 2010-03-17 00:05:59 +0000 | [diff] [blame] | 6920 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6921 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6922 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6923 | .block_erasers = |
| 6924 | { |
| 6925 | { |
| 6926 | .eraseblocks = { {128 * 1024, 1} }, |
| 6927 | .block_erase = erase_chip_block_jedec, |
| 6928 | } |
| 6929 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6930 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6931 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6932 | }, |
| 6933 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6934 | { |
| 6935 | .vendor = "Winbond", |
| 6936 | .name = "W29C020C", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 6937 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6938 | .manufacture_id = WINBOND_ID, |
| 6939 | .model_id = W_29C020C, |
| 6940 | .total_size = 256, |
| 6941 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6942 | .feature_bits = FEATURE_LONG_RESET, |
Uwe Hermann | ea5425b | 2010-05-30 17:00:19 +0000 | [diff] [blame] | 6943 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6944 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 6945 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6946 | .block_erasers = |
| 6947 | { |
| 6948 | { |
| 6949 | .eraseblocks = { {256 * 1024, 1} }, |
| 6950 | .block_erase = erase_chip_block_jedec, |
| 6951 | } |
| 6952 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6953 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6954 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6955 | }, |
| 6956 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6957 | { |
| 6958 | .vendor = "Winbond", |
| 6959 | .name = "W29C040P", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 6960 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6961 | .manufacture_id = WINBOND_ID, |
| 6962 | .model_id = W_29C040P, |
| 6963 | .total_size = 512, |
| 6964 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6965 | .feature_bits = FEATURE_LONG_RESET, |
| 6966 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6967 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 6968 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6969 | .block_erasers = |
| 6970 | { |
| 6971 | { |
| 6972 | .eraseblocks = { {512 * 1024, 1} }, |
| 6973 | .block_erase = erase_chip_block_jedec, |
| 6974 | } |
| 6975 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6976 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6977 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6978 | }, |
| 6979 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6980 | { |
| 6981 | .vendor = "Winbond", |
| 6982 | .name = "W29EE011", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6983 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6984 | .manufacture_id = WINBOND_ID, |
| 6985 | .model_id = W_29C011, |
| 6986 | .total_size = 128, |
| 6987 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6988 | .feature_bits = FEATURE_LONG_RESET, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6989 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6990 | .probe = probe_w29ee011, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 6991 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (w29ee011.c) */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6992 | .block_erasers = |
| 6993 | { |
| 6994 | { |
| 6995 | .eraseblocks = { {128 * 1024, 1} }, |
| 6996 | .block_erase = erase_chip_block_jedec, |
| 6997 | } |
| 6998 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6999 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7000 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7001 | }, |
| 7002 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7003 | { |
| 7004 | .vendor = "Winbond", |
| 7005 | .name = "W39V040A", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 7006 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7007 | .manufacture_id = WINBOND_ID, |
| 7008 | .model_id = W_39V040A, |
| 7009 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7010 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7011 | .feature_bits = FEATURE_EITHER_RESET, |
Michael Karcher | 3355f06 | 2010-03-24 22:56:23 +0000 | [diff] [blame] | 7012 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7013 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 7014 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7015 | .block_erasers = |
| 7016 | { |
| 7017 | { |
| 7018 | .eraseblocks = { {64 * 1024, 8} }, |
| 7019 | .block_erase = erase_sector_jedec, |
| 7020 | }, { |
| 7021 | .eraseblocks = { {512 * 1024, 1} }, |
| 7022 | .block_erase = erase_chip_block_jedec, |
| 7023 | } |
| 7024 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7025 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7026 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7027 | }, |
| 7028 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7029 | { |
| 7030 | .vendor = "Winbond", |
| 7031 | .name = "W39V040B", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 7032 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7033 | .manufacture_id = WINBOND_ID, |
| 7034 | .model_id = W_39V040B, |
| 7035 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7036 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7037 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 8d341b5 | 2010-05-25 23:27:44 +0000 | [diff] [blame] | 7038 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7039 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 7040 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7041 | .block_erasers = |
| 7042 | { |
| 7043 | { |
| 7044 | .eraseblocks = { {64 * 1024, 8} }, |
| 7045 | .block_erase = erase_sector_jedec, |
| 7046 | }, { |
| 7047 | .eraseblocks = { {512 * 1024, 1} }, |
| 7048 | .block_erase = erase_chip_block_jedec, |
| 7049 | } |
| 7050 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7051 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7052 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7053 | }, |
| 7054 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7055 | { |
| 7056 | .vendor = "Winbond", |
| 7057 | .name = "W39V040C", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 7058 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7059 | .manufacture_id = WINBOND_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 7060 | .model_id = W_39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7061 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7062 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7063 | .feature_bits = FEATURE_EITHER_RESET, |
| 7064 | .tested = TEST_UNTESTED, |
| 7065 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 7066 | .probe_timing = TIMING_FIXME, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7067 | .block_erasers = |
| 7068 | { |
| 7069 | { |
| 7070 | .eraseblocks = { {64 * 1024, 8} }, |
| 7071 | .block_erase = erase_sector_jedec, |
| 7072 | }, { |
| 7073 | .eraseblocks = { {512 * 1024, 1} }, |
| 7074 | .block_erase = erase_chip_block_jedec, |
| 7075 | } |
| 7076 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 7077 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7078 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7079 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7080 | }, |
| 7081 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7082 | { |
| 7083 | .vendor = "Winbond", |
| 7084 | .name = "W39V040FA", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 7085 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7086 | .manufacture_id = WINBOND_ID, |
| 7087 | .model_id = W_39V040FA, |
| 7088 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7089 | .page_size = 64 * 1024, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 7090 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Uwe Hermann | 4178760 | 2010-05-30 17:50:16 +0000 | [diff] [blame] | 7091 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7092 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 7093 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7094 | .block_erasers = |
| 7095 | { |
| 7096 | { |
| 7097 | .eraseblocks = { {4 * 1024, 128} }, |
| 7098 | .block_erase = erase_block_jedec, |
| 7099 | }, { |
| 7100 | .eraseblocks = { {64 * 1024, 8} }, |
| 7101 | .block_erase = erase_sector_jedec, |
| 7102 | }, { |
| 7103 | .eraseblocks = { {512 * 1024, 1} }, |
| 7104 | .block_erase = erase_chip_block_jedec, |
| 7105 | } |
| 7106 | }, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 7107 | .printlock = printlock_sst_fwhub, |
| 7108 | .unlock = unlock_sst_fwhub, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7109 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7110 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7111 | }, |
| 7112 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7113 | { |
| 7114 | .vendor = "Winbond", |
| 7115 | .name = "W39V080A", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 7116 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7117 | .manufacture_id = WINBOND_ID, |
| 7118 | .model_id = W_39V080A, |
| 7119 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7120 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7121 | .feature_bits = FEATURE_EITHER_RESET, |
| 7122 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7123 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 7124 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7125 | .block_erasers = |
| 7126 | { |
| 7127 | { |
| 7128 | .eraseblocks = { {64 * 1024, 16} }, |
| 7129 | .block_erase = erase_sector_jedec, |
| 7130 | }, { |
| 7131 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7132 | .block_erase = erase_chip_block_jedec, |
| 7133 | } |
| 7134 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7135 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7136 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7137 | }, |
| 7138 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7139 | { |
| 7140 | .vendor = "Winbond", |
| 7141 | .name = "W49F002U", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 7142 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7143 | .manufacture_id = WINBOND_ID, |
| 7144 | .model_id = W_49F002U, |
| 7145 | .total_size = 256, |
| 7146 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7147 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 6093969 | 2010-03-17 00:05:59 +0000 | [diff] [blame] | 7148 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7149 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 7150 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7151 | .block_erasers = |
| 7152 | { |
| 7153 | { |
| 7154 | .eraseblocks = { |
| 7155 | {128 * 1024, 1}, |
| 7156 | {96 * 1024, 1}, |
| 7157 | {8 * 1024, 2}, |
| 7158 | {16 * 1024, 1}, |
| 7159 | }, |
| 7160 | .block_erase = erase_sector_jedec, |
| 7161 | }, { |
| 7162 | .eraseblocks = { {256 * 1024, 1} }, |
| 7163 | .block_erase = erase_chip_block_jedec, |
| 7164 | } |
| 7165 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7166 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7167 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7168 | }, |
| 7169 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7170 | { |
| 7171 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 7172 | .name = "W49F020", |
| 7173 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 7174 | .manufacture_id = WINBOND_ID, |
| 7175 | .model_id = W_49F020, |
| 7176 | .total_size = 256, |
| 7177 | .page_size = 128, |
| 7178 | .feature_bits = FEATURE_EITHER_RESET, |
| 7179 | .tested = TEST_OK_PROBE, |
| 7180 | .probe = probe_jedec, |
| 7181 | .probe_timing = 10, |
| 7182 | .block_erasers = |
| 7183 | { |
| 7184 | { |
| 7185 | .eraseblocks = { {256 * 1024, 1} }, |
| 7186 | .block_erase = erase_chip_block_jedec, |
| 7187 | } |
| 7188 | }, |
| 7189 | .write = write_jedec_1, |
| 7190 | .read = read_memmapped, |
| 7191 | }, |
| 7192 | |
| 7193 | { |
| 7194 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7195 | .name = "W49V002A", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 7196 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7197 | .manufacture_id = WINBOND_ID, |
| 7198 | .model_id = W_49V002A, |
| 7199 | .total_size = 256, |
| 7200 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7201 | .feature_bits = FEATURE_EITHER_RESET, |
| 7202 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7203 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 7204 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7205 | .block_erasers = |
| 7206 | { |
| 7207 | { |
| 7208 | .eraseblocks = { |
| 7209 | {64 * 1024, 3}, |
| 7210 | {32 * 1024, 1}, |
| 7211 | {8 * 1024, 2}, |
| 7212 | {16 * 1024, 1}, |
| 7213 | }, |
| 7214 | .block_erase = erase_sector_jedec, |
| 7215 | }, { |
| 7216 | .eraseblocks = { {256 * 1024, 1} }, |
| 7217 | .block_erase = erase_chip_block_jedec, |
| 7218 | } |
| 7219 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7220 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7221 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7222 | }, |
| 7223 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7224 | { |
| 7225 | .vendor = "Winbond", |
| 7226 | .name = "W49V002FA", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 7227 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7228 | .manufacture_id = WINBOND_ID, |
| 7229 | .model_id = W_49V002FA, |
| 7230 | .total_size = 256, |
| 7231 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7232 | .feature_bits = FEATURE_EITHER_RESET, |
Michael Karcher | b90c221 | 2010-03-24 22:56:14 +0000 | [diff] [blame] | 7233 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7234 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 7235 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7236 | .block_erasers = |
| 7237 | { |
| 7238 | { |
| 7239 | .eraseblocks = { |
| 7240 | {64 * 1024, 3}, |
| 7241 | {32 * 1024, 1}, |
| 7242 | {8 * 1024, 2}, |
| 7243 | {16 * 1024, 1}, |
| 7244 | }, |
| 7245 | .block_erase = erase_sector_jedec, |
| 7246 | }, { |
| 7247 | .eraseblocks = { {256 * 1024, 1} }, |
| 7248 | .block_erase = erase_chip_block_jedec, |
| 7249 | } |
| 7250 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7251 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7252 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7253 | }, |
| 7254 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7255 | { |
| 7256 | .vendor = "Winbond", |
| 7257 | .name = "W39V080FA", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 7258 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7259 | .manufacture_id = WINBOND_ID, |
| 7260 | .model_id = W_39V080FA, |
| 7261 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7262 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7263 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Uwe Hermann | ea5425b | 2010-05-30 17:00:19 +0000 | [diff] [blame] | 7264 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 7265 | .probe = probe_jedec, |
| 7266 | .probe_timing = TIMING_FIXME, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7267 | .block_erasers = |
| 7268 | { |
| 7269 | { |
| 7270 | .eraseblocks = { {64 * 1024, 16}, }, |
| 7271 | .block_erase = erase_sector_jedec, |
| 7272 | }, { |
| 7273 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7274 | .block_erase = erase_chip_block_jedec, |
| 7275 | } |
| 7276 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 7277 | .unlock = unlock_winbond_fwhub, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7278 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7279 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7280 | }, |
| 7281 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7282 | { |
| 7283 | .vendor = "Winbond", |
| 7284 | .name = "W39V080FA (dual mode)", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 7285 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7286 | .manufacture_id = WINBOND_ID, |
| 7287 | .model_id = W_39V080FA_DM, |
| 7288 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 7289 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7290 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7291 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 7292 | .probe = probe_jedec, |
| 7293 | .probe_timing = TIMING_FIXME, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 7294 | .block_erasers = |
| 7295 | { |
| 7296 | { |
| 7297 | .eraseblocks = { {64 * 1024, 8}, }, |
| 7298 | .block_erase = erase_sector_jedec, |
| 7299 | }, { |
| 7300 | .eraseblocks = { {512 * 1024, 1} }, |
| 7301 | .block_erase = erase_chip_block_jedec, |
| 7302 | } |
| 7303 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 7304 | .unlock = unlock_winbond_fwhub, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7305 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7306 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7307 | }, |
| 7308 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7309 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 7310 | .vendor = "AMIC", |
| 7311 | .name = "unknown AMIC SPI chip", |
| 7312 | .bustype = CHIP_BUSTYPE_SPI, |
| 7313 | .manufacture_id = AMIC_ID, |
| 7314 | .model_id = GENERIC_DEVICE_ID, |
| 7315 | .total_size = 0, |
| 7316 | .page_size = 256, |
| 7317 | .tested = TEST_BAD_PREW, |
| 7318 | .probe = probe_spi_rdid4, |
| 7319 | .probe_timing = TIMING_ZERO, |
| 7320 | .write = NULL, |
| 7321 | .read = NULL, |
| 7322 | }, |
| 7323 | |
| 7324 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7325 | .vendor = "Atmel", |
| 7326 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 7327 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7328 | .manufacture_id = ATMEL_ID, |
| 7329 | .model_id = GENERIC_DEVICE_ID, |
| 7330 | .total_size = 0, |
| 7331 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 7332 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7333 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7334 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7335 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7336 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7337 | }, |
| 7338 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7339 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 7340 | .vendor = "Eon", |
| 7341 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 7342 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7343 | .manufacture_id = EON_ID_NOPREFIX, |
| 7344 | .model_id = GENERIC_DEVICE_ID, |
| 7345 | .total_size = 0, |
| 7346 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 7347 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7348 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7349 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7350 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7351 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7352 | }, |
| 7353 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7354 | { |
| 7355 | .vendor = "Macronix", |
| 7356 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 7357 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7358 | .manufacture_id = MX_ID, |
| 7359 | .model_id = GENERIC_DEVICE_ID, |
| 7360 | .total_size = 0, |
| 7361 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 7362 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7363 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7364 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7365 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7366 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7367 | }, |
| 7368 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7369 | { |
| 7370 | .vendor = "PMC", |
| 7371 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 7372 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7373 | .manufacture_id = PMC_ID, |
| 7374 | .model_id = GENERIC_DEVICE_ID, |
| 7375 | .total_size = 0, |
| 7376 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 7377 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7378 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7379 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7380 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7381 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7382 | }, |
| 7383 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7384 | { |
| 7385 | .vendor = "SST", |
| 7386 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 7387 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7388 | .manufacture_id = SST_ID, |
| 7389 | .model_id = GENERIC_DEVICE_ID, |
| 7390 | .total_size = 0, |
| 7391 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 7392 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7393 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7394 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7395 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7396 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7397 | }, |
| 7398 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7399 | { |
| 7400 | .vendor = "ST", |
| 7401 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 7402 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7403 | .manufacture_id = ST_ID, |
| 7404 | .model_id = GENERIC_DEVICE_ID, |
| 7405 | .total_size = 0, |
| 7406 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 7407 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7408 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7409 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7410 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7411 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7412 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 7413 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 7414 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 7415 | .vendor = "Sanyo", |
| 7416 | .name = "unknown Sanyo SPI chip", |
| 7417 | .bustype = CHIP_BUSTYPE_SPI, |
| 7418 | .manufacture_id = SANYO_ID, |
| 7419 | .model_id = GENERIC_DEVICE_ID, |
| 7420 | .total_size = 0, |
| 7421 | .page_size = 256, |
| 7422 | .tested = TEST_BAD_PREW, |
| 7423 | .probe = probe_spi_rdid, |
| 7424 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 7425 | .write = NULL, |
| 7426 | .read = NULL, |
| 7427 | }, |
| 7428 | |
| 7429 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 7430 | .vendor = "Generic", |
| 7431 | .name = "unknown SPI chip (RDID)", |
| 7432 | .bustype = CHIP_BUSTYPE_SPI, |
| 7433 | .manufacture_id = GENERIC_MANUF_ID, |
| 7434 | .model_id = GENERIC_DEVICE_ID, |
| 7435 | .total_size = 0, |
| 7436 | .page_size = 256, |
| 7437 | .tested = TEST_BAD_PREW, |
| 7438 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 7439 | .write = NULL, |
| 7440 | }, |
| 7441 | { |
| 7442 | .vendor = "Generic", |
| 7443 | .name = "unknown SPI chip (REMS)", |
| 7444 | .bustype = CHIP_BUSTYPE_SPI, |
| 7445 | .manufacture_id = GENERIC_MANUF_ID, |
| 7446 | .model_id = GENERIC_DEVICE_ID, |
| 7447 | .total_size = 0, |
| 7448 | .page_size = 256, |
| 7449 | .tested = TEST_BAD_PREW, |
| 7450 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 7451 | .write = NULL, |
| 7452 | }, |
| 7453 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7454 | { NULL } |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 7455 | }; |