xref: /linux/drivers/mtd/spi-nor/esmt.c (revision 3d0fe49454652117522f60bfbefb978ba0e5300b)
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 esmt_nor_parts[] = {
12 	{
13 		.id = SNOR_ID(0x8c, 0x20, 0x16),
14 		.name = "f25l32pa",
15 		.size = SZ_4M,
16 		.flags = SPI_NOR_HAS_LOCK | SPI_NOR_SWP_IS_VOLATILE,
17 		.no_sfdp_flags = SECT_4K,
18 	}, {
19 		.id = SNOR_ID(0x8c, 0x41, 0x16),
20 		.name = "f25l32qa-2s",
21 		.size = SZ_4M,
22 		.flags = SPI_NOR_HAS_LOCK,
23 		.no_sfdp_flags = SECT_4K,
24 	}, {
25 		.id = SNOR_ID(0x8c, 0x41, 0x17),
26 		.name = "f25l64qa",
27 		.size = SZ_8M,
28 		.flags = SPI_NOR_HAS_LOCK,
29 		.no_sfdp_flags = SECT_4K,
30 	}
31 };
32 
33 const struct spi_nor_manufacturer spi_nor_esmt = {
34 	.name = "esmt",
35 	.parts = esmt_nor_parts,
36 	.nparts = ARRAY_SIZE(esmt_nor_parts),
37 };
38