aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-5.10/300-mt7620-export-chip-version-and-pkg.patch
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-03-06 11:23:38 +0100
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-03-06 11:23:38 +0100
commitcc4ee2eeb465c1f4404b91852e6c86a43923c55e (patch)
tree84d07be2fb63d7b3d5fa82ff086f0a38fe017a51 /target/linux/ramips/patches-5.10/300-mt7620-export-chip-version-and-pkg.patch
parent20b6e014a61a9b40c30fab8184a9abd17f55085b (diff)
downloadupstream-cc4ee2eeb465c1f4404b91852e6c86a43923c55e.tar.gz
upstream-cc4ee2eeb465c1f4404b91852e6c86a43923c55e.tar.bz2
upstream-cc4ee2eeb465c1f4404b91852e6c86a43923c55e.zip
Revert "ramips: add support for kernel 5.10"
This reverts commit b4aad29a1d7ad77d67073c1c54b28c429c64ed9b. This was accidentally folded into a single commit. Remove it and apply it properly again. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/patches-5.10/300-mt7620-export-chip-version-and-pkg.patch')
-rw-r--r--target/linux/ramips/patches-5.10/300-mt7620-export-chip-version-and-pkg.patch19
1 files changed, 0 insertions, 19 deletions
diff --git a/target/linux/ramips/patches-5.10/300-mt7620-export-chip-version-and-pkg.patch b/target/linux/ramips/patches-5.10/300-mt7620-export-chip-version-and-pkg.patch
deleted file mode 100644
index 8b4335eb03..0000000000
--- a/target/linux/ramips/patches-5.10/300-mt7620-export-chip-version-and-pkg.patch
+++ /dev/null
@@ -1,19 +0,0 @@
---- a/arch/mips/include/asm/mach-ralink/mt7620.h
-+++ b/arch/mips/include/asm/mach-ralink/mt7620.h
-@@ -135,4 +135,16 @@ static inline int mt7620_get_eco(void)
- return rt_sysc_r32(SYSC_REG_CHIP_REV) & CHIP_REV_ECO_MASK;
- }
-
-+static inline int mt7620_get_chipver(void)
-+{
-+ return (rt_sysc_r32(SYSC_REG_CHIP_REV) >> CHIP_REV_VER_SHIFT) &
-+ CHIP_REV_VER_MASK;
-+}
-+
-+static inline int mt7620_get_pkg(void)
-+{
-+ return (rt_sysc_r32(SYSC_REG_CHIP_REV) >> CHIP_REV_PKG_SHIFT) &
-+ CHIP_REV_PKG_MASK;
-+}
-+
- #endif