10 #define CMD_M25PXX_WREN 0x06
11 #define CMD_M25PXX_WRDI 0x04
12 #define CMD_M25PXX_RDSR 0x05
13 #define CMD_M25PXX_WRSR 0x01
14 #define CMD_M25PXX_READ 0x03
15 #define CMD_M25PXX_FAST_READ 0x0b
16 #define CMD_M25PXX_PP 0x02
17 #define CMD_M25PXX_SSE 0x20
18 #define CMD_M25PXX_SE 0xd8
19 #define CMD_M25PXX_BE 0xc7
20 #define CMD_M25PXX_DP 0xb9
21 #define CMD_M25PXX_RES 0xab
26 #define STM_ID_M25P10 0x2011
27 #define STM_ID_M25P20 0x2012
28 #define STM_ID_M25P40 0x2013
29 #define STM_ID_M25P80 0x2014
30 #define STM_ID_M25P16 0x2015
31 #define STM_ID_M25P32 0x2016
32 #define STM_ID_M25P64 0x2017
33 #define STM_ID_M25P128 0x2018
34 #define STM_ID_M25PX80 0x7114
35 #define STM_ID_M25PX16 0x7115
36 #define STM_ID_M25PX32 0x7116
37 #define STM_ID_M25PX64 0x7117
38 #define STM_ID_M25PE80 0x8014
39 #define STM_ID_M25PE16 0x8015
40 #define STM_ID_M25PE32 0x8016
41 #define STM_ID_M25PE64 0x8017
42 #define STM_ID_N25Q016__3E 0xba15
43 #define STM_ID_N25Q032__3E 0xba16
44 #define STM_ID_N25Q064__3E 0xba17
45 #define STM_ID_N25Q128__3E 0xba18
46 #define STM_ID_N25Q256__3E 0xba19
47 #define STM_ID_N25Q016__1E 0xbb15
48 #define STM_ID_N25Q032__1E 0xbb16
49 #define STM_ID_N25Q064__1E 0xbb17
50 #define STM_ID_N25Q128__1E 0xbb18
51 #define STM_ID_N25Q256__1E 0xbb19
57 .nr_sectors_shift = 2,
65 .nr_sectors_shift = 5,
70 .nr_sectors_shift = 2,
75 .nr_sectors_shift = 6,
80 .nr_sectors_shift = 3,
85 .nr_sectors_shift = 7,
90 .nr_sectors_shift = 4,
95 .nr_sectors_shift = 4,
100 .nr_sectors_shift = 5,
105 .nr_sectors_shift = 6,
110 .nr_sectors_shift = 7,
115 .nr_sectors_shift = 4,
120 .nr_sectors_shift = 5,
125 .nr_sectors_shift = 6,
130 .nr_sectors_shift = 7,
138 .nr_sectors_shift = 6,
146 .nr_sectors_shift = 9,
151 .nr_sectors_shift = 10,
156 .nr_sectors_shift = 11,
161 .nr_sectors_shift = 12,
166 .nr_sectors_shift = 13,
171 .nr_sectors_shift = 9,
176 .nr_sectors_shift = 10,
181 .nr_sectors_shift = 11,
186 .nr_sectors_shift = 12,
191 .nr_sectors_shift = 13,
202 if ((idcode[3] & 0xf0) != 0x10)
208 idcode[2] = idcode[3] + 1;
215 .page_size_shift = 8,
216 .sector_size_kib_shift = 5,
217 .match_id_mask[0] = 0xffff,
225 .page_size_shift = 8,
226 .sector_size_kib_shift = 6,
227 .match_id_mask[0] = 0xffff,
235 .page_size_shift = 8,
236 .sector_size_kib_shift = 8,
237 .match_id_mask[0] = 0xffff,
245 .page_size_shift = 8,
246 .sector_size_kib_shift = 2,
247 .match_id_mask[0] = 0xffff,
#define VENDOR_ID_STMICRO
const struct spi_flash_ops_descriptor spi_flash_pp_0xd8_sector_desc
const struct spi_flash_ops_descriptor spi_flash_pp_0x20_sector_desc
int spi_flash_cmd(const struct spi_slave *spi, u8 cmd, void *response, size_t len)
static const struct spi_flash_part_id flash_table_sse[]
int stmicro_release_deep_sleep_identify(const struct spi_slave *spi, u8 *idcode)
#define STM_ID_N25Q128__1E
const struct spi_flash_vendor_info spi_flash_stmicro4_vi
#define STM_ID_N25Q064__3E
#define STM_ID_N25Q256__1E
static const struct spi_flash_part_id flash_table_se256k[]
#define STM_ID_N25Q064__1E
#define STM_ID_N25Q016__3E
const struct spi_flash_vendor_info spi_flash_stmicro1_vi
#define STM_ID_N25Q128__3E
#define STM_ID_N25Q032__3E
static const struct spi_flash_part_id flash_table_se32k[]
const struct spi_flash_vendor_info spi_flash_stmicro3_vi
static const struct spi_flash_part_id flash_table_se64k[]
#define STM_ID_N25Q256__3E
#define STM_ID_N25Q032__1E
#define STM_ID_N25Q016__1E
const struct spi_flash_vendor_info spi_flash_stmicro2_vi