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 xmc_parts[] = { 128c2ecf20Sopenharmony_ci /* XMC (Wuhan Xinxin Semiconductor Manufacturing Corp.) */ 138c2ecf20Sopenharmony_ci { "XM25QH64A", INFO(0x207017, 0, 64 * 1024, 128, 148c2ecf20Sopenharmony_ci SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, 158c2ecf20Sopenharmony_ci { "XM25QH128A", INFO(0x207018, 0, 64 * 1024, 256, 168c2ecf20Sopenharmony_ci SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, 178c2ecf20Sopenharmony_ci}; 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ciconst struct spi_nor_manufacturer spi_nor_xmc = { 208c2ecf20Sopenharmony_ci .name = "xmc", 218c2ecf20Sopenharmony_ci .parts = xmc_parts, 228c2ecf20Sopenharmony_ci .nparts = ARRAY_SIZE(xmc_parts), 238c2ecf20Sopenharmony_ci}; 24