ramips: fix cpu clock of mt7621 and add dt clk devices
[openwrt/staging/mkresin.git] / target / linux / ramips / patches-4.14 / 101-mt7621-timer.patch
index 5bbe137f1eb01cadf43a265494fe71471a4081b8..c7c4a40f97668765f2bd2ccbde90c599b3ee9e9d 100644 (file)
  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();
- }