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 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 278 | .vendor = "ASD", |
| 279 | .name = "AE49F2008", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 280 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 281 | .manufacture_id = ASD_ID, |
| 282 | .model_id = ASD_AE49F2008, |
| 283 | .total_size = 256, |
| 284 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 285 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 286 | .tested = TEST_UNTESTED, |
| 287 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 288 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 289 | .block_erasers = |
| 290 | { |
| 291 | { |
| 292 | .eraseblocks = { |
| 293 | {128 * 1024, 1}, |
| 294 | {96 * 1024, 1}, |
| 295 | {8 * 1024, 2}, |
| 296 | {16 * 1024, 1}, |
| 297 | }, |
| 298 | .block_erase = erase_sector_jedec, |
| 299 | }, { |
| 300 | .eraseblocks = { {256 * 1024, 1} }, |
| 301 | .block_erase = erase_chip_block_jedec, |
| 302 | } |
| 303 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 304 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 305 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 306 | }, |
| 307 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 308 | { |
| 309 | .vendor = "Atmel", |
| 310 | .name = "AT25DF021", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 311 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 312 | .manufacture_id = ATMEL_ID, |
| 313 | .model_id = AT_25DF021, |
| 314 | .total_size = 256, |
| 315 | .page_size = 256, |
| 316 | .tested = TEST_UNTESTED, |
| 317 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 318 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 319 | .block_erasers = |
| 320 | { |
| 321 | { |
| 322 | .eraseblocks = { {4 * 1024, 64} }, |
| 323 | .block_erase = spi_block_erase_20, |
| 324 | }, { |
| 325 | .eraseblocks = { {32 * 1024, 8} }, |
| 326 | .block_erase = spi_block_erase_52, |
| 327 | }, { |
| 328 | .eraseblocks = { {64 * 1024, 4} }, |
| 329 | .block_erase = spi_block_erase_d8, |
| 330 | }, { |
| 331 | .eraseblocks = { {256 * 1024, 1} }, |
| 332 | .block_erase = spi_block_erase_60, |
| 333 | }, { |
| 334 | .eraseblocks = { {256 * 1024, 1} }, |
| 335 | .block_erase = spi_block_erase_c7, |
| 336 | } |
| 337 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 338 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 339 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 340 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 341 | }, |
| 342 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 343 | { |
| 344 | .vendor = "Atmel", |
| 345 | .name = "AT25DF041A", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 346 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 347 | .manufacture_id = ATMEL_ID, |
| 348 | .model_id = AT_25DF041A, |
| 349 | .total_size = 512, |
| 350 | .page_size = 256, |
| 351 | .tested = TEST_UNTESTED, |
| 352 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 353 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 354 | .block_erasers = |
| 355 | { |
| 356 | { |
| 357 | .eraseblocks = { {4 * 1024, 128} }, |
| 358 | .block_erase = spi_block_erase_20, |
| 359 | }, { |
| 360 | .eraseblocks = { {32 * 1024, 16} }, |
| 361 | .block_erase = spi_block_erase_52, |
| 362 | }, { |
| 363 | .eraseblocks = { {64 * 1024, 8} }, |
| 364 | .block_erase = spi_block_erase_d8, |
| 365 | }, { |
| 366 | .eraseblocks = { {512 * 1024, 1} }, |
| 367 | .block_erase = spi_block_erase_60, |
| 368 | }, { |
| 369 | .eraseblocks = { {512 * 1024, 1} }, |
| 370 | .block_erase = spi_block_erase_c7, |
| 371 | } |
| 372 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 373 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 374 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 375 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 376 | }, |
| 377 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 378 | { |
| 379 | .vendor = "Atmel", |
| 380 | .name = "AT25DF081", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 381 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 382 | .manufacture_id = ATMEL_ID, |
| 383 | .model_id = AT_25DF081, |
| 384 | .total_size = 1024, |
| 385 | .page_size = 256, |
| 386 | .tested = TEST_UNTESTED, |
| 387 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 388 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 389 | .block_erasers = |
| 390 | { |
| 391 | { |
| 392 | .eraseblocks = { {4 * 1024, 256} }, |
| 393 | .block_erase = spi_block_erase_20, |
| 394 | }, { |
| 395 | .eraseblocks = { {32 * 1024, 32} }, |
| 396 | .block_erase = spi_block_erase_52, |
| 397 | }, { |
| 398 | .eraseblocks = { {64 * 1024, 16} }, |
| 399 | .block_erase = spi_block_erase_d8, |
| 400 | }, { |
| 401 | .eraseblocks = { {1024 * 1024, 1} }, |
| 402 | .block_erase = spi_block_erase_60, |
| 403 | }, { |
| 404 | .eraseblocks = { {1024 * 1024, 1} }, |
| 405 | .block_erase = spi_block_erase_c7, |
| 406 | } |
| 407 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 408 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 409 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 410 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 411 | }, |
| 412 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 413 | { |
| 414 | .vendor = "Atmel", |
| 415 | .name = "AT25DF161", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 416 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 417 | .manufacture_id = ATMEL_ID, |
| 418 | .model_id = AT_25DF161, |
| 419 | .total_size = 2048, |
| 420 | .page_size = 256, |
| 421 | .tested = TEST_UNTESTED, |
| 422 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 423 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 424 | .block_erasers = |
| 425 | { |
| 426 | { |
| 427 | .eraseblocks = { {4 * 1024, 512} }, |
| 428 | .block_erase = spi_block_erase_20, |
| 429 | }, { |
| 430 | .eraseblocks = { {32 * 1024, 64} }, |
| 431 | .block_erase = spi_block_erase_52, |
| 432 | }, { |
| 433 | .eraseblocks = { {64 * 1024, 32} }, |
| 434 | .block_erase = spi_block_erase_d8, |
| 435 | }, { |
| 436 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 437 | .block_erase = spi_block_erase_60, |
| 438 | }, { |
| 439 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 440 | .block_erase = spi_block_erase_c7, |
| 441 | } |
| 442 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 443 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 444 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 445 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 446 | }, |
| 447 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 448 | { |
| 449 | .vendor = "Atmel", |
| 450 | .name = "AT25DF321", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 451 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 452 | .manufacture_id = ATMEL_ID, |
| 453 | .model_id = AT_25DF321, |
| 454 | .total_size = 4096, |
| 455 | .page_size = 256, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 456 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 457 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 458 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 459 | .block_erasers = |
| 460 | { |
| 461 | { |
| 462 | .eraseblocks = { {4 * 1024, 1024} }, |
| 463 | .block_erase = spi_block_erase_20, |
| 464 | }, { |
| 465 | .eraseblocks = { {32 * 1024, 128} }, |
| 466 | .block_erase = spi_block_erase_52, |
| 467 | }, { |
| 468 | .eraseblocks = { {64 * 1024, 64} }, |
| 469 | .block_erase = spi_block_erase_d8, |
| 470 | }, { |
| 471 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 472 | .block_erase = spi_block_erase_60, |
| 473 | }, { |
| 474 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 475 | .block_erase = spi_block_erase_c7, |
| 476 | } |
| 477 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 478 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 479 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 480 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 481 | }, |
| 482 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 483 | { |
| 484 | .vendor = "Atmel", |
| 485 | .name = "AT25DF321A", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 486 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 487 | .manufacture_id = ATMEL_ID, |
| 488 | .model_id = AT_25DF321A, |
| 489 | .total_size = 4096, |
| 490 | .page_size = 256, |
| 491 | .tested = TEST_UNTESTED, |
| 492 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 493 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 494 | .block_erasers = |
| 495 | { |
| 496 | { |
| 497 | .eraseblocks = { {4 * 1024, 1024} }, |
| 498 | .block_erase = spi_block_erase_20, |
| 499 | }, { |
| 500 | .eraseblocks = { {32 * 1024, 128} }, |
| 501 | .block_erase = spi_block_erase_52, |
| 502 | }, { |
| 503 | .eraseblocks = { {64 * 1024, 64} }, |
| 504 | .block_erase = spi_block_erase_d8, |
| 505 | }, { |
| 506 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 507 | .block_erase = spi_block_erase_60, |
| 508 | }, { |
| 509 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 510 | .block_erase = spi_block_erase_c7, |
| 511 | } |
| 512 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 513 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 514 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 515 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 516 | }, |
| 517 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 518 | { |
| 519 | .vendor = "Atmel", |
| 520 | .name = "AT25DF641", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 521 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 522 | .manufacture_id = ATMEL_ID, |
| 523 | .model_id = AT_25DF641, |
| 524 | .total_size = 8192, |
| 525 | .page_size = 256, |
| 526 | .tested = TEST_UNTESTED, |
| 527 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 528 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 529 | .block_erasers = |
| 530 | { |
| 531 | { |
| 532 | .eraseblocks = { {4 * 1024, 2048} }, |
| 533 | .block_erase = spi_block_erase_20, |
| 534 | }, { |
| 535 | .eraseblocks = { {32 * 1024, 256} }, |
| 536 | .block_erase = spi_block_erase_52, |
| 537 | }, { |
| 538 | .eraseblocks = { {64 * 1024, 128} }, |
| 539 | .block_erase = spi_block_erase_d8, |
| 540 | }, { |
| 541 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 542 | .block_erase = spi_block_erase_60, |
| 543 | }, { |
| 544 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 545 | .block_erase = spi_block_erase_c7, |
| 546 | } |
| 547 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 548 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 549 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 550 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 551 | }, |
| 552 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 553 | { |
| 554 | .vendor = "Atmel", |
| 555 | .name = "AT25F512B", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 556 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 557 | .manufacture_id = ATMEL_ID, |
| 558 | .model_id = AT_25F512B, |
| 559 | .total_size = 64, |
| 560 | .page_size = 256, |
| 561 | .tested = TEST_UNTESTED, |
| 562 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 563 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 564 | .block_erasers = |
| 565 | { |
| 566 | { |
| 567 | .eraseblocks = { {4 * 1024, 16} }, |
| 568 | .block_erase = spi_block_erase_20, |
| 569 | }, { |
| 570 | .eraseblocks = { {32 * 1024, 2} }, |
| 571 | .block_erase = spi_block_erase_52, |
| 572 | }, { |
| 573 | .eraseblocks = { {32 * 1024, 2} }, |
| 574 | .block_erase = spi_block_erase_d8, |
| 575 | }, { |
| 576 | .eraseblocks = { {64 * 1024, 1} }, |
| 577 | .block_erase = spi_block_erase_60, |
| 578 | }, { |
| 579 | .eraseblocks = { {64 * 1024, 1} }, |
| 580 | .block_erase = spi_block_erase_c7, |
| 581 | } |
| 582 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 583 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 584 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 585 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 586 | }, |
| 587 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 588 | { |
| 589 | .vendor = "Atmel", |
| 590 | .name = "AT25FS010", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 591 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 592 | .manufacture_id = ATMEL_ID, |
| 593 | .model_id = AT_25FS010, |
| 594 | .total_size = 128, |
| 595 | .page_size = 256, |
| 596 | .tested = TEST_UNTESTED, |
| 597 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 598 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 599 | .block_erasers = |
| 600 | { |
| 601 | { |
| 602 | .eraseblocks = { {4 * 1024, 32} }, |
| 603 | .block_erase = spi_block_erase_20, |
| 604 | }, { |
| 605 | .eraseblocks = { {32 * 1024, 4} }, |
| 606 | .block_erase = spi_block_erase_52, |
| 607 | }, { |
| 608 | .eraseblocks = { {32 * 1024, 4} }, |
| 609 | .block_erase = spi_block_erase_d8, |
| 610 | }, { |
| 611 | .eraseblocks = { {128 * 1024, 1} }, |
| 612 | .block_erase = spi_block_erase_60, |
| 613 | }, { |
| 614 | .eraseblocks = { {128 * 1024, 1} }, |
| 615 | .block_erase = spi_block_erase_c7, |
| 616 | } |
| 617 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 618 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 619 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 620 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 621 | }, |
| 622 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 623 | { |
| 624 | .vendor = "Atmel", |
| 625 | .name = "AT25FS040", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 626 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 627 | .manufacture_id = ATMEL_ID, |
| 628 | .model_id = AT_25FS040, |
| 629 | .total_size = 512, |
| 630 | .page_size = 256, |
| 631 | .tested = TEST_UNTESTED, |
| 632 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 633 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 634 | .block_erasers = |
| 635 | { |
| 636 | { |
| 637 | .eraseblocks = { {4 * 1024, 128} }, |
| 638 | .block_erase = spi_block_erase_20, |
| 639 | }, { |
| 640 | .eraseblocks = { {64 * 1024, 8} }, |
| 641 | .block_erase = spi_block_erase_52, |
| 642 | }, { |
| 643 | .eraseblocks = { {64 * 1024, 8} }, |
| 644 | .block_erase = spi_block_erase_d8, |
| 645 | }, { |
| 646 | .eraseblocks = { {512 * 1024, 1} }, |
| 647 | .block_erase = spi_block_erase_60, |
| 648 | }, { |
| 649 | .eraseblocks = { {512 * 1024, 1} }, |
| 650 | .block_erase = spi_block_erase_c7, |
| 651 | } |
| 652 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 653 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 654 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 655 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 656 | }, |
| 657 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 658 | { |
| 659 | .vendor = "Atmel", |
| 660 | .name = "AT26DF041", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 661 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 662 | .manufacture_id = ATMEL_ID, |
| 663 | .model_id = AT_26DF041, |
| 664 | .total_size = 512, |
| 665 | .page_size = 256, |
| 666 | .tested = TEST_UNTESTED, |
| 667 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 668 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 669 | .block_erasers = |
| 670 | { |
| 671 | { |
| 672 | .eraseblocks = { {4 * 1024, 128} }, |
| 673 | .block_erase = spi_block_erase_20, |
| 674 | } |
| 675 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 676 | .write = NULL /* Incompatible Page write */, |
| 677 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 678 | }, |
| 679 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 680 | { |
| 681 | .vendor = "Atmel", |
| 682 | .name = "AT26DF081A", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 683 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 684 | .manufacture_id = ATMEL_ID, |
| 685 | .model_id = AT_26DF081A, |
| 686 | .total_size = 1024, |
| 687 | .page_size = 256, |
| 688 | .tested = TEST_UNTESTED, |
| 689 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 690 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 691 | .block_erasers = |
| 692 | { |
| 693 | { |
| 694 | .eraseblocks = { {4 * 1024, 256} }, |
| 695 | .block_erase = spi_block_erase_20, |
| 696 | }, { |
| 697 | .eraseblocks = { {32 * 1024, 32} }, |
| 698 | .block_erase = spi_block_erase_52, |
| 699 | }, { |
| 700 | .eraseblocks = { {64 * 1024, 16} }, |
| 701 | .block_erase = spi_block_erase_d8, |
| 702 | }, { |
| 703 | .eraseblocks = { {1024 * 1024, 1} }, |
| 704 | .block_erase = spi_block_erase_60, |
| 705 | }, { |
| 706 | .eraseblocks = { {1024 * 1024, 1} }, |
| 707 | .block_erase = spi_block_erase_c7, |
| 708 | } |
| 709 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 710 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 711 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 712 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 713 | }, |
| 714 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 715 | { |
| 716 | .vendor = "Atmel", |
| 717 | .name = "AT26DF161", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 718 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 719 | .manufacture_id = ATMEL_ID, |
| 720 | .model_id = AT_26DF161, |
| 721 | .total_size = 2048, |
| 722 | .page_size = 256, |
| 723 | .tested = TEST_UNTESTED, |
| 724 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 725 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 726 | .block_erasers = |
| 727 | { |
| 728 | { |
| 729 | .eraseblocks = { {4 * 1024, 512} }, |
| 730 | .block_erase = spi_block_erase_20, |
| 731 | }, { |
| 732 | .eraseblocks = { {32 * 1024, 64} }, |
| 733 | .block_erase = spi_block_erase_52, |
| 734 | }, { |
| 735 | .eraseblocks = { {64 * 1024, 32} }, |
| 736 | .block_erase = spi_block_erase_d8, |
| 737 | }, { |
| 738 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 739 | .block_erase = spi_block_erase_60, |
| 740 | }, { |
| 741 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 742 | .block_erase = spi_block_erase_c7, |
| 743 | } |
| 744 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 745 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 746 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 747 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 748 | }, |
| 749 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 750 | { |
| 751 | .vendor = "Atmel", |
| 752 | .name = "AT26DF161A", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 753 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 754 | .manufacture_id = ATMEL_ID, |
| 755 | .model_id = AT_26DF161A, |
| 756 | .total_size = 2048, |
| 757 | .page_size = 256, |
| 758 | .tested = TEST_UNTESTED, |
| 759 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 760 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 761 | .block_erasers = |
| 762 | { |
| 763 | { |
| 764 | .eraseblocks = { {4 * 1024, 512} }, |
| 765 | .block_erase = spi_block_erase_20, |
| 766 | }, { |
| 767 | .eraseblocks = { {32 * 1024, 64} }, |
| 768 | .block_erase = spi_block_erase_52, |
| 769 | }, { |
| 770 | .eraseblocks = { {64 * 1024, 32} }, |
| 771 | .block_erase = spi_block_erase_d8, |
| 772 | }, { |
| 773 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 774 | .block_erase = spi_block_erase_60, |
| 775 | }, { |
| 776 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 777 | .block_erase = spi_block_erase_c7, |
| 778 | } |
| 779 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 780 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 781 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 782 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 783 | }, |
| 784 | |
| 785 | /*The AT26DF321 has the same ID as the AT25DF321. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 786 | /*{ |
| 787 | .vendor = "Atmel", |
| 788 | .name = "AT26DF321", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 789 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 790 | .manufacture_id = ATMEL_ID, |
| 791 | .model_id = AT_26DF321, |
| 792 | .total_size = 4096, |
| 793 | .page_size = 256, |
| 794 | .tested = TEST_UNTESTED, |
| 795 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 796 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 797 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 798 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 799 | .read = spi_chip_read, |
| 800 | },*/ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 801 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 802 | { |
| 803 | .vendor = "Atmel", |
| 804 | .name = "AT26F004", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 805 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 806 | .manufacture_id = ATMEL_ID, |
| 807 | .model_id = AT_26F004, |
| 808 | .total_size = 512, |
| 809 | .page_size = 256, |
| 810 | .tested = TEST_UNTESTED, |
| 811 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 812 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 813 | .block_erasers = |
| 814 | { |
| 815 | { |
| 816 | .eraseblocks = { {4 * 1024, 128} }, |
| 817 | .block_erase = spi_block_erase_20, |
| 818 | }, { |
| 819 | .eraseblocks = { {32 * 1024, 16} }, |
| 820 | .block_erase = spi_block_erase_52, |
| 821 | }, { |
| 822 | .eraseblocks = { {64 * 1024, 8} }, |
| 823 | .block_erase = spi_block_erase_d8, |
| 824 | }, { |
| 825 | .eraseblocks = { {512 * 1024, 1} }, |
| 826 | .block_erase = spi_block_erase_60, |
| 827 | }, { |
| 828 | .eraseblocks = { {512 * 1024, 1} }, |
| 829 | .block_erase = spi_block_erase_c7, |
| 830 | } |
| 831 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 832 | .write = NULL /* Incompatible Page write */, |
| 833 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 834 | }, |
| 835 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 836 | { |
| 837 | .vendor = "Atmel", |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 838 | .name = "AT29C512", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 839 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 840 | .manufacture_id = ATMEL_ID, |
| 841 | .model_id = AT_29C512, |
| 842 | .total_size = 64, |
| 843 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 844 | .feature_bits = FEATURE_LONG_RESET, |
| 845 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 846 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 847 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 848 | .block_erasers = |
| 849 | { |
| 850 | { |
| 851 | .eraseblocks = { {64 * 1024, 1} }, |
| 852 | .block_erase = erase_chip_block_jedec, |
| 853 | } |
| 854 | }, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 855 | .write = write_jedec, |
| 856 | .read = read_memmapped, |
| 857 | |
| 858 | }, |
| 859 | |
| 860 | { |
| 861 | .vendor = "Atmel", |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 862 | .name = "AT29C010A", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 863 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 864 | .manufacture_id = ATMEL_ID, |
| 865 | .model_id = AT_29C010A, |
| 866 | .total_size = 128, |
| 867 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 868 | .feature_bits = FEATURE_LONG_RESET, |
Michael Karcher | 98eff46 | 2010-03-24 22:55:56 +0000 | [diff] [blame] | 869 | .tested = TEST_OK_PREW, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 870 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 871 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 872 | .block_erasers = |
| 873 | { |
| 874 | { |
| 875 | .eraseblocks = { {128 * 1024, 1} }, |
| 876 | .block_erase = erase_chip_block_jedec, |
| 877 | } |
| 878 | }, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 879 | .write = write_jedec, /* FIXME */ |
| 880 | .read = read_memmapped, |
| 881 | }, |
| 882 | |
| 883 | { |
| 884 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 885 | .name = "AT29C020", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 886 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 887 | .manufacture_id = ATMEL_ID, |
| 888 | .model_id = AT_29C020, |
| 889 | .total_size = 256, |
| 890 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 891 | .feature_bits = FEATURE_LONG_RESET, |
| 892 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 893 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 894 | .probe_timing = 10000, /* 10ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 895 | .block_erasers = |
| 896 | { |
| 897 | { |
| 898 | .eraseblocks = { {256 * 1024, 1} }, |
| 899 | .block_erase = erase_chip_block_jedec, |
| 900 | } |
| 901 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 902 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 903 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 904 | }, |
| 905 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 906 | { |
| 907 | .vendor = "Atmel", |
| 908 | .name = "AT29C040A", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 909 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 910 | .manufacture_id = ATMEL_ID, |
| 911 | .model_id = AT_29C040A, |
| 912 | .total_size = 512, |
| 913 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 914 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 915 | .tested = TEST_UNTESTED, |
| 916 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 917 | .probe_timing = 10000, /* 10 ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 918 | .block_erasers = |
| 919 | { |
| 920 | { |
| 921 | .eraseblocks = { {512 * 1024, 1} }, |
| 922 | .block_erase = erase_chip_block_jedec, |
| 923 | } |
| 924 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 925 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 926 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 927 | }, |
| 928 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 929 | { |
| 930 | .vendor = "Atmel", |
| 931 | .name = "AT45CS1282", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 932 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 933 | .manufacture_id = ATMEL_ID, |
| 934 | .model_id = AT_45CS1282, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 935 | .total_size = 16896 /* No power of two sizes */, |
| 936 | .page_size = 1056 /* No power of two sizes */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 937 | .tested = TEST_BAD_READ, |
| 938 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 939 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 940 | .write = NULL /* Incompatible Page write */, |
| 941 | .read = NULL /* Incompatible read */, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 942 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 943 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 944 | { |
| 945 | .vendor = "Atmel", |
| 946 | .name = "AT45DB011D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 947 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 948 | .manufacture_id = ATMEL_ID, |
| 949 | .model_id = AT_45DB011D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 950 | .total_size = 128 /* Size can only be determined from status register */, |
| 951 | .page_size = 256 /* Size can only be determined from status register */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 952 | .tested = TEST_BAD_READ, |
| 953 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 954 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 955 | .write = NULL, |
| 956 | .read = NULL, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 957 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 958 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 959 | { |
| 960 | .vendor = "Atmel", |
| 961 | .name = "AT45DB021D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 962 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 963 | .manufacture_id = ATMEL_ID, |
| 964 | .model_id = AT_45DB021D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 965 | .total_size = 256 /* Size can only be determined from status register */, |
| 966 | .page_size = 256 /* Size can only be determined from status register */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 967 | .tested = TEST_BAD_READ, |
| 968 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 969 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 970 | .write = NULL, |
| 971 | .read = NULL, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 972 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 973 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 974 | { |
| 975 | .vendor = "Atmel", |
| 976 | .name = "AT45DB041D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 977 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 978 | .manufacture_id = ATMEL_ID, |
| 979 | .model_id = AT_45DB041D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 980 | .total_size = 512 /* Size can only be determined from status register */, |
| 981 | .page_size = 256 /* Size can only be determined from status register */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 982 | .tested = TEST_BAD_READ, |
| 983 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 984 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 985 | .write = NULL, |
| 986 | .read = NULL, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 987 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 988 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 989 | { |
| 990 | .vendor = "Atmel", |
| 991 | .name = "AT45DB081D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 992 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 993 | .manufacture_id = ATMEL_ID, |
| 994 | .model_id = AT_45DB081D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 995 | .total_size = 1024 /* Size can only be determined from status register */, |
| 996 | .page_size = 256 /* Size can only be determined from status register */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 997 | .tested = TEST_BAD_READ, |
| 998 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 999 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1000 | .write = NULL, |
| 1001 | .read = NULL, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1002 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1003 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1004 | { |
| 1005 | .vendor = "Atmel", |
| 1006 | .name = "AT45DB161D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1007 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1008 | .manufacture_id = ATMEL_ID, |
| 1009 | .model_id = AT_45DB161D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1010 | .total_size = 2048 /* Size can only be determined from status register */, |
| 1011 | .page_size = 512 /* Size can only be determined from status register */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1012 | .tested = TEST_BAD_READ, |
| 1013 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1014 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1015 | .write = NULL, |
| 1016 | .read = NULL, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1017 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1018 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1019 | { |
| 1020 | .vendor = "Atmel", |
| 1021 | .name = "AT45DB321C", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1022 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1023 | .manufacture_id = ATMEL_ID, |
| 1024 | .model_id = AT_45DB321C, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1025 | .total_size = 4224 /* No power of two sizes */, |
| 1026 | .page_size = 528 /* No power of two sizes */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1027 | .tested = TEST_BAD_READ, |
| 1028 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1029 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1030 | .write = NULL, |
| 1031 | .read = NULL /* Incompatible read */, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1032 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1033 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1034 | { |
| 1035 | .vendor = "Atmel", |
| 1036 | .name = "AT45DB321D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1037 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1038 | .manufacture_id = ATMEL_ID, |
| 1039 | .model_id = AT_45DB321D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1040 | .total_size = 4096 /* Size can only be determined from status register */, |
| 1041 | .page_size = 512 /* Size can only be determined from status register */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1042 | .tested = TEST_BAD_READ, |
| 1043 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1044 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1045 | .write = NULL, |
| 1046 | .read = NULL, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1047 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1048 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1049 | { |
| 1050 | .vendor = "Atmel", |
| 1051 | .name = "AT45DB642D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1052 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1053 | .manufacture_id = ATMEL_ID, |
| 1054 | .model_id = AT_45DB642D, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1055 | .total_size = 8192 /* Size can only be determined from status register */, |
| 1056 | .page_size = 1024 /* Size can only be determined from status register */, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1057 | .tested = TEST_BAD_READ, |
| 1058 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1059 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1060 | .write = NULL, |
| 1061 | .read = NULL, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 1062 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1063 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1064 | { |
| 1065 | .vendor = "Atmel", |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 1066 | .name = "AT49BV512", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 1067 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 1068 | .manufacture_id = ATMEL_ID, |
| 1069 | .model_id = AT_49BV512, |
| 1070 | .total_size = 64, |
| 1071 | .page_size = 64, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1072 | .feature_bits = FEATURE_EITHER_RESET, |
| 1073 | .tested = TEST_UNTESTED, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 1074 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 1075 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1076 | .block_erasers = |
| 1077 | { |
| 1078 | { |
| 1079 | .eraseblocks = { {64 * 1024, 1} }, |
| 1080 | .block_erase = erase_chip_block_jedec, |
| 1081 | } |
| 1082 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1083 | .write = write_jedec_1, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 1084 | .read = read_memmapped, |
| 1085 | }, |
| 1086 | |
| 1087 | { |
| 1088 | .vendor = "Atmel", |
Andrew Morgan | 1a5eaa1 | 2010-06-07 14:10:55 +0000 | [diff] [blame] | 1089 | .name = "AT49F020", |
| 1090 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 1091 | .manufacture_id = ATMEL_ID, |
| 1092 | .model_id = AT_49F020, |
| 1093 | .total_size = 256, |
| 1094 | .page_size = 256, |
| 1095 | .feature_bits = FEATURE_EITHER_RESET, |
| 1096 | .tested = TEST_OK_PREW, |
| 1097 | .probe = probe_jedec, |
| 1098 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 1099 | .block_erasers = |
| 1100 | { |
| 1101 | { |
| 1102 | .eraseblocks = { {256 * 1024, 1} }, |
| 1103 | .block_erase = erase_chip_block_jedec, |
| 1104 | } |
| 1105 | }, |
| 1106 | .write = write_jedec_1, |
| 1107 | .read = read_memmapped, |
| 1108 | }, |
| 1109 | |
| 1110 | { |
| 1111 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1112 | .name = "AT49F002(N)", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 1113 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1114 | .manufacture_id = ATMEL_ID, |
| 1115 | .model_id = AT_49F002N, |
| 1116 | .total_size = 256, |
| 1117 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1118 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1119 | .tested = TEST_UNTESTED, |
| 1120 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 1121 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1122 | .block_erasers = |
| 1123 | { |
| 1124 | { |
| 1125 | .eraseblocks = { |
| 1126 | {16 * 1024, 1}, |
| 1127 | {8 * 1024, 2}, |
| 1128 | {96 * 1024, 1}, |
| 1129 | {128 * 1024, 1}, |
| 1130 | }, |
| 1131 | .block_erase = erase_sector_jedec, |
| 1132 | }, { |
| 1133 | .eraseblocks = { {256 * 1024, 1} }, |
| 1134 | .block_erase = erase_chip_block_jedec, |
| 1135 | } |
| 1136 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1137 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 1138 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1139 | }, |
| 1140 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1141 | { |
| 1142 | .vendor = "Atmel", |
| 1143 | .name = "AT49F002(N)T", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 1144 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1145 | .manufacture_id = ATMEL_ID, |
| 1146 | .model_id = AT_49F002NT, |
| 1147 | .total_size = 256, |
| 1148 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1149 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 6093969 | 2010-03-17 00:05:59 +0000 | [diff] [blame] | 1150 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1151 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 1152 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1153 | .block_erasers = |
| 1154 | { |
| 1155 | { |
| 1156 | .eraseblocks = { |
| 1157 | {128 * 1024, 1}, |
| 1158 | {96 * 1024, 1}, |
| 1159 | {8 * 1024, 2}, |
| 1160 | {16 * 1024, 1}, |
| 1161 | }, |
| 1162 | .block_erase = erase_sector_jedec, |
| 1163 | }, { |
| 1164 | .eraseblocks = { {256 * 1024, 1} }, |
| 1165 | .block_erase = erase_chip_block_jedec, |
| 1166 | } |
| 1167 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1168 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 1169 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1170 | }, |
| 1171 | |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1172 | /* The next two chip definitions have top/bottom boot blocks, but has no |
Uwe Hermann | 4e3d0b3 | 2010-03-25 23:18:41 +0000 | [diff] [blame] | 1173 | device differentiation between the two */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1174 | { |
| 1175 | .vendor = "AMIC", |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1176 | .name = "A25L40PT", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 1177 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1178 | .manufacture_id = AMIC_ID, |
| 1179 | .model_id = AMIC_A25L40P, |
| 1180 | .total_size = 512, |
| 1181 | .page_size = 256, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1182 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1183 | .probe = probe_spi_rdid4, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1184 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1185 | .block_erasers = |
| 1186 | { |
| 1187 | { |
| 1188 | .eraseblocks = { |
| 1189 | {64 * 1024, 7}, |
| 1190 | {32 * 1024, 1}, |
| 1191 | {16 * 1024, 1}, |
| 1192 | {8 * 1024, 1}, |
| 1193 | {4 * 1024, 2}, |
| 1194 | }, |
| 1195 | .block_erase = spi_block_erase_d8, |
| 1196 | }, { |
Sean Nelson | 2aff7aa | 2010-01-18 08:24:02 +0000 | [diff] [blame] | 1197 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1198 | .block_erase = spi_block_erase_c7, |
| 1199 | } |
| 1200 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1201 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1202 | .write = spi_chip_write_256, |
| 1203 | .read = spi_chip_read, |
| 1204 | }, |
| 1205 | |
| 1206 | { |
| 1207 | .vendor = "AMIC", |
| 1208 | .name = "A25L40PU", |
| 1209 | .bustype = CHIP_BUSTYPE_SPI, |
| 1210 | .manufacture_id = AMIC_ID, |
| 1211 | .model_id = AMIC_A25L40P, |
| 1212 | .total_size = 512, |
| 1213 | .page_size = 256, |
| 1214 | .tested = TEST_OK_PRW, |
| 1215 | .probe = probe_spi_rdid4, |
| 1216 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1217 | .block_erasers = |
| 1218 | { |
| 1219 | { |
| 1220 | .eraseblocks = { |
| 1221 | {4 * 1024, 2}, |
| 1222 | {8 * 1024, 1}, |
| 1223 | {16 * 1024, 1}, |
| 1224 | {32 * 1024, 1}, |
| 1225 | {64 * 1024, 7}, |
| 1226 | }, |
| 1227 | .block_erase = spi_block_erase_d8, |
| 1228 | }, { |
Sean Nelson | 2aff7aa | 2010-01-18 08:24:02 +0000 | [diff] [blame] | 1229 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1230 | .block_erase = spi_block_erase_c7, |
| 1231 | } |
| 1232 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1233 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1234 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1235 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1236 | }, |
| 1237 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1238 | { |
| 1239 | .vendor = "AMIC", |
Daniel Lenski | 550f5c8 | 2010-07-11 21:33:31 +0000 | [diff] [blame] | 1240 | .name = "A25L80P", |
| 1241 | .bustype = CHIP_BUSTYPE_SPI, |
| 1242 | .manufacture_id = AMIC_ID, |
| 1243 | .model_id = AMIC_A25L80P, |
| 1244 | .total_size = 1024, |
| 1245 | .page_size = 256, |
| 1246 | .tested = TEST_OK_PREW, |
| 1247 | .probe = probe_spi_rdid4, |
| 1248 | .probe_timing = TIMING_ZERO, |
| 1249 | .block_erasers = |
| 1250 | { |
| 1251 | { |
| 1252 | .eraseblocks = { |
| 1253 | {4 * 1024, 2}, |
| 1254 | {8 * 1024, 1}, |
| 1255 | {16 * 1024, 1}, |
| 1256 | {32 * 1024, 1}, |
| 1257 | {64 * 1024, 15}, |
| 1258 | }, |
| 1259 | .block_erase = spi_block_erase_d8, |
| 1260 | }, { |
| 1261 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1262 | .block_erase = spi_block_erase_c7, |
| 1263 | } |
| 1264 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1265 | .unlock = spi_disable_blockprotect, |
Daniel Lenski | 550f5c8 | 2010-07-11 21:33:31 +0000 | [diff] [blame] | 1266 | .write = spi_chip_write_256, |
| 1267 | .read = spi_chip_read, |
| 1268 | }, |
| 1269 | |
| 1270 | { |
| 1271 | .vendor = "AMIC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1272 | .name = "A29002B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 1273 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1274 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1275 | .model_id = AMIC_A29002B, |
| 1276 | .total_size = 256, |
| 1277 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1278 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1279 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1280 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 1281 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 1282 | .block_erasers = |
| 1283 | { |
| 1284 | { |
| 1285 | .eraseblocks = { |
| 1286 | {16 * 1024, 1}, |
| 1287 | {8 * 1024, 2}, |
| 1288 | {32 * 1024, 1}, |
| 1289 | {64 * 1024, 3}, |
| 1290 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1291 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 1292 | }, { |
| 1293 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1294 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 1295 | }, |
| 1296 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 1297 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 1298 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1299 | }, |
| 1300 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1301 | { |
| 1302 | .vendor = "AMIC", |
| 1303 | .name = "A29002T", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 1304 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1305 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1306 | .model_id = AMIC_A29002T, |
| 1307 | .total_size = 256, |
| 1308 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1309 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Uwe Hermann | 6093969 | 2010-03-17 00:05:59 +0000 | [diff] [blame] | 1310 | .tested = TEST_OK_PRW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1311 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 1312 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 1313 | .block_erasers = |
| 1314 | { |
| 1315 | { |
| 1316 | .eraseblocks = { |
| 1317 | {64 * 1024, 3}, |
| 1318 | {32 * 1024, 1}, |
| 1319 | {8 * 1024, 2}, |
| 1320 | {16 * 1024, 1}, |
| 1321 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1322 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 1323 | }, { |
| 1324 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1325 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 1326 | }, |
| 1327 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 1328 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 1329 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1330 | }, |
| 1331 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1332 | { |
| 1333 | .vendor = "AMIC", |
| 1334 | .name = "A29040B", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 1335 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1336 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1337 | .model_id = AMIC_A29040B, |
| 1338 | .total_size = 512, |
| 1339 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1340 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 1341 | .tested = TEST_UNTESTED, |
| 1342 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 1343 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (am29f040b.c) */ |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 1344 | .block_erasers = |
| 1345 | { |
| 1346 | { |
| 1347 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1348 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 1349 | }, { |
| 1350 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1351 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 1352 | }, |
| 1353 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1354 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 1355 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1356 | }, |
| 1357 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1358 | { |
| 1359 | .vendor = "AMIC", |
| 1360 | .name = "A49LF040A", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 1361 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1362 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1363 | .model_id = AMIC_A49LF040A, |
| 1364 | .total_size = 512, |
| 1365 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1366 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Uwe Hermann | ea5425b | 2010-05-30 17:00:19 +0000 | [diff] [blame] | 1367 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 1368 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 1369 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1370 | .block_erasers = |
| 1371 | { |
| 1372 | { |
| 1373 | .eraseblocks = { {64 * 1024, 8} }, |
| 1374 | .block_erase = erase_block_jedec, |
| 1375 | }, { |
| 1376 | .eraseblocks = { {512 * 1024, 1} }, |
| 1377 | .block_erase = erase_chip_block_jedec, |
| 1378 | } |
| 1379 | }, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 1380 | .unlock = unlock_49fl00x, |
| 1381 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 1382 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1383 | }, |
| 1384 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1385 | { |
| 1386 | .vendor = "EMST", |
| 1387 | .name = "F49B002UA", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 1388 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1389 | .manufacture_id = EMST_ID, |
| 1390 | .model_id = EMST_F49B002UA, |
| 1391 | .total_size = 256, |
| 1392 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1393 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1394 | .tested = TEST_UNTESTED, |
| 1395 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 1396 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1397 | .block_erasers = |
| 1398 | { |
| 1399 | { |
| 1400 | .eraseblocks = { |
| 1401 | {128 * 1024, 1}, |
| 1402 | {96 * 1024, 1}, |
| 1403 | {8 * 1024, 2}, |
| 1404 | {16 * 1024, 1}, |
| 1405 | }, |
| 1406 | .block_erase = erase_sector_jedec, |
| 1407 | }, { |
| 1408 | .eraseblocks = { {256 * 1024, 1} }, |
| 1409 | .block_erase = erase_chip_block_jedec, |
| 1410 | } |
| 1411 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 1412 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 1413 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1414 | }, |
| 1415 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1416 | { |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 1417 | .vendor = "EMST", |
| 1418 | .name = "F25L008A", |
| 1419 | .bustype = CHIP_BUSTYPE_SPI, |
| 1420 | .manufacture_id = EMST_ID, |
| 1421 | .model_id = EMST_F25L008A, |
| 1422 | .total_size = 1024, |
| 1423 | .page_size = 256, |
| 1424 | .tested = TEST_UNTESTED, |
| 1425 | .probe = probe_spi_rdid, |
| 1426 | .probe_timing = TIMING_ZERO, |
| 1427 | .block_erasers = |
| 1428 | { |
| 1429 | { |
| 1430 | .eraseblocks = { {4 * 1024, 256} }, |
| 1431 | .block_erase = spi_block_erase_20, |
| 1432 | }, { |
| 1433 | .eraseblocks = { {64 * 1024, 16} }, |
| 1434 | .block_erase = spi_block_erase_d8, |
| 1435 | }, { |
| 1436 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1437 | .block_erase = spi_block_erase_60, |
| 1438 | }, { |
| 1439 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1440 | .block_erase = spi_block_erase_c7, |
| 1441 | } |
| 1442 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1443 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 9a795d8 | 2010-07-14 16:19:05 +0000 | [diff] [blame] | 1444 | .write = spi_chip_write_1, |
Michael Karcher | 4497e86 | 2010-07-10 19:34:15 +0000 | [diff] [blame] | 1445 | .read = spi_chip_read, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 1446 | }, |
| 1447 | |
| 1448 | { |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 1449 | .vendor = "Eon", |
| 1450 | .name = "EN25B05", |
| 1451 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 1452 | .manufacture_id = EON_ID_NOPREFIX, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 1453 | .model_id = EN_25B05, |
| 1454 | .total_size = 64, |
| 1455 | .page_size = 256, |
| 1456 | .tested = TEST_UNTESTED, |
| 1457 | .probe = probe_spi_rdid, |
| 1458 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1459 | .block_erasers = |
| 1460 | { |
| 1461 | { |
| 1462 | .eraseblocks = { |
| 1463 | {4 * 1024, 2}, |
| 1464 | {8 * 1024, 1}, |
| 1465 | {16 * 1024, 1}, |
| 1466 | {32 * 1024, 1}, |
| 1467 | }, |
| 1468 | .block_erase = spi_block_erase_d8, |
| 1469 | }, { |
| 1470 | .eraseblocks = { {64 * 1024, 1} }, |
| 1471 | .block_erase = spi_block_erase_c7, |
| 1472 | } |
| 1473 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1474 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1475 | .write = spi_chip_write_256, |
| 1476 | .read = spi_chip_read, |
| 1477 | }, |
| 1478 | |
| 1479 | { |
| 1480 | .vendor = "Eon", |
| 1481 | .name = "EN25B05T", |
| 1482 | .bustype = CHIP_BUSTYPE_SPI, |
| 1483 | .manufacture_id = EON_ID_NOPREFIX, |
| 1484 | .model_id = EN_25B05, |
| 1485 | .total_size = 64, |
| 1486 | .page_size = 256, |
| 1487 | .tested = TEST_UNTESTED, |
| 1488 | .probe = probe_spi_rdid, |
| 1489 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1490 | .block_erasers = |
| 1491 | { |
| 1492 | { |
| 1493 | .eraseblocks = { |
| 1494 | {32 * 1024, 1}, |
| 1495 | {16 * 1024, 1}, |
| 1496 | {8 * 1024, 1}, |
| 1497 | {4 * 1024, 2}, |
| 1498 | }, |
| 1499 | .block_erase = spi_block_erase_d8, |
| 1500 | }, { |
| 1501 | .eraseblocks = { {64 * 1024, 1} }, |
| 1502 | .block_erase = spi_block_erase_c7, |
| 1503 | } |
| 1504 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1505 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 1506 | .write = spi_chip_write_256, |
| 1507 | .read = spi_chip_read, |
| 1508 | }, |
| 1509 | |
| 1510 | { |
| 1511 | .vendor = "Eon", |
| 1512 | .name = "EN25B10", |
| 1513 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 1514 | .manufacture_id = EON_ID_NOPREFIX, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 1515 | .model_id = EN_25B10, |
| 1516 | .total_size = 128, |
| 1517 | .page_size = 256, |
| 1518 | .tested = TEST_UNTESTED, |
| 1519 | .probe = probe_spi_rdid, |
| 1520 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1521 | .block_erasers = |
| 1522 | { |
| 1523 | { |
| 1524 | .eraseblocks = { |
| 1525 | {4 * 1024, 2}, |
| 1526 | {8 * 1024, 1}, |
| 1527 | {16 * 1024, 1}, |
| 1528 | {32 * 1024, 3}, |
| 1529 | }, |
| 1530 | .block_erase = spi_block_erase_d8, |
| 1531 | }, { |
| 1532 | .eraseblocks = { {128 * 1024, 1} }, |
| 1533 | .block_erase = spi_block_erase_c7, |
| 1534 | } |
| 1535 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1536 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1537 | .write = spi_chip_write_256, |
| 1538 | .read = spi_chip_read, |
| 1539 | }, |
| 1540 | |
| 1541 | { |
| 1542 | .vendor = "Eon", |
| 1543 | .name = "EN25B10T", |
| 1544 | .bustype = CHIP_BUSTYPE_SPI, |
| 1545 | .manufacture_id = EON_ID_NOPREFIX, |
| 1546 | .model_id = EN_25B10, |
| 1547 | .total_size = 128, |
| 1548 | .page_size = 256, |
| 1549 | .tested = TEST_UNTESTED, |
| 1550 | .probe = probe_spi_rdid, |
| 1551 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1552 | .block_erasers = |
| 1553 | { |
| 1554 | { |
| 1555 | .eraseblocks = { |
| 1556 | {32 * 1024, 3}, |
| 1557 | {16 * 1024, 1}, |
| 1558 | {8 * 1024, 1}, |
| 1559 | {4 * 1024, 2}, |
| 1560 | }, |
| 1561 | .block_erase = spi_block_erase_d8, |
| 1562 | }, { |
| 1563 | .eraseblocks = { {128 * 1024, 1} }, |
| 1564 | .block_erase = spi_block_erase_c7, |
| 1565 | } |
| 1566 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1567 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 1568 | .write = spi_chip_write_256, |
| 1569 | .read = spi_chip_read, |
| 1570 | }, |
| 1571 | |
| 1572 | { |
| 1573 | .vendor = "Eon", |
| 1574 | .name = "EN25B20", |
| 1575 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 1576 | .manufacture_id = EON_ID_NOPREFIX, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 1577 | .model_id = EN_25B20, |
| 1578 | .total_size = 256, |
| 1579 | .page_size = 256, |
| 1580 | .tested = TEST_UNTESTED, |
| 1581 | .probe = probe_spi_rdid, |
| 1582 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1583 | .block_erasers = |
| 1584 | { |
| 1585 | { |
| 1586 | .eraseblocks = { |
| 1587 | {4 * 1024, 2}, |
| 1588 | {8 * 1024, 1}, |
| 1589 | {16 * 1024, 1}, |
| 1590 | {32 * 1024, 1}, |
| 1591 | {64 * 1024, 3} |
| 1592 | }, |
| 1593 | .block_erase = spi_block_erase_d8, |
| 1594 | }, { |
| 1595 | .eraseblocks = { {256 * 1024, 1} }, |
| 1596 | .block_erase = spi_block_erase_c7, |
| 1597 | } |
| 1598 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1599 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1600 | .write = spi_chip_write_256, |
| 1601 | .read = spi_chip_read, |
| 1602 | }, |
| 1603 | |
| 1604 | { |
| 1605 | .vendor = "Eon", |
| 1606 | .name = "EN25B20T", |
| 1607 | .bustype = CHIP_BUSTYPE_SPI, |
| 1608 | .manufacture_id = EON_ID_NOPREFIX, |
| 1609 | .model_id = EN_25B20, |
| 1610 | .total_size = 256, |
| 1611 | .page_size = 256, |
| 1612 | .tested = TEST_UNTESTED, |
| 1613 | .probe = probe_spi_rdid, |
| 1614 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1615 | .block_erasers = |
| 1616 | { |
| 1617 | { |
| 1618 | .eraseblocks = { |
| 1619 | {64 * 1024, 3}, |
| 1620 | {32 * 1024, 1}, |
| 1621 | {16 * 1024, 1}, |
| 1622 | {8 * 1024, 1}, |
| 1623 | {4 * 1024, 2}, |
| 1624 | }, |
| 1625 | .block_erase = spi_block_erase_d8, |
| 1626 | }, { |
| 1627 | .eraseblocks = { {256 * 1024, 1} }, |
| 1628 | .block_erase = spi_block_erase_c7, |
| 1629 | } |
| 1630 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1631 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 1632 | .write = spi_chip_write_256, |
| 1633 | .read = spi_chip_read, |
| 1634 | }, |
| 1635 | |
| 1636 | { |
| 1637 | .vendor = "Eon", |
| 1638 | .name = "EN25B40", |
| 1639 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 1640 | .manufacture_id = EON_ID_NOPREFIX, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 1641 | .model_id = EN_25B40, |
| 1642 | .total_size = 512, |
| 1643 | .page_size = 256, |
| 1644 | .tested = TEST_UNTESTED, |
| 1645 | .probe = probe_spi_rdid, |
| 1646 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1647 | .block_erasers = |
| 1648 | { |
| 1649 | { |
| 1650 | .eraseblocks = { |
| 1651 | {4 * 1024, 2}, |
| 1652 | {8 * 1024, 1}, |
| 1653 | {16 * 1024, 1}, |
| 1654 | {32 * 1024, 1}, |
| 1655 | {64 * 1024, 7} |
| 1656 | }, |
| 1657 | .block_erase = spi_block_erase_d8, |
| 1658 | }, { |
| 1659 | .eraseblocks = { {512 * 1024, 1} }, |
| 1660 | .block_erase = spi_block_erase_c7, |
| 1661 | } |
| 1662 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1663 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1664 | .write = spi_chip_write_256, |
| 1665 | .read = spi_chip_read, |
| 1666 | }, |
| 1667 | |
| 1668 | { |
| 1669 | .vendor = "Eon", |
| 1670 | .name = "EN25B40T", |
| 1671 | .bustype = CHIP_BUSTYPE_SPI, |
| 1672 | .manufacture_id = EON_ID_NOPREFIX, |
| 1673 | .model_id = EN_25B40, |
| 1674 | .total_size = 512, |
| 1675 | .page_size = 256, |
| 1676 | .tested = TEST_UNTESTED, |
| 1677 | .probe = probe_spi_rdid, |
| 1678 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1679 | .block_erasers = |
| 1680 | { |
| 1681 | { |
| 1682 | .eraseblocks = { |
| 1683 | {64 * 1024, 7}, |
| 1684 | {32 * 1024, 1}, |
| 1685 | {16 * 1024, 1}, |
| 1686 | {8 * 1024, 1}, |
| 1687 | {4 * 1024, 2}, |
| 1688 | }, |
| 1689 | .block_erase = spi_block_erase_d8, |
| 1690 | }, { |
| 1691 | .eraseblocks = { {512 * 1024, 1} }, |
| 1692 | .block_erase = spi_block_erase_c7, |
| 1693 | } |
| 1694 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1695 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 1696 | .write = spi_chip_write_256, |
| 1697 | .read = spi_chip_read, |
| 1698 | }, |
| 1699 | |
| 1700 | { |
| 1701 | .vendor = "Eon", |
| 1702 | .name = "EN25B80", |
| 1703 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 1704 | .manufacture_id = EON_ID_NOPREFIX, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 1705 | .model_id = EN_25B80, |
| 1706 | .total_size = 1024, |
| 1707 | .page_size = 256, |
| 1708 | .tested = TEST_UNTESTED, |
| 1709 | .probe = probe_spi_rdid, |
| 1710 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1711 | .block_erasers = |
| 1712 | { |
| 1713 | { |
| 1714 | .eraseblocks = { |
| 1715 | {4 * 1024, 2}, |
| 1716 | {8 * 1024, 1}, |
| 1717 | {16 * 1024, 1}, |
| 1718 | {32 * 1024, 1}, |
| 1719 | {64 * 1024, 15} |
| 1720 | }, |
| 1721 | .block_erase = spi_block_erase_d8, |
| 1722 | }, { |
| 1723 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1724 | .block_erase = spi_block_erase_c7, |
| 1725 | } |
| 1726 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1727 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1728 | .write = spi_chip_write_256, |
| 1729 | .read = spi_chip_read, |
| 1730 | }, |
| 1731 | |
| 1732 | { |
| 1733 | .vendor = "Eon", |
| 1734 | .name = "EN25B80T", |
| 1735 | .bustype = CHIP_BUSTYPE_SPI, |
| 1736 | .manufacture_id = EON_ID_NOPREFIX, |
| 1737 | .model_id = EN_25B80, |
| 1738 | .total_size = 1024, |
| 1739 | .page_size = 256, |
| 1740 | .tested = TEST_UNTESTED, |
| 1741 | .probe = probe_spi_rdid, |
| 1742 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1743 | .block_erasers = |
| 1744 | { |
| 1745 | { |
| 1746 | .eraseblocks = { |
| 1747 | {64 * 1024, 15}, |
| 1748 | {32 * 1024, 1}, |
| 1749 | {16 * 1024, 1}, |
| 1750 | {8 * 1024, 1}, |
| 1751 | {4 * 1024, 2}, |
| 1752 | }, |
| 1753 | .block_erase = spi_block_erase_d8, |
| 1754 | }, { |
| 1755 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1756 | .block_erase = spi_block_erase_c7, |
| 1757 | } |
| 1758 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1759 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 1760 | .write = spi_chip_write_256, |
| 1761 | .read = spi_chip_read, |
| 1762 | }, |
| 1763 | |
| 1764 | { |
| 1765 | .vendor = "Eon", |
| 1766 | .name = "EN25B16", |
| 1767 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 1768 | .manufacture_id = EON_ID_NOPREFIX, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 1769 | .model_id = EN_25B16, |
| 1770 | .total_size = 2048, |
| 1771 | .page_size = 256, |
| 1772 | .tested = TEST_UNTESTED, |
| 1773 | .probe = probe_spi_rdid, |
| 1774 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1775 | .block_erasers = |
| 1776 | { |
| 1777 | { |
| 1778 | .eraseblocks = { |
| 1779 | {4 * 1024, 2}, |
| 1780 | {8 * 1024, 1}, |
| 1781 | {16 * 1024, 1}, |
| 1782 | {32 * 1024, 1}, |
| 1783 | {64 * 1024, 31}, |
| 1784 | }, |
| 1785 | .block_erase = spi_block_erase_d8, |
| 1786 | }, { |
| 1787 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1788 | .block_erase = spi_block_erase_c7, |
| 1789 | } |
| 1790 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1791 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1792 | .write = spi_chip_write_256, |
| 1793 | .read = spi_chip_read, |
| 1794 | }, |
| 1795 | |
| 1796 | { |
| 1797 | .vendor = "Eon", |
| 1798 | .name = "EN25B16T", |
| 1799 | .bustype = CHIP_BUSTYPE_SPI, |
| 1800 | .manufacture_id = EON_ID_NOPREFIX, |
| 1801 | .model_id = EN_25B16, |
| 1802 | .total_size = 2048, |
| 1803 | .page_size = 256, |
| 1804 | .tested = TEST_UNTESTED, |
| 1805 | .probe = probe_spi_rdid, |
| 1806 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1807 | .block_erasers = |
| 1808 | { |
| 1809 | { |
| 1810 | .eraseblocks = { |
| 1811 | {64 * 1024, 31}, |
| 1812 | {32 * 1024, 1}, |
| 1813 | {16 * 1024, 1}, |
| 1814 | {8 * 1024, 1}, |
| 1815 | {4 * 1024, 2}, |
| 1816 | }, |
| 1817 | .block_erase = spi_block_erase_d8, |
| 1818 | }, { |
| 1819 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1820 | .block_erase = spi_block_erase_c7, |
| 1821 | } |
| 1822 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1823 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 1824 | .write = spi_chip_write_256, |
| 1825 | .read = spi_chip_read, |
| 1826 | }, |
| 1827 | |
| 1828 | { |
| 1829 | .vendor = "Eon", |
| 1830 | .name = "EN25B32", |
| 1831 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 1832 | .manufacture_id = EON_ID_NOPREFIX, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 1833 | .model_id = EN_25B32, |
| 1834 | .total_size = 4096, |
| 1835 | .page_size = 256, |
| 1836 | .tested = TEST_UNTESTED, |
| 1837 | .probe = probe_spi_rdid, |
| 1838 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1839 | .block_erasers = |
| 1840 | { |
| 1841 | { |
| 1842 | .eraseblocks = { |
| 1843 | {4 * 1024, 2}, |
| 1844 | {8 * 1024, 1}, |
| 1845 | {16 * 1024, 1}, |
| 1846 | {32 * 1024, 1}, |
| 1847 | {64 * 1024, 63}, |
| 1848 | }, |
| 1849 | .block_erase = spi_block_erase_d8, |
| 1850 | }, { |
| 1851 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1852 | .block_erase = spi_block_erase_c7, |
| 1853 | } |
| 1854 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1855 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1856 | .write = spi_chip_write_256, |
| 1857 | .read = spi_chip_read, |
| 1858 | }, |
| 1859 | |
| 1860 | { |
| 1861 | .vendor = "Eon", |
| 1862 | .name = "EN25B32T", |
| 1863 | .bustype = CHIP_BUSTYPE_SPI, |
| 1864 | .manufacture_id = EON_ID_NOPREFIX, |
| 1865 | .model_id = EN_25B32, |
| 1866 | .total_size = 4096, |
| 1867 | .page_size = 256, |
| 1868 | .tested = TEST_UNTESTED, |
| 1869 | .probe = probe_spi_rdid, |
| 1870 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1871 | .block_erasers = |
| 1872 | { |
| 1873 | { |
| 1874 | .eraseblocks = { |
| 1875 | {64 * 1024, 63}, |
| 1876 | {32 * 1024, 1}, |
| 1877 | {16 * 1024, 1}, |
| 1878 | {8 * 1024, 1}, |
| 1879 | {4 * 1024, 2}, |
| 1880 | }, |
| 1881 | .block_erase = spi_block_erase_d8, |
| 1882 | }, { |
| 1883 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1884 | .block_erase = spi_block_erase_c7, |
| 1885 | } |
| 1886 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1887 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 1888 | .write = spi_chip_write_256, |
| 1889 | .read = spi_chip_read, |
| 1890 | }, |
| 1891 | |
| 1892 | { |
| 1893 | .vendor = "Eon", |
| 1894 | .name = "EN25B64", |
| 1895 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 1896 | .manufacture_id = EON_ID_NOPREFIX, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 1897 | .model_id = EN_25B64, |
| 1898 | .total_size = 8192, |
| 1899 | .page_size = 256, |
| 1900 | .tested = TEST_UNTESTED, |
| 1901 | .probe = probe_spi_rdid, |
| 1902 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1903 | .block_erasers = |
| 1904 | { |
| 1905 | { |
| 1906 | .eraseblocks = { |
| 1907 | {4 * 1024, 2}, |
| 1908 | {8 * 1024, 1}, |
| 1909 | {16 * 1024, 1}, |
| 1910 | {32 * 1024, 1}, |
| 1911 | {64 * 1024, 127}, |
| 1912 | }, |
| 1913 | .block_erase = spi_block_erase_d8, |
| 1914 | }, { |
| 1915 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1916 | .block_erase = spi_block_erase_c7, |
| 1917 | } |
| 1918 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1919 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1920 | .write = spi_chip_write_256, |
| 1921 | .read = spi_chip_read, |
| 1922 | }, |
| 1923 | |
| 1924 | { |
| 1925 | .vendor = "Eon", |
| 1926 | .name = "EN25B64T", |
| 1927 | .bustype = CHIP_BUSTYPE_SPI, |
| 1928 | .manufacture_id = EON_ID_NOPREFIX, |
| 1929 | .model_id = EN_25B64, |
| 1930 | .total_size = 8192, |
| 1931 | .page_size = 256, |
| 1932 | .tested = TEST_UNTESTED, |
| 1933 | .probe = probe_spi_rdid, |
| 1934 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1935 | .block_erasers = |
| 1936 | { |
| 1937 | { |
| 1938 | .eraseblocks = { |
| 1939 | {64 * 1024, 127}, |
| 1940 | {32 * 1024, 1}, |
| 1941 | {16 * 1024, 1}, |
| 1942 | {8 * 1024, 1}, |
| 1943 | {4 * 1024, 2}, |
| 1944 | }, |
| 1945 | .block_erase = spi_block_erase_d8, |
| 1946 | }, { |
| 1947 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1948 | .block_erase = spi_block_erase_c7, |
| 1949 | } |
| 1950 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1951 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 1952 | .write = spi_chip_write_256, |
| 1953 | .read = spi_chip_read, |
| 1954 | }, |
| 1955 | |
| 1956 | { |
| 1957 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 1958 | .name = "EN25D16", |
| 1959 | .bustype = CHIP_BUSTYPE_SPI, |
| 1960 | .manufacture_id = EON_ID_NOPREFIX, |
| 1961 | .model_id = EN_25D16, |
| 1962 | .total_size = 2048, |
| 1963 | .page_size = 256, |
| 1964 | .tested = TEST_UNTESTED, |
| 1965 | .probe = probe_spi_rdid, |
| 1966 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 1967 | .block_erasers = |
| 1968 | { |
| 1969 | { |
| 1970 | .eraseblocks = { {4 * 1024, 512} }, |
| 1971 | .block_erase = spi_block_erase_20, |
| 1972 | }, { |
| 1973 | .eraseblocks = { {64 * 1024, 32} }, |
| 1974 | .block_erase = spi_block_erase_d8, |
| 1975 | }, { |
| 1976 | .eraseblocks = { {64 * 1024, 32} }, |
| 1977 | .block_erase = spi_block_erase_52, |
| 1978 | }, { |
| 1979 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1980 | .block_erase = spi_block_erase_60, |
| 1981 | }, { |
| 1982 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1983 | .block_erase = spi_block_erase_c7, |
| 1984 | } |
| 1985 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 1986 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 1987 | .write = spi_chip_write_256, |
| 1988 | .read = spi_chip_read, |
| 1989 | }, |
| 1990 | |
| 1991 | { |
| 1992 | .vendor = "Eon", |
| 1993 | .name = "EN25F05", |
| 1994 | .bustype = CHIP_BUSTYPE_SPI, |
| 1995 | .manufacture_id = EON_ID_NOPREFIX, |
| 1996 | .model_id = EN_25F05, |
| 1997 | .total_size = 64, |
| 1998 | .page_size = 256, |
| 1999 | .tested = TEST_UNTESTED, |
| 2000 | .probe = probe_spi_rdid, |
| 2001 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2002 | .block_erasers = |
| 2003 | { |
| 2004 | { |
| 2005 | .eraseblocks = { {4 * 1024, 16} }, |
| 2006 | .block_erase = spi_block_erase_20, |
| 2007 | }, { |
| 2008 | .eraseblocks = { {32 * 1024, 2} }, |
| 2009 | .block_erase = spi_block_erase_d8, |
| 2010 | }, { |
| 2011 | .eraseblocks = { {32 * 1024, 2} }, |
| 2012 | .block_erase = spi_block_erase_52, |
| 2013 | }, { |
| 2014 | .eraseblocks = { {64 * 1024, 1} }, |
| 2015 | .block_erase = spi_block_erase_60, |
| 2016 | }, { |
| 2017 | .eraseblocks = { {64 * 1024, 1} }, |
| 2018 | .block_erase = spi_block_erase_c7, |
| 2019 | } |
| 2020 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2021 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2022 | .write = spi_chip_write_256, |
| 2023 | .read = spi_chip_read, |
| 2024 | }, |
| 2025 | |
| 2026 | { |
| 2027 | .vendor = "Eon", |
| 2028 | .name = "EN25F10", |
| 2029 | .bustype = CHIP_BUSTYPE_SPI, |
| 2030 | .manufacture_id = EON_ID_NOPREFIX, |
| 2031 | .model_id = EN_25F10, |
| 2032 | .total_size = 128, |
| 2033 | .page_size = 256, |
| 2034 | .tested = TEST_UNTESTED, |
| 2035 | .probe = probe_spi_rdid, |
| 2036 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2037 | .block_erasers = |
| 2038 | { |
| 2039 | { |
| 2040 | .eraseblocks = { {4 * 1024, 32} }, |
| 2041 | .block_erase = spi_block_erase_20, |
| 2042 | }, { |
| 2043 | .eraseblocks = { {32 * 1024, 4} }, |
| 2044 | .block_erase = spi_block_erase_d8, |
| 2045 | }, { |
| 2046 | .eraseblocks = { {32 * 1024, 4} }, |
| 2047 | .block_erase = spi_block_erase_52, |
| 2048 | }, { |
| 2049 | .eraseblocks = { {128 * 1024, 1} }, |
| 2050 | .block_erase = spi_block_erase_60, |
| 2051 | }, { |
| 2052 | .eraseblocks = { {128 * 1024, 1} }, |
| 2053 | .block_erase = spi_block_erase_c7, |
| 2054 | } |
| 2055 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2056 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2057 | .write = spi_chip_write_256, |
| 2058 | .read = spi_chip_read, |
| 2059 | }, |
| 2060 | |
| 2061 | { |
| 2062 | .vendor = "Eon", |
| 2063 | .name = "EN25F20", |
| 2064 | .bustype = CHIP_BUSTYPE_SPI, |
| 2065 | .manufacture_id = EON_ID_NOPREFIX, |
| 2066 | .model_id = EN_25F20, |
| 2067 | .total_size = 256, |
| 2068 | .page_size = 256, |
| 2069 | .tested = TEST_UNTESTED, |
| 2070 | .probe = probe_spi_rdid, |
| 2071 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2072 | .block_erasers = |
| 2073 | { |
| 2074 | { |
| 2075 | .eraseblocks = { {4 * 1024, 64} }, |
| 2076 | .block_erase = spi_block_erase_20, |
| 2077 | }, { |
| 2078 | .eraseblocks = { {64 * 1024, 4} }, |
| 2079 | .block_erase = spi_block_erase_d8, |
| 2080 | }, { |
| 2081 | .eraseblocks = { {64 * 1024, 4} }, |
| 2082 | .block_erase = spi_block_erase_52, |
| 2083 | }, { |
| 2084 | .eraseblocks = { {256 * 1024, 1} }, |
| 2085 | .block_erase = spi_block_erase_60, |
| 2086 | }, { |
| 2087 | .eraseblocks = { {256 * 1024, 1} }, |
| 2088 | .block_erase = spi_block_erase_c7, |
| 2089 | } |
| 2090 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2091 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2092 | .write = spi_chip_write_256, |
| 2093 | .read = spi_chip_read, |
| 2094 | }, |
| 2095 | |
| 2096 | { |
| 2097 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2098 | .name = "EN25F40", |
| 2099 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2100 | .manufacture_id = EON_ID_NOPREFIX, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2101 | .model_id = EN_25F40, |
| 2102 | .total_size = 512, |
| 2103 | .page_size = 256, |
Carl-Daniel Hailfinger | faaa2b2 | 2009-06-22 10:06:28 +0000 | [diff] [blame] | 2104 | .tested = TEST_OK_PROBE, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2105 | .probe = probe_spi_rdid, |
| 2106 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2107 | .block_erasers = |
| 2108 | { |
| 2109 | { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2110 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2111 | .block_erase = spi_block_erase_20, |
| 2112 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2113 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2114 | .block_erase = spi_block_erase_d8, |
| 2115 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2116 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2117 | .block_erase = spi_block_erase_60, |
| 2118 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2119 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2120 | .block_erase = spi_block_erase_c7, |
| 2121 | }, |
| 2122 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2123 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2124 | .write = spi_chip_write_256, |
| 2125 | .read = spi_chip_read, |
| 2126 | }, |
| 2127 | |
| 2128 | { |
| 2129 | .vendor = "Eon", |
| 2130 | .name = "EN25F80", |
| 2131 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2132 | .manufacture_id = EON_ID_NOPREFIX, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2133 | .model_id = EN_25F80, |
| 2134 | .total_size = 1024, |
| 2135 | .page_size = 256, |
Uwe Hermann | ea5425b | 2010-05-30 17:00:19 +0000 | [diff] [blame] | 2136 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2137 | .probe = probe_spi_rdid, |
| 2138 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2139 | .block_erasers = |
| 2140 | { |
| 2141 | { |
| 2142 | .eraseblocks = { {4 * 1024, 256} }, |
| 2143 | .block_erase = spi_block_erase_20, |
| 2144 | }, { |
| 2145 | .eraseblocks = { {64 * 1024, 16} }, |
| 2146 | .block_erase = spi_block_erase_d8, |
| 2147 | }, { |
| 2148 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2149 | .block_erase = spi_block_erase_60, |
| 2150 | }, { |
| 2151 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2152 | .block_erase = spi_block_erase_c7, |
| 2153 | } |
| 2154 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2155 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2156 | .write = spi_chip_write_256, |
| 2157 | .read = spi_chip_read, |
| 2158 | }, |
| 2159 | |
| 2160 | { |
| 2161 | .vendor = "Eon", |
| 2162 | .name = "EN25F16", |
| 2163 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2164 | .manufacture_id = EON_ID_NOPREFIX, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2165 | .model_id = EN_25F16, |
| 2166 | .total_size = 2048, |
| 2167 | .page_size = 256, |
| 2168 | .tested = TEST_UNTESTED, |
| 2169 | .probe = probe_spi_rdid, |
| 2170 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2171 | .block_erasers = |
| 2172 | { |
| 2173 | { |
| 2174 | .eraseblocks = { {4 * 1024, 512} }, |
| 2175 | .block_erase = spi_block_erase_20, |
| 2176 | }, { |
| 2177 | .eraseblocks = { {64 * 1024, 32} }, |
| 2178 | .block_erase = spi_block_erase_d8, |
| 2179 | }, { |
| 2180 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2181 | .block_erase = spi_block_erase_60, |
| 2182 | }, { |
| 2183 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2184 | .block_erase = spi_block_erase_c7, |
| 2185 | } |
| 2186 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2187 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 2188 | .write = spi_chip_write_256, |
| 2189 | .read = spi_chip_read, |
| 2190 | }, |
| 2191 | |
| 2192 | { |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2193 | .vendor = "Eon", |
| 2194 | .name = "EN25F32", |
| 2195 | .bustype = CHIP_BUSTYPE_SPI, |
| 2196 | .manufacture_id = EON_ID_NOPREFIX, |
| 2197 | .model_id = EN_25F32, |
| 2198 | .total_size = 4096, |
| 2199 | .page_size = 256, |
| 2200 | .tested = TEST_UNTESTED, |
| 2201 | .probe = probe_spi_rdid, |
| 2202 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2203 | .block_erasers = |
| 2204 | { |
| 2205 | { |
| 2206 | .eraseblocks = { {4 * 1024, 1024} }, |
| 2207 | .block_erase = spi_block_erase_20, |
| 2208 | }, { |
| 2209 | .eraseblocks = { {64 * 1024, 64} }, |
| 2210 | .block_erase = spi_block_erase_d8, |
| 2211 | }, { |
| 2212 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 2213 | .block_erase = spi_block_erase_60, |
| 2214 | }, { |
| 2215 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 2216 | .block_erase = spi_block_erase_c7, |
| 2217 | } |
| 2218 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2219 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 2220 | .write = spi_chip_write_256, |
| 2221 | .read = spi_chip_read, |
| 2222 | }, |
| 2223 | |
| 2224 | { |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 2225 | .vendor = "Eon", |
| 2226 | .name = "EN29F010", |
| 2227 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 2228 | .manufacture_id = EON_ID, |
| 2229 | .model_id = EN_29F010, |
| 2230 | .total_size = 128, |
| 2231 | .page_size = 128, |
| 2232 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 2233 | .tested = TEST_OK_PREW, |
| 2234 | .probe = probe_jedec, |
| 2235 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2236 | .block_erasers = |
| 2237 | { |
| 2238 | { |
| 2239 | .eraseblocks = { {16 * 1024, 8} }, |
| 2240 | .block_erase = erase_sector_jedec, |
| 2241 | }, |
| 2242 | { |
| 2243 | .eraseblocks = { {128 * 1024, 1} }, |
| 2244 | .block_erase = erase_chip_block_jedec, |
| 2245 | }, |
| 2246 | }, |
| 2247 | .write = write_jedec_1, |
| 2248 | .read = read_memmapped, |
| 2249 | }, |
| 2250 | |
| 2251 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2252 | .vendor = "EON", |
| 2253 | .name = "EN29F002(A)(N)B", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 2254 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2255 | .manufacture_id = EON_ID, |
| 2256 | .model_id = EN_29F002B, |
| 2257 | .total_size = 256, |
| 2258 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2259 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Michael Karcher | b90c221 | 2010-03-24 22:56:14 +0000 | [diff] [blame] | 2260 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2261 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2262 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2263 | .block_erasers = |
| 2264 | { |
| 2265 | { |
| 2266 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2267 | {16 * 1024, 1}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 2268 | {8 * 1024, 2}, |
| 2269 | {32 * 1024, 1}, |
| 2270 | {64 * 1024, 3}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2271 | }, |
| 2272 | .block_erase = erase_sector_jedec, |
| 2273 | }, { |
| 2274 | .eraseblocks = { {256 * 1024, 1} }, |
| 2275 | .block_erase = erase_chip_block_jedec, |
| 2276 | }, |
| 2277 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 2278 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2279 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2280 | }, |
| 2281 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2282 | { |
| 2283 | .vendor = "EON", |
| 2284 | .name = "EN29F002(A)(N)T", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 2285 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2286 | .manufacture_id = EON_ID, |
| 2287 | .model_id = EN_29F002T, |
| 2288 | .total_size = 256, |
| 2289 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2290 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Uwe Hermann | 6093969 | 2010-03-17 00:05:59 +0000 | [diff] [blame] | 2291 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2292 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2293 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2294 | .block_erasers = |
| 2295 | { |
| 2296 | { |
| 2297 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2298 | {64 * 1024, 3}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 2299 | {32 * 1024, 1}, |
| 2300 | {8 * 1024, 2}, |
| 2301 | {16 * 1024, 1}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2302 | }, |
| 2303 | .block_erase = erase_sector_jedec, |
| 2304 | }, { |
| 2305 | .eraseblocks = { {256 * 1024, 1} }, |
| 2306 | .block_erase = erase_chip_block_jedec, |
| 2307 | }, |
| 2308 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 2309 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2310 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2311 | }, |
| 2312 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2313 | { |
| 2314 | .vendor = "Fujitsu", |
| 2315 | .name = "MBM29F004BC", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 2316 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2317 | .manufacture_id = FUJITSU_ID, |
| 2318 | .model_id = MBM29F004BC, |
| 2319 | .total_size = 512, |
| 2320 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2321 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2322 | .tested = TEST_UNTESTED, |
| 2323 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2324 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2325 | .block_erasers = |
| 2326 | { |
| 2327 | { |
| 2328 | .eraseblocks = { |
| 2329 | {16 * 1024, 1}, |
| 2330 | {8 * 1024, 2}, |
| 2331 | {32 * 1024, 1}, |
| 2332 | {64 * 1024, 7}, |
| 2333 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2334 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2335 | }, { |
| 2336 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2337 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2338 | }, |
| 2339 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2340 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2341 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2342 | }, |
| 2343 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2344 | { |
| 2345 | .vendor = "Fujitsu", |
| 2346 | .name = "MBM29F004TC", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 2347 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2348 | .manufacture_id = FUJITSU_ID, |
| 2349 | .model_id = MBM29F004TC, |
| 2350 | .total_size = 512, |
| 2351 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2352 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2353 | .tested = TEST_UNTESTED, |
| 2354 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2355 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2356 | .block_erasers = |
| 2357 | { |
| 2358 | { |
| 2359 | .eraseblocks = { |
| 2360 | {64 * 1024, 7}, |
| 2361 | {32 * 1024, 1}, |
| 2362 | {8 * 1024, 2}, |
| 2363 | {16 * 1024, 1}, |
| 2364 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2365 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2366 | }, { |
| 2367 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2368 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2369 | }, |
| 2370 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2371 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2372 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2373 | }, |
| 2374 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2375 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2376 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2377 | .vendor = "Fujitsu", |
| 2378 | .name = "MBM29F400BC", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 2379 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2380 | .manufacture_id = FUJITSU_ID, |
| 2381 | .model_id = MBM29F400BC, |
| 2382 | .total_size = 512, |
| 2383 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2384 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 2385 | .tested = TEST_BAD_WRITE, /* Implicit eraseblock layout in write_m29f400bt is broken. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2386 | .probe = probe_m29f400bt, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2387 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2388 | .block_erasers = |
| 2389 | { |
| 2390 | { |
| 2391 | .eraseblocks = { |
| 2392 | {16 * 1024, 1}, |
| 2393 | {8 * 1024, 2}, |
| 2394 | {32 * 1024, 1}, |
| 2395 | {64 * 1024, 7}, |
| 2396 | }, |
| 2397 | .block_erase = block_erase_m29f400bt, |
| 2398 | }, { |
| 2399 | .eraseblocks = { {512 * 1024, 1} }, |
| 2400 | .block_erase = block_erase_chip_m29f400bt, |
| 2401 | }, |
| 2402 | }, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 2403 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2404 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2405 | }, |
| 2406 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2407 | { |
| 2408 | .vendor = "Fujitsu", |
| 2409 | .name = "MBM29F400TC", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 2410 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2411 | .manufacture_id = FUJITSU_ID, |
| 2412 | .model_id = MBM29F400TC, |
| 2413 | .total_size = 512, |
| 2414 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2415 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2416 | .tested = TEST_UNTESTED, |
| 2417 | .probe = probe_m29f400bt, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2418 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2419 | .block_erasers = |
| 2420 | { |
| 2421 | { |
| 2422 | .eraseblocks = { |
| 2423 | {64 * 1024, 7}, |
| 2424 | {32 * 1024, 1}, |
| 2425 | {8 * 1024, 2}, |
| 2426 | {16 * 1024, 1}, |
| 2427 | }, |
| 2428 | .block_erase = block_erase_m29f400bt, |
| 2429 | }, { |
| 2430 | .eraseblocks = { {512 * 1024, 1} }, |
| 2431 | .block_erase = block_erase_chip_m29f400bt, |
| 2432 | }, |
| 2433 | }, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 2434 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2435 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2436 | }, |
| 2437 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2438 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 2439 | .vendor = "Hyundai", |
| 2440 | .name = "HY29F002T", |
| 2441 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 2442 | .manufacture_id = HYUNDAI_ID, |
| 2443 | .model_id = HY_29F002T, |
| 2444 | .total_size = 256, |
| 2445 | .page_size = 256 * 1024, |
| 2446 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
| 2447 | .tested = TEST_OK_PREW, |
| 2448 | .probe = probe_jedec, |
| 2449 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2450 | .block_erasers = |
| 2451 | { |
| 2452 | { |
| 2453 | .eraseblocks = { |
| 2454 | {64 * 1024, 3}, |
| 2455 | {32 * 1024, 1}, |
| 2456 | {8 * 1024, 2}, |
| 2457 | {16 * 1024, 1}, |
| 2458 | }, |
| 2459 | .block_erase = erase_sector_jedec, |
| 2460 | }, { |
| 2461 | .eraseblocks = { {256 * 1024, 1} }, |
| 2462 | .block_erase = erase_chip_block_jedec, |
| 2463 | }, |
| 2464 | }, |
| 2465 | .write = write_jedec_1, |
| 2466 | .read = read_memmapped, |
| 2467 | }, |
| 2468 | |
| 2469 | { |
| 2470 | .vendor = "Hyundai", |
| 2471 | .name = "HY29F002B", |
| 2472 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 2473 | .manufacture_id = HYUNDAI_ID, |
| 2474 | .model_id = HY_29F002B, |
| 2475 | .total_size = 256, |
| 2476 | .page_size = 256 * 1024, |
| 2477 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
| 2478 | .tested = TEST_UNTESTED, |
| 2479 | .probe = probe_jedec, |
| 2480 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2481 | .block_erasers = |
| 2482 | { |
| 2483 | { |
| 2484 | .eraseblocks = { |
| 2485 | {16 * 1024, 1}, |
| 2486 | {8 * 1024, 2}, |
| 2487 | {32 * 1024, 1}, |
| 2488 | {64 * 1024, 3}, |
| 2489 | }, |
| 2490 | .block_erase = erase_sector_jedec, |
| 2491 | }, { |
| 2492 | .eraseblocks = { {256 * 1024, 1} }, |
| 2493 | .block_erase = erase_chip_block_jedec, |
| 2494 | }, |
| 2495 | }, |
| 2496 | .write = write_jedec_1, |
| 2497 | .read = read_memmapped, |
| 2498 | }, |
| 2499 | |
| 2500 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2501 | .vendor = "Intel", |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 2502 | .name = "28F001BX-B", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 2503 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 2504 | .manufacture_id = INTEL_ID, |
| 2505 | .model_id = P28F001BXB, |
| 2506 | .total_size = 128, |
| 2507 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 2508 | .tested = TEST_UNTESTED, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 2509 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2510 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2511 | .block_erasers = |
| 2512 | { |
| 2513 | { |
| 2514 | .eraseblocks = { |
| 2515 | {8 * 1024, 1}, |
| 2516 | {4 * 1024, 2}, |
| 2517 | {112 * 1024, 1}, |
| 2518 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 2519 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2520 | }, |
| 2521 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 2522 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 2523 | .read = read_memmapped, |
| 2524 | }, |
| 2525 | |
| 2526 | { |
| 2527 | .vendor = "Intel", |
| 2528 | .name = "28F001BX-T", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 2529 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 2530 | .manufacture_id = INTEL_ID, |
| 2531 | .model_id = P28F001BXT, |
| 2532 | .total_size = 128, |
| 2533 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 2534 | .tested = TEST_UNTESTED, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 2535 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2536 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2537 | .block_erasers = |
| 2538 | { |
| 2539 | { |
| 2540 | .eraseblocks = { |
| 2541 | {112 * 1024, 1}, |
| 2542 | {4 * 1024, 2}, |
| 2543 | {8 * 1024, 1}, |
| 2544 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 2545 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2546 | }, |
| 2547 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 2548 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 2549 | .read = read_memmapped, |
| 2550 | }, |
| 2551 | |
| 2552 | { |
| 2553 | .vendor = "Intel", |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 2554 | .name = "28F004S5", |
| 2555 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 2556 | .manufacture_id = INTEL_ID, |
| 2557 | .model_id = E_28F004S5, |
| 2558 | .total_size = 512, |
| 2559 | .page_size = 256, |
| 2560 | .tested = TEST_UNTESTED, |
| 2561 | .probe = probe_82802ab, |
| 2562 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 2563 | .block_erasers = |
| 2564 | { |
| 2565 | { |
| 2566 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 2567 | .block_erase = erase_block_82802ab, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 2568 | }, |
| 2569 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 2570 | .unlock = unlock_28f004s5, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 2571 | .write = write_82802ab, |
| 2572 | .read = read_memmapped, |
| 2573 | }, |
| 2574 | |
| 2575 | { |
| 2576 | .vendor = "Intel", |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 2577 | .name = "28F004BV/BE-B", |
| 2578 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 2579 | .manufacture_id = INTEL_ID, |
| 2580 | .model_id = P28F004BB, |
| 2581 | .total_size = 512, |
| 2582 | .page_size = 128 * 1024, /* maximal block size */ |
| 2583 | .tested = TEST_UNTESTED, |
| 2584 | .probe = probe_82802ab, |
| 2585 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2586 | .block_erasers = |
| 2587 | { |
| 2588 | { |
| 2589 | .eraseblocks = { |
| 2590 | {16 * 1024, 1}, |
| 2591 | {8 * 1024, 2}, |
| 2592 | {96 * 1024, 1}, |
| 2593 | {128 * 1024, 3}, |
| 2594 | }, |
| 2595 | .block_erase = erase_block_82802ab, |
| 2596 | }, |
| 2597 | }, |
| 2598 | .write = write_82802ab, |
| 2599 | .read = read_memmapped, |
| 2600 | }, |
| 2601 | |
| 2602 | { |
| 2603 | .vendor = "Intel", |
| 2604 | .name = "28F004BV/BE-T", |
| 2605 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 2606 | .manufacture_id = INTEL_ID, |
| 2607 | .model_id = P28F004BT, |
| 2608 | .total_size = 512, |
| 2609 | .page_size = 128 * 1024, /* maximal block size */ |
| 2610 | .tested = TEST_UNTESTED, |
| 2611 | .probe = probe_82802ab, |
| 2612 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2613 | .block_erasers = |
| 2614 | { |
| 2615 | { |
| 2616 | .eraseblocks = { |
| 2617 | {128 * 1024, 3}, |
| 2618 | {96 * 1024, 1}, |
| 2619 | {8 * 1024, 2}, |
| 2620 | {16 * 1024, 1}, |
| 2621 | }, |
| 2622 | .block_erase = erase_block_82802ab, |
| 2623 | }, |
| 2624 | }, |
| 2625 | .write = write_82802ab, |
| 2626 | .read = read_memmapped, |
| 2627 | }, |
| 2628 | |
| 2629 | { |
| 2630 | .vendor = "Intel", |
| 2631 | .name = "28F400BV/CV/CE-B", |
| 2632 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 2633 | .manufacture_id = INTEL_ID, |
| 2634 | .model_id = P28F400BB, |
| 2635 | .total_size = 512, |
| 2636 | .page_size = 128 * 1024, /* maximal block size */ |
| 2637 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 2638 | .tested = TEST_UNTESTED, |
| 2639 | .probe = probe_82802ab, |
| 2640 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2641 | .block_erasers = |
| 2642 | { |
| 2643 | { |
| 2644 | .eraseblocks = { |
| 2645 | {16 * 1024, 1}, |
| 2646 | {8 * 1024, 2}, |
| 2647 | {96 * 1024, 1}, |
| 2648 | {128 * 1024, 3}, |
| 2649 | }, |
| 2650 | .block_erase = erase_block_82802ab, |
| 2651 | }, |
| 2652 | }, |
| 2653 | .write = write_82802ab, |
| 2654 | .read = read_memmapped, |
| 2655 | }, |
| 2656 | |
| 2657 | { |
| 2658 | .vendor = "Intel", |
| 2659 | .name = "28F400BV/CV/CE-T", |
| 2660 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 2661 | .manufacture_id = INTEL_ID, |
| 2662 | .model_id = P28F400BT, |
| 2663 | .total_size = 512, |
| 2664 | .page_size = 128 * 1024, /* maximal block size */ |
| 2665 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 2666 | .tested = TEST_UNTESTED, |
| 2667 | .probe = probe_82802ab, |
| 2668 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2669 | .block_erasers = |
| 2670 | { |
| 2671 | { |
| 2672 | .eraseblocks = { |
| 2673 | {128 * 1024, 3}, |
| 2674 | {96 * 1024, 1}, |
| 2675 | {8 * 1024, 2}, |
| 2676 | {16 * 1024, 1}, |
| 2677 | }, |
| 2678 | .block_erase = erase_block_82802ab, |
| 2679 | }, |
| 2680 | }, |
| 2681 | .write = write_82802ab, |
| 2682 | .read = read_memmapped, |
| 2683 | }, |
| 2684 | |
| 2685 | { |
| 2686 | .vendor = "Intel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2687 | .name = "82802AB", |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 2688 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2689 | .manufacture_id = INTEL_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 2690 | .model_id = I_82802AB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2691 | .total_size = 512, |
| 2692 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 2693 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 2694 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2695 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2696 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2697 | .block_erasers = |
| 2698 | { |
| 2699 | { |
| 2700 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 2701 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2702 | }, |
| 2703 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 2704 | .unlock = unlock_82802ab, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2705 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2706 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2707 | }, |
| 2708 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2709 | { |
| 2710 | .vendor = "Intel", |
| 2711 | .name = "82802AC", |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 2712 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2713 | .manufacture_id = INTEL_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 2714 | .model_id = I_82802AC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2715 | .total_size = 1024, |
| 2716 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 2717 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 2718 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2719 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2720 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2721 | .block_erasers = |
| 2722 | { |
| 2723 | { |
| 2724 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 2725 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2726 | }, |
| 2727 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 2728 | .unlock = unlock_82802ab, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2729 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2730 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2731 | }, |
| 2732 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2733 | { |
| 2734 | .vendor = "Macronix", |
| 2735 | .name = "MX25L512", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 2736 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2737 | .manufacture_id = MX_ID, |
| 2738 | .model_id = MX_25L512, |
| 2739 | .total_size = 64, |
| 2740 | .page_size = 256, |
| 2741 | .tested = TEST_UNTESTED, |
| 2742 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2743 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 2744 | .block_erasers = |
| 2745 | { |
| 2746 | { |
| 2747 | .eraseblocks = { {4 * 1024, 16} }, |
| 2748 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 2749 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 2750 | .eraseblocks = { {64 * 1024, 1} }, |
| 2751 | .block_erase = spi_block_erase_52, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 2752 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 2753 | .eraseblocks = { {64 * 1024, 1} }, |
| 2754 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 2755 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 2756 | .eraseblocks = { {64 * 1024, 1} }, |
| 2757 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 2758 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 2759 | .eraseblocks = { {64 * 1024, 1} }, |
| 2760 | .block_erase = spi_block_erase_c7, |
| 2761 | }, |
| 2762 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2763 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2764 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2765 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2766 | }, |
| 2767 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2768 | { |
| 2769 | .vendor = "Macronix", |
| 2770 | .name = "MX25L1005", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 2771 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2772 | .manufacture_id = MX_ID, |
| 2773 | .model_id = MX_25L1005, |
| 2774 | .total_size = 128, |
| 2775 | .page_size = 256, |
| 2776 | .tested = TEST_UNTESTED, |
| 2777 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2778 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 2779 | .block_erasers = |
| 2780 | { |
| 2781 | { |
| 2782 | .eraseblocks = { {4 * 1024, 32} }, |
| 2783 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 2784 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 2785 | .eraseblocks = { {64 * 1024, 2} }, |
| 2786 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 2787 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 2788 | .eraseblocks = { {128 * 1024, 1} }, |
| 2789 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 2790 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 2791 | .eraseblocks = { {128 * 1024, 1} }, |
| 2792 | .block_erase = spi_block_erase_c7, |
| 2793 | }, |
| 2794 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2795 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2796 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2797 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2798 | }, |
| 2799 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2800 | { |
| 2801 | .vendor = "Macronix", |
| 2802 | .name = "MX25L2005", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 2803 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2804 | .manufacture_id = MX_ID, |
| 2805 | .model_id = MX_25L2005, |
| 2806 | .total_size = 256, |
| 2807 | .page_size = 256, |
| 2808 | .tested = TEST_UNTESTED, |
| 2809 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2810 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 2811 | .block_erasers = |
| 2812 | { |
| 2813 | { |
| 2814 | .eraseblocks = { {4 * 1024, 64} }, |
| 2815 | .block_erase = spi_block_erase_20, |
| 2816 | }, { |
| 2817 | .eraseblocks = { {64 * 1024, 4} }, |
| 2818 | .block_erase = spi_block_erase_52, |
| 2819 | }, { |
| 2820 | .eraseblocks = { {64 * 1024, 4} }, |
| 2821 | .block_erase = spi_block_erase_d8, |
| 2822 | }, { |
| 2823 | .eraseblocks = { {256 * 1024, 1} }, |
| 2824 | .block_erase = spi_block_erase_60, |
| 2825 | }, { |
| 2826 | .eraseblocks = { {256 * 1024, 1} }, |
| 2827 | .block_erase = spi_block_erase_c7, |
| 2828 | }, |
| 2829 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2830 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2831 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2832 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2833 | }, |
| 2834 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2835 | { |
| 2836 | .vendor = "Macronix", |
| 2837 | .name = "MX25L4005", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 2838 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2839 | .manufacture_id = MX_ID, |
| 2840 | .model_id = MX_25L4005, |
| 2841 | .total_size = 512, |
| 2842 | .page_size = 256, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 2843 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2844 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2845 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 2846 | .block_erasers = |
| 2847 | { |
| 2848 | { |
| 2849 | .eraseblocks = { {4 * 1024, 128} }, |
| 2850 | .block_erase = spi_block_erase_20, |
| 2851 | }, { |
| 2852 | .eraseblocks = { {64 * 1024, 8} }, |
| 2853 | .block_erase = spi_block_erase_52, |
| 2854 | }, { |
| 2855 | .eraseblocks = { {64 * 1024, 8} }, |
| 2856 | .block_erase = spi_block_erase_d8, |
| 2857 | }, { |
| 2858 | .eraseblocks = { {512 * 1024, 1} }, |
| 2859 | .block_erase = spi_block_erase_60, |
| 2860 | }, { |
| 2861 | .eraseblocks = { {512 * 1024, 1} }, |
| 2862 | .block_erase = spi_block_erase_c7, |
| 2863 | }, |
| 2864 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2865 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2866 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2867 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2868 | }, |
| 2869 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2870 | { |
| 2871 | .vendor = "Macronix", |
| 2872 | .name = "MX25L8005", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 2873 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2874 | .manufacture_id = MX_ID, |
| 2875 | .model_id = MX_25L8005, |
| 2876 | .total_size = 1024, |
| 2877 | .page_size = 256, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 2878 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2879 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2880 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 2881 | .block_erasers = |
| 2882 | { |
| 2883 | { |
| 2884 | .eraseblocks = { {4 * 1024, 256} }, |
| 2885 | .block_erase = spi_block_erase_20, |
| 2886 | }, { |
| 2887 | .eraseblocks = { {64 * 1024, 16} }, |
| 2888 | .block_erase = spi_block_erase_52, |
| 2889 | }, { |
| 2890 | .eraseblocks = { {64 * 1024, 16} }, |
| 2891 | .block_erase = spi_block_erase_d8, |
| 2892 | }, { |
| 2893 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2894 | .block_erase = spi_block_erase_60, |
| 2895 | }, { |
| 2896 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2897 | .block_erase = spi_block_erase_c7, |
| 2898 | }, |
| 2899 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2900 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2901 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2902 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2903 | }, |
| 2904 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2905 | { |
| 2906 | .vendor = "Macronix", |
| 2907 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 2908 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2909 | .manufacture_id = MX_ID, |
| 2910 | .model_id = MX_25L1605, |
| 2911 | .total_size = 2048, |
| 2912 | .page_size = 256, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 2913 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2914 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2915 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 2916 | .block_erasers = |
| 2917 | { |
| 2918 | { |
| 2919 | .eraseblocks = { {4 * 1024, 512} }, |
| 2920 | .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */ |
| 2921 | }, { |
| 2922 | .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */ |
| 2923 | .block_erase = spi_block_erase_52, |
| 2924 | }, { |
| 2925 | .eraseblocks = { {64 * 1024, 32} }, |
| 2926 | .block_erase = spi_block_erase_d8, |
| 2927 | }, { |
| 2928 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2929 | .block_erase = spi_block_erase_60, |
| 2930 | }, { |
| 2931 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2932 | .block_erase = spi_block_erase_c7, |
| 2933 | }, |
| 2934 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2935 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2936 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2937 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2938 | }, |
| 2939 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2940 | { |
| 2941 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 2942 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 2943 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 2944 | .manufacture_id = MX_ID, |
| 2945 | .model_id = MX_25L1635D, |
| 2946 | .total_size = 2048, |
| 2947 | .page_size = 256, |
| 2948 | .tested = TEST_UNTESTED, |
| 2949 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2950 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 2951 | .block_erasers = |
| 2952 | { |
| 2953 | { |
| 2954 | .eraseblocks = { {4 * 1024, 512} }, |
| 2955 | .block_erase = spi_block_erase_20, |
| 2956 | }, { |
| 2957 | .eraseblocks = { {64 * 1024, 32} }, |
| 2958 | .block_erase = spi_block_erase_d8, |
| 2959 | }, { |
| 2960 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2961 | .block_erase = spi_block_erase_60, |
| 2962 | }, { |
| 2963 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2964 | .block_erase = spi_block_erase_c7, |
| 2965 | } |
| 2966 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2967 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2968 | .write = spi_chip_write_256, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 2969 | .read = spi_chip_read, |
| 2970 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 2971 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 2972 | { |
| 2973 | .vendor = "Macronix", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2974 | .name = "MX25L3205", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 2975 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2976 | .manufacture_id = MX_ID, |
| 2977 | .model_id = MX_25L3205, |
| 2978 | .total_size = 4096, |
| 2979 | .page_size = 256, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2980 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2981 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2982 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 2983 | .block_erasers = |
| 2984 | { |
| 2985 | { |
| 2986 | .eraseblocks = { {4 * 1024, 1024} }, |
| 2987 | .block_erase = spi_block_erase_20, |
| 2988 | }, { |
| 2989 | .eraseblocks = { {4 * 1024, 1024} }, |
| 2990 | .block_erase = spi_block_erase_d8, |
| 2991 | }, { |
| 2992 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 2993 | .block_erase = spi_block_erase_60, |
| 2994 | }, { |
| 2995 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 2996 | .block_erase = spi_block_erase_c7, |
| 2997 | }, |
| 2998 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2999 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3000 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3001 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3002 | }, |
| 3003 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3004 | { |
| 3005 | .vendor = "Macronix", |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 3006 | .name = "MX25L3235D", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3007 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 3008 | .manufacture_id = MX_ID, |
| 3009 | .model_id = MX_25L3235D, |
| 3010 | .total_size = 4096, |
| 3011 | .page_size = 256, |
| 3012 | .tested = TEST_UNTESTED, |
| 3013 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3014 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3015 | .block_erasers = |
| 3016 | { |
| 3017 | { |
| 3018 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3019 | .block_erase = spi_block_erase_20, |
| 3020 | }, { |
| 3021 | .eraseblocks = { {64 * 1024, 64} }, |
| 3022 | .block_erase = spi_block_erase_d8, |
| 3023 | }, { |
| 3024 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3025 | .block_erase = spi_block_erase_60, |
| 3026 | }, { |
| 3027 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3028 | .block_erase = spi_block_erase_c7, |
| 3029 | } |
| 3030 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3031 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3032 | .write = spi_chip_write_256, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 3033 | .read = spi_chip_read, |
| 3034 | }, |
| 3035 | |
| 3036 | { |
| 3037 | .vendor = "Macronix", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3038 | .name = "MX25L6405", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3039 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3040 | .manufacture_id = MX_ID, |
| 3041 | .model_id = MX_25L6405, |
| 3042 | .total_size = 8192, |
| 3043 | .page_size = 256, |
Carl-Daniel Hailfinger | 452b3e3 | 2009-06-22 11:14:43 +0000 | [diff] [blame] | 3044 | .tested = TEST_OK_PROBE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3045 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3046 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3047 | .block_erasers = |
| 3048 | { |
| 3049 | { |
| 3050 | .eraseblocks = { {64 * 1024, 128} }, |
| 3051 | .block_erase = spi_block_erase_20, |
| 3052 | }, { |
| 3053 | .eraseblocks = { {64 * 1024, 128} }, |
| 3054 | .block_erase = spi_block_erase_d8, |
| 3055 | }, { |
| 3056 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3057 | .block_erase = spi_block_erase_60, |
| 3058 | }, { |
| 3059 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3060 | .block_erase = spi_block_erase_c7, |
| 3061 | } |
| 3062 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3063 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3064 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3065 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3066 | }, |
| 3067 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3068 | { |
| 3069 | .vendor = "Macronix", |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 3070 | .name = "MX25L12805", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3071 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 3072 | .manufacture_id = MX_ID, |
| 3073 | .model_id = MX_25L12805, |
| 3074 | .total_size = 16384, |
| 3075 | .page_size = 256, |
| 3076 | .tested = TEST_UNTESTED, |
| 3077 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3078 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3079 | .block_erasers = |
| 3080 | { |
| 3081 | { |
| 3082 | .eraseblocks = { {4 * 1024, 4096} }, |
| 3083 | .block_erase = spi_block_erase_20, |
| 3084 | }, { |
| 3085 | .eraseblocks = { {64 * 1024, 256} }, |
| 3086 | .block_erase = spi_block_erase_d8, |
| 3087 | }, { |
| 3088 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 3089 | .block_erase = spi_block_erase_60, |
| 3090 | }, { |
| 3091 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 3092 | .block_erase = spi_block_erase_c7, |
| 3093 | } |
| 3094 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3095 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3096 | .write = spi_chip_write_256, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 3097 | .read = spi_chip_read, |
| 3098 | }, |
| 3099 | |
| 3100 | { |
| 3101 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 3102 | .name = "MX29F001B", |
| 3103 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3104 | .manufacture_id = MX_ID, |
| 3105 | .model_id = MX_29F001B, |
| 3106 | .total_size = 128, |
| 3107 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3108 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 3109 | .tested = TEST_UNTESTED, |
| 3110 | .probe = probe_jedec, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 3111 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3112 | .block_erasers = |
| 3113 | { |
| 3114 | { |
| 3115 | .eraseblocks = { |
| 3116 | {8 * 1024, 1}, |
| 3117 | {4 * 1024, 2}, |
| 3118 | {8 * 1024, 2}, |
| 3119 | {32 * 1024, 1}, |
| 3120 | {64 * 1024, 1}, |
| 3121 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3122 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3123 | }, { |
| 3124 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3125 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3126 | } |
| 3127 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 3128 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 3129 | .read = read_memmapped, |
| 3130 | }, |
| 3131 | |
| 3132 | { |
| 3133 | .vendor = "Macronix", |
| 3134 | .name = "MX29F001T", |
| 3135 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3136 | .manufacture_id = MX_ID, |
| 3137 | .model_id = MX_29F001T, |
| 3138 | .total_size = 128, |
| 3139 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3140 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 3141 | .tested = TEST_UNTESTED, |
| 3142 | .probe = probe_jedec, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 3143 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3144 | .block_erasers = |
| 3145 | { |
| 3146 | { |
| 3147 | .eraseblocks = { |
| 3148 | {64 * 1024, 1}, |
| 3149 | {32 * 1024, 1}, |
| 3150 | {8 * 1024, 2}, |
| 3151 | {4 * 1024, 2}, |
| 3152 | {8 * 1024, 1}, |
| 3153 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3154 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3155 | }, { |
| 3156 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3157 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3158 | } |
| 3159 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 3160 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 3161 | .read = read_memmapped, |
| 3162 | }, |
| 3163 | |
| 3164 | { |
| 3165 | .vendor = "Macronix", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3166 | .name = "MX29F002B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 3167 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3168 | .manufacture_id = MX_ID, |
| 3169 | .model_id = MX_29F002B, |
| 3170 | .total_size = 256, |
| 3171 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3172 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3173 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3174 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 3175 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3176 | .block_erasers = |
| 3177 | { |
| 3178 | { |
| 3179 | .eraseblocks = { |
| 3180 | {16 * 1024, 1}, |
| 3181 | {8 * 1024, 2}, |
| 3182 | {32 * 1024, 1}, |
| 3183 | {64 * 1024, 3}, |
| 3184 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3185 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3186 | }, { |
| 3187 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3188 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3189 | }, |
| 3190 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 3191 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3192 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3193 | }, |
| 3194 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3195 | { |
| 3196 | .vendor = "Macronix", |
| 3197 | .name = "MX29F002T", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 3198 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3199 | .manufacture_id = MX_ID, |
| 3200 | .model_id = MX_29F002T, |
| 3201 | .total_size = 256, |
| 3202 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3203 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Uwe Hermann | 6093969 | 2010-03-17 00:05:59 +0000 | [diff] [blame] | 3204 | .tested = TEST_OK_PRW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3205 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 3206 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3207 | .block_erasers = |
| 3208 | { |
| 3209 | { |
| 3210 | .eraseblocks = { |
| 3211 | {64 * 1024, 3}, |
| 3212 | {32 * 1024, 1}, |
| 3213 | {8 * 1024, 2}, |
| 3214 | {16 * 1024, 1}, |
| 3215 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3216 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3217 | }, { |
| 3218 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3219 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3220 | }, |
| 3221 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 3222 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3223 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3224 | }, |
| 3225 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3226 | { |
| 3227 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 3228 | .name = "MX29LV040", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 3229 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3230 | .manufacture_id = MX_ID, |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 3231 | .model_id = MX_29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3232 | .total_size = 512, |
| 3233 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3234 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 3235 | .tested = TEST_UNTESTED, |
| 3236 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 3237 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3238 | .block_erasers = |
| 3239 | { |
| 3240 | { |
| 3241 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3242 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3243 | }, { |
| 3244 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3245 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3246 | }, |
| 3247 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 3248 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3249 | .read = read_memmapped, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 3250 | }, |
| 3251 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3252 | { |
| 3253 | .vendor = "Numonyx", |
| 3254 | .name = "M25PE10", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3255 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3256 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 3257 | .model_id = ST_M25PE10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3258 | .total_size = 128, |
| 3259 | .page_size = 256, |
| 3260 | .tested = TEST_UNTESTED, |
| 3261 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3262 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 3263 | .block_erasers = |
| 3264 | { |
| 3265 | { |
| 3266 | .eraseblocks = { {4 * 1024, 32} }, |
| 3267 | .block_erase = spi_block_erase_20, |
| 3268 | }, { |
| 3269 | .eraseblocks = { {64 * 1024, 2} }, |
| 3270 | .block_erase = spi_block_erase_d8, |
| 3271 | }, { |
| 3272 | .eraseblocks = { {128 * 1024, 1} }, |
| 3273 | .block_erase = spi_block_erase_c7, |
| 3274 | } |
| 3275 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3276 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3277 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3278 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3279 | }, |
| 3280 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3281 | { |
| 3282 | .vendor = "Numonyx", |
| 3283 | .name = "M25PE20", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3284 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3285 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 3286 | .model_id = ST_M25PE20, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3287 | .total_size = 256, |
| 3288 | .page_size = 256, |
| 3289 | .tested = TEST_UNTESTED, |
| 3290 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3291 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 3292 | .block_erasers = |
| 3293 | { |
| 3294 | { |
| 3295 | .eraseblocks = { {4 * 1024, 64} }, |
| 3296 | .block_erase = spi_block_erase_20, |
| 3297 | }, { |
| 3298 | .eraseblocks = { {64 * 1024, 4} }, |
| 3299 | .block_erase = spi_block_erase_d8, |
| 3300 | }, { |
| 3301 | .eraseblocks = { {256 * 1024, 1} }, |
| 3302 | .block_erase = spi_block_erase_c7, |
| 3303 | } |
| 3304 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3305 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3306 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3307 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3308 | }, |
| 3309 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3310 | { |
| 3311 | .vendor = "Numonyx", |
| 3312 | .name = "M25PE40", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3313 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3314 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 3315 | .model_id = ST_M25PE40, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 3316 | .total_size = 512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3317 | .page_size = 256, |
| 3318 | .tested = TEST_UNTESTED, |
| 3319 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3320 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 3321 | .block_erasers = |
| 3322 | { |
| 3323 | { |
| 3324 | .eraseblocks = { {4 * 1024, 128} }, |
| 3325 | .block_erase = spi_block_erase_20, |
| 3326 | }, { |
| 3327 | .eraseblocks = { {64 * 1024, 8} }, |
| 3328 | .block_erase = spi_block_erase_d8, |
| 3329 | }, { |
| 3330 | .eraseblocks = { {512 * 1024, 1} }, |
| 3331 | .block_erase = spi_block_erase_c7, |
| 3332 | } |
| 3333 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3334 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3335 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3336 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3337 | }, |
| 3338 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3339 | { |
| 3340 | .vendor = "Numonyx", |
| 3341 | .name = "M25PE80", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3342 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3343 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 3344 | .model_id = ST_M25PE80, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3345 | .total_size = 1024, |
| 3346 | .page_size = 256, |
| 3347 | .tested = TEST_OK_PREW, |
| 3348 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3349 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 3350 | .block_erasers = |
| 3351 | { |
| 3352 | { |
| 3353 | .eraseblocks = { {4 * 1024, 256} }, |
| 3354 | .block_erase = spi_block_erase_20, |
| 3355 | }, { |
| 3356 | .eraseblocks = { {64 * 1024, 16} }, |
| 3357 | .block_erase = spi_block_erase_d8, |
| 3358 | }, { |
| 3359 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3360 | .block_erase = spi_block_erase_c7, |
| 3361 | } |
| 3362 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3363 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3364 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3365 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3366 | }, |
| 3367 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3368 | { |
| 3369 | .vendor = "Numonyx", |
| 3370 | .name = "M25PE16", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3371 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3372 | .manufacture_id = ST_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 3373 | .model_id = ST_M25PE16, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3374 | .total_size = 2048, |
| 3375 | .page_size = 256, |
| 3376 | .tested = TEST_UNTESTED, |
| 3377 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3378 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 3379 | .block_erasers = |
| 3380 | { |
| 3381 | { |
| 3382 | .eraseblocks = { {4 * 1024, 512} }, |
| 3383 | .block_erase = spi_block_erase_20, |
| 3384 | }, { |
| 3385 | .eraseblocks = { {64 * 1024, 32} }, |
| 3386 | .block_erase = spi_block_erase_d8, |
| 3387 | }, { |
| 3388 | .eraseblocks = { {2 * 1024 * 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 = "PMC", |
| 3399 | .name = "Pm25LV010", |
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 = PMC_ID, |
| 3402 | .model_id = PMC_25LV010, |
| 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, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 3408 | .block_erasers = |
| 3409 | { |
| 3410 | { |
| 3411 | .eraseblocks = { {4 * 1024, 32} }, |
| 3412 | .block_erase = spi_block_erase_d7, |
| 3413 | }, { |
| 3414 | .eraseblocks = { {32 * 1024, 4} }, |
| 3415 | .block_erase = spi_block_erase_d8, |
| 3416 | }, { |
| 3417 | .eraseblocks = { {128 * 1024, 1} }, |
| 3418 | .block_erase = spi_block_erase_c7, |
| 3419 | } |
| 3420 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3421 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3422 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3423 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3424 | }, |
| 3425 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3426 | { |
| 3427 | .vendor = "PMC", |
| 3428 | .name = "Pm25LV016B", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3429 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3430 | .manufacture_id = PMC_ID, |
| 3431 | .model_id = PMC_25LV016B, |
| 3432 | .total_size = 2048, |
| 3433 | .page_size = 256, |
| 3434 | .tested = TEST_UNTESTED, |
| 3435 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3436 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 3437 | .block_erasers = |
| 3438 | { |
| 3439 | { |
| 3440 | .eraseblocks = { {4 * 1024, 512} }, |
| 3441 | .block_erase = spi_block_erase_d7, |
| 3442 | }, { |
| 3443 | .eraseblocks = { {4 * 1024, 512} }, |
| 3444 | .block_erase = spi_block_erase_20, |
| 3445 | }, { |
| 3446 | .eraseblocks = { {64 * 1024, 32} }, |
| 3447 | .block_erase = spi_block_erase_d8, |
| 3448 | }, { |
| 3449 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3450 | .block_erase = spi_block_erase_60, |
| 3451 | }, { |
| 3452 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3453 | .block_erase = spi_block_erase_c7, |
| 3454 | } |
| 3455 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3456 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3457 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3458 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3459 | }, |
| 3460 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3461 | { |
| 3462 | .vendor = "PMC", |
| 3463 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3464 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3465 | .manufacture_id = PMC_ID, |
| 3466 | .model_id = PMC_25LV020, |
| 3467 | .total_size = 256, |
| 3468 | .page_size = 256, |
| 3469 | .tested = TEST_UNTESTED, |
| 3470 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3471 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 3472 | .block_erasers = |
| 3473 | { |
| 3474 | { |
| 3475 | .eraseblocks = { {4 * 1024, 64} }, |
| 3476 | .block_erase = spi_block_erase_d7, |
| 3477 | }, { |
| 3478 | .eraseblocks = { {64 * 1024, 4} }, |
| 3479 | .block_erase = spi_block_erase_d8, |
| 3480 | }, { |
| 3481 | .eraseblocks = { {256 * 1024, 1} }, |
| 3482 | .block_erase = spi_block_erase_c7, |
| 3483 | } |
| 3484 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3485 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3486 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3487 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3488 | }, |
| 3489 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3490 | { |
| 3491 | .vendor = "PMC", |
| 3492 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3493 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3494 | .manufacture_id = PMC_ID, |
| 3495 | .model_id = PMC_25LV040, |
| 3496 | .total_size = 512, |
| 3497 | .page_size = 256, |
| 3498 | .tested = TEST_UNTESTED, |
| 3499 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3500 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 3501 | .block_erasers = |
| 3502 | { |
| 3503 | { |
| 3504 | .eraseblocks = { {4 * 1024, 128} }, |
| 3505 | .block_erase = spi_block_erase_d7, |
| 3506 | }, { |
| 3507 | .eraseblocks = { {64 * 1024, 8} }, |
| 3508 | .block_erase = spi_block_erase_d8, |
| 3509 | }, { |
| 3510 | .eraseblocks = { {512 * 1024, 1} }, |
| 3511 | .block_erase = spi_block_erase_c7, |
| 3512 | } |
| 3513 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3514 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3515 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3516 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3517 | }, |
| 3518 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3519 | { |
| 3520 | .vendor = "PMC", |
| 3521 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3522 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3523 | .manufacture_id = PMC_ID, |
| 3524 | .model_id = PMC_25LV080B, |
| 3525 | .total_size = 1024, |
| 3526 | .page_size = 256, |
| 3527 | .tested = TEST_UNTESTED, |
| 3528 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3529 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 3530 | .block_erasers = |
| 3531 | { |
| 3532 | { |
| 3533 | .eraseblocks = { {4 * 1024, 256} }, |
| 3534 | .block_erase = spi_block_erase_d7, |
| 3535 | }, { |
| 3536 | .eraseblocks = { {4 * 1024, 256} }, |
| 3537 | .block_erase = spi_block_erase_20, |
| 3538 | }, { |
| 3539 | .eraseblocks = { {64 * 1024, 16} }, |
| 3540 | .block_erase = spi_block_erase_d8, |
| 3541 | }, { |
| 3542 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3543 | .block_erase = spi_block_erase_60, |
| 3544 | }, { |
| 3545 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3546 | .block_erase = spi_block_erase_c7, |
| 3547 | } |
| 3548 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3549 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3550 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3551 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3552 | }, |
| 3553 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3554 | { |
| 3555 | .vendor = "PMC", |
| 3556 | .name = "Pm25LV512", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3557 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3558 | .manufacture_id = PMC_ID, |
| 3559 | .model_id = PMC_25LV512, |
| 3560 | .total_size = 64, |
| 3561 | .page_size = 256, |
| 3562 | .tested = TEST_UNTESTED, |
| 3563 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3564 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 3565 | .block_erasers = |
| 3566 | { |
| 3567 | { |
| 3568 | .eraseblocks = { {4 * 1024, 16} }, |
| 3569 | .block_erase = spi_block_erase_d7, |
| 3570 | }, { |
| 3571 | .eraseblocks = { {32 * 1024, 2} }, |
| 3572 | .block_erase = spi_block_erase_d8, |
| 3573 | }, { |
| 3574 | .eraseblocks = { {64 * 1024, 1} }, |
| 3575 | .block_erase = spi_block_erase_c7, |
| 3576 | } |
| 3577 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3578 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3579 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3580 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3581 | }, |
| 3582 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3583 | { |
| 3584 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 3585 | .name = "Pm29F002T", |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 3586 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3587 | .manufacture_id = PMC_ID_NOPREFIX, |
| 3588 | .model_id = PMC_29F002T, |
| 3589 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 3590 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3591 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 3592 | .tested = TEST_UNTESTED, |
| 3593 | .probe = probe_jedec, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 3594 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 3595 | .block_erasers = |
| 3596 | { |
| 3597 | { |
| 3598 | .eraseblocks = { |
| 3599 | {128 * 1024, 1}, |
| 3600 | {96 * 1024, 1}, |
| 3601 | {8 * 1024, 2}, |
| 3602 | {16 * 1024, 1}, |
| 3603 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3604 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 3605 | }, { |
| 3606 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3607 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 3608 | }, |
| 3609 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3610 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 3611 | .read = read_memmapped, |
| 3612 | }, |
| 3613 | |
| 3614 | { |
| 3615 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 3616 | .name = "Pm29F002B", |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 3617 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3618 | .manufacture_id = PMC_ID_NOPREFIX, |
| 3619 | .model_id = PMC_29F002B, |
| 3620 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 3621 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3622 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 3623 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3624 | .probe = probe_jedec, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 3625 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 3626 | .block_erasers = |
| 3627 | { |
| 3628 | { |
| 3629 | .eraseblocks = { |
| 3630 | {16 * 1024, 1}, |
| 3631 | {8 * 1024, 2}, |
| 3632 | {96 * 1024, 1}, |
| 3633 | {128 * 1024, 1}, |
| 3634 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3635 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 3636 | }, { |
| 3637 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3638 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 3639 | }, |
| 3640 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3641 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 3642 | .read = read_memmapped, |
| 3643 | }, |
| 3644 | |
| 3645 | { |
| 3646 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 3647 | .name = "Pm39LV010", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 3648 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 3649 | .manufacture_id = PMC_ID_NOPREFIX, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 3650 | .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] | 3651 | .total_size = 128, |
| 3652 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3653 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | ea5425b | 2010-05-30 17:00:19 +0000 | [diff] [blame] | 3654 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 3655 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3656 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 3657 | .block_erasers = |
| 3658 | { |
| 3659 | { |
| 3660 | .eraseblocks = { {4 * 1024, 32} }, |
| 3661 | .block_erase = erase_sector_jedec, |
| 3662 | }, { |
| 3663 | .eraseblocks = { {64 * 1024, 2} }, |
| 3664 | .block_erase = erase_block_jedec, |
| 3665 | }, { |
| 3666 | .eraseblocks = { {128 * 1024, 1} }, |
| 3667 | .block_erase = erase_chip_block_jedec, |
| 3668 | } |
| 3669 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3670 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 3671 | .read = read_memmapped, |
| 3672 | }, |
| 3673 | |
| 3674 | { |
| 3675 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 3676 | .name = "Pm39LV020", |
| 3677 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3678 | .manufacture_id = PMC_ID_NOPREFIX, |
| 3679 | .model_id = PMC_39LV020, |
| 3680 | .total_size = 256, |
| 3681 | .page_size = 4096, |
| 3682 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 3683 | .tested = TEST_UNTESTED, |
| 3684 | .probe = probe_jedec, |
| 3685 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3686 | .block_erasers = |
| 3687 | { |
| 3688 | { |
| 3689 | .eraseblocks = { {4 * 1024, 64} }, |
| 3690 | .block_erase = erase_sector_jedec, |
| 3691 | }, { |
| 3692 | .eraseblocks = { {64 * 1024, 4} }, |
| 3693 | .block_erase = erase_block_jedec, |
| 3694 | }, { |
| 3695 | .eraseblocks = { {256 * 1024, 1} }, |
| 3696 | .block_erase = erase_chip_block_jedec, |
| 3697 | } |
| 3698 | }, |
| 3699 | .write = write_jedec_1, |
| 3700 | .read = read_memmapped, |
| 3701 | }, |
| 3702 | |
| 3703 | { |
| 3704 | .vendor = "PMC", |
| 3705 | .name = "Pm39LV040", |
| 3706 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 3707 | .manufacture_id = PMC_ID_NOPREFIX, |
| 3708 | .model_id = PMC_39LV040, |
| 3709 | .total_size = 512, |
| 3710 | .page_size = 4096, |
| 3711 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 3712 | .tested = TEST_UNTESTED, |
| 3713 | .probe = probe_jedec, |
| 3714 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3715 | .block_erasers = |
| 3716 | { |
| 3717 | { |
| 3718 | .eraseblocks = { {4 * 1024, 128} }, |
| 3719 | .block_erase = erase_sector_jedec, |
| 3720 | }, { |
| 3721 | .eraseblocks = { {64 * 1024, 8} }, |
| 3722 | .block_erase = erase_block_jedec, |
| 3723 | }, { |
| 3724 | .eraseblocks = { {512 * 1024, 1} }, |
| 3725 | .block_erase = erase_chip_block_jedec, |
| 3726 | } |
| 3727 | }, |
| 3728 | .write = write_jedec_1, |
| 3729 | .read = read_memmapped, |
| 3730 | }, |
| 3731 | |
| 3732 | { |
| 3733 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3734 | .name = "Pm49FL002", |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3735 | .bustype = CHIP_BUSTYPE_LPC | CHIP_BUSTYPE_FWH, /* A/A Mux*/ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3736 | .manufacture_id = PMC_ID_NOPREFIX, |
| 3737 | .model_id = PMC_49FL002, |
| 3738 | .total_size = 256, |
| 3739 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3740 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Russ Dill | 8c7c468 | 2010-03-09 16:53:06 +0000 | [diff] [blame] | 3741 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 3742 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3743 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 3744 | .block_erasers = |
| 3745 | { |
| 3746 | { |
| 3747 | .eraseblocks = { {4 * 1024, 64} }, |
| 3748 | .block_erase = erase_sector_jedec, |
| 3749 | }, { |
| 3750 | .eraseblocks = { {16 * 1024, 16} }, |
| 3751 | .block_erase = erase_block_jedec, |
| 3752 | }, { |
| 3753 | .eraseblocks = { {256 * 1024, 1} }, |
| 3754 | .block_erase = erase_chip_block_jedec, |
| 3755 | } |
| 3756 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 3757 | .unlock = unlock_49fl00x, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 3758 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3759 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3760 | }, |
| 3761 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3762 | { |
| 3763 | .vendor = "PMC", |
| 3764 | .name = "Pm49FL004", |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3765 | .bustype = CHIP_BUSTYPE_LPC | CHIP_BUSTYPE_FWH, /* A/A Mux*/ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3766 | .manufacture_id = PMC_ID_NOPREFIX, |
| 3767 | .model_id = PMC_49FL004, |
| 3768 | .total_size = 512, |
| 3769 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3770 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Uwe Hermann | 8d341b5 | 2010-05-25 23:27:44 +0000 | [diff] [blame] | 3771 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 3772 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3773 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 3774 | .block_erasers = |
| 3775 | { |
| 3776 | { |
| 3777 | .eraseblocks = { {4 * 1024, 128} }, |
| 3778 | .block_erase = erase_sector_jedec, |
| 3779 | }, { |
| 3780 | .eraseblocks = { {64 * 1024, 8} }, |
| 3781 | .block_erase = erase_block_jedec, |
| 3782 | }, { |
| 3783 | .eraseblocks = { {512 * 1024, 1} }, |
| 3784 | .block_erase = erase_chip_block_jedec, |
| 3785 | } |
| 3786 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 3787 | .unlock = unlock_49fl00x, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 3788 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3789 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3790 | }, |
| 3791 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3792 | { |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 3793 | .vendor = "Sanyo", |
| 3794 | .name = "LF25FW203A", |
| 3795 | .bustype = CHIP_BUSTYPE_SPI, |
| 3796 | .manufacture_id = SANYO_ID, |
| 3797 | .model_id = SANYO_LE25FW203A, |
| 3798 | .total_size = 2048, |
| 3799 | .page_size = 256, |
| 3800 | .tested = TEST_UNTESTED, |
| 3801 | .probe = probe_spi_rdid, |
| 3802 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 3803 | .block_erasers = |
| 3804 | { |
| 3805 | { |
| 3806 | .eraseblocks = { {64 * 1024, 32} }, |
| 3807 | .block_erase = spi_block_erase_d8, |
| 3808 | }, { |
| 3809 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3810 | .block_erase = spi_block_erase_c7, |
| 3811 | } |
| 3812 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3813 | .unlock = spi_disable_blockprotect, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 3814 | .write = spi_chip_write_256, |
| 3815 | .read = spi_chip_read, |
| 3816 | }, |
| 3817 | |
| 3818 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3819 | .vendor = "Sharp", |
| 3820 | .name = "LHF00L04", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 3821 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3822 | .manufacture_id = SHARP_ID, |
| 3823 | .model_id = SHARP_LHF00L04, |
| 3824 | .total_size = 1024, |
| 3825 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 3826 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3827 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 3828 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 3829 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 3830 | .block_erasers = |
| 3831 | { |
| 3832 | { |
| 3833 | .eraseblocks = { |
| 3834 | {64 * 1024, 15}, |
| 3835 | {8 * 1024, 8} |
| 3836 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 3837 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 3838 | }, { |
| 3839 | .eraseblocks = { |
| 3840 | {1024 * 1024, 1} |
| 3841 | }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 3842 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 3843 | }, |
| 3844 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 3845 | .unlock = unlock_82802ab, |
| 3846 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3847 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3848 | }, |
| 3849 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3850 | { |
| 3851 | .vendor = "Spansion", |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 3852 | .name = "S25FL008A", |
| 3853 | .bustype = CHIP_BUSTYPE_SPI, |
| 3854 | .manufacture_id = SPANSION_ID, |
| 3855 | .model_id = SPANSION_S25FL008A, |
| 3856 | .total_size = 1024, |
| 3857 | .page_size = 256, |
| 3858 | .tested = TEST_OK_PREW, |
| 3859 | .probe = probe_spi_rdid, |
| 3860 | .probe_timing = TIMING_ZERO, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 3861 | .block_erasers = |
| 3862 | { |
| 3863 | { |
| 3864 | .eraseblocks = { {64 * 1024, 16} }, |
| 3865 | .block_erase = spi_block_erase_d8, |
| 3866 | }, { |
| 3867 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3868 | .block_erase = spi_block_erase_c7, |
| 3869 | } |
| 3870 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3871 | .unlock = spi_disable_blockprotect, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 3872 | .write = spi_chip_write_256, |
| 3873 | .read = spi_chip_read, |
| 3874 | }, |
| 3875 | |
| 3876 | { |
| 3877 | .vendor = "Spansion", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3878 | .name = "S25FL016A", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3879 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3880 | .manufacture_id = SPANSION_ID, |
| 3881 | .model_id = SPANSION_S25FL016A, |
| 3882 | .total_size = 2048, |
| 3883 | .page_size = 256, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 3884 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3885 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3886 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 3887 | .block_erasers = |
| 3888 | { |
| 3889 | { |
| 3890 | .eraseblocks = { {64 * 1024, 32} }, |
| 3891 | .block_erase = spi_block_erase_d8, |
| 3892 | }, { |
| 3893 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3894 | .block_erase = spi_block_erase_c7, |
| 3895 | } |
| 3896 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3897 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 3898 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3899 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3900 | }, |
| 3901 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3902 | { |
| 3903 | .vendor = "SST", |
| 3904 | .name = "SST25VF016B", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3905 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3906 | .manufacture_id = SST_ID, |
| 3907 | .model_id = SST_25VF016B, |
| 3908 | .total_size = 2048, |
| 3909 | .page_size = 256, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 3910 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3911 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3912 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 3913 | .block_erasers = |
| 3914 | { |
| 3915 | { |
| 3916 | .eraseblocks = { {4 * 1024, 512} }, |
| 3917 | .block_erase = spi_block_erase_20, |
| 3918 | }, { |
| 3919 | .eraseblocks = { {32 * 1024, 64} }, |
| 3920 | .block_erase = spi_block_erase_52, |
| 3921 | }, { |
| 3922 | .eraseblocks = { {64 * 1024, 32} }, |
| 3923 | .block_erase = spi_block_erase_d8, |
| 3924 | }, { |
| 3925 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3926 | .block_erase = spi_block_erase_60, |
| 3927 | }, { |
| 3928 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3929 | .block_erase = spi_block_erase_c7, |
| 3930 | }, |
| 3931 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3932 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 93bb375 | 2009-05-13 22:19:12 +0000 | [diff] [blame] | 3933 | .write = spi_chip_write_1, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3934 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3935 | }, |
| 3936 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3937 | { |
| 3938 | .vendor = "SST", |
| 3939 | .name = "SST25VF032B", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 3940 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3941 | .manufacture_id = SST_ID, |
| 3942 | .model_id = SST_25VF032B, |
| 3943 | .total_size = 4096, |
| 3944 | .page_size = 256, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 3945 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3946 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3947 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 3948 | .block_erasers = |
| 3949 | { |
| 3950 | { |
| 3951 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3952 | .block_erase = spi_block_erase_20, |
| 3953 | }, { |
| 3954 | .eraseblocks = { {32 * 1024, 128} }, |
| 3955 | .block_erase = spi_block_erase_52, |
| 3956 | }, { |
| 3957 | .eraseblocks = { {64 * 1024, 64} }, |
| 3958 | .block_erase = spi_block_erase_d8, |
| 3959 | }, { |
| 3960 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3961 | .block_erase = spi_block_erase_60, |
| 3962 | }, { |
| 3963 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3964 | .block_erase = spi_block_erase_c7, |
| 3965 | }, |
| 3966 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3967 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 3968 | .write = spi_chip_write_1, |
| 3969 | .read = spi_chip_read, |
| 3970 | }, |
| 3971 | |
| 3972 | { |
| 3973 | .vendor = "SST", |
| 3974 | .name = "SST25VF040.REMS", |
| 3975 | .bustype = CHIP_BUSTYPE_SPI, |
| 3976 | .manufacture_id = SST_ID, |
| 3977 | .model_id = SST_25VF040_REMS, |
| 3978 | .total_size = 512, |
| 3979 | .page_size = 256, |
| 3980 | .tested = TEST_OK_PR, |
| 3981 | .probe = probe_spi_rems, |
| 3982 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 3983 | .block_erasers = |
| 3984 | { |
| 3985 | { |
| 3986 | .eraseblocks = { {4 * 1024, 128} }, |
| 3987 | .block_erase = spi_block_erase_20, |
| 3988 | }, { |
| 3989 | .eraseblocks = { {32 * 1024, 16} }, |
| 3990 | .block_erase = spi_block_erase_52, |
| 3991 | }, { |
| 3992 | .eraseblocks = { {512 * 1024, 1} }, |
| 3993 | .block_erase = spi_block_erase_60, |
| 3994 | }, |
| 3995 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3996 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 93bb375 | 2009-05-13 22:19:12 +0000 | [diff] [blame] | 3997 | .write = spi_chip_write_1, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3998 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3999 | }, |
| 4000 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4001 | { |
| 4002 | .vendor = "SST", |
| 4003 | .name = "SST25VF040B", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4004 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4005 | .manufacture_id = SST_ID, |
| 4006 | .model_id = SST_25VF040B, |
| 4007 | .total_size = 512, |
| 4008 | .page_size = 256, |
| 4009 | .tested = TEST_UNTESTED, |
| 4010 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4011 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 4012 | .block_erasers = |
| 4013 | { |
| 4014 | { |
| 4015 | .eraseblocks = { {4 * 1024, 128} }, |
| 4016 | .block_erase = spi_block_erase_20, |
| 4017 | }, { |
| 4018 | .eraseblocks = { {32 * 1024, 16} }, |
| 4019 | .block_erase = spi_block_erase_52, |
| 4020 | }, { |
| 4021 | .eraseblocks = { {64 * 1024, 8} }, |
| 4022 | .block_erase = spi_block_erase_d8, |
| 4023 | }, { |
| 4024 | .eraseblocks = { {512 * 1024, 1} }, |
| 4025 | .block_erase = spi_block_erase_60, |
| 4026 | }, { |
| 4027 | .eraseblocks = { {512 * 1024, 1} }, |
| 4028 | .block_erase = spi_block_erase_c7, |
| 4029 | }, |
| 4030 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4031 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 93bb375 | 2009-05-13 22:19:12 +0000 | [diff] [blame] | 4032 | .write = spi_chip_write_1, |
Zheng Bao | 0677dff | 2009-02-25 08:07:33 +0000 | [diff] [blame] | 4033 | .read = spi_chip_read, |
| 4034 | }, |
| 4035 | |
| 4036 | { |
| 4037 | .vendor = "SST", |
Stefan Reinauer | 5cacf8c | 2010-06-14 12:58:06 +0000 | [diff] [blame] | 4038 | .name = "SST25LF040A.RES", |
| 4039 | .bustype = CHIP_BUSTYPE_SPI, |
| 4040 | .manufacture_id = SST_ID, |
| 4041 | .model_id = SST_25VF040_REMS, |
| 4042 | .total_size = 512, |
| 4043 | .page_size = 256, |
| 4044 | .tested = TEST_OK_PROBE, |
| 4045 | .probe = probe_spi_res2, |
| 4046 | .probe_timing = TIMING_ZERO, |
| 4047 | .block_erasers = |
| 4048 | { |
| 4049 | { |
| 4050 | .eraseblocks = { {4 * 1024, 128} }, |
| 4051 | .block_erase = spi_block_erase_20, |
| 4052 | }, { |
| 4053 | .eraseblocks = { {32 * 1024, 16} }, |
| 4054 | .block_erase = spi_block_erase_52, |
| 4055 | }, { |
| 4056 | .eraseblocks = { {512 * 1024, 1} }, |
| 4057 | .block_erase = spi_block_erase_60, |
| 4058 | }, |
| 4059 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4060 | .unlock = spi_disable_blockprotect, |
Stefan Reinauer | 5cacf8c | 2010-06-14 12:58:06 +0000 | [diff] [blame] | 4061 | .write = spi_chip_write_1, |
| 4062 | .read = spi_chip_read, |
| 4063 | }, |
| 4064 | |
| 4065 | { |
| 4066 | .vendor = "SST", |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 4067 | .name = "SST25VF040B.REMS", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4068 | .bustype = CHIP_BUSTYPE_SPI, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4069 | .manufacture_id = SST_ID, |
| 4070 | .model_id = SST_25VF040B_REMS, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 4071 | .total_size = 512, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 4072 | .page_size = 256, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 4073 | .tested = TEST_OK_PR, |
| 4074 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4075 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 4076 | .block_erasers = |
| 4077 | { |
| 4078 | { |
| 4079 | .eraseblocks = { {4 * 1024, 128} }, |
| 4080 | .block_erase = spi_block_erase_20, |
| 4081 | }, { |
| 4082 | .eraseblocks = { {32 * 1024, 16} }, |
| 4083 | .block_erase = spi_block_erase_52, |
| 4084 | }, { |
| 4085 | .eraseblocks = { {64 * 1024, 8} }, |
| 4086 | .block_erase = spi_block_erase_d8, |
| 4087 | }, { |
| 4088 | .eraseblocks = { {512 * 1024, 1} }, |
| 4089 | .block_erase = spi_block_erase_60, |
| 4090 | }, { |
| 4091 | .eraseblocks = { {512 * 1024, 1} }, |
| 4092 | .block_erase = spi_block_erase_c7, |
| 4093 | }, |
| 4094 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4095 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 93bb375 | 2009-05-13 22:19:12 +0000 | [diff] [blame] | 4096 | .write = spi_chip_write_1, |
Peter Stuge | fd9217d | 2009-01-26 03:37:40 +0000 | [diff] [blame] | 4097 | .read = spi_chip_read, |
| 4098 | }, |
| 4099 | |
| 4100 | { |
| 4101 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4102 | .name = "SST25VF080B", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4103 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4104 | .manufacture_id = SST_ID, |
| 4105 | .model_id = SST_25VF080B, |
| 4106 | .total_size = 1024, |
| 4107 | .page_size = 256, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 4108 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4109 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4110 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 4111 | .block_erasers = |
| 4112 | { |
| 4113 | { |
| 4114 | .eraseblocks = { {4 * 1024, 256} }, |
| 4115 | .block_erase = spi_block_erase_20, |
| 4116 | }, { |
| 4117 | .eraseblocks = { {32 * 1024, 32} }, |
| 4118 | .block_erase = spi_block_erase_52, |
| 4119 | }, { |
| 4120 | .eraseblocks = { {64 * 1024, 16} }, |
| 4121 | .block_erase = spi_block_erase_d8, |
| 4122 | }, { |
| 4123 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4124 | .block_erase = spi_block_erase_60, |
| 4125 | }, { |
| 4126 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4127 | .block_erase = spi_block_erase_c7, |
| 4128 | }, |
| 4129 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4130 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4131 | .write = spi_chip_write_1, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4132 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4133 | }, |
| 4134 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4135 | { |
| 4136 | .vendor = "SST", |
| 4137 | .name = "SST28SF040A", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4138 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4139 | .manufacture_id = SST_ID, |
| 4140 | .model_id = SST_28SF040, |
| 4141 | .total_size = 512, |
| 4142 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4143 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4144 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 4145 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 4146 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4147 | .block_erasers = |
| 4148 | { |
| 4149 | { |
| 4150 | .eraseblocks = { {128, 4096} }, |
| 4151 | .block_erase = erase_sector_28sf040, |
| 4152 | }, { |
| 4153 | .eraseblocks = { {512 * 1024, 1} }, |
| 4154 | .block_erase = erase_chip_28sf040, |
| 4155 | } |
| 4156 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4157 | .write = write_28sf040, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4158 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4159 | }, |
| 4160 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4161 | { |
| 4162 | .vendor = "SST", |
| 4163 | .name = "SST29EE010", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4164 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4165 | .manufacture_id = SST_ID, |
| 4166 | .model_id = SST_29EE010, |
| 4167 | .total_size = 128, |
| 4168 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4169 | .feature_bits = FEATURE_LONG_RESET, |
Uwe Hermann | 6093969 | 2010-03-17 00:05:59 +0000 | [diff] [blame] | 4170 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4171 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4172 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4173 | .block_erasers = |
| 4174 | { |
| 4175 | { |
| 4176 | .eraseblocks = { {128 * 1024, 1} }, |
| 4177 | .block_erase = erase_chip_block_jedec, |
| 4178 | } |
| 4179 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4180 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4181 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4182 | }, |
| 4183 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4184 | { |
| 4185 | .vendor = "SST", |
| 4186 | .name = "SST29LE010", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4187 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4188 | .manufacture_id = SST_ID, |
| 4189 | .model_id = SST_29LE010, |
| 4190 | .total_size = 128, |
| 4191 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4192 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4193 | .tested = TEST_UNTESTED, |
| 4194 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4195 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4196 | .block_erasers = |
| 4197 | { |
| 4198 | { |
| 4199 | .eraseblocks = { {128 * 1024, 1} }, |
| 4200 | .block_erase = erase_chip_block_jedec, |
| 4201 | } |
| 4202 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4203 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4204 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4205 | }, |
| 4206 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4207 | { |
| 4208 | .vendor = "SST", |
| 4209 | .name = "SST29EE020A", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4210 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4211 | .manufacture_id = SST_ID, |
| 4212 | .model_id = SST_29EE020A, |
| 4213 | .total_size = 256, |
| 4214 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4215 | .feature_bits = FEATURE_LONG_RESET, |
Uwe Hermann | ea5425b | 2010-05-30 17:00:19 +0000 | [diff] [blame] | 4216 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4217 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4218 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4219 | .block_erasers = |
| 4220 | { |
| 4221 | { |
| 4222 | .eraseblocks = { {256 * 1024, 1} }, |
| 4223 | .block_erase = erase_chip_block_jedec, |
| 4224 | } |
| 4225 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4226 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4227 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4228 | }, |
| 4229 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4230 | { |
| 4231 | .vendor = "SST", |
| 4232 | .name = "SST29LE020", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4233 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4234 | .manufacture_id = SST_ID, |
| 4235 | .model_id = SST_29LE020, |
| 4236 | .total_size = 256, |
| 4237 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4238 | .feature_bits = FEATURE_LONG_RESET, |
Michael Karcher | 98eff46 | 2010-03-24 22:55:56 +0000 | [diff] [blame] | 4239 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4240 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4241 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4242 | .block_erasers = |
| 4243 | { |
| 4244 | { |
| 4245 | .eraseblocks = { {256 * 1024, 1} }, |
| 4246 | .block_erase = erase_chip_block_jedec, |
| 4247 | } |
| 4248 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4249 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4250 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4251 | }, |
| 4252 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4253 | { |
| 4254 | .vendor = "SST", |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 4255 | .name = "SST39SF512", |
| 4256 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 4257 | .manufacture_id = SST_ID, |
| 4258 | .model_id = SST_39SF512, |
| 4259 | .total_size = 64, |
| 4260 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4261 | .feature_bits = FEATURE_EITHER_RESET, |
| 4262 | .tested = TEST_UNTESTED, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 4263 | .probe = probe_jedec, |
| 4264 | .probe_timing = 1, /* 150 ns */ |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 4265 | .block_erasers = |
| 4266 | { |
| 4267 | { |
| 4268 | .eraseblocks = { {4 * 1024, 16} }, |
| 4269 | .block_erase = erase_sector_jedec, |
| 4270 | }, { |
| 4271 | .eraseblocks = { {64 * 1024, 1} }, |
| 4272 | .block_erase = erase_chip_block_jedec, |
| 4273 | } |
| 4274 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4275 | .write = write_jedec_1, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 4276 | .read = read_memmapped, |
| 4277 | }, |
| 4278 | |
| 4279 | { |
| 4280 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4281 | .name = "SST39SF010A", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4282 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4283 | .manufacture_id = SST_ID, |
| 4284 | .model_id = SST_39SF010, |
| 4285 | .total_size = 128, |
| 4286 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4287 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 6093969 | 2010-03-17 00:05:59 +0000 | [diff] [blame] | 4288 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4289 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4290 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4291 | .block_erasers = |
| 4292 | { |
| 4293 | { |
| 4294 | .eraseblocks = { {4 * 1024, 32} }, |
| 4295 | .block_erase = erase_sector_jedec, |
| 4296 | }, { |
| 4297 | .eraseblocks = { {128 * 1024, 1} }, |
| 4298 | .block_erase = erase_chip_block_jedec, |
| 4299 | } |
| 4300 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4301 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4302 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4303 | }, |
| 4304 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4305 | { |
| 4306 | .vendor = "SST", |
| 4307 | .name = "SST39SF020A", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4308 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4309 | .manufacture_id = SST_ID, |
| 4310 | .model_id = SST_39SF020, |
| 4311 | .total_size = 256, |
| 4312 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4313 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 6093969 | 2010-03-17 00:05:59 +0000 | [diff] [blame] | 4314 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4315 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4316 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4317 | .block_erasers = |
| 4318 | { |
| 4319 | { |
| 4320 | .eraseblocks = { {4 * 1024, 64} }, |
| 4321 | .block_erase = erase_sector_jedec, |
| 4322 | }, { |
| 4323 | .eraseblocks = { {256 * 1024, 1} }, |
| 4324 | .block_erase = erase_chip_block_jedec, |
| 4325 | } |
| 4326 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4327 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4328 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4329 | }, |
| 4330 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4331 | { |
| 4332 | .vendor = "SST", |
| 4333 | .name = "SST39SF040", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4334 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4335 | .manufacture_id = SST_ID, |
| 4336 | .model_id = SST_39SF040, |
| 4337 | .total_size = 512, |
| 4338 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4339 | .feature_bits = FEATURE_EITHER_RESET, |
| 4340 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4341 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4342 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4343 | .block_erasers = |
| 4344 | { |
| 4345 | { |
| 4346 | .eraseblocks = { {4 * 1024, 128} }, |
| 4347 | .block_erase = erase_sector_jedec, |
| 4348 | }, { |
| 4349 | .eraseblocks = { {512 * 1024, 1} }, |
| 4350 | .block_erase = erase_chip_block_jedec, |
| 4351 | } |
| 4352 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4353 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4354 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4355 | }, |
| 4356 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4357 | { |
| 4358 | .vendor = "SST", |
| 4359 | .name = "SST39VF512", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4360 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4361 | .manufacture_id = SST_ID, |
| 4362 | .model_id = SST_39VF512, |
| 4363 | .total_size = 64, |
| 4364 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4365 | .feature_bits = FEATURE_EITHER_RESET, |
| 4366 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4367 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4368 | .probe_timing = 1, /* 150 ns*/ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4369 | .block_erasers = |
| 4370 | { |
| 4371 | { |
| 4372 | .eraseblocks = { {4 * 1024, 16} }, |
| 4373 | .block_erase = erase_sector_jedec, |
| 4374 | }, { |
| 4375 | .eraseblocks = { {64 * 1024, 1} }, |
| 4376 | .block_erase = erase_chip_block_jedec, |
| 4377 | } |
| 4378 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4379 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4380 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4381 | }, |
| 4382 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4383 | { |
| 4384 | .vendor = "SST", |
| 4385 | .name = "SST39VF010", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4386 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4387 | .manufacture_id = SST_ID, |
| 4388 | .model_id = SST_39VF010, |
| 4389 | .total_size = 128, |
| 4390 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4391 | .feature_bits = FEATURE_EITHER_RESET, |
Guenter Knauf | 2bd007a | 2010-06-24 11:51:12 +0000 | [diff] [blame] | 4392 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4393 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4394 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4395 | .block_erasers = |
| 4396 | { |
| 4397 | { |
| 4398 | .eraseblocks = { {4 * 1024, 32} }, |
| 4399 | .block_erase = erase_sector_jedec, |
| 4400 | }, { |
| 4401 | .eraseblocks = { {128 * 1024, 1} }, |
| 4402 | .block_erase = erase_chip_block_jedec, |
| 4403 | } |
| 4404 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4405 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4406 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4407 | }, |
| 4408 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4409 | { |
| 4410 | .vendor = "SST", |
| 4411 | .name = "SST39VF020", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4412 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4413 | .manufacture_id = SST_ID, |
| 4414 | .model_id = SST_39VF020, |
| 4415 | .total_size = 256, |
| 4416 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4417 | .feature_bits = FEATURE_EITHER_RESET, |
| 4418 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4419 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4420 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4421 | .block_erasers = |
| 4422 | { |
| 4423 | { |
| 4424 | .eraseblocks = { {4 * 1024, 64} }, |
| 4425 | .block_erase = erase_sector_jedec, |
| 4426 | }, { |
| 4427 | .eraseblocks = { {256 * 1024, 1} }, |
| 4428 | .block_erase = erase_chip_block_jedec, |
| 4429 | } |
| 4430 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4431 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4432 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4433 | }, |
| 4434 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4435 | { |
| 4436 | .vendor = "SST", |
| 4437 | .name = "SST39VF040", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4438 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4439 | .manufacture_id = SST_ID, |
| 4440 | .model_id = SST_39VF040, |
| 4441 | .total_size = 512, |
| 4442 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4443 | .feature_bits = FEATURE_EITHER_RESET, |
| 4444 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4445 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4446 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4447 | .block_erasers = |
| 4448 | { |
| 4449 | { |
| 4450 | .eraseblocks = { {4 * 1024, 128} }, |
| 4451 | .block_erase = erase_sector_jedec, |
| 4452 | }, { |
| 4453 | .eraseblocks = { {512 * 1024, 1} }, |
| 4454 | .block_erase = erase_chip_block_jedec, |
| 4455 | } |
| 4456 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4457 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4458 | .read = read_memmapped, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 4459 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4460 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4461 | { |
| 4462 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 4463 | .name = "SST39VF080", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4464 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4465 | .manufacture_id = SST_ID, |
| 4466 | .model_id = SST_39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 4467 | .total_size = 1024, |
| 4468 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4469 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 4470 | .tested = TEST_UNTESTED, |
| 4471 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4472 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4473 | .block_erasers = |
| 4474 | { |
| 4475 | { |
| 4476 | .eraseblocks = { {4 * 1024, 256} }, |
| 4477 | .block_erase = erase_sector_jedec, |
| 4478 | }, { |
| 4479 | .eraseblocks = { {64 * 1024, 16} }, |
| 4480 | .block_erase = erase_block_jedec, |
| 4481 | }, { |
| 4482 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4483 | .block_erase = erase_chip_block_jedec, |
| 4484 | } |
| 4485 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4486 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4487 | .read = read_memmapped, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 4488 | }, |
| 4489 | |
| 4490 | { |
| 4491 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4492 | .name = "SST49LF002A/B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4493 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4494 | .manufacture_id = SST_ID, |
| 4495 | .model_id = SST_49LF002A, |
| 4496 | .total_size = 256, |
| 4497 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4498 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4499 | .tested = TEST_OK_PRW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 4500 | .probe = probe_jedec, |
| 4501 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4502 | .block_erasers = |
| 4503 | { |
| 4504 | { |
| 4505 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 4506 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4507 | }, { |
| 4508 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 4509 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4510 | }, { |
| 4511 | .eraseblocks = { {256 * 1024, 1} }, |
| 4512 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 4513 | } |
| 4514 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 4515 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 4516 | .unlock = unlock_sst_fwhub, |
| 4517 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4518 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4519 | }, |
| 4520 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4521 | { |
| 4522 | .vendor = "SST", |
| 4523 | .name = "SST49LF003A/B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4524 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4525 | .manufacture_id = SST_ID, |
| 4526 | .model_id = SST_49LF003A, |
| 4527 | .total_size = 384, |
| 4528 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4529 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Peter Lemenkov | 45835c4 | 2009-09-25 01:09:18 +0000 | [diff] [blame] | 4530 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 4531 | .probe = probe_jedec, |
| 4532 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4533 | .block_erasers = |
| 4534 | { |
| 4535 | { |
| 4536 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 4537 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4538 | }, { |
| 4539 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 4540 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4541 | }, { |
| 4542 | .eraseblocks = { {384 * 1024, 1} }, |
| 4543 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 4544 | } |
| 4545 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 4546 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 4547 | .unlock = unlock_sst_fwhub, |
| 4548 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4549 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4550 | }, |
| 4551 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4552 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 4553 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 4554 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 4555 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4556 | .vendor = "SST", |
| 4557 | .name = "SST49LF004A/B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4558 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4559 | .manufacture_id = SST_ID, |
| 4560 | .model_id = SST_49LF004A, |
| 4561 | .total_size = 512, |
| 4562 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4563 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4564 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 4565 | .probe = probe_jedec, |
| 4566 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 4567 | .block_erasers = |
| 4568 | { |
| 4569 | { |
| 4570 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 4571 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 4572 | }, { |
| 4573 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 4574 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 4575 | }, { |
| 4576 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4577 | .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] | 4578 | }, |
| 4579 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 4580 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 4581 | .unlock = unlock_sst_fwhub, |
| 4582 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4583 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4584 | }, |
| 4585 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4586 | { |
| 4587 | .vendor = "SST", |
| 4588 | .name = "SST49LF004C", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4589 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4590 | .manufacture_id = SST_ID, |
| 4591 | .model_id = SST_49LF004C, |
| 4592 | .total_size = 512, |
| 4593 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 4594 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4595 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 4596 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 4597 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4598 | .block_erasers = |
| 4599 | { |
| 4600 | { |
| 4601 | .eraseblocks = { {4 * 1024, 128} }, |
| 4602 | .block_erase = erase_sector_49lfxxxc, |
| 4603 | }, { |
| 4604 | .eraseblocks = { |
| 4605 | {64 * 1024, 7}, |
| 4606 | {32 * 1024, 1}, |
| 4607 | {8 * 1024, 2}, |
| 4608 | {16 * 1024, 1}, |
| 4609 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 4610 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4611 | } |
| 4612 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 4613 | .unlock = unlock_49lfxxxc, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4614 | .write = write_49lfxxxc, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4615 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4616 | }, |
| 4617 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4618 | { |
| 4619 | .vendor = "SST", |
| 4620 | .name = "SST49LF008A", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4621 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4622 | .manufacture_id = SST_ID, |
| 4623 | .model_id = SST_49LF008A, |
| 4624 | .total_size = 1024, |
| 4625 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4626 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Uwe Hermann | ea5425b | 2010-05-30 17:00:19 +0000 | [diff] [blame] | 4627 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 4628 | .probe = probe_jedec, |
| 4629 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4630 | .block_erasers = |
| 4631 | { |
| 4632 | { |
| 4633 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 4634 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4635 | }, { |
| 4636 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 4637 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4638 | }, { |
| 4639 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4640 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 4641 | } |
| 4642 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 4643 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 4644 | .unlock = unlock_sst_fwhub, |
| 4645 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4646 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4647 | }, |
| 4648 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4649 | { |
| 4650 | .vendor = "SST", |
| 4651 | .name = "SST49LF008C", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4652 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4653 | .manufacture_id = SST_ID, |
| 4654 | .model_id = SST_49LF008C, |
| 4655 | .total_size = 1024, |
| 4656 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 4657 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4658 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 4659 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 4660 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4661 | .block_erasers = |
| 4662 | { |
| 4663 | { |
| 4664 | .eraseblocks = { {4 * 1024, 256} }, |
| 4665 | .block_erase = erase_sector_49lfxxxc, |
| 4666 | }, { |
| 4667 | .eraseblocks = { |
| 4668 | {64 * 1024, 15}, |
| 4669 | {32 * 1024, 1}, |
| 4670 | {8 * 1024, 2}, |
| 4671 | {16 * 1024, 1}, |
| 4672 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 4673 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4674 | } |
| 4675 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 4676 | .unlock = unlock_49lfxxxc, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4677 | .write = write_49lfxxxc, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4678 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4679 | }, |
| 4680 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4681 | { |
| 4682 | .vendor = "SST", |
| 4683 | .name = "SST49LF016C", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4684 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4685 | .manufacture_id = SST_ID, |
| 4686 | .model_id = SST_49LF016C, |
| 4687 | .total_size = 2048, |
| 4688 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 4689 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4690 | .tested = TEST_OK_PRW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 4691 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 4692 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4693 | .block_erasers = |
| 4694 | { |
| 4695 | { |
| 4696 | .eraseblocks = { {4 * 1024, 512} }, |
| 4697 | .block_erase = erase_sector_49lfxxxc, |
| 4698 | }, { |
| 4699 | .eraseblocks = { |
| 4700 | {64 * 1024, 31}, |
| 4701 | {32 * 1024, 1}, |
| 4702 | {8 * 1024, 2}, |
| 4703 | {16 * 1024, 1}, |
| 4704 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 4705 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4706 | } |
| 4707 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 4708 | .unlock = unlock_49lfxxxc, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4709 | .write = write_49lfxxxc, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4710 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4711 | }, |
| 4712 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4713 | { |
| 4714 | .vendor = "SST", |
| 4715 | .name = "SST49LF020", |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4716 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4717 | .manufacture_id = SST_ID, |
| 4718 | .model_id = SST_49LF020, |
| 4719 | .total_size = 256, |
| 4720 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4721 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 8d341b5 | 2010-05-25 23:27:44 +0000 | [diff] [blame] | 4722 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4723 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4724 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4725 | .block_erasers = |
| 4726 | { |
| 4727 | { |
| 4728 | .eraseblocks = { {4 * 1024, 64} }, |
| 4729 | .block_erase = erase_sector_jedec, |
| 4730 | }, { |
| 4731 | .eraseblocks = { {16 * 1024, 16} }, |
| 4732 | .block_erase = erase_block_jedec, |
| 4733 | }, { |
| 4734 | .eraseblocks = { {256 * 1024, 1} }, |
| 4735 | .block_erase = NULL, |
| 4736 | } |
| 4737 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4738 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4739 | .read = read_memmapped, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 4740 | }, |
| 4741 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4742 | { |
| 4743 | .vendor = "SST", |
| 4744 | .name = "SST49LF020A", |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4745 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4746 | .manufacture_id = SST_ID, |
| 4747 | .model_id = SST_49LF020A, |
| 4748 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 4749 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4750 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 8d341b5 | 2010-05-25 23:27:44 +0000 | [diff] [blame] | 4751 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4752 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4753 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4754 | .block_erasers = |
| 4755 | { |
| 4756 | { |
| 4757 | .eraseblocks = { {4 * 1024, 64} }, |
| 4758 | .block_erase = erase_sector_jedec, |
| 4759 | }, { |
| 4760 | .eraseblocks = { {16 * 1024, 16} }, |
| 4761 | .block_erase = erase_block_jedec, |
| 4762 | }, { |
| 4763 | .eraseblocks = { {256 * 1024, 1} }, |
| 4764 | .block_erase = NULL, |
| 4765 | } |
| 4766 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4767 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4768 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4769 | }, |
| 4770 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4771 | { |
| 4772 | .vendor = "SST", |
| 4773 | .name = "SST49LF040", |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4774 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4775 | .manufacture_id = SST_ID, |
| 4776 | .model_id = SST_49LF040, |
| 4777 | .total_size = 512, |
| 4778 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4779 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | ea5425b | 2010-05-30 17:00:19 +0000 | [diff] [blame] | 4780 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4781 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 4782 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4783 | .block_erasers = |
| 4784 | { |
| 4785 | { |
| 4786 | .eraseblocks = { {4 * 1024, 128} }, |
| 4787 | .block_erase = erase_sector_jedec, |
| 4788 | }, { |
| 4789 | .eraseblocks = { {64 * 1024, 8} }, |
| 4790 | .block_erase = erase_block_jedec, |
| 4791 | }, { |
| 4792 | .eraseblocks = { {512 * 1024, 1} }, |
| 4793 | .block_erase = NULL, |
| 4794 | } |
| 4795 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4796 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4797 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4798 | }, |
| 4799 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4800 | { |
| 4801 | .vendor = "SST", |
| 4802 | .name = "SST49LF040B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4803 | .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4804 | .manufacture_id = SST_ID, |
| 4805 | .model_id = SST_49LF040B, |
| 4806 | .total_size = 512, |
| 4807 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4808 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 8d341b5 | 2010-05-25 23:27:44 +0000 | [diff] [blame] | 4809 | .tested = TEST_OK_PR, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4810 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 4811 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4812 | .block_erasers = |
| 4813 | { |
| 4814 | { |
| 4815 | .eraseblocks = { {4 * 1024, 128} }, |
| 4816 | .block_erase = erase_sector_jedec, |
| 4817 | }, { |
| 4818 | .eraseblocks = { {64 * 1024, 8} }, |
| 4819 | .block_erase = erase_block_jedec, |
| 4820 | }, { |
| 4821 | .eraseblocks = { {512 * 1024, 1} }, |
| 4822 | .block_erase = NULL, |
| 4823 | } |
| 4824 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4825 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4826 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4827 | }, |
| 4828 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4829 | { |
| 4830 | .vendor = "SST", |
| 4831 | .name = "SST49LF080A", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4832 | .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4833 | .manufacture_id = SST_ID, |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4834 | .model_id = SST_49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4835 | .total_size = 1024, |
| 4836 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4837 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 8d341b5 | 2010-05-25 23:27:44 +0000 | [diff] [blame] | 4838 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4839 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 4840 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4841 | .block_erasers = |
| 4842 | { |
| 4843 | { |
| 4844 | .eraseblocks = { {4 * 1024, 256} }, |
| 4845 | .block_erase = erase_sector_jedec, |
| 4846 | }, { |
| 4847 | .eraseblocks = { {64 * 1024, 16} }, |
| 4848 | .block_erase = erase_block_jedec, |
| 4849 | }, { |
| 4850 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4851 | .block_erase = NULL, |
| 4852 | } |
| 4853 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4854 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4855 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4856 | }, |
| 4857 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4858 | { |
| 4859 | .vendor = "SST", |
| 4860 | .name = "SST49LF160C", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 4861 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4862 | .manufacture_id = SST_ID, |
| 4863 | .model_id = SST_49LF160C, |
| 4864 | .total_size = 2048, |
| 4865 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 4866 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4867 | .tested = TEST_OK_PRW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 4868 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 4869 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4870 | .block_erasers = |
| 4871 | { |
| 4872 | { |
| 4873 | .eraseblocks = { {4 * 1024, 512} }, |
| 4874 | .block_erase = erase_sector_49lfxxxc, |
| 4875 | }, { |
| 4876 | .eraseblocks = { |
| 4877 | {64 * 1024, 31}, |
| 4878 | {32 * 1024, 1}, |
| 4879 | {8 * 1024, 2}, |
| 4880 | {16 * 1024, 1}, |
| 4881 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 4882 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 4883 | } |
| 4884 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 4885 | .unlock = unlock_49lfxxxc, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4886 | .write = write_49lfxxxc, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4887 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4888 | }, |
| 4889 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4890 | { |
| 4891 | .vendor = "ST", |
| 4892 | .name = "M25P05-A", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4893 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4894 | .manufacture_id = ST_ID, |
| 4895 | .model_id = ST_M25P05A, |
| 4896 | .total_size = 64, |
| 4897 | .page_size = 256, |
| 4898 | .tested = TEST_UNTESTED, |
| 4899 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4900 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 4901 | .block_erasers = |
| 4902 | { |
| 4903 | { |
| 4904 | .eraseblocks = { {32 * 1024, 2} }, |
| 4905 | .block_erase = spi_block_erase_d8, |
| 4906 | }, { |
| 4907 | .eraseblocks = { {64 * 1024, 1} }, |
| 4908 | .block_erase = spi_block_erase_c7, |
| 4909 | } |
| 4910 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4911 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4912 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4913 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4914 | }, |
| 4915 | |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 4916 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 4917 | * 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] | 4918 | * 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] | 4919 | * only is successful if RDID does not work. |
| 4920 | */ |
| 4921 | { |
| 4922 | .vendor = "ST", |
| 4923 | .name = "M25P05.RES", |
| 4924 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 4925 | .manufacture_id = 0, /* Not used. */ |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 4926 | .model_id = ST_M25P05_RES, |
| 4927 | .total_size = 64, |
| 4928 | .page_size = 256, |
| 4929 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 4930 | .probe = probe_spi_res1, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 4931 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 4932 | .block_erasers = |
| 4933 | { |
| 4934 | { |
| 4935 | .eraseblocks = { {32 * 1024, 2} }, |
| 4936 | .block_erase = spi_block_erase_d8, |
| 4937 | }, { |
| 4938 | .eraseblocks = { {64 * 1024, 1} }, |
| 4939 | .block_erase = spi_block_erase_c7, |
| 4940 | } |
| 4941 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4942 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 4943 | .write = spi_chip_write_1, /* 128 */ |
| 4944 | .read = spi_chip_read, |
| 4945 | }, |
| 4946 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4947 | { |
| 4948 | .vendor = "ST", |
| 4949 | .name = "M25P10-A", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 4950 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4951 | .manufacture_id = ST_ID, |
| 4952 | .model_id = ST_M25P10A, |
| 4953 | .total_size = 128, |
| 4954 | .page_size = 256, |
| 4955 | .tested = TEST_UNTESTED, |
| 4956 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 4957 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 4958 | .block_erasers = |
| 4959 | { |
| 4960 | { |
| 4961 | .eraseblocks = { {32 * 1024, 4} }, |
| 4962 | .block_erase = spi_block_erase_d8, |
| 4963 | }, { |
| 4964 | .eraseblocks = { {128 * 1024, 1} }, |
| 4965 | .block_erase = spi_block_erase_c7, |
| 4966 | } |
| 4967 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4968 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 4969 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4970 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4971 | }, |
| 4972 | |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 4973 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 4974 | { |
| 4975 | .vendor = "ST", |
| 4976 | .name = "M25P10.RES", |
| 4977 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 4978 | .manufacture_id = 0, /* Not used. */ |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 4979 | .model_id = ST_M25P10_RES, |
| 4980 | .total_size = 128, |
| 4981 | .page_size = 256, |
| 4982 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 4983 | .probe = probe_spi_res1, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 4984 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 4985 | .block_erasers = |
| 4986 | { |
| 4987 | { |
| 4988 | .eraseblocks = { {32 * 1024, 4} }, |
| 4989 | .block_erase = spi_block_erase_d8, |
| 4990 | }, { |
| 4991 | .eraseblocks = { {128 * 1024, 1} }, |
| 4992 | .block_erase = spi_block_erase_c7, |
| 4993 | } |
| 4994 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4995 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 32961be | 2009-07-23 01:40:20 +0000 | [diff] [blame] | 4996 | .write = spi_chip_write_1, /* 128 */ |
| 4997 | .read = spi_chip_read, |
| 4998 | }, |
| 4999 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5000 | { |
| 5001 | .vendor = "ST", |
| 5002 | .name = "M25P20", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5003 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5004 | .manufacture_id = ST_ID, |
| 5005 | .model_id = ST_M25P20, |
| 5006 | .total_size = 256, |
| 5007 | .page_size = 256, |
| 5008 | .tested = TEST_UNTESTED, |
| 5009 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5010 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5011 | .block_erasers = |
| 5012 | { |
| 5013 | { |
| 5014 | .eraseblocks = { {64 * 1024, 4} }, |
| 5015 | .block_erase = spi_block_erase_d8, |
| 5016 | }, { |
| 5017 | .eraseblocks = { {256 * 1024, 1} }, |
| 5018 | .block_erase = spi_block_erase_c7, |
| 5019 | } |
| 5020 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5021 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5022 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5023 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5024 | }, |
| 5025 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5026 | { |
| 5027 | .vendor = "ST", |
| 5028 | .name = "M25P40", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5029 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5030 | .manufacture_id = ST_ID, |
| 5031 | .model_id = ST_M25P40, |
| 5032 | .total_size = 512, |
| 5033 | .page_size = 256, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5034 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5035 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5036 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5037 | .block_erasers = |
| 5038 | { |
| 5039 | { |
| 5040 | .eraseblocks = { {64 * 1024, 8} }, |
| 5041 | .block_erase = spi_block_erase_d8, |
| 5042 | }, { |
| 5043 | .eraseblocks = { {512 * 1024, 1} }, |
| 5044 | .block_erase = spi_block_erase_c7, |
| 5045 | } |
| 5046 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5047 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5048 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5049 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5050 | }, |
| 5051 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5052 | { |
| 5053 | .vendor = "ST", |
| 5054 | .name = "M25P40-old", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5055 | .bustype = CHIP_BUSTYPE_SPI, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 5056 | .manufacture_id = 0, /* Not used. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5057 | .model_id = ST_M25P40_RES, |
| 5058 | .total_size = 512, |
| 5059 | .page_size = 256, |
| 5060 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | dc1cda1 | 2010-05-28 17:07:57 +0000 | [diff] [blame] | 5061 | .probe = probe_spi_res1, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5062 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5063 | .block_erasers = |
| 5064 | { |
| 5065 | { |
| 5066 | .eraseblocks = { {64 * 1024, 8} }, |
| 5067 | .block_erase = spi_block_erase_d8, |
| 5068 | }, { |
| 5069 | .eraseblocks = { {512 * 1024, 1} }, |
| 5070 | .block_erase = spi_block_erase_c7, |
| 5071 | } |
| 5072 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5073 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5074 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5075 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5076 | }, |
| 5077 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5078 | { |
| 5079 | .vendor = "ST", |
| 5080 | .name = "M25P80", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5081 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5082 | .manufacture_id = ST_ID, |
| 5083 | .model_id = ST_M25P80, |
| 5084 | .total_size = 1024, |
| 5085 | .page_size = 256, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5086 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5087 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5088 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5089 | .block_erasers = |
| 5090 | { |
| 5091 | { |
| 5092 | .eraseblocks = { {64 * 1024, 16} }, |
| 5093 | .block_erase = spi_block_erase_d8, |
| 5094 | }, { |
| 5095 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5096 | .block_erase = spi_block_erase_c7, |
| 5097 | } |
| 5098 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5099 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5100 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5101 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5102 | }, |
| 5103 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5104 | { |
| 5105 | .vendor = "ST", |
| 5106 | .name = "M25P16", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5107 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5108 | .manufacture_id = ST_ID, |
| 5109 | .model_id = ST_M25P16, |
| 5110 | .total_size = 2048, |
| 5111 | .page_size = 256, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5112 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5113 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5114 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5115 | .block_erasers = |
| 5116 | { |
| 5117 | { |
| 5118 | .eraseblocks = { {64 * 1024, 32} }, |
| 5119 | .block_erase = spi_block_erase_d8, |
| 5120 | }, { |
| 5121 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5122 | .block_erase = spi_block_erase_c7, |
| 5123 | } |
| 5124 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5125 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5126 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5127 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5128 | }, |
| 5129 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5130 | { |
| 5131 | .vendor = "ST", |
| 5132 | .name = "M25P32", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5133 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5134 | .manufacture_id = ST_ID, |
| 5135 | .model_id = ST_M25P32, |
| 5136 | .total_size = 4096, |
| 5137 | .page_size = 256, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5138 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5139 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5140 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5141 | .block_erasers = |
| 5142 | { |
| 5143 | { |
| 5144 | .eraseblocks = { {64 * 1024, 64} }, |
| 5145 | .block_erase = spi_block_erase_d8, |
| 5146 | }, { |
| 5147 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5148 | .block_erase = spi_block_erase_c7, |
| 5149 | } |
| 5150 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5151 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5152 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5153 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5154 | }, |
| 5155 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5156 | { |
| 5157 | .vendor = "ST", |
| 5158 | .name = "M25P64", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5159 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5160 | .manufacture_id = ST_ID, |
| 5161 | .model_id = ST_M25P64, |
| 5162 | .total_size = 8192, |
| 5163 | .page_size = 256, |
| 5164 | .tested = TEST_UNTESTED, |
| 5165 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5166 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5167 | .block_erasers = |
| 5168 | { |
| 5169 | { |
| 5170 | .eraseblocks = { {64 * 1024, 128} }, |
| 5171 | .block_erase = spi_block_erase_d8, |
| 5172 | }, { |
| 5173 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5174 | .block_erase = spi_block_erase_c7, |
| 5175 | } |
| 5176 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5177 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5178 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5179 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5180 | }, |
| 5181 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5182 | { |
| 5183 | .vendor = "ST", |
| 5184 | .name = "M25P128", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 5185 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5186 | .manufacture_id = ST_ID, |
| 5187 | .model_id = ST_M25P128, |
| 5188 | .total_size = 16384, |
| 5189 | .page_size = 256, |
| 5190 | .tested = TEST_UNTESTED, |
| 5191 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5192 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5193 | .block_erasers = |
| 5194 | { |
| 5195 | { |
| 5196 | .eraseblocks = { {256 * 1024, 64} }, |
| 5197 | .block_erase = spi_block_erase_d8, |
| 5198 | }, { |
| 5199 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5200 | .block_erase = spi_block_erase_c7, |
| 5201 | } |
| 5202 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5203 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5204 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5205 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5206 | }, |
| 5207 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5208 | { |
| 5209 | .vendor = "ST", |
| 5210 | .name = "M29F002B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5211 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5212 | .manufacture_id = ST_ID, |
| 5213 | .model_id = ST_M29F002B, |
| 5214 | .total_size = 256, |
| 5215 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5216 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5217 | .tested = TEST_UNTESTED, |
| 5218 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5219 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5220 | .block_erasers = |
| 5221 | { |
| 5222 | { |
| 5223 | .eraseblocks = { |
| 5224 | {16 * 1024, 1}, |
| 5225 | {8 * 1024, 2}, |
| 5226 | {32 * 1024, 1}, |
| 5227 | {64 * 1024, 3}, |
| 5228 | }, |
| 5229 | .block_erase = erase_sector_jedec, |
| 5230 | }, { |
| 5231 | .eraseblocks = { {256 * 1024, 1} }, |
| 5232 | .block_erase = erase_chip_block_jedec, |
| 5233 | } |
| 5234 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5235 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5236 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5237 | }, |
| 5238 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5239 | { |
| 5240 | .vendor = "ST", |
| 5241 | .name = "M29F002T/NT", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5242 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5243 | .manufacture_id = ST_ID, |
| 5244 | .model_id = ST_M29F002T, |
| 5245 | .total_size = 256, |
| 5246 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5247 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
| 5248 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5249 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5250 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5251 | .block_erasers = |
| 5252 | { |
| 5253 | { |
| 5254 | .eraseblocks = { |
| 5255 | {64 * 1024, 3}, |
| 5256 | {32 * 1024, 1}, |
| 5257 | {8 * 1024, 2}, |
| 5258 | {16 * 1024, 1}, |
| 5259 | }, |
| 5260 | .block_erase = erase_sector_jedec, |
| 5261 | }, { |
| 5262 | .eraseblocks = { {256 * 1024, 1} }, |
| 5263 | .block_erase = erase_chip_block_jedec, |
| 5264 | } |
| 5265 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5266 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5267 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5268 | }, |
| 5269 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5270 | { |
| 5271 | .vendor = "ST", |
| 5272 | .name = "M29F040B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5273 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5274 | .manufacture_id = ST_ID, |
| 5275 | .model_id = ST_M29F040B, |
| 5276 | .total_size = 512, |
| 5277 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5278 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 5279 | .tested = TEST_UNTESTED, |
| 5280 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 5281 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (am29f040b.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5282 | .block_erasers = |
| 5283 | { |
| 5284 | { |
| 5285 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5286 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5287 | }, { |
| 5288 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5289 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5290 | } |
| 5291 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5292 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5293 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5294 | }, |
| 5295 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5296 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5297 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5298 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 5299 | .name = "M29F400BB", |
| 5300 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 5301 | .manufacture_id = ST_ID, |
| 5302 | .model_id = ST_M29F400BB, |
| 5303 | .total_size = 512, |
| 5304 | .page_size = 64 * 1024, |
| 5305 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
| 5306 | .tested = TEST_BAD_WRITE, /* Implicit eraseblock layout in write_m29f400bt is broken. */ |
| 5307 | .probe = probe_m29f400bt, |
| 5308 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
| 5309 | .block_erasers = |
| 5310 | { |
| 5311 | { |
| 5312 | .eraseblocks = { |
| 5313 | {16 * 1024, 1}, |
| 5314 | {8 * 1024, 2}, |
| 5315 | {32 * 1024, 1}, |
| 5316 | {64 * 1024, 7}, |
| 5317 | }, |
| 5318 | .block_erase = block_erase_m29f400bt, |
| 5319 | }, { |
| 5320 | .eraseblocks = { {512 * 1024, 1} }, |
| 5321 | .block_erase = block_erase_chip_m29f400bt, |
| 5322 | } |
| 5323 | }, |
| 5324 | .write = NULL, |
| 5325 | .read = read_memmapped, |
| 5326 | }, |
| 5327 | { |
| 5328 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 5329 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5330 | .name = "M29F400BT", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5331 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5332 | .manufacture_id = ST_ID, |
| 5333 | .model_id = ST_M29F400BT, |
| 5334 | .total_size = 512, |
| 5335 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5336 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5337 | .tested = TEST_UNTESTED, |
| 5338 | .probe = probe_m29f400bt, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 5339 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5340 | .block_erasers = |
| 5341 | { |
| 5342 | { |
| 5343 | .eraseblocks = { |
| 5344 | {64 * 1024, 7}, |
| 5345 | {32 * 1024, 1}, |
| 5346 | {8 * 1024, 2}, |
| 5347 | {16 * 1024, 1}, |
| 5348 | }, |
| 5349 | .block_erase = block_erase_m29f400bt, |
| 5350 | }, { |
| 5351 | .eraseblocks = { {512 * 1024, 1} }, |
| 5352 | .block_erase = block_erase_chip_m29f400bt, |
| 5353 | } |
| 5354 | }, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 5355 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5356 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5357 | }, |
| 5358 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5359 | { |
| 5360 | .vendor = "ST", |
| 5361 | .name = "M29W010B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5362 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5363 | .manufacture_id = ST_ID, |
| 5364 | .model_id = ST_M29W010B, |
| 5365 | .total_size = 128, |
| 5366 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5367 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5368 | .tested = TEST_UNTESTED, |
| 5369 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5370 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5371 | .block_erasers = |
| 5372 | { |
| 5373 | { |
| 5374 | .eraseblocks = { {16 * 1024, 8}, }, |
| 5375 | .block_erase = erase_sector_jedec, |
| 5376 | }, { |
| 5377 | .eraseblocks = { {128 * 1024, 1} }, |
| 5378 | .block_erase = erase_chip_block_jedec, |
| 5379 | } |
| 5380 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5381 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5382 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5383 | }, |
| 5384 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5385 | { |
| 5386 | .vendor = "ST", |
| 5387 | .name = "M29W040B", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5388 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5389 | .manufacture_id = ST_ID, |
| 5390 | .model_id = ST_M29W040B, |
| 5391 | .total_size = 512, |
| 5392 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5393 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5394 | .tested = TEST_UNTESTED, |
| 5395 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5396 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5397 | .block_erasers = |
| 5398 | { |
| 5399 | { |
| 5400 | .eraseblocks = { {64 * 1024, 8}, }, |
| 5401 | .block_erase = erase_sector_jedec, |
| 5402 | }, { |
| 5403 | .eraseblocks = { {512 * 1024, 1} }, |
| 5404 | .block_erase = erase_chip_block_jedec, |
| 5405 | } |
| 5406 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5407 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5408 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5409 | }, |
| 5410 | |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 5411 | { |
| 5412 | .vendor = "ST", |
| 5413 | .name = "M29W512B", |
| 5414 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 5415 | .manufacture_id = ST_ID, |
| 5416 | .model_id = ST_M29W512B, |
| 5417 | .total_size = 64, |
| 5418 | .page_size = 64 * 1024, |
| 5419 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 5420 | .tested = TEST_OK_PREW, |
| 5421 | .probe = probe_jedec, |
| 5422 | .probe_timing = TIMING_ZERO, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 5423 | .block_erasers = |
| 5424 | { |
| 5425 | { |
| 5426 | .eraseblocks = { {64 * 1024, 1} }, |
| 5427 | .block_erase = erase_chip_block_jedec, |
| 5428 | } |
| 5429 | }, |
| 5430 | .write = write_jedec_1, |
| 5431 | .read = read_memmapped, |
| 5432 | }, |
| 5433 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5434 | { |
| 5435 | .vendor = "ST", |
| 5436 | .name = "M50FLW040A", |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5437 | .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5438 | .manufacture_id = ST_ID, |
| 5439 | .model_id = ST_M50FLW040A, |
| 5440 | .total_size = 512, |
| 5441 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5442 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5443 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5444 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 5445 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5446 | .block_erasers = |
| 5447 | { |
| 5448 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 5449 | .eraseblocks = { |
| 5450 | {4 * 1024, 16}, /* sector */ |
| 5451 | {64 * 1024, 5}, /* block */ |
| 5452 | {4 * 1024, 16}, /* sector */ |
| 5453 | {4 * 1024, 16}, /* sector */ |
| 5454 | }, |
| 5455 | .block_erase = NULL, |
| 5456 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5457 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5458 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5459 | }, { |
| 5460 | .eraseblocks = { {512 * 1024, 1} }, |
| 5461 | .block_erase = erase_chip_stm50flw0x0x, |
| 5462 | } |
| 5463 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5464 | .unlock = unlock_stm50flw0x0x, |
| 5465 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5466 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5467 | }, |
| 5468 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5469 | { |
| 5470 | .vendor = "ST", |
| 5471 | .name = "M50FLW040B", |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5472 | .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5473 | .manufacture_id = ST_ID, |
| 5474 | .model_id = ST_M50FLW040B, |
| 5475 | .total_size = 512, |
| 5476 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5477 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5478 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5479 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 5480 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5481 | .block_erasers = |
| 5482 | { |
| 5483 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 5484 | .eraseblocks = { |
| 5485 | {4 * 1024, 16}, /* sector */ |
| 5486 | {4 * 1024, 16}, /* sector */ |
| 5487 | {64 * 1024, 5}, /* block */ |
| 5488 | {4 * 1024, 16}, /* sector */ |
| 5489 | }, |
| 5490 | .block_erase = NULL, |
| 5491 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5492 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5493 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5494 | }, { |
| 5495 | .eraseblocks = { {512 * 1024, 1} }, |
| 5496 | .block_erase = erase_chip_stm50flw0x0x, |
| 5497 | } |
| 5498 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5499 | .unlock = unlock_stm50flw0x0x, |
| 5500 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5501 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5502 | }, |
| 5503 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5504 | { |
| 5505 | .vendor = "ST", |
| 5506 | .name = "M50FLW080A", |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5507 | .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5508 | .manufacture_id = ST_ID, |
| 5509 | .model_id = ST_M50FLW080A, |
| 5510 | .total_size = 1024, |
| 5511 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5512 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5513 | .tested = TEST_UNTESTED, |
| 5514 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 5515 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5516 | .block_erasers = |
| 5517 | { |
| 5518 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 5519 | .eraseblocks = { |
| 5520 | {4 * 1024, 16}, /* sector */ |
| 5521 | {64 * 1024, 13}, /* block */ |
| 5522 | {4 * 1024, 16}, /* sector */ |
| 5523 | {4 * 1024, 16}, /* sector */ |
| 5524 | }, |
| 5525 | .block_erase = NULL, |
| 5526 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5527 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5528 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5529 | }, { |
| 5530 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5531 | .block_erase = erase_chip_stm50flw0x0x, |
| 5532 | } |
| 5533 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5534 | .unlock = unlock_stm50flw0x0x, |
| 5535 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5536 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5537 | }, |
| 5538 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5539 | { |
| 5540 | .vendor = "ST", |
| 5541 | .name = "M50FLW080B", |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5542 | .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5543 | .manufacture_id = ST_ID, |
| 5544 | .model_id = ST_M50FLW080B, |
| 5545 | .total_size = 1024, |
| 5546 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5547 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5548 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5549 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 5550 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5551 | .block_erasers = |
| 5552 | { |
| 5553 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 5554 | .eraseblocks = { |
| 5555 | {4 * 1024, 16}, /* sector */ |
| 5556 | {4 * 1024, 16}, /* sector */ |
| 5557 | {64 * 1024, 13}, /* block */ |
| 5558 | {4 * 1024, 16}, /* sector */ |
| 5559 | }, |
| 5560 | .block_erase = NULL, |
| 5561 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5562 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5563 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5564 | }, { |
| 5565 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5566 | .block_erase = erase_chip_stm50flw0x0x, |
| 5567 | } |
| 5568 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5569 | .unlock = unlock_stm50flw0x0x, |
| 5570 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5571 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5572 | }, |
| 5573 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5574 | { |
| 5575 | .vendor = "ST", |
| 5576 | .name = "M50FW002", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5577 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5578 | .manufacture_id = ST_ID, |
| 5579 | .model_id = ST_M50FW002, |
| 5580 | .total_size = 256, |
| 5581 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5582 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5583 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5584 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 5585 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5586 | .block_erasers = |
| 5587 | { |
| 5588 | { |
| 5589 | .eraseblocks = { |
| 5590 | {64 * 1024, 3}, |
| 5591 | {32 * 1024, 1}, |
| 5592 | {8 * 1024, 2}, |
| 5593 | {16 * 1024, 1}, |
| 5594 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5595 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5596 | }, { |
| 5597 | .eraseblocks = { {256 * 1024, 1} }, |
| 5598 | .block_erase = erase_chip_stm50flw0x0x, |
| 5599 | } |
| 5600 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5601 | .unlock = unlock_stm50flw0x0x, |
| 5602 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5603 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5604 | }, |
| 5605 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5606 | { |
| 5607 | .vendor = "ST", |
| 5608 | .name = "M50FW016", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5609 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5610 | .manufacture_id = ST_ID, |
| 5611 | .model_id = ST_M50FW016, |
| 5612 | .total_size = 2048, |
| 5613 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5614 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5615 | .tested = TEST_UNTESTED, |
| 5616 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 5617 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5618 | .block_erasers = |
| 5619 | { |
| 5620 | { |
| 5621 | .eraseblocks = { {64 * 1024, 32}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5622 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5623 | }, { |
| 5624 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5625 | .block_erase = erase_chip_stm50flw0x0x, |
| 5626 | } |
| 5627 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5628 | .unlock = unlock_stm50flw0x0x, |
| 5629 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5630 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5631 | }, |
| 5632 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5633 | { |
| 5634 | .vendor = "ST", |
| 5635 | .name = "M50FW040", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5636 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5637 | .manufacture_id = ST_ID, |
| 5638 | .model_id = ST_M50FW040, |
| 5639 | .total_size = 512, |
| 5640 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5641 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5642 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5643 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 5644 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5645 | .block_erasers = |
| 5646 | { |
| 5647 | { |
| 5648 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5649 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5650 | }, { |
| 5651 | .eraseblocks = { {512 * 1024, 1} }, |
| 5652 | .block_erase = erase_chip_stm50flw0x0x, |
| 5653 | } |
| 5654 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5655 | .unlock = unlock_stm50flw0x0x, |
| 5656 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5657 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5658 | }, |
| 5659 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5660 | { |
| 5661 | .vendor = "ST", |
| 5662 | .name = "M50FW080", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5663 | .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5664 | .manufacture_id = ST_ID, |
| 5665 | .model_id = ST_M50FW080, |
| 5666 | .total_size = 1024, |
| 5667 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5668 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5669 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5670 | .probe = probe_82802ab, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 5671 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5672 | .block_erasers = |
| 5673 | { |
| 5674 | { |
| 5675 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5676 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5677 | }, { |
| 5678 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5679 | .block_erase = erase_chip_stm50flw0x0x, |
| 5680 | } |
| 5681 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5682 | .unlock = unlock_stm50flw0x0x, |
| 5683 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5684 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5685 | }, |
| 5686 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5687 | { |
| 5688 | .vendor = "ST", |
| 5689 | .name = "M50LPW116", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5690 | .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5691 | .manufacture_id = ST_ID, |
| 5692 | .model_id = ST_M50LPW116, |
| 5693 | .total_size = 2048, |
| 5694 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5695 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5696 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5697 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5698 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5699 | .block_erasers = |
| 5700 | { |
| 5701 | { |
| 5702 | .eraseblocks = { |
| 5703 | {4 * 1024, 16}, |
| 5704 | {64 * 1024, 30}, |
| 5705 | {32 * 1024, 1}, |
| 5706 | {8 * 1024, 2}, |
| 5707 | {16 * 1024, 1}, |
| 5708 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5709 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5710 | }, { |
| 5711 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5712 | .block_erase = erase_chip_stm50flw0x0x, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5713 | } |
| 5714 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5715 | .unlock = unlock_stm50flw0x0x, |
| 5716 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5717 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5718 | }, |
| 5719 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5720 | { |
| 5721 | .vendor = "SyncMOS", |
| 5722 | .name = "S29C31004T", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5723 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5724 | .manufacture_id = SYNCMOS_ID, |
| 5725 | .model_id = S29C31004T, |
| 5726 | .total_size = 512, |
| 5727 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5728 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5729 | .tested = TEST_UNTESTED, |
| 5730 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5731 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5732 | .block_erasers = |
| 5733 | { |
| 5734 | { |
| 5735 | .eraseblocks = { {1 * 1024, 512} }, |
| 5736 | .block_erase = erase_sector_jedec, |
| 5737 | }, { |
| 5738 | .eraseblocks = { {512 * 1024, 1} }, |
| 5739 | .block_erase = erase_chip_block_jedec, |
| 5740 | }, |
| 5741 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5742 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5743 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5744 | }, |
| 5745 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5746 | { |
| 5747 | .vendor = "SyncMOS", |
| 5748 | .name = "S29C51001T", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5749 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5750 | .manufacture_id = SYNCMOS_ID, |
| 5751 | .model_id = S29C51001T, |
| 5752 | .total_size = 128, |
| 5753 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5754 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5755 | .tested = TEST_UNTESTED, |
| 5756 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5757 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5758 | .block_erasers = |
| 5759 | { |
| 5760 | { |
| 5761 | .eraseblocks = { {512, 256} }, |
| 5762 | .block_erase = erase_sector_jedec, |
| 5763 | }, { |
| 5764 | .eraseblocks = { {128 * 1024, 1} }, |
| 5765 | .block_erase = erase_chip_block_jedec, |
| 5766 | }, |
| 5767 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5768 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5769 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5770 | }, |
| 5771 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5772 | { |
| 5773 | .vendor = "SyncMOS", |
| 5774 | .name = "S29C51002T", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5775 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5776 | .manufacture_id = SYNCMOS_ID, |
| 5777 | .model_id = S29C51002T, |
| 5778 | .total_size = 256, |
| 5779 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5780 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 6093969 | 2010-03-17 00:05:59 +0000 | [diff] [blame] | 5781 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5782 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5783 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5784 | .block_erasers = |
| 5785 | { |
| 5786 | { |
| 5787 | .eraseblocks = { {512, 512} }, |
| 5788 | .block_erase = erase_sector_jedec, |
| 5789 | }, { |
| 5790 | .eraseblocks = { {256 * 1024, 1} }, |
| 5791 | .block_erase = erase_chip_block_jedec, |
| 5792 | }, |
| 5793 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5794 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5795 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5796 | }, |
| 5797 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5798 | { |
| 5799 | .vendor = "SyncMOS", |
| 5800 | .name = "S29C51004T", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5801 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5802 | .manufacture_id = SYNCMOS_ID, |
| 5803 | .model_id = S29C51004T, |
| 5804 | .total_size = 512, |
| 5805 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5806 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5807 | .tested = TEST_UNTESTED, |
| 5808 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5809 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5810 | .block_erasers = |
| 5811 | { |
| 5812 | { |
Sean Nelson | 012a31e | 2010-01-19 20:23:26 +0000 | [diff] [blame] | 5813 | .eraseblocks = { {1 * 1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5814 | .block_erase = erase_sector_jedec, |
| 5815 | }, { |
| 5816 | .eraseblocks = { {512 * 1024, 1} }, |
| 5817 | .block_erase = erase_chip_block_jedec, |
| 5818 | }, |
| 5819 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5820 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5821 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5822 | }, |
| 5823 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5824 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 5825 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 5826 | .name = "TMS29F002RB", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5827 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 5828 | .manufacture_id = TI_OLD_ID, |
| 5829 | .model_id = TI_TMS29F002RB, |
| 5830 | .total_size = 256, |
| 5831 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5832 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 5833 | .tested = TEST_UNTESTED, |
| 5834 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5835 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5836 | .block_erasers = |
| 5837 | { |
| 5838 | { |
| 5839 | .eraseblocks = { |
| 5840 | {16 * 1024, 1}, |
| 5841 | {8 * 1024, 2}, |
| 5842 | {32 * 1024, 1}, |
| 5843 | {64 * 1024, 3}, |
| 5844 | }, |
| 5845 | .block_erase = erase_sector_jedec, |
| 5846 | }, { |
| 5847 | .eraseblocks = { {256 * 1024, 1} }, |
| 5848 | .block_erase = erase_chip_block_jedec, |
| 5849 | }, |
| 5850 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5851 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 5852 | .read = read_memmapped, |
| 5853 | }, |
| 5854 | |
| 5855 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 5856 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 5857 | .name = "TMS29F002RT", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 5858 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 5859 | .manufacture_id = TI_OLD_ID, |
| 5860 | .model_id = TI_TMS29F002RT, |
| 5861 | .total_size = 256, |
| 5862 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5863 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 5864 | .tested = TEST_UNTESTED, |
| 5865 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5866 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 5867 | .block_erasers = |
| 5868 | { |
| 5869 | { |
| 5870 | .eraseblocks = { |
| 5871 | {64 * 1024, 3}, |
| 5872 | {32 * 1024, 1}, |
| 5873 | {8 * 1024, 2}, |
| 5874 | {16 * 1024, 1}, |
| 5875 | }, |
| 5876 | .block_erase = erase_sector_jedec, |
| 5877 | }, { |
| 5878 | .eraseblocks = { {256 * 1024, 1} }, |
| 5879 | .block_erase = erase_chip_block_jedec, |
| 5880 | }, |
| 5881 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5882 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 5883 | .read = read_memmapped, |
| 5884 | }, |
| 5885 | |
| 5886 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5887 | .vendor = "Winbond", |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 5888 | .name = "W25Q80", |
| 5889 | .bustype = CHIP_BUSTYPE_SPI, |
| 5890 | .manufacture_id = WINBOND_NEX_ID, |
| 5891 | .model_id = W_25Q80, |
| 5892 | .total_size = 1024, |
| 5893 | .page_size = 256, |
| 5894 | .tested = TEST_UNTESTED, |
| 5895 | .probe = probe_spi_rdid, |
| 5896 | .probe_timing = TIMING_ZERO, |
| 5897 | .block_erasers = |
| 5898 | { |
| 5899 | { |
| 5900 | .eraseblocks = { {4 * 1024, 256} }, |
| 5901 | .block_erase = spi_block_erase_20, |
| 5902 | }, { |
| 5903 | .eraseblocks = { {32 * 1024, 32} }, |
| 5904 | .block_erase = spi_block_erase_52, |
| 5905 | }, { |
| 5906 | .eraseblocks = { {64 * 1024, 16} }, |
| 5907 | .block_erase = spi_block_erase_d8, |
| 5908 | }, { |
| 5909 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5910 | .block_erase = spi_block_erase_60, |
| 5911 | }, { |
| 5912 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5913 | .block_erase = spi_block_erase_c7, |
| 5914 | } |
| 5915 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5916 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 5917 | .write = spi_chip_write_256, |
| 5918 | .read = spi_chip_read, |
| 5919 | }, |
| 5920 | |
| 5921 | { |
| 5922 | .vendor = "Winbond", |
| 5923 | .name = "W25Q16", |
| 5924 | .bustype = CHIP_BUSTYPE_SPI, |
| 5925 | .manufacture_id = WINBOND_NEX_ID, |
| 5926 | .model_id = W_25Q16, |
| 5927 | .total_size = 2048, |
| 5928 | .page_size = 256, |
| 5929 | .tested = TEST_UNTESTED, |
| 5930 | .probe = probe_spi_rdid, |
| 5931 | .probe_timing = TIMING_ZERO, |
| 5932 | .block_erasers = |
| 5933 | { |
| 5934 | { |
| 5935 | .eraseblocks = { {4 * 1024, 512} }, |
| 5936 | .block_erase = spi_block_erase_20, |
| 5937 | }, { |
| 5938 | .eraseblocks = { {32 * 1024, 64} }, |
| 5939 | .block_erase = spi_block_erase_52, |
| 5940 | }, { |
| 5941 | .eraseblocks = { {64 * 1024, 32} }, |
| 5942 | .block_erase = spi_block_erase_d8, |
| 5943 | }, { |
| 5944 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5945 | .block_erase = spi_block_erase_60, |
| 5946 | }, { |
| 5947 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5948 | .block_erase = spi_block_erase_c7, |
| 5949 | } |
| 5950 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5951 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 5952 | .write = spi_chip_write_256, |
| 5953 | .read = spi_chip_read, |
| 5954 | }, |
| 5955 | |
| 5956 | { |
| 5957 | .vendor = "Winbond", |
| 5958 | .name = "W25Q32", |
| 5959 | .bustype = CHIP_BUSTYPE_SPI, |
| 5960 | .manufacture_id = WINBOND_NEX_ID, |
| 5961 | .model_id = W_25Q32, |
| 5962 | .total_size = 4096, |
| 5963 | .page_size = 256, |
| 5964 | .tested = TEST_UNTESTED, |
| 5965 | .probe = probe_spi_rdid, |
| 5966 | .probe_timing = TIMING_ZERO, |
| 5967 | .block_erasers = |
| 5968 | { |
| 5969 | { |
| 5970 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5971 | .block_erase = spi_block_erase_20, |
| 5972 | }, { |
| 5973 | .eraseblocks = { {32 * 1024, 128} }, |
| 5974 | .block_erase = spi_block_erase_52, |
| 5975 | }, { |
| 5976 | .eraseblocks = { {64 * 1024, 64} }, |
| 5977 | .block_erase = spi_block_erase_d8, |
| 5978 | }, { |
| 5979 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5980 | .block_erase = spi_block_erase_60, |
| 5981 | }, { |
| 5982 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5983 | .block_erase = spi_block_erase_c7, |
| 5984 | } |
| 5985 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5986 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 5987 | .write = spi_chip_write_256, |
| 5988 | .read = spi_chip_read, |
| 5989 | }, |
| 5990 | |
| 5991 | { |
| 5992 | .vendor = "Winbond", |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 5993 | .name = "W25Q64", |
| 5994 | .bustype = CHIP_BUSTYPE_SPI, |
| 5995 | .manufacture_id = WINBOND_NEX_ID, |
| 5996 | .model_id = W_25Q64, |
| 5997 | .total_size = 8192, |
| 5998 | .page_size = 256, |
| 5999 | .tested = TEST_OK_PRW, |
| 6000 | .probe = probe_spi_rdid, |
| 6001 | .probe_timing = TIMING_ZERO, |
| 6002 | .block_erasers = |
| 6003 | { |
| 6004 | { |
| 6005 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6006 | .block_erase = spi_block_erase_20, |
| 6007 | }, { |
| 6008 | .eraseblocks = { {32 * 1024, 256} }, |
| 6009 | .block_erase = spi_block_erase_52, |
| 6010 | }, { |
| 6011 | .eraseblocks = { {64 * 1024, 128} }, |
| 6012 | .block_erase = spi_block_erase_d8, |
| 6013 | }, { |
| 6014 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6015 | .block_erase = spi_block_erase_60, |
| 6016 | }, { |
| 6017 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6018 | .block_erase = spi_block_erase_c7, |
| 6019 | } |
| 6020 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6021 | .unlock = spi_disable_blockprotect, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 6022 | .write = spi_chip_write_256, |
| 6023 | .read = spi_chip_read, |
| 6024 | }, |
| 6025 | |
| 6026 | { |
| 6027 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6028 | .name = "W25x10", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 6029 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6030 | .manufacture_id = WINBOND_NEX_ID, |
| 6031 | .model_id = W_25X10, |
| 6032 | .total_size = 128, |
| 6033 | .page_size = 256, |
| 6034 | .tested = TEST_UNTESTED, |
| 6035 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6036 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6037 | .block_erasers = |
| 6038 | { |
| 6039 | { |
| 6040 | .eraseblocks = { {4 * 1024, 32} }, |
| 6041 | .block_erase = spi_block_erase_20, |
| 6042 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6043 | .eraseblocks = { {64 * 1024, 2} }, |
| 6044 | .block_erase = spi_block_erase_d8, |
| 6045 | }, { |
| 6046 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6047 | .block_erase = spi_block_erase_c7, |
| 6048 | } |
| 6049 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6050 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6051 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6052 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6053 | }, |
| 6054 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6055 | { |
| 6056 | .vendor = "Winbond", |
| 6057 | .name = "W25x20", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 6058 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6059 | .manufacture_id = WINBOND_NEX_ID, |
| 6060 | .model_id = W_25X20, |
| 6061 | .total_size = 256, |
| 6062 | .page_size = 256, |
| 6063 | .tested = TEST_UNTESTED, |
| 6064 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6065 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6066 | .block_erasers = |
| 6067 | { |
| 6068 | { |
| 6069 | .eraseblocks = { {4 * 1024, 64} }, |
| 6070 | .block_erase = spi_block_erase_20, |
| 6071 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6072 | .eraseblocks = { {64 * 1024, 4} }, |
| 6073 | .block_erase = spi_block_erase_d8, |
| 6074 | }, { |
| 6075 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6076 | .block_erase = spi_block_erase_c7, |
| 6077 | } |
| 6078 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6079 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6080 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6081 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6082 | }, |
| 6083 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6084 | { |
| 6085 | .vendor = "Winbond", |
| 6086 | .name = "W25x40", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 6087 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6088 | .manufacture_id = WINBOND_NEX_ID, |
| 6089 | .model_id = W_25X40, |
| 6090 | .total_size = 512, |
| 6091 | .page_size = 256, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6092 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6093 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6094 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6095 | .block_erasers = |
| 6096 | { |
| 6097 | { |
| 6098 | .eraseblocks = { {4 * 1024, 128} }, |
| 6099 | .block_erase = spi_block_erase_20, |
| 6100 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6101 | .eraseblocks = { {64 * 1024, 8} }, |
| 6102 | .block_erase = spi_block_erase_d8, |
| 6103 | }, { |
| 6104 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6105 | .block_erase = spi_block_erase_c7, |
| 6106 | } |
| 6107 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6108 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6109 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6110 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6111 | }, |
| 6112 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6113 | { |
| 6114 | .vendor = "Winbond", |
| 6115 | .name = "W25x80", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 6116 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6117 | .manufacture_id = WINBOND_NEX_ID, |
| 6118 | .model_id = W_25X80, |
| 6119 | .total_size = 1024, |
| 6120 | .page_size = 256, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6121 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6122 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6123 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6124 | .block_erasers = |
| 6125 | { |
| 6126 | { |
| 6127 | .eraseblocks = { {4 * 1024, 256} }, |
| 6128 | .block_erase = spi_block_erase_20, |
| 6129 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6130 | .eraseblocks = { {64 * 1024, 16} }, |
| 6131 | .block_erase = spi_block_erase_d8, |
| 6132 | }, { |
| 6133 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6134 | .block_erase = spi_block_erase_c7, |
| 6135 | } |
| 6136 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6137 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6138 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6139 | .read = spi_chip_read, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6140 | }, |
| 6141 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6142 | { |
| 6143 | .vendor = "Winbond", |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 6144 | .name = "W25x16", |
| 6145 | .bustype = CHIP_BUSTYPE_SPI, |
| 6146 | .manufacture_id = WINBOND_NEX_ID, |
| 6147 | .model_id = W_25X16, |
| 6148 | .total_size = 2048, |
| 6149 | .page_size = 256, |
| 6150 | .tested = TEST_OK_PR, |
| 6151 | .probe = probe_spi_rdid, |
| 6152 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6153 | .block_erasers = |
| 6154 | { |
| 6155 | { |
| 6156 | .eraseblocks = { {4 * 1024, 512} }, |
| 6157 | .block_erase = spi_block_erase_20, |
| 6158 | }, { |
| 6159 | .eraseblocks = { {32 * 1024, 64} }, |
| 6160 | .block_erase = spi_block_erase_52, |
| 6161 | }, { |
| 6162 | .eraseblocks = { {64 * 1024, 32} }, |
| 6163 | .block_erase = spi_block_erase_d8, |
| 6164 | }, { |
| 6165 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6166 | .block_erase = spi_block_erase_60, |
| 6167 | }, { |
| 6168 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6169 | .block_erase = spi_block_erase_c7, |
| 6170 | } |
| 6171 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6172 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 6173 | .write = spi_chip_write_256, |
| 6174 | .read = spi_chip_read, |
| 6175 | }, |
| 6176 | |
| 6177 | { |
| 6178 | .vendor = "Winbond", |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 6179 | .name = "W25x32", |
| 6180 | .bustype = CHIP_BUSTYPE_SPI, |
| 6181 | .manufacture_id = WINBOND_NEX_ID, |
| 6182 | .model_id = W_25X32, |
| 6183 | .total_size = 4096, |
| 6184 | .page_size = 256, |
| 6185 | .tested = TEST_OK_PROBE, |
| 6186 | .probe = probe_spi_rdid, |
| 6187 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6188 | .block_erasers = |
| 6189 | { |
| 6190 | { |
| 6191 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6192 | .block_erase = spi_block_erase_20, |
| 6193 | }, { |
| 6194 | .eraseblocks = { {32 * 1024, 128} }, |
| 6195 | .block_erase = spi_block_erase_52, |
| 6196 | }, { |
| 6197 | .eraseblocks = { {64 * 1024, 64} }, |
| 6198 | .block_erase = spi_block_erase_d8, |
| 6199 | }, { |
| 6200 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6201 | .block_erase = spi_block_erase_60, |
| 6202 | }, { |
| 6203 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6204 | .block_erase = spi_block_erase_c7, |
| 6205 | } |
| 6206 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6207 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 6208 | .write = spi_chip_write_256, |
| 6209 | .read = spi_chip_read, |
| 6210 | }, |
| 6211 | |
| 6212 | { |
| 6213 | .vendor = "Winbond", |
| 6214 | .name = "W25x64", |
| 6215 | .bustype = CHIP_BUSTYPE_SPI, |
| 6216 | .manufacture_id = WINBOND_NEX_ID, |
| 6217 | .model_id = W_25X64, |
| 6218 | .total_size = 8192, |
| 6219 | .page_size = 256, |
| 6220 | .tested = TEST_UNTESTED, |
| 6221 | .probe = probe_spi_rdid, |
| 6222 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6223 | .block_erasers = |
| 6224 | { |
| 6225 | { |
| 6226 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6227 | .block_erase = spi_block_erase_20, |
| 6228 | }, { |
| 6229 | .eraseblocks = { {32 * 1024, 256} }, |
| 6230 | .block_erase = spi_block_erase_52, |
| 6231 | }, { |
| 6232 | .eraseblocks = { {64 * 1024, 128} }, |
| 6233 | .block_erase = spi_block_erase_d8, |
| 6234 | }, { |
| 6235 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6236 | .block_erase = spi_block_erase_60, |
| 6237 | }, { |
| 6238 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6239 | .block_erase = spi_block_erase_c7, |
| 6240 | } |
| 6241 | }, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6242 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 6243 | .write = spi_chip_write_256, |
| 6244 | .read = spi_chip_read, |
| 6245 | }, |
| 6246 | |
| 6247 | { |
| 6248 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6249 | .name = "W29C011", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6250 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6251 | .manufacture_id = WINBOND_ID, |
| 6252 | .model_id = W_29C011, |
| 6253 | .total_size = 128, |
| 6254 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6255 | .feature_bits = FEATURE_LONG_RESET, |
Uwe Hermann | 6093969 | 2010-03-17 00:05:59 +0000 | [diff] [blame] | 6256 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6257 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6258 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6259 | .block_erasers = |
| 6260 | { |
| 6261 | { |
| 6262 | .eraseblocks = { {128 * 1024, 1} }, |
| 6263 | .block_erase = erase_chip_block_jedec, |
| 6264 | } |
| 6265 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6266 | .write = write_jedec, |
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 = "Winbond", |
| 6272 | .name = "W29C020C", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 6273 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6274 | .manufacture_id = WINBOND_ID, |
| 6275 | .model_id = W_29C020C, |
| 6276 | .total_size = 256, |
| 6277 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6278 | .feature_bits = FEATURE_LONG_RESET, |
Uwe Hermann | ea5425b | 2010-05-30 17:00:19 +0000 | [diff] [blame] | 6279 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6280 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 6281 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6282 | .block_erasers = |
| 6283 | { |
| 6284 | { |
| 6285 | .eraseblocks = { {256 * 1024, 1} }, |
| 6286 | .block_erase = erase_chip_block_jedec, |
| 6287 | } |
| 6288 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6289 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6290 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6291 | }, |
| 6292 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6293 | { |
| 6294 | .vendor = "Winbond", |
| 6295 | .name = "W29C040P", |
Urja Rannikko | 161b885 | 2009-06-05 08:47:37 +0000 | [diff] [blame] | 6296 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6297 | .manufacture_id = WINBOND_ID, |
| 6298 | .model_id = W_29C040P, |
| 6299 | .total_size = 512, |
| 6300 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6301 | .feature_bits = FEATURE_LONG_RESET, |
| 6302 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6303 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 6304 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6305 | .block_erasers = |
| 6306 | { |
| 6307 | { |
| 6308 | .eraseblocks = { {512 * 1024, 1} }, |
| 6309 | .block_erase = erase_chip_block_jedec, |
| 6310 | } |
| 6311 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6312 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6313 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6314 | }, |
| 6315 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6316 | { |
| 6317 | .vendor = "Winbond", |
| 6318 | .name = "W29EE011", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6319 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6320 | .manufacture_id = WINBOND_ID, |
| 6321 | .model_id = W_29C011, |
| 6322 | .total_size = 128, |
| 6323 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6324 | .feature_bits = FEATURE_LONG_RESET, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6325 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6326 | .probe = probe_w29ee011, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 6327 | .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (w29ee011.c) */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6328 | .block_erasers = |
| 6329 | { |
| 6330 | { |
| 6331 | .eraseblocks = { {128 * 1024, 1} }, |
| 6332 | .block_erase = erase_chip_block_jedec, |
| 6333 | } |
| 6334 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6335 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6336 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6337 | }, |
| 6338 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6339 | { |
| 6340 | .vendor = "Winbond", |
| 6341 | .name = "W39V040A", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 6342 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6343 | .manufacture_id = WINBOND_ID, |
| 6344 | .model_id = W_39V040A, |
| 6345 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 6346 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6347 | .feature_bits = FEATURE_EITHER_RESET, |
Michael Karcher | 3355f06 | 2010-03-24 22:56:23 +0000 | [diff] [blame] | 6348 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6349 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 6350 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6351 | .block_erasers = |
| 6352 | { |
| 6353 | { |
| 6354 | .eraseblocks = { {64 * 1024, 8} }, |
| 6355 | .block_erase = erase_sector_jedec, |
| 6356 | }, { |
| 6357 | .eraseblocks = { {512 * 1024, 1} }, |
| 6358 | .block_erase = erase_chip_block_jedec, |
| 6359 | } |
| 6360 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6361 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6362 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6363 | }, |
| 6364 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6365 | { |
| 6366 | .vendor = "Winbond", |
| 6367 | .name = "W39V040B", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 6368 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6369 | .manufacture_id = WINBOND_ID, |
| 6370 | .model_id = W_39V040B, |
| 6371 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 6372 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6373 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 8d341b5 | 2010-05-25 23:27:44 +0000 | [diff] [blame] | 6374 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6375 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 6376 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6377 | .block_erasers = |
| 6378 | { |
| 6379 | { |
| 6380 | .eraseblocks = { {64 * 1024, 8} }, |
| 6381 | .block_erase = erase_sector_jedec, |
| 6382 | }, { |
| 6383 | .eraseblocks = { {512 * 1024, 1} }, |
| 6384 | .block_erase = erase_chip_block_jedec, |
| 6385 | } |
| 6386 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6387 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6388 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6389 | }, |
| 6390 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6391 | { |
| 6392 | .vendor = "Winbond", |
| 6393 | .name = "W39V040C", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 6394 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6395 | .manufacture_id = WINBOND_ID, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 6396 | .model_id = W_39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6397 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 6398 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6399 | .feature_bits = FEATURE_EITHER_RESET, |
| 6400 | .tested = TEST_UNTESTED, |
| 6401 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 6402 | .probe_timing = TIMING_FIXME, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6403 | .block_erasers = |
| 6404 | { |
| 6405 | { |
| 6406 | .eraseblocks = { {64 * 1024, 8} }, |
| 6407 | .block_erase = erase_sector_jedec, |
| 6408 | }, { |
| 6409 | .eraseblocks = { {512 * 1024, 1} }, |
| 6410 | .block_erase = erase_chip_block_jedec, |
| 6411 | } |
| 6412 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 6413 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6414 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6415 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6416 | }, |
| 6417 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6418 | { |
| 6419 | .vendor = "Winbond", |
| 6420 | .name = "W39V040FA", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 6421 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6422 | .manufacture_id = WINBOND_ID, |
| 6423 | .model_id = W_39V040FA, |
| 6424 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 6425 | .page_size = 64 * 1024, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 6426 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Uwe Hermann | 4178760 | 2010-05-30 17:50:16 +0000 | [diff] [blame] | 6427 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6428 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 6429 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6430 | .block_erasers = |
| 6431 | { |
| 6432 | { |
| 6433 | .eraseblocks = { {4 * 1024, 128} }, |
| 6434 | .block_erase = erase_block_jedec, |
| 6435 | }, { |
| 6436 | .eraseblocks = { {64 * 1024, 8} }, |
| 6437 | .block_erase = erase_sector_jedec, |
| 6438 | }, { |
| 6439 | .eraseblocks = { {512 * 1024, 1} }, |
| 6440 | .block_erase = erase_chip_block_jedec, |
| 6441 | } |
| 6442 | }, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 6443 | .printlock = printlock_sst_fwhub, |
| 6444 | .unlock = unlock_sst_fwhub, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6445 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6446 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6447 | }, |
| 6448 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6449 | { |
| 6450 | .vendor = "Winbond", |
| 6451 | .name = "W39V080A", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 6452 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6453 | .manufacture_id = WINBOND_ID, |
| 6454 | .model_id = W_39V080A, |
| 6455 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 6456 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6457 | .feature_bits = FEATURE_EITHER_RESET, |
| 6458 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6459 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 6460 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6461 | .block_erasers = |
| 6462 | { |
| 6463 | { |
| 6464 | .eraseblocks = { {64 * 1024, 16} }, |
| 6465 | .block_erase = erase_sector_jedec, |
| 6466 | }, { |
| 6467 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6468 | .block_erase = erase_chip_block_jedec, |
| 6469 | } |
| 6470 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6471 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6472 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6473 | }, |
| 6474 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6475 | { |
| 6476 | .vendor = "Winbond", |
| 6477 | .name = "W49F002U", |
Urja Rannikko | 038a312 | 2009-06-28 19:19:25 +0000 | [diff] [blame] | 6478 | .bustype = CHIP_BUSTYPE_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6479 | .manufacture_id = WINBOND_ID, |
| 6480 | .model_id = W_49F002U, |
| 6481 | .total_size = 256, |
| 6482 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6483 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 6093969 | 2010-03-17 00:05:59 +0000 | [diff] [blame] | 6484 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6485 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6486 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6487 | .block_erasers = |
| 6488 | { |
| 6489 | { |
| 6490 | .eraseblocks = { |
| 6491 | {128 * 1024, 1}, |
| 6492 | {96 * 1024, 1}, |
| 6493 | {8 * 1024, 2}, |
| 6494 | {16 * 1024, 1}, |
| 6495 | }, |
| 6496 | .block_erase = erase_sector_jedec, |
| 6497 | }, { |
| 6498 | .eraseblocks = { {256 * 1024, 1} }, |
| 6499 | .block_erase = erase_chip_block_jedec, |
| 6500 | } |
| 6501 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6502 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6503 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6504 | }, |
| 6505 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6506 | { |
| 6507 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame^] | 6508 | .name = "W49F020", |
| 6509 | .bustype = CHIP_BUSTYPE_PARALLEL, |
| 6510 | .manufacture_id = WINBOND_ID, |
| 6511 | .model_id = W_49F020, |
| 6512 | .total_size = 256, |
| 6513 | .page_size = 128, |
| 6514 | .feature_bits = FEATURE_EITHER_RESET, |
| 6515 | .tested = TEST_OK_PROBE, |
| 6516 | .probe = probe_jedec, |
| 6517 | .probe_timing = 10, |
| 6518 | .block_erasers = |
| 6519 | { |
| 6520 | { |
| 6521 | .eraseblocks = { {256 * 1024, 1} }, |
| 6522 | .block_erase = erase_chip_block_jedec, |
| 6523 | } |
| 6524 | }, |
| 6525 | .write = write_jedec_1, |
| 6526 | .read = read_memmapped, |
| 6527 | }, |
| 6528 | |
| 6529 | { |
| 6530 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6531 | .name = "W49V002A", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 6532 | .bustype = CHIP_BUSTYPE_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6533 | .manufacture_id = WINBOND_ID, |
| 6534 | .model_id = W_49V002A, |
| 6535 | .total_size = 256, |
| 6536 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6537 | .feature_bits = FEATURE_EITHER_RESET, |
| 6538 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6539 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 6540 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6541 | .block_erasers = |
| 6542 | { |
| 6543 | { |
| 6544 | .eraseblocks = { |
| 6545 | {64 * 1024, 3}, |
| 6546 | {32 * 1024, 1}, |
| 6547 | {8 * 1024, 2}, |
| 6548 | {16 * 1024, 1}, |
| 6549 | }, |
| 6550 | .block_erase = erase_sector_jedec, |
| 6551 | }, { |
| 6552 | .eraseblocks = { {256 * 1024, 1} }, |
| 6553 | .block_erase = erase_chip_block_jedec, |
| 6554 | } |
| 6555 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6556 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6557 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6558 | }, |
| 6559 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6560 | { |
| 6561 | .vendor = "Winbond", |
| 6562 | .name = "W49V002FA", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 6563 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6564 | .manufacture_id = WINBOND_ID, |
| 6565 | .model_id = W_49V002FA, |
| 6566 | .total_size = 256, |
| 6567 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6568 | .feature_bits = FEATURE_EITHER_RESET, |
Michael Karcher | b90c221 | 2010-03-24 22:56:14 +0000 | [diff] [blame] | 6569 | .tested = TEST_OK_PRW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6570 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6571 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6572 | .block_erasers = |
| 6573 | { |
| 6574 | { |
| 6575 | .eraseblocks = { |
| 6576 | {64 * 1024, 3}, |
| 6577 | {32 * 1024, 1}, |
| 6578 | {8 * 1024, 2}, |
| 6579 | {16 * 1024, 1}, |
| 6580 | }, |
| 6581 | .block_erase = erase_sector_jedec, |
| 6582 | }, { |
| 6583 | .eraseblocks = { {256 * 1024, 1} }, |
| 6584 | .block_erase = erase_chip_block_jedec, |
| 6585 | } |
| 6586 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6587 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6588 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6589 | }, |
| 6590 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6591 | { |
| 6592 | .vendor = "Winbond", |
| 6593 | .name = "W39V080FA", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 6594 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6595 | .manufacture_id = WINBOND_ID, |
| 6596 | .model_id = W_39V080FA, |
| 6597 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 6598 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6599 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Uwe Hermann | ea5425b | 2010-05-30 17:00:19 +0000 | [diff] [blame] | 6600 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 6601 | .probe = probe_jedec, |
| 6602 | .probe_timing = TIMING_FIXME, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6603 | .block_erasers = |
| 6604 | { |
| 6605 | { |
| 6606 | .eraseblocks = { {64 * 1024, 16}, }, |
| 6607 | .block_erase = erase_sector_jedec, |
| 6608 | }, { |
| 6609 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6610 | .block_erase = erase_chip_block_jedec, |
| 6611 | } |
| 6612 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 6613 | .unlock = unlock_winbond_fwhub, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6614 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6615 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6616 | }, |
| 6617 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6618 | { |
| 6619 | .vendor = "Winbond", |
| 6620 | .name = "W39V080FA (dual mode)", |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 6621 | .bustype = CHIP_BUSTYPE_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6622 | .manufacture_id = WINBOND_ID, |
| 6623 | .model_id = W_39V080FA_DM, |
| 6624 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 6625 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6626 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6627 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 6628 | .probe = probe_jedec, |
| 6629 | .probe_timing = TIMING_FIXME, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 6630 | .block_erasers = |
| 6631 | { |
| 6632 | { |
| 6633 | .eraseblocks = { {64 * 1024, 8}, }, |
| 6634 | .block_erase = erase_sector_jedec, |
| 6635 | }, { |
| 6636 | .eraseblocks = { {512 * 1024, 1} }, |
| 6637 | .block_erase = erase_chip_block_jedec, |
| 6638 | } |
| 6639 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 6640 | .unlock = unlock_winbond_fwhub, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6641 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6642 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6643 | }, |
| 6644 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6645 | { |
| 6646 | .vendor = "Atmel", |
| 6647 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 6648 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6649 | .manufacture_id = ATMEL_ID, |
| 6650 | .model_id = GENERIC_DEVICE_ID, |
| 6651 | .total_size = 0, |
| 6652 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 6653 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6654 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6655 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6656 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6657 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6658 | }, |
| 6659 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6660 | { |
| 6661 | .vendor = "EON", |
| 6662 | .name = "unknown EON SPI chip", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 6663 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6664 | .manufacture_id = EON_ID_NOPREFIX, |
| 6665 | .model_id = GENERIC_DEVICE_ID, |
| 6666 | .total_size = 0, |
| 6667 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 6668 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6669 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6670 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6671 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6672 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6673 | }, |
| 6674 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6675 | { |
| 6676 | .vendor = "Macronix", |
| 6677 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 6678 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6679 | .manufacture_id = MX_ID, |
| 6680 | .model_id = GENERIC_DEVICE_ID, |
| 6681 | .total_size = 0, |
| 6682 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 6683 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6684 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6685 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6686 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6687 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6688 | }, |
| 6689 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6690 | { |
| 6691 | .vendor = "PMC", |
| 6692 | .name = "unknown PMC SPI chip", |
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 = PMC_ID, |
| 6695 | .model_id = GENERIC_DEVICE_ID, |
| 6696 | .total_size = 0, |
| 6697 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 6698 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6699 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6700 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6701 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6702 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6703 | }, |
| 6704 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6705 | { |
| 6706 | .vendor = "SST", |
| 6707 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 6708 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6709 | .manufacture_id = SST_ID, |
| 6710 | .model_id = GENERIC_DEVICE_ID, |
| 6711 | .total_size = 0, |
| 6712 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 6713 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6714 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6715 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6716 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6717 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6718 | }, |
| 6719 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6720 | { |
| 6721 | .vendor = "ST", |
| 6722 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1dfe0ff | 2009-05-31 17:57:34 +0000 | [diff] [blame] | 6723 | .bustype = CHIP_BUSTYPE_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6724 | .manufacture_id = ST_ID, |
| 6725 | .model_id = GENERIC_DEVICE_ID, |
| 6726 | .total_size = 0, |
| 6727 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 6728 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6729 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6730 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6731 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6732 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6733 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 6734 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 6735 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 6736 | .vendor = "Sanyo", |
| 6737 | .name = "unknown Sanyo SPI chip", |
| 6738 | .bustype = CHIP_BUSTYPE_SPI, |
| 6739 | .manufacture_id = SANYO_ID, |
| 6740 | .model_id = GENERIC_DEVICE_ID, |
| 6741 | .total_size = 0, |
| 6742 | .page_size = 256, |
| 6743 | .tested = TEST_BAD_PREW, |
| 6744 | .probe = probe_spi_rdid, |
| 6745 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 6746 | .write = NULL, |
| 6747 | .read = NULL, |
| 6748 | }, |
| 6749 | |
| 6750 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 6751 | .vendor = "Generic", |
| 6752 | .name = "unknown SPI chip (RDID)", |
| 6753 | .bustype = CHIP_BUSTYPE_SPI, |
| 6754 | .manufacture_id = GENERIC_MANUF_ID, |
| 6755 | .model_id = GENERIC_DEVICE_ID, |
| 6756 | .total_size = 0, |
| 6757 | .page_size = 256, |
| 6758 | .tested = TEST_BAD_PREW, |
| 6759 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 6760 | .write = NULL, |
| 6761 | }, |
| 6762 | { |
| 6763 | .vendor = "Generic", |
| 6764 | .name = "unknown SPI chip (REMS)", |
| 6765 | .bustype = CHIP_BUSTYPE_SPI, |
| 6766 | .manufacture_id = GENERIC_MANUF_ID, |
| 6767 | .model_id = GENERIC_DEVICE_ID, |
| 6768 | .total_size = 0, |
| 6769 | .page_size = 256, |
| 6770 | .tested = TEST_BAD_PREW, |
| 6771 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 6772 | .write = NULL, |
| 6773 | }, |
| 6774 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6775 | { NULL } |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 6776 | }; |