18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2005, Intec Automation Inc.
48c2ecf20Sopenharmony_ci * Copyright (C) 2014, Freescale Semiconductor, Inc.
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#include <linux/mtd/spi-nor.h>
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#include "core.h"
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_cistatic const struct flash_info everspin_parts[] = {
128c2ecf20Sopenharmony_ci	/* Everspin */
138c2ecf20Sopenharmony_ci	{ "mr25h128", CAT25_INFO(16 * 1024, 1, 256, 2,
148c2ecf20Sopenharmony_ci				 SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
158c2ecf20Sopenharmony_ci	{ "mr25h256", CAT25_INFO(32 * 1024, 1, 256, 2,
168c2ecf20Sopenharmony_ci				 SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
178c2ecf20Sopenharmony_ci	{ "mr25h10",  CAT25_INFO(128 * 1024, 1, 256, 3,
188c2ecf20Sopenharmony_ci				 SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
198c2ecf20Sopenharmony_ci	{ "mr25h40",  CAT25_INFO(512 * 1024, 1, 256, 3,
208c2ecf20Sopenharmony_ci				 SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
218c2ecf20Sopenharmony_ci};
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciconst struct spi_nor_manufacturer spi_nor_everspin = {
248c2ecf20Sopenharmony_ci	.name = "everspin",
258c2ecf20Sopenharmony_ci	.parts = everspin_parts,
268c2ecf20Sopenharmony_ci	.nparts = ARRAY_SIZE(everspin_parts),
278c2ecf20Sopenharmony_ci};
28