xref: /openbmc/linux/drivers/mtd/spi-nor/everspin.c (revision e15a5365)
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 everspin_parts[] = {
12 	/* Everspin */
13 	{ "mr25h128", CAT25_INFO(16 * 1024, 1, 256, 2,
14 				 SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
15 	{ "mr25h256", CAT25_INFO(32 * 1024, 1, 256, 2,
16 				 SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
17 	{ "mr25h10",  CAT25_INFO(128 * 1024, 1, 256, 3,
18 				 SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
19 	{ "mr25h40",  CAT25_INFO(512 * 1024, 1, 256, 3,
20 				 SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
21 };
22 
23 const struct spi_nor_manufacturer spi_nor_everspin = {
24 	.name = "everspin",
25 	.parts = everspin_parts,
26 	.nparts = ARRAY_SIZE(everspin_parts),
27 };
28