xref: /linux/drivers/mtd/spi-nor/everspin.c (revision 79997eda0d31bc68203c95ecb978773ee6ce7a1f)
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_nor_parts[] = {
12 	{
13 		.name = "mr25h128",
14 		.size = SZ_16K,
15 		.sector_size = SZ_16K,
16 		.addr_nbytes = 2,
17 		.flags = SPI_NOR_NO_ERASE | SPI_NOR_NO_FR,
18 	}, {
19 		.name = "mr25h256",
20 		.size = SZ_32K,
21 		.sector_size = SZ_32K,
22 		.addr_nbytes = 2,
23 		.flags = SPI_NOR_NO_ERASE | SPI_NOR_NO_FR,
24 	}, {
25 		.name = "mr25h10",
26 		.size = SZ_128K,
27 		.sector_size = SZ_128K,
28 		.flags = SPI_NOR_NO_ERASE | SPI_NOR_NO_FR,
29 	}, {
30 		.name = "mr25h40",
31 		.size = SZ_512K,
32 		.sector_size = SZ_512K,
33 		.flags = SPI_NOR_NO_ERASE | SPI_NOR_NO_FR,
34 	}
35 };
36 
37 const struct spi_nor_manufacturer spi_nor_everspin = {
38 	.name = "everspin",
39 	.parts = everspin_nor_parts,
40 	.nparts = ARRAY_SIZE(everspin_nor_parts),
41 };
42