Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 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 intel_parts[] = { |
| 12 | /* Intel/Numonyx -- xxxs33b */ |
| 13 | { "160s33b", INFO(0x898911, 0, 64 * 1024, 32, 0) }, |
| 14 | { "320s33b", INFO(0x898912, 0, 64 * 1024, 64, 0) }, |
| 15 | { "640s33b", INFO(0x898913, 0, 64 * 1024, 128, 0) }, |
| 16 | }; |
| 17 | |
| 18 | static void intel_default_init(struct spi_nor *nor) |
| 19 | { |
| 20 | nor->flags |= SNOR_F_HAS_LOCK; |
| 21 | } |
| 22 | |
| 23 | static const struct spi_nor_fixups intel_fixups = { |
| 24 | .default_init = intel_default_init, |
| 25 | }; |
| 26 | |
| 27 | const struct spi_nor_manufacturer spi_nor_intel = { |
| 28 | .name = "intel", |
| 29 | .parts = intel_parts, |
| 30 | .nparts = ARRAY_SIZE(intel_parts), |
| 31 | .fixups = &intel_fixups, |
| 32 | }; |