Loading...
1// 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_nor_parts[] = {
12 {
13 .id = SNOR_ID(0x20, 0x70, 0x17),
14 .name = "XM25QH64A",
15 .size = SZ_8M,
16 .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,
17 }, {
18 .id = SNOR_ID(0x20, 0x70, 0x18),
19 .name = "XM25QH128A",
20 .size = SZ_16M,
21 .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,
22 },
23};
24
25/* XMC (Wuhan Xinxin Semiconductor Manufacturing Corp.) */
26const struct spi_nor_manufacturer spi_nor_xmc = {
27 .name = "xmc",
28 .parts = xmc_nor_parts,
29 .nparts = ARRAY_SIZE(xmc_nor_parts),
30};
1// 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.) */
13 { "XM25QH64A", INFO(0x207017, 0, 64 * 1024, 128,
14 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
15 { "XM25QH128A", INFO(0x207018, 0, 64 * 1024, 256,
16 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
17};
18
19const struct spi_nor_manufacturer spi_nor_xmc = {
20 .name = "xmc",
21 .parts = xmc_parts,
22 .nparts = ARRAY_SIZE(xmc_parts),
23};