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 catalyst_parts[] = { 128c2ecf20Sopenharmony_ci /* Catalyst / On Semiconductor -- non-JEDEC */ 138c2ecf20Sopenharmony_ci { "cat25c11", CAT25_INFO(16, 8, 16, 1, 148c2ecf20Sopenharmony_ci SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) }, 158c2ecf20Sopenharmony_ci { "cat25c03", CAT25_INFO(32, 8, 16, 2, 168c2ecf20Sopenharmony_ci SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) }, 178c2ecf20Sopenharmony_ci { "cat25c09", CAT25_INFO(128, 8, 32, 2, 188c2ecf20Sopenharmony_ci SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) }, 198c2ecf20Sopenharmony_ci { "cat25c17", CAT25_INFO(256, 8, 32, 2, 208c2ecf20Sopenharmony_ci SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) }, 218c2ecf20Sopenharmony_ci { "cat25128", CAT25_INFO(2048, 8, 64, 2, 228c2ecf20Sopenharmony_ci SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) }, 238c2ecf20Sopenharmony_ci}; 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ciconst struct spi_nor_manufacturer spi_nor_catalyst = { 268c2ecf20Sopenharmony_ci .name = "catalyst", 278c2ecf20Sopenharmony_ci .parts = catalyst_parts, 288c2ecf20Sopenharmony_ci .nparts = ARRAY_SIZE(catalyst_parts), 298c2ecf20Sopenharmony_ci}; 30