1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2005, Intec Automation Inc.
4 * Copyright (C) 2014, Freescale Semiconductor, Inc.
7 #include <linux/mtd/spi-nor.h>
11 static const struct flash_info everspin_nor_parts
[] = {
15 .sector_size
= SZ_16K
,
17 .flags
= SPI_NOR_NO_ERASE
,
21 .sector_size
= SZ_32K
,
23 .flags
= SPI_NOR_NO_ERASE
,
27 .sector_size
= SZ_128K
,
28 .flags
= SPI_NOR_NO_ERASE
,
32 .sector_size
= SZ_512K
,
33 .flags
= SPI_NOR_NO_ERASE
,
37 static void everspin_nor_default_init(struct spi_nor
*nor
)
39 /* Everspin FRAMs don't support the fast read opcode. */
40 nor
->params
->hwcaps
.mask
&= ~SNOR_HWCAPS_READ_FAST
;
43 static const struct spi_nor_fixups everspin_nor_fixups
= {
44 .default_init
= everspin_nor_default_init
,
47 const struct spi_nor_manufacturer spi_nor_everspin
= {
49 .parts
= everspin_nor_parts
,
50 .nparts
= ARRAY_SIZE(everspin_nor_parts
),
51 .fixups
= &everspin_nor_fixups
,