xref: /openbmc/linux/drivers/mtd/spi-nor/eon.c (revision adb57164)
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_parts[] = {
12 	/* EON -- en25xxx */
13 	{ "en25f32",    INFO(0x1c3116, 0, 64 * 1024,   64, SECT_4K) },
14 	{ "en25p32",    INFO(0x1c2016, 0, 64 * 1024,   64, 0) },
15 	{ "en25q32b",   INFO(0x1c3016, 0, 64 * 1024,   64, 0) },
16 	{ "en25p64",    INFO(0x1c2017, 0, 64 * 1024,  128, 0) },
17 	{ "en25q64",    INFO(0x1c3017, 0, 64 * 1024,  128, SECT_4K) },
18 	{ "en25q80a",   INFO(0x1c3014, 0, 64 * 1024,   16,
19 			     SECT_4K | SPI_NOR_DUAL_READ) },
20 	{ "en25qh16",   INFO(0x1c7015, 0, 64 * 1024,   32,
21 			     SECT_4K | SPI_NOR_DUAL_READ) },
22 	{ "en25qh32",   INFO(0x1c7016, 0, 64 * 1024,   64, 0) },
23 	{ "en25qh64",   INFO(0x1c7017, 0, 64 * 1024,  128,
24 			     SECT_4K | SPI_NOR_DUAL_READ) },
25 	{ "en25qh128",  INFO(0x1c7018, 0, 64 * 1024,  256, 0) },
26 	{ "en25qh256",  INFO(0x1c7019, 0, 64 * 1024,  512, 0) },
27 	{ "en25s64",	INFO(0x1c3817, 0, 64 * 1024,  128, SECT_4K) },
28 };
29 
30 const struct spi_nor_manufacturer spi_nor_eon = {
31 	.name = "eon",
32 	.parts = eon_parts,
33 	.nparts = ARRAY_SIZE(eon_parts),
34 };
35