mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 17:48:58 +00:00
dee4e7b40c
Changelog: https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.132
Removed upstreamed:
bcm53xx/patches-5.15/037-v6.6-0006-ARM-dts-BCM53573-Add-cells-sizes-to-PCIe-node.patch[1]
bcm53xx/patches-5.15/037-v6.6-0007-ARM-dts-BCM53573-Use-updated-spi-gpio-binding-proper.patch[2]
bcm53xx/patches-5.15/037-v6.6-0008-ARM-dts-BCM5301X-Extend-RAM-to-full-256MB-for-Linksy.patch[3]
All other patches automatically rebased.
1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.15.132&id=b35f3ca1877e024887df205ede952863d65dad36
2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.15.132&id=2840d9b9c8750be270fb1153ccd5b983cbb5d592
3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.15.132&id=f086e859ddc252c32f0438edff241859c0f022ce
Build system: x86_64
Build-tested: ramips/tplink_archer-a6-v3
Run-tested: ramips/tplink_archer-a6-v3
Signed-off-by: John Audia <therealgraysky@proton.me>
(cherry picked from commit ac422c9788
)
[Refresh on top of OpenWrt 23.05]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
76 lines
2.4 KiB
Diff
76 lines
2.4 KiB
Diff
From 52d14545d2fc276b1bf9ccf48d4612fab6edfb6a Mon Sep 17 00:00:00 2001
|
|
From: David Bauer <mail@david-bauer.net>
|
|
Date: Thu, 6 May 2021 17:49:55 +0200
|
|
Subject: [PATCH] mtd: spi-nor: Add support for BoHong bh25q128as
|
|
|
|
Add MTD support for the BoHong bh25q128as SPI NOR chip.
|
|
The chip has 16MB of total capacity, divided into a total of 256
|
|
sectors, each 64KB sized. The chip also supports 4KB sectors.
|
|
Additionally, it supports dual and quad read modes.
|
|
|
|
Functionality was verified on an Tenbay WR1800K / MTK MT7621 board.
|
|
|
|
Signed-off-by: David Bauer <mail@david-bauer.net>
|
|
---
|
|
drivers/mtd/spi-nor/Makefile | 1 +
|
|
drivers/mtd/spi-nor/bohong.c | 21 +++++++++++++++++++++
|
|
drivers/mtd/spi-nor/core.c | 1 +
|
|
drivers/mtd/spi-nor/core.h | 1 +
|
|
4 files changed, 24 insertions(+)
|
|
create mode 100644 drivers/mtd/spi-nor/bohong.c
|
|
|
|
--- a/drivers/mtd/spi-nor/Makefile
|
|
+++ b/drivers/mtd/spi-nor/Makefile
|
|
@@ -2,6 +2,7 @@
|
|
|
|
spi-nor-objs := core.o sfdp.o swp.o otp.o sysfs.o
|
|
spi-nor-objs += atmel.o
|
|
+spi-nor-objs += bohong.o
|
|
spi-nor-objs += catalyst.o
|
|
spi-nor-objs += eon.o
|
|
spi-nor-objs += esmt.o
|
|
--- /dev/null
|
|
+++ b/drivers/mtd/spi-nor/bohong.c
|
|
@@ -0,0 +1,21 @@
|
|
+// 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"
|
|
+
|
|
+static const struct flash_info bohong_parts[] = {
|
|
+ /* BoHong Microelectronics */
|
|
+ { "bh25q128as", INFO(0x684018, 0, 64 * 1024, 256,
|
|
+ SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
|
|
+};
|
|
+
|
|
+const struct spi_nor_manufacturer spi_nor_bohong = {
|
|
+ .name = "bohong",
|
|
+ .parts = bohong_parts,
|
|
+ .nparts = ARRAY_SIZE(bohong_parts),
|
|
+};
|
|
--- a/drivers/mtd/spi-nor/core.c
|
|
+++ b/drivers/mtd/spi-nor/core.c
|
|
@@ -1844,6 +1844,7 @@ int spi_nor_sr2_bit7_quad_enable(struct
|
|
|
|
static const struct spi_nor_manufacturer *manufacturers[] = {
|
|
&spi_nor_atmel,
|
|
+ &spi_nor_bohong,
|
|
&spi_nor_catalyst,
|
|
&spi_nor_eon,
|
|
&spi_nor_esmt,
|
|
--- a/drivers/mtd/spi-nor/core.h
|
|
+++ b/drivers/mtd/spi-nor/core.h
|
|
@@ -473,6 +473,7 @@ struct sfdp {
|
|
|
|
/* Manufacturer drivers. */
|
|
extern const struct spi_nor_manufacturer spi_nor_atmel;
|
|
+extern const struct spi_nor_manufacturer spi_nor_bohong;
|
|
extern const struct spi_nor_manufacturer spi_nor_catalyst;
|
|
extern const struct spi_nor_manufacturer spi_nor_eon;
|
|
extern const struct spi_nor_manufacturer spi_nor_esmt;
|