18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2005, Intec Automation Inc.
48c2ecf20Sopenharmony_ci * Copyright (C) 2014, Freescale Semiconductor, Inc.
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#include <linux/mtd/spi-nor.h>
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#include "core.h"
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_cistatic const struct flash_info intel_parts[] = {
128c2ecf20Sopenharmony_ci	/* Intel/Numonyx -- xxxs33b */
138c2ecf20Sopenharmony_ci	{ "160s33b",  INFO(0x898911, 0, 64 * 1024,  32, 0) },
148c2ecf20Sopenharmony_ci	{ "320s33b",  INFO(0x898912, 0, 64 * 1024,  64, 0) },
158c2ecf20Sopenharmony_ci	{ "640s33b",  INFO(0x898913, 0, 64 * 1024, 128, 0) },
168c2ecf20Sopenharmony_ci};
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_cistatic void intel_default_init(struct spi_nor *nor)
198c2ecf20Sopenharmony_ci{
208c2ecf20Sopenharmony_ci	nor->flags |= SNOR_F_HAS_LOCK;
218c2ecf20Sopenharmony_ci}
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_cistatic const struct spi_nor_fixups intel_fixups = {
248c2ecf20Sopenharmony_ci	.default_init = intel_default_init,
258c2ecf20Sopenharmony_ci};
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ciconst struct spi_nor_manufacturer spi_nor_intel = {
288c2ecf20Sopenharmony_ci	.name = "intel",
298c2ecf20Sopenharmony_ci	.parts = intel_parts,
308c2ecf20Sopenharmony_ci	.nparts = ARRAY_SIZE(intel_parts),
318c2ecf20Sopenharmony_ci	.fixups = &intel_fixups,
328c2ecf20Sopenharmony_ci};
33