xref: /openbmc/linux/drivers/mtd/spi-nor/esmt.c (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
174c7e0e3SBoris Brezillon // SPDX-License-Identifier: GPL-2.0
274c7e0e3SBoris Brezillon /*
374c7e0e3SBoris Brezillon  * Copyright (C) 2005, Intec Automation Inc.
474c7e0e3SBoris Brezillon  * Copyright (C) 2014, Freescale Semiconductor, Inc.
574c7e0e3SBoris Brezillon  */
674c7e0e3SBoris Brezillon 
774c7e0e3SBoris Brezillon #include <linux/mtd/spi-nor.h>
874c7e0e3SBoris Brezillon 
974c7e0e3SBoris Brezillon #include "core.h"
1074c7e0e3SBoris Brezillon 
11a7a3f090SMichael Walle static const struct flash_info esmt_nor_parts[] = {
1274c7e0e3SBoris Brezillon 	/* ESMT */
13ec1c0e99STudor Ambarus 	{ "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64)
14ec1c0e99STudor Ambarus 		FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_SWP_IS_VOLATILE)
15ec1c0e99STudor Ambarus 		NO_SFDP_FLAGS(SECT_4K) },
16*41e4f15fSSungbo Eo 	{ "f25l32qa-2s", INFO(0x8c4116, 0, 64 * 1024, 64)
17ec1c0e99STudor Ambarus 		FLAGS(SPI_NOR_HAS_LOCK)
18ec1c0e99STudor Ambarus 		NO_SFDP_FLAGS(SECT_4K) },
19ec1c0e99STudor Ambarus 	{ "f25l64qa", INFO(0x8c4117, 0, 64 * 1024, 128)
20ec1c0e99STudor Ambarus 		FLAGS(SPI_NOR_HAS_LOCK)
21ec1c0e99STudor Ambarus 		NO_SFDP_FLAGS(SECT_4K) },
2274c7e0e3SBoris Brezillon };
2374c7e0e3SBoris Brezillon 
2474c7e0e3SBoris Brezillon const struct spi_nor_manufacturer spi_nor_esmt = {
2574c7e0e3SBoris Brezillon 	.name = "esmt",
26a7a3f090SMichael Walle 	.parts = esmt_nor_parts,
27a7a3f090SMichael Walle 	.nparts = ARRAY_SIZE(esmt_nor_parts),
2874c7e0e3SBoris Brezillon };
29