aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-4.14/101-mt7621-timer.patch
diff options
context:
space:
mode:
authorWeijie Gao <hackpascal@gmail.com>2018-11-19 01:14:53 +0800
committerJohn Crispin <john@phrozen.org>2018-11-26 12:13:52 +0100
commitc7ca224299e77f5d822dd154b99fe9aeefc550be (patch)
treedb43a6a8815e505967b6d408888e2d987402356c /target/linux/ramips/patches-4.14/101-mt7621-timer.patch
parentf5af8be636c94c933674c6a914ae8a752100a8be (diff)
downloadupstream-c7ca224299e77f5d822dd154b99fe9aeefc550be.tar.gz
upstream-c7ca224299e77f5d822dd154b99fe9aeefc550be.tar.bz2
upstream-c7ca224299e77f5d822dd154b99fe9aeefc550be.zip
ramips: fix cpu clock of mt7621 and add dt clk devices
For a long time the mt7621 uses a fixed cpu clock which causes a problem if the cpu frequency is not 880MHz. This patch fixes the cpu clock calculation and adds the cpu/bus clkdev which will be used in dts. Signed-off-by: Weijie Gao <hackpascal@gmail.com>
Diffstat (limited to 'target/linux/ramips/patches-4.14/101-mt7621-timer.patch')
-rw-r--r--target/linux/ramips/patches-4.14/101-mt7621-timer.patch19
1 files changed, 0 insertions, 19 deletions
diff --git a/target/linux/ramips/patches-4.14/101-mt7621-timer.patch b/target/linux/ramips/patches-4.14/101-mt7621-timer.patch
index 5bbe137f1e..c7c4a40f97 100644
--- a/target/linux/ramips/patches-4.14/101-mt7621-timer.patch
+++ b/target/linux/ramips/patches-4.14/101-mt7621-timer.patch
@@ -85,22 +85,3 @@
endchoice
choice
---- a/arch/mips/ralink/timer-gic.c
-+++ b/arch/mips/ralink/timer-gic.c
-@@ -12,6 +12,7 @@
- #include <linux/of.h>
- #include <linux/clk-provider.h>
- #include <linux/clocksource.h>
-+#include <asm/time.h>
-
- #include "common.h"
-
-@@ -19,6 +20,8 @@ void __init plat_time_init(void)
- {
- ralink_of_remap();
-
-+ mips_hpt_frequency = 880000000 / 2;
-+
- of_clk_init(NULL);
- timer_probe();
- }