2020-03-13 19:42:40 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2005, Intec Automation Inc.
|
|
|
|
* Copyright (C) 2014, Freescale Semiconductor, Inc.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/mtd/spi-nor.h>
|
|
|
|
|
|
|
|
#include "core.h"
|
|
|
|
|
2022-02-23 13:43:29 +00:00
|
|
|
static const struct flash_info eon_nor_parts[] = {
|
2023-09-08 10:16:36 +00:00
|
|
|
{
|
|
|
|
.id = SNOR_ID(0x1c, 0x20, 0x16),
|
|
|
|
.name = "en25p32",
|
|
|
|
.size = SZ_4M,
|
|
|
|
}, {
|
|
|
|
.id = SNOR_ID(0x1c, 0x20, 0x17),
|
|
|
|
.name = "en25p64",
|
|
|
|
.size = SZ_8M,
|
2023-09-08 10:16:50 +00:00
|
|
|
}, {
|
|
|
|
.id = SNOR_ID(0x1c, 0x30, 0x14),
|
|
|
|
.name = "en25q80a",
|
|
|
|
.size = SZ_1M,
|
|
|
|
.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ,
|
|
|
|
}, {
|
|
|
|
.id = SNOR_ID(0x1c, 0x30, 0x16),
|
|
|
|
.name = "en25q32b",
|
|
|
|
.size = SZ_4M,
|
2023-09-08 10:16:36 +00:00
|
|
|
}, {
|
|
|
|
.id = SNOR_ID(0x1c, 0x30, 0x17),
|
|
|
|
.name = "en25q64",
|
|
|
|
.size = SZ_8M,
|
|
|
|
.no_sfdp_flags = SECT_4K,
|
|
|
|
}, {
|
2023-09-08 10:16:50 +00:00
|
|
|
.id = SNOR_ID(0x1c, 0x31, 0x16),
|
|
|
|
.name = "en25f32",
|
|
|
|
.size = SZ_4M,
|
|
|
|
.no_sfdp_flags = SECT_4K,
|
|
|
|
}, {
|
|
|
|
.name = "en25s64",
|
|
|
|
.id = SNOR_ID(0x1c, 0x38, 0x17),
|
|
|
|
.size = SZ_8M,
|
|
|
|
.no_sfdp_flags = SECT_4K,
|
2023-09-08 10:16:36 +00:00
|
|
|
}, {
|
|
|
|
.id = SNOR_ID(0x1c, 0x70, 0x15),
|
|
|
|
.name = "en25qh16",
|
|
|
|
.size = SZ_2M,
|
|
|
|
.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ,
|
|
|
|
}, {
|
|
|
|
.id = SNOR_ID(0x1c, 0x70, 0x16),
|
|
|
|
.name = "en25qh32",
|
|
|
|
.size = SZ_4M,
|
|
|
|
}, {
|
|
|
|
.id = SNOR_ID(0x1c, 0x70, 0x17),
|
|
|
|
.name = "en25qh64",
|
|
|
|
.size = SZ_8M,
|
|
|
|
.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ,
|
|
|
|
}, {
|
|
|
|
.id = SNOR_ID(0x1c, 0x70, 0x18),
|
|
|
|
.name = "en25qh128",
|
|
|
|
.size = SZ_16M,
|
|
|
|
}, {
|
|
|
|
.id = SNOR_ID(0x1c, 0x70, 0x19),
|
|
|
|
.name = "en25qh256",
|
|
|
|
},
|
2020-03-13 19:42:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
const struct spi_nor_manufacturer spi_nor_eon = {
|
|
|
|
.name = "eon",
|
2022-02-23 13:43:29 +00:00
|
|
|
.parts = eon_nor_parts,
|
|
|
|
.nparts = ARRAY_SIZE(eon_nor_parts),
|
2020-03-13 19:42:40 +00:00
|
|
|
};
|