xref: /linux/drivers/mtd/spi-nor/eon.c (revision 811f35ff59b6f99ae272d6f5b96bc9e974f88196)
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Copyright (C) 2005, Intec Automation Inc.
4  * Copyright (C) 2014, Freescale Semiconductor, Inc.
5  */
6 
7 #include <linux/mtd/spi-nor.h>
8 
9 #include "core.h"
10 
11 static const struct flash_info eon_nor_parts[] = {
12 	/* EON -- en25xxx */
13 	{ "en25f32",    INFO(0x1c3116, 0, 64 * 1024,   64)
14 		NO_SFDP_FLAGS(SECT_4K) },
15 	{ "en25p32",    INFO(0x1c2016, 0, 64 * 1024,   64) },
16 	{ "en25q32b",   INFO(0x1c3016, 0, 64 * 1024,   64) },
17 	{ "en25p64",    INFO(0x1c2017, 0, 64 * 1024,  128) },
18 	{ "en25q64",    INFO(0x1c3017, 0, 64 * 1024,  128)
19 		NO_SFDP_FLAGS(SECT_4K) },
20 	{ "en25q80a",   INFO(0x1c3014, 0, 64 * 1024,   16)
21 		NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ) },
22 	{ "en25qh16",   INFO(0x1c7015, 0, 64 * 1024,   32)
23 		NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ) },
24 	{ "en25qh32",   INFO(0x1c7016, 0, 64 * 1024,   64) },
25 	{ "en25qh64",   INFO(0x1c7017, 0, 64 * 1024,  128)
26 		NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ) },
27 	{ "en25qh128",  INFO(0x1c7018, 0, 64 * 1024,  256) },
28 	{ "en25qh256",  INFO(0x1c7019, 0, 64 * 1024,  512)
29 		PARSE_SFDP },
30 	{ "en25s64",	INFO(0x1c3817, 0, 64 * 1024,  128)
31 		NO_SFDP_FLAGS(SECT_4K) },
32 };
33 
34 const struct spi_nor_manufacturer spi_nor_eon = {
35 	.name = "eon",
36 	.parts = eon_nor_parts,
37 	.nparts = ARRAY_SIZE(eon_nor_parts),
38 };
39