Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) // SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Copyright (C) 2005, Intec Automation Inc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  * Copyright (C) 2014, Freescale Semiconductor, Inc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #include <linux/mtd/spi-nor.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #include "core.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) static const struct flash_info intel_parts[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	/* Intel/Numonyx -- xxxs33b */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	{ "160s33b",  INFO(0x898911, 0, 64 * 1024,  32, 0) },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 	{ "320s33b",  INFO(0x898912, 0, 64 * 1024,  64, 0) },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	{ "640s33b",  INFO(0x898913, 0, 64 * 1024, 128, 0) },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) static void intel_default_init(struct spi_nor *nor)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	nor->flags |= SNOR_F_HAS_LOCK;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) static const struct spi_nor_fixups intel_fixups = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	.default_init = intel_default_init,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) const struct spi_nor_manufacturer spi_nor_intel = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	.name = "intel",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	.parts = intel_parts,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	.nparts = ARRAY_SIZE(intel_parts),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 	.fixups = &intel_fixups,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) };