xref: /openbmc/u-boot/drivers/mtd/spi/spi-nor-ids.c (revision fabbeb33)
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  *
4  * Copyright (C) 2013 Jagannadha Sutradharudu Teki, Xilinx Inc.
5  * Copyright (C) 2016 Jagan Teki <jagan@openedev.com>
6  * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
7  */
8 
9 #include <common.h>
10 #include <spi.h>
11 #include <spi_flash.h>
12 
13 #include "sf_internal.h"
14 
15 /* Exclude chip names for SPL to save space */
16 #if !CONFIG_IS_ENABLED(SPI_FLASH_TINY)
17 #define INFO_NAME(_name) .name = _name,
18 #else
19 #define INFO_NAME(_name)
20 #endif
21 
22 /* Used when the "_ext_id" is two bytes at most */
23 #define INFO(_name, _jedec_id, _ext_id, _sector_size, _n_sectors, _flags)	\
24 		INFO_NAME(_name)					\
25 		.id = {							\
26 			((_jedec_id) >> 16) & 0xff,			\
27 			((_jedec_id) >> 8) & 0xff,			\
28 			(_jedec_id) & 0xff,				\
29 			((_ext_id) >> 8) & 0xff,			\
30 			(_ext_id) & 0xff,				\
31 			},						\
32 		.id_len = (!(_jedec_id) ? 0 : (3 + ((_ext_id) ? 2 : 0))),	\
33 		.sector_size = (_sector_size),				\
34 		.n_sectors = (_n_sectors),				\
35 		.page_size = 256,					\
36 		.flags = (_flags),
37 
38 #define INFO6(_name, _jedec_id, _ext_id, _sector_size, _n_sectors, _flags)	\
39 		INFO_NAME(_name)					\
40 		.id = {							\
41 			((_jedec_id) >> 16) & 0xff,			\
42 			((_jedec_id) >> 8) & 0xff,			\
43 			(_jedec_id) & 0xff,				\
44 			((_ext_id) >> 16) & 0xff,			\
45 			((_ext_id) >> 8) & 0xff,			\
46 			(_ext_id) & 0xff,				\
47 			},						\
48 		.id_len = 6,						\
49 		.sector_size = (_sector_size),				\
50 		.n_sectors = (_n_sectors),				\
51 		.page_size = 256,					\
52 		.flags = (_flags),
53 
54 /* NOTE: double check command sets and memory organization when you add
55  * more nor chips.  This current list focusses on newer chips, which
56  * have been converging on command sets which including JEDEC ID.
57  *
58  * All newly added entries should describe *hardware* and should use SECT_4K
59  * (or SECT_4K_PMC) if hardware supports erasing 4 KiB sectors. For usage
60  * scenarios excluding small sectors there is config option that can be
61  * disabled: CONFIG_MTD_SPI_NOR_USE_4K_SECTORS.
62  * For historical (and compatibility) reasons (before we got above config) some
63  * old entries may be missing 4K flag.
64  */
65 const struct flash_info spi_nor_ids[] = {
66 #ifdef CONFIG_SPI_FLASH_ATMEL		/* ATMEL */
67 	/* Atmel -- some are (confusingly) marketed as "DataFlash" */
68 	{ INFO("at26df321",	0x1f4700, 0, 64 * 1024, 64, SECT_4K) },
69 	{ INFO("at25df321a",	0x1f4701, 0, 64 * 1024, 64, SECT_4K) },
70 
71 	{ INFO("at45db011d",	0x1f2200, 0, 64 * 1024,   4, SECT_4K) },
72 	{ INFO("at45db021d",	0x1f2300, 0, 64 * 1024,   8, SECT_4K) },
73 	{ INFO("at45db041d",	0x1f2400, 0, 64 * 1024,   8, SECT_4K) },
74 	{ INFO("at45db081d",	0x1f2500, 0, 64 * 1024,  16, SECT_4K) },
75 	{ INFO("at45db161d",	0x1f2600, 0, 64 * 1024,  32, SECT_4K) },
76 	{ INFO("at45db321d",	0x1f2700, 0, 64 * 1024,  64, SECT_4K) },
77 	{ INFO("at45db641d",	0x1f2800, 0, 64 * 1024, 128, SECT_4K) },
78 	{ INFO("at26df081a", 	0x1f4501, 0, 64 * 1024,  16, SECT_4K) },
79 #endif
80 #ifdef CONFIG_SPI_FLASH_EON		/* EON */
81 	/* EON -- en25xxx */
82 	{ INFO("en25q32b",   0x1c3016, 0, 64 * 1024,   64, 0) },
83 	{ INFO("en25q64",    0x1c3017, 0, 64 * 1024,  128, SECT_4K) },
84 	{ INFO("en25qh128",  0x1c7018, 0, 64 * 1024,  256, 0) },
85 	{ INFO("en25s64",    0x1c3817, 0, 64 * 1024,  128, SECT_4K) },
86 #endif
87 #ifdef CONFIG_SPI_FLASH_GIGADEVICE	/* GIGADEVICE */
88 	/* GigaDevice */
89 	{
90 		INFO("gd25q16", 0xc84015, 0, 64 * 1024,  32,
91 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
92 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
93 	},
94 	{
95 		INFO("gd25q32", 0xc84016, 0, 64 * 1024,  64,
96 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
97 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
98 	},
99 	{
100 		INFO("gd25lq32", 0xc86016, 0, 64 * 1024, 64,
101 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
102 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
103 	},
104 	{
105 		INFO("gd25q64", 0xc84017, 0, 64 * 1024, 128,
106 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
107 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
108 	},
109 	{
110 		INFO("gd25q256c", 0xc84019, 0, 64 * 1024, 512,
111 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
112 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
113 	},
114 	{
115 		INFO("gd25b512m", 0xc8471a, 0, 64 * 1024, 1024,
116 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
117 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
118 	},
119 	{
120 		INFO("gd55b512m", 0xc8401a, 0, 64 * 1024, 1024,
121 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
122 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
123 	},
124 	{
125 		INFO("gd55b01ge", 0xc8471b, 0, 64 * 1024, 2048,
126 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
127 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
128 	},
129 	{
130 		INFO("gd55b02ge", 0xc8471c, 0, 64 * 1024, 4096,
131 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
132 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
133 	},
134 #endif
135 #ifdef CONFIG_SPI_FLASH_ISSI		/* ISSI */
136 	/* ISSI */
137 	{ INFO("is25lq040b", 0x9d4013, 0, 64 * 1024,   8,
138 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
139 	{ INFO("is25lp032",	0x9d6016, 0, 64 * 1024,  64, 0) },
140 	{ INFO("is25lp064",	0x9d6017, 0, 64 * 1024, 128, 0) },
141 	{ INFO("is25lp128",  0x9d6018, 0, 64 * 1024, 256,
142 			SECT_4K | SPI_NOR_DUAL_READ) },
143 	{ INFO("is25lp256",  0x9d6019, 0, 64 * 1024, 512,
144 			SECT_4K | SPI_NOR_DUAL_READ) },
145 	{ INFO("is25lp512m",  0x9d601a, 0, 64 * 1024, 1024,
146 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
147 	{ INFO("is25lp01g",  0x9d601b, 0, 64 * 1024, 2048,
148 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
149 	{ INFO("is25wp032",  0x9d7016, 0, 64 * 1024,  64,
150 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
151 	{ INFO("is25wp064",  0x9d7017, 0, 64 * 1024, 128,
152 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
153 	{ INFO("is25wp128",  0x9d7018, 0, 64 * 1024, 256,
154 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
155 #endif
156 #ifdef CONFIG_SPI_FLASH_MACRONIX	/* MACRONIX */
157 	/* Macronix */
158 	{ INFO("mx25l2005a",  0xc22012, 0, 64 * 1024,   4, SECT_4K) },
159 	{ INFO("mx25l4005a",  0xc22013, 0, 64 * 1024,   8, SECT_4K) },
160 	{ INFO("mx25l8005",   0xc22014, 0, 64 * 1024,  16, 0) },
161 	{ INFO("mx25l1606e",  0xc22015, 0, 64 * 1024,  32, SECT_4K) },
162 	{ INFO("mx25l3205d",  0xc22016, 0, 64 * 1024,  64, SECT_4K) },
163 	{ INFO("mx25l6405d",  0xc22017, 0, 64 * 1024, 128, SECT_4K) },
164 	{ INFO("mx25u2033e",  0xc22532, 0, 64 * 1024,   4, SECT_4K) },
165 	{ INFO("mx25u1635e",  0xc22535, 0, 64 * 1024,  32, SECT_4K) },
166 	{ INFO("mx25u6435f",  0xc22537, 0, 64 * 1024, 128, SECT_4K) },
167 	{ INFO("mx25l12805d", 0xc22018, 0, 64 * 1024, 256, 0) },
168 	{ INFO("mx25l12855e", 0xc22618, 0, 64 * 1024, 256, 0) },
169 	{ INFO("mx25l25635e", 0xc22019, 0, 64 * 1024, 512, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
170 	{ INFO("mx25u25635f", 0xc22539, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_4B_OPCODES) },
171 	{ INFO("mx25l25655e", 0xc22619, 0, 64 * 1024, 512, 0) },
172 	{ INFO("mx66l51235l", 0xc2201a, 0, 64 * 1024, 1024, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
173 	{ INFO("mx66u51235f", 0xc2253a, 0, 64 * 1024, 1024, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
174 	{ INFO("mx66l1g45g",  0xc2201b, 0, 64 * 1024, 2048, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
175 	{ INFO("mx66l2g45g",  0xc2201c, 0, 64 * 1024, 4096, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
176 	{ INFO("mx25l1633e", 0xc22415, 0, 64 * 1024,   32, SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES | SECT_4K) },
177 #endif
178 
179 #ifdef CONFIG_SPI_FLASH_STMICRO		/* STMICRO */
180 	/* Micron */
181 	{ INFO("n25q016a",	 0x20bb15, 0, 64 * 1024,   32, SECT_4K | SPI_NOR_QUAD_READ) },
182 	{ INFO("n25q032",	 0x20ba16, 0, 64 * 1024,   64, SPI_NOR_QUAD_READ) },
183 	{ INFO("n25q032a",	0x20bb16, 0, 64 * 1024,   64, SPI_NOR_QUAD_READ) },
184 	{ INFO("n25q064",     0x20ba17, 0, 64 * 1024,  128, SECT_4K | SPI_NOR_QUAD_READ) },
185 	{ INFO("n25q064a",    0x20bb17, 0, 64 * 1024,  128, SECT_4K | SPI_NOR_QUAD_READ) },
186 	{ INFO("n25q128a11",  0x20bb18, 0, 64 * 1024,  256, SECT_4K | SPI_NOR_QUAD_READ) },
187 	{ INFO("n25q128a13",  0x20ba18, 0, 64 * 1024,  256, SECT_4K | SPI_NOR_QUAD_READ) },
188 	{ INFO("n25q256a",    0x20ba19, 0, 64 * 1024,  512, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
189 	{ INFO("n25q256ax1",  0x20bb19, 0, 64 * 1024,  512, SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
190 	{ INFO("n25q512a",    0x20bb20, 0, 64 * 1024, 1024, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
191 	{ INFO("n25q512ax3",  0x20ba20, 0, 64 * 1024, 1024, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
192 	{ INFO("n25q00",      0x20ba21, 0, 64 * 1024, 2048, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) },
193 	{ INFO("mt25ql02g",   0x20ba22, 0, 64 * 1024, 4096, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) },
194 	{ INFO("n25q00a",     0x20bb21, 0, 64 * 1024, 2048, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) },
195 	{ INFO("mt25qu02g",   0x20bb22, 0, 64 * 1024, 4096, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) },
196 #endif
197 #ifdef CONFIG_SPI_FLASH_SPANSION	/* SPANSION */
198 	/* Spansion/Cypress -- single (large) sector size only, at least
199 	 * for the chips listed here (without boot sectors).
200 	 */
201 	{ INFO("s25sl032p",  0x010215, 0x4d00,  64 * 1024,  64, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
202 	{ INFO("s25sl064p",  0x010216, 0x4d00,  64 * 1024, 128, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
203 	{ INFO("s25fl256s0", 0x010219, 0x4d00, 256 * 1024, 128, USE_CLSR) },
204 	{ INFO("s25fl256s1", 0x010219, 0x4d01,  64 * 1024, 512, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) },
205 	{ INFO6("s25fl512s",  0x010220, 0x4d0081, 256 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) },
206 	{ INFO("s25fl512s_256k",  0x010220, 0x4d00, 256 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) },
207 	{ INFO("s25fl512s_64k",  0x010220, 0x4d01, 64 * 1024, 1024, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) },
208 	{ INFO("s25fl512s_512k", 0x010220, 0x4f00, 256 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) },
209 	{ INFO("s25sl12800", 0x012018, 0x0300, 256 * 1024,  64, 0) },
210 	{ INFO("s25sl12801", 0x012018, 0x0301,  64 * 1024, 256, 0) },
211 	{ INFO6("s25fl128s",  0x012018, 0x4d0180, 64 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) },
212 	{ INFO("s25fl129p0", 0x012018, 0x4d00, 256 * 1024,  64, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) },
213 	{ INFO("s25fl129p1", 0x012018, 0x4d01,  64 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) },
214 	{ INFO("s25sl008a",  0x010213,      0,  64 * 1024,  16, 0) },
215 	{ INFO("s25sl016a",  0x010214,      0,  64 * 1024,  32, 0) },
216 	{ INFO("s25sl032a",  0x010215,      0,  64 * 1024,  64, 0) },
217 	{ INFO("s25sl064a",  0x010216,      0,  64 * 1024, 128, 0) },
218 	{ INFO("s25fl116k",  0x014015,      0,  64 * 1024,  32, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
219 	{ INFO("s25fl164k",  0x014017,      0,  64 * 1024, 128, SECT_4K) },
220 	{ INFO("s25fl208k",  0x014014,      0,  64 * 1024,  16, SECT_4K | SPI_NOR_DUAL_READ) },
221 	{ INFO("s25fl128l",  0x016018,      0,  64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
222 	{ INFO("s25fl256l",  0x016019,      0,  64 * 1024, 512, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
223 	/* S25HL/HS-T (Semper Flash with Quad SPI) Family has overlaid 4KB
224 	 * sectors at top and/or bottom, depending on the device configuration.
225 	 * To support this, an erase hook makes overlaid sectors appear as
226 	 * uniform sectors.
227 	 */
228 	{ INFO6("s25hl256t",  0x342a19, 0x0f0390, 256 * 1024, 128, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES |	USE_CLSR) },
229 	{ INFO6("s25hl512t",  0x342a1a, 0x0f0390, 256 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES | USE_CLSR) },
230 	{ INFO6("s25hl01gt",  0x342a1b, 0x0f0390, 256 * 1024, 512, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES |	USE_CLSR) },
231 	{ INFO6("s25hs256t",  0x342b19, 0x0f0390, 256 * 1024, 128, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES |	USE_CLSR) },
232 	{ INFO6("s25hs512t",  0x342b1a, 0x0f0390, 256 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES |	USE_CLSR) },
233 	{ INFO6("s25hs01gt",  0x342b1b, 0x0f0390, 256 * 1024, 512, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES |	USE_CLSR) },
234 #endif
235 #ifdef CONFIG_SPI_FLASH_SST		/* SST */
236 	/* SST -- large erase sizes are "overlays", "sectors" are 4K */
237 	{ INFO("sst25vf040b", 0xbf258d, 0, 64 * 1024,  8, SECT_4K | SST_WRITE) },
238 	{ INFO("sst25vf080b", 0xbf258e, 0, 64 * 1024, 16, SECT_4K | SST_WRITE) },
239 	{ INFO("sst25vf016b", 0xbf2541, 0, 64 * 1024, 32, SECT_4K | SST_WRITE) },
240 	{ INFO("sst25vf032b", 0xbf254a, 0, 64 * 1024, 64, SECT_4K | SST_WRITE) },
241 	{ INFO("sst25vf064c", 0xbf254b, 0, 64 * 1024, 128, SECT_4K) },
242 	{ INFO("sst25wf512",  0xbf2501, 0, 64 * 1024,  1, SECT_4K | SST_WRITE) },
243 	{ INFO("sst25wf010",  0xbf2502, 0, 64 * 1024,  2, SECT_4K | SST_WRITE) },
244 	{ INFO("sst25wf020",  0xbf2503, 0, 64 * 1024,  4, SECT_4K | SST_WRITE) },
245 	{ INFO("sst25wf020a", 0x621612, 0, 64 * 1024,  4, SECT_4K) },
246 	{ INFO("sst25wf040b", 0x621613, 0, 64 * 1024,  8, SECT_4K) },
247 	{ INFO("sst25wf040",  0xbf2504, 0, 64 * 1024,  8, SECT_4K | SST_WRITE) },
248 	{ INFO("sst25wf080",  0xbf2505, 0, 64 * 1024, 16, SECT_4K | SST_WRITE) },
249 	{ INFO("sst26vf064b", 0xbf2643, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
250 	{ INFO("sst26wf016",  0xbf2651, 0, 64 * 1024,  32, SECT_4K) },
251 	{ INFO("sst26wf032",  0xbf2622, 0, 64 * 1024,  64, SECT_4K) },
252 	{ INFO("sst26wf064",  0xbf2643, 0, 64 * 1024, 128, SECT_4K) },
253 #endif
254 #ifdef CONFIG_SPI_FLASH_STMICRO		/* STMICRO */
255 	/* ST Microelectronics -- newer production may have feature updates */
256 	{ INFO("m25p10",  0x202011,  0,  32 * 1024,   4, 0) },
257 	{ INFO("m25p20",  0x202012,  0,  64 * 1024,   4, 0) },
258 	{ INFO("m25p40",  0x202013,  0,  64 * 1024,   8, 0) },
259 	{ INFO("m25p80",  0x202014,  0,  64 * 1024,  16, 0) },
260 	{ INFO("m25p16",  0x202015,  0,  64 * 1024,  32, 0) },
261 	{ INFO("m25p32",  0x202016,  0,  64 * 1024,  64, 0) },
262 	{ INFO("m25p64",  0x202017,  0,  64 * 1024, 128, 0) },
263 	{ INFO("m25p128", 0x202018,  0, 256 * 1024,  64, 0) },
264 	{ INFO("m25pe16", 0x208015,  0, 64 * 1024, 32, SECT_4K) },
265 	{ INFO("m25px16",    0x207115,  0, 64 * 1024, 32, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
266 	{ INFO("m25px64",    0x207117,  0, 64 * 1024, 128, 0) },
267 #endif
268 #ifdef CONFIG_SPI_FLASH_WINBOND		/* WINBOND */
269 	/* Winbond -- w25x "blocks" are 64K, "sectors" are 4KiB */
270 	{ INFO("w25p80", 0xef2014, 0x0,	64 * 1024,    16, 0) },
271 	{ INFO("w25p16", 0xef2015, 0x0,	64 * 1024,    32, 0) },
272 	{ INFO("w25p32", 0xef2016, 0x0,	64 * 1024,    64, 0) },
273 	{ INFO("w25x05", 0xef3010, 0, 64 * 1024,  1,  SECT_4K) },
274 	{ INFO("w25x40", 0xef3013, 0, 64 * 1024,  8,  SECT_4K) },
275 	{ INFO("w25x16", 0xef3015, 0, 64 * 1024,  32, SECT_4K) },
276 	{
277 		INFO("w25q16dw", 0xef6015, 0, 64 * 1024,  32,
278 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
279 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
280 	},
281 	{ INFO("w25x32", 0xef3016, 0, 64 * 1024,  64, SECT_4K) },
282 	{ INFO("w25q20cl", 0xef4012, 0, 64 * 1024,  4, SECT_4K) },
283 	{ INFO("w25q20bw", 0xef5012, 0, 64 * 1024,  4, SECT_4K) },
284 	{ INFO("w25q20ew", 0xef6012, 0, 64 * 1024,  4, SECT_4K) },
285 	{ INFO("w25q32", 0xef4016, 0, 64 * 1024,  64, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
286 	{
287 		INFO("w25q32dw", 0xef6016, 0, 64 * 1024,  64,
288 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
289 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
290 	},
291 	{
292 		INFO("w25q32jv", 0xef7016, 0, 64 * 1024,  64,
293 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
294 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
295 	},
296 	{ INFO("w25x64", 0xef3017, 0, 64 * 1024, 128, SECT_4K) },
297 	{
298 		INFO("w25q64dw", 0xef6017, 0, 64 * 1024, 128,
299 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
300 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
301 	},
302 	{
303 		INFO("w25q64jv", 0xef7017, 0, 64 * 1024, 128,
304 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
305 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
306 	},
307 	{
308 		INFO("w25q128fw", 0xef6018, 0, 64 * 1024, 256,
309 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
310 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
311 	},
312 	{
313 		INFO("w25q128jv", 0xef7018, 0, 64 * 1024, 256,
314 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
315 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
316 	},
317 	{
318 		INFO("w25q256fw", 0xef6019, 0, 64 * 1024, 512,
319 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
320 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
321 	},
322 	{
323 		INFO("w25q256fm", 0xef7019, 0, 64 * 1024, 512,
324 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
325 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
326 	},
327 	{
328 		INFO("w25q512jv", 0xef4020, 0, 64 * 1024, 1024,
329 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
330 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
331 	},
332 	{
333 		INFO("w25q512jvfm", 0xef7020, 0, 64 * 1024, 1024,
334 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
335 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
336 	},
337 	{
338 		INFO("w25q01jv", 0xef4021, 0, 64 * 1024, 2048,
339 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
340 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
341 	},
342 	{
343 		INFO("w25q02jv", 0xef7022, 0, 64 * 1024, 4096,
344 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
345 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
346 	},
347 	{
348 		INFO("w25q01jvfim", 0xef7021, 0, 64 * 1024, 2048,
349 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
350 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
351 	},
352 	{ INFO("w25q80", 0xef5014, 0, 64 * 1024,  16, SECT_4K) },
353 	{ INFO("w25q80bl", 0xef4014, 0, 64 * 1024,  16, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
354 	{ INFO("w25q16cl", 0xef4015, 0, 64 * 1024,  32, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
355 	{ INFO("w25q64cv", 0xef4017, 0, 64 * 1024,  128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
356 	{ INFO("w25q128", 0xef4018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
357 	{ INFO("w25q256", 0xef4019, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
358 	{ INFO("w25m512jv", 0xef7119, 0, 64 * 1024, 1024, SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) },
359 #endif
360 #ifdef CONFIG_SPI_FLASH_XMC
361 	/* XMC (Wuhan Xinxin Semiconductor Manufacturing Corp.) */
362 	{ INFO("XM25QH64A", 0x207017, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
363 	{ INFO("XM25QH128A", 0x207018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
364 #endif
365 	{ },
366 };
367