Debian Codegraph @

flashchips/nantronics.c

raw
1 /*
2 * This file is part of the flashrom project.
3 *
4 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
6 * Copyright (C) 2005-2008 coresystems GmbH <[email protected]>
7 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
8 * Copyright (C) 2009 Sean Nelson <[email protected]>
9 *
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.
14 *
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.
19 */
20
21 {
22 .vendor = "Nantronics",
23 .name = "N25S10",
24 .bustype = BUS_SPI,
25 .manufacture_id = NANTRONICS_ID_NOPREFIX,
26 .model_id = NANTRONICS_N25S10,
27 .total_size = 128,
28 .page_size = 256,
29 .feature_bits = FEATURE_WRSR_WREN,
30 .tested = TEST_UNTESTED,
31 .probe = PROBE_SPI_RDID,
32 .probe_timing = TIMING_ZERO,
33 .block_erasers =
34 {
35 {
36 .eraseblocks = { {4 * 1024, 32} },
37 .block_erase = SPI_BLOCK_ERASE_20,
38 }, {
39 .eraseblocks = { {4 * 1024, 32} },
40 .block_erase = SPI_BLOCK_ERASE_D7,
41 }, {
42 .eraseblocks = { {32 * 1024, 4} },
43 .block_erase = SPI_BLOCK_ERASE_52,
44 }, {
45 .eraseblocks = { {64 * 1024, 2} },
46 .block_erase = SPI_BLOCK_ERASE_D8,
47 }, {
48 .eraseblocks = { {128 * 1024, 1} },
49 .block_erase = SPI_BLOCK_ERASE_60,
50 }, {
51 .eraseblocks = { {128 * 1024, 1} },
52 .block_erase = SPI_BLOCK_ERASE_C7,
53 }
54 },
55 .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP3_SRWD,
56 .unlock = SPI_DISABLE_BLOCKPROTECT_BP3_SRWD,
57 .write = SPI_CHIP_WRITE256,
58 .read = SPI_CHIP_READ, /* Fast read (0x0B), dual I/O read (0x3B) supported */
59 .voltage = {2700, 3600},
60 },
61
62 {
63 .vendor = "Nantronics",
64 .name = "N25S16",
65 .bustype = BUS_SPI,
66 .manufacture_id = NANTRONICS_ID_NOPREFIX,
67 .model_id = NANTRONICS_N25S16,
68 .total_size = 2048,
69 .page_size = 256,
70 .feature_bits = FEATURE_WRSR_WREN,
71 .tested = TEST_UNTESTED,
72 .probe = PROBE_SPI_RDID,
73 .probe_timing = TIMING_ZERO,
74 .block_erasers =
75 {
76 {
77 .eraseblocks = { {4 * 1024, 512} },
78 .block_erase = SPI_BLOCK_ERASE_20,
79 }, {
80 .eraseblocks = { {64 * 1024, 32} },
81 .block_erase = SPI_BLOCK_ERASE_D8,
82 }, {
83 .eraseblocks = { {2048 * 1024, 1} },
84 .block_erase = SPI_BLOCK_ERASE_60,
85 }, {
86 .eraseblocks = { {2048 * 1024, 1} },
87 .block_erase = SPI_BLOCK_ERASE_C7,
88 }
89 },
90 .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP3_SRWD,
91 .unlock = SPI_DISABLE_BLOCKPROTECT_BP3_SRWD,
92 .write = SPI_CHIP_WRITE256,
93 .read = SPI_CHIP_READ, /* Fast read (0x0B), dual I/O read (0x3B) supported */
94 .voltage = {2700, 3600},
95 },
96
97 {
98 .vendor = "Nantronics",
99 .name = "N25S20",
100 .bustype = BUS_SPI,
101 .manufacture_id = NANTRONICS_ID_NOPREFIX,
102 .model_id = NANTRONICS_N25S20,
103 .total_size = 256,
104 .page_size = 256,
105 .feature_bits = FEATURE_WRSR_WREN,
106 .tested = TEST_UNTESTED,
107 .probe = PROBE_SPI_RDID,
108 .probe_timing = TIMING_ZERO,
109 .block_erasers =
110 {
111 {
112 .eraseblocks = { {4 * 1024, 64} },
113 .block_erase = SPI_BLOCK_ERASE_20,
114 }, {
115 .eraseblocks = { {4 * 1024, 64} },
116 .block_erase = SPI_BLOCK_ERASE_D7,
117 }, {
118 .eraseblocks = { {32 * 1024, 8} },
119 .block_erase = SPI_BLOCK_ERASE_52,
120 }, {
121 .eraseblocks = { {64 * 1024, 4} },
122 .block_erase = SPI_BLOCK_ERASE_D8,
123 }, {
124 .eraseblocks = { {256 * 1024, 1} },
125 .block_erase = SPI_BLOCK_ERASE_60,
126 }, {
127 .eraseblocks = { {256 * 1024, 1} },
128 .block_erase = SPI_BLOCK_ERASE_C7,
129 }
130 },
131 .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP3_SRWD,
132 .unlock = SPI_DISABLE_BLOCKPROTECT_BP3_SRWD,
133 .write = SPI_CHIP_WRITE256,
134 .read = SPI_CHIP_READ, /* Fast read (0x0B), dual I/O read (0x3B) supported */
135 .voltage = {2700, 3600},
136 },
137
138 {
139 .vendor = "Nantronics",
140 .name = "N25S40",
141 .bustype = BUS_SPI,
142 .manufacture_id = NANTRONICS_ID_NOPREFIX,
143 .model_id = NANTRONICS_N25S40,
144 .total_size = 512,
145 .page_size = 256,
146 .feature_bits = FEATURE_WRSR_WREN,
147 .tested = TEST_UNTESTED,
148 .probe = PROBE_SPI_RDID,
149 .probe_timing = TIMING_ZERO,
150 .block_erasers =
151 {
152 {
153 .eraseblocks = { {4 * 1024, 128} },
154 .block_erase = SPI_BLOCK_ERASE_20,
155 }, {
156 .eraseblocks = { {4 * 1024, 128} },
157 .block_erase = SPI_BLOCK_ERASE_D7,
158 }, {
159 .eraseblocks = { {32 * 1024, 16} },
160 .block_erase = SPI_BLOCK_ERASE_52,
161 }, {
162 .eraseblocks = { {64 * 1024, 8} },
163 .block_erase = SPI_BLOCK_ERASE_D8,
164 }, {
165 .eraseblocks = { {512 * 1024, 1} },
166 .block_erase = SPI_BLOCK_ERASE_60,
167 }, {
168 .eraseblocks = { {512 * 1024, 1} },
169 .block_erase = SPI_BLOCK_ERASE_C7,
170 }
171 },
172 .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP3_SRWD,
173 .unlock = SPI_DISABLE_BLOCKPROTECT_BP3_SRWD,
174 .write = SPI_CHIP_WRITE256,
175 .read = SPI_CHIP_READ, /* Fast read (0x0B), dual I/O read (0x3B) supported */
176 .voltage = {2700, 3600},
177 },
178
179 {
180 .vendor = "Nantronics",
181 .name = "N25S80",
182 .bustype = BUS_SPI,
183 .manufacture_id = NANTRONICS_ID_NOPREFIX,
184 .model_id = NANTRONICS_N25S80,
185 .total_size = 1024,
186 .page_size = 256,
187 .feature_bits = FEATURE_WRSR_WREN,
188 .tested = TEST_UNTESTED,
189 .probe = PROBE_SPI_RDID,
190 .probe_timing = TIMING_ZERO,
191 .block_erasers =
192 {
193 {
194 .eraseblocks = { {4 * 1024, 256} },
195 .block_erase = SPI_BLOCK_ERASE_20,
196 }, {
197 .eraseblocks = { {32 * 1024, 32} },
198 .block_erase = SPI_BLOCK_ERASE_52,
199 }, {
200 .eraseblocks = { {64 * 1024, 16} },
201 .block_erase = SPI_BLOCK_ERASE_D8,
202 }, {
203 .eraseblocks = { {1024 * 1024, 1} },
204 .block_erase = SPI_BLOCK_ERASE_60,
205 }, {
206 .eraseblocks = { {1024 * 1024, 1} },
207 .block_erase = SPI_BLOCK_ERASE_C7,
208 }
209 },
210 .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP3_SRWD,
211 .unlock = SPI_DISABLE_BLOCKPROTECT_BP3_SRWD,
212 .write = SPI_CHIP_WRITE256,
213 .read = SPI_CHIP_READ, /* Fast read (0x0B), dual I/O read (0x3B) supported */
214 .voltage = {2700, 3600},
215 },