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 11 static const struct flash_info eon_nor_parts[] = { 12 { 13 .id = SNOR_ID(0x1c, 0x31, 0x16), 14 .name = "en25f32", 15 .size = SZ_4M, 16 .no_sfdp_flags = SECT_4K, 17 }, { 18 .id = SNOR_ID(0x1c, 0x20, 0x16), 19 .name = "en25p32", 20 .size = SZ_4M, 21 }, { 22 .id = SNOR_ID(0x1c, 0x30, 0x16), 23 .name = "en25q32b", 24 .size = SZ_4M, 25 }, { 26 .id = SNOR_ID(0x1c, 0x20, 0x17), 27 .name = "en25p64", 28 .size = SZ_8M, 29 }, { 30 .id = SNOR_ID(0x1c, 0x30, 0x17), 31 .name = "en25q64", 32 .size = SZ_8M, 33 .no_sfdp_flags = SECT_4K, 34 }, { 35 .id = SNOR_ID(0x1c, 0x30, 0x14), 36 .name = "en25q80a", 37 .size = SZ_1M, 38 .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ, 39 }, { 40 .id = SNOR_ID(0x1c, 0x70, 0x15), 41 .name = "en25qh16", 42 .size = SZ_2M, 43 .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ, 44 }, { 45 .id = SNOR_ID(0x1c, 0x70, 0x16), 46 .name = "en25qh32", 47 .size = SZ_4M, 48 }, { 49 .id = SNOR_ID(0x1c, 0x70, 0x17), 50 .name = "en25qh64", 51 .size = SZ_8M, 52 .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ, 53 }, { 54 .id = SNOR_ID(0x1c, 0x70, 0x18), 55 .name = "en25qh128", 56 .size = SZ_16M, 57 }, { 58 .id = SNOR_ID(0x1c, 0x70, 0x19), 59 .name = "en25qh256", 60 }, { 61 .name = "en25s64", 62 .id = SNOR_ID(0x1c, 0x38, 0x17), 63 .size = SZ_8M, 64 .no_sfdp_flags = SECT_4K, 65 }, 66 }; 67 68 const struct spi_nor_manufacturer spi_nor_eon = { 69 .name = "eon", 70 .parts = eon_nor_parts, 71 .nparts = ARRAY_SIZE(eon_nor_parts), 72 }; 73