diff options
author | John Crispin <john@phrozen.org> | 2017-02-13 12:38:27 +0100 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2017-02-14 12:17:52 +0100 |
commit | 9c2422709075196022fcbc2d0f5f83e01d02b951 (patch) | |
tree | 4f18a4dd9d22fcbe10c0365596dd133cf28383be /target/linux/ramips/patches-4.9/301-fix-rt3883.patch | |
parent | d5221d5a419c14456bccba9f6825567839082fb0 (diff) | |
download | upstream-9c2422709075196022fcbc2d0f5f83e01d02b951.tar.gz upstream-9c2422709075196022fcbc2d0f5f83e01d02b951.tar.bz2 upstream-9c2422709075196022fcbc2d0f5f83e01d02b951.zip |
ramips: add v4.9 support
NAND support is missing
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/ramips/patches-4.9/301-fix-rt3883.patch')
-rw-r--r-- | target/linux/ramips/patches-4.9/301-fix-rt3883.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-4.9/301-fix-rt3883.patch b/target/linux/ramips/patches-4.9/301-fix-rt3883.patch new file mode 100644 index 0000000000..100dd6253d --- /dev/null +++ b/target/linux/ramips/patches-4.9/301-fix-rt3883.patch @@ -0,0 +1,26 @@ +--- a/arch/mips/ralink/rt3883.c ++++ b/arch/mips/ralink/rt3883.c +@@ -63,16 +63,6 @@ + { 0 } + }; + +-static void rt3883_wdt_reset(void) +-{ +- u32 t; +- +- /* enable WDT reset output on GPIO 2 */ +- t = rt_sysc_r32(RT3883_SYSC_REG_SYSCFG1); +- t |= RT3883_SYSCFG1_GPIO2_AS_WDT_OUT; +- rt_sysc_w32(t, RT3883_SYSC_REG_SYSCFG1); +-} +- + void __init ralink_clk_init(void) + { + unsigned long cpu_rate, sys_rate; +@@ -157,5 +147,5 @@ + + rt2880_pinmux_data = rt3883_pinmux_data; + +- ralink_soc == RT3883_SOC; ++ ralink_soc = RT3883_SOC; + } |