aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-3.10/0401-mt7620n-add-wmac-clock.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-09-12 06:50:46 +0000
committerJohn Crispin <john@openwrt.org>2014-09-12 06:50:46 +0000
commit17cf9c45934fe054b945aa00757d1f9509de68be (patch)
tree97544f271aea1dd03fa66a6b04a9555c5096c0d6 /target/linux/ramips/patches-3.10/0401-mt7620n-add-wmac-clock.patch
parente2864e9990e2bbc511e7f767ac7c264530471aa9 (diff)
downloadupstream-17cf9c45934fe054b945aa00757d1f9509de68be.tar.gz
upstream-17cf9c45934fe054b945aa00757d1f9509de68be.tar.bz2
upstream-17cf9c45934fe054b945aa00757d1f9509de68be.zip
ralink: drop 3.10 support
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 42481
Diffstat (limited to 'target/linux/ramips/patches-3.10/0401-mt7620n-add-wmac-clock.patch')
-rw-r--r--target/linux/ramips/patches-3.10/0401-mt7620n-add-wmac-clock.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/target/linux/ramips/patches-3.10/0401-mt7620n-add-wmac-clock.patch b/target/linux/ramips/patches-3.10/0401-mt7620n-add-wmac-clock.patch
deleted file mode 100644
index af5a25292b..0000000000
--- a/target/linux/ramips/patches-3.10/0401-mt7620n-add-wmac-clock.patch
+++ /dev/null
@@ -1,27 +0,0 @@
---- linux-3.10.26/arch/mips/ralink/mt7620.c 2014-01-15 21:49:41.368793580 +0200
-+++ linux-3.10.26/arch/mips/ralink/mt7620.c 2014-01-15 19:33:32.022038160 +0200
-@@ -105,12 +105,15 @@
-
- void __init ralink_clk_init(void)
- {
-- unsigned long cpu_rate, sys_rate;
-+ unsigned long cpu_rate, sys_rate, xtal_freq;
- u32 c0 = rt_sysc_r32(SYSC_REG_CPLL_CONFIG0);
- u32 c1 = rt_sysc_r32(SYSC_REG_CPLL_CONFIG1);
- u32 swconfig = (c0 >> CPLL_SW_CONFIG_SHIFT) & CPLL_SW_CONFIG_MASK;
- u32 cpu_clk = (c1 >> CPLL_CPU_CLK_SHIFT) & CPLL_CPU_CLK_MASK;
-
-+ u32 syscfg0 = rt_sysc_r32(SYSC_REG_SYSTEM_CONFIG0);
-+ xtal_freq = (syscfg0 & 0x40) ? 40000000 : 20000000;
-+
- if (cpu_clk) {
- cpu_rate = 480000000;
- } else if (!swconfig) {
-@@ -133,6 +136,7 @@
- ralink_clk_add("10000500.uart", 40000000);
- ralink_clk_add("10000b00.spi", 40000000);
- ralink_clk_add("10000c00.uartlite", 40000000);
-+ ralink_clk_add("10180000.wmac", xtal_freq);
-
- if (IS_ENABLED(CONFIG_USB)) {
- /*