blob: 2992af03cb0ab791f89b2b98077625c56140eb25 [file] [log] [blame]
Boris Brezillona674d5a2020-03-13 19:42:50 +00001// 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
11static const struct flash_info xmc_parts[] = {
12 /* XMC (Wuhan Xinxin Semiconductor Manufacturing Corp.) */
Tudor Ambarusec1c0e92021-12-07 16:02:46 +020013 { "XM25QH64A", INFO(0x207017, 0, 64 * 1024, 128)
14 NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
15 SPI_NOR_QUAD_READ) },
16 { "XM25QH128A", INFO(0x207018, 0, 64 * 1024, 256)
17 NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
18 SPI_NOR_QUAD_READ) },
Boris Brezillona674d5a2020-03-13 19:42:50 +000019};
20
21const struct spi_nor_manufacturer spi_nor_xmc = {
22 .name = "xmc",
23 .parts = xmc_parts,
24 .nparts = ARRAY_SIZE(xmc_parts),
25};