From abd11be13cd9bc8f3cbb5cfa6b458eb3f420d6c0 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 11 Dec 2015 15:03:39 +0000 Subject: ramips: use gic timer as clocksource for mt7621 * Switches clocksource to gic timer. * Moves frequency definitions to dtsi since frequency was hardcoded anyway Will work on proper frequency detection later. Signed-off-by: Nikolay Martynov SVN-Revision: 47843 --- target/linux/ramips/dts/mt7621.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'target/linux/ramips/dts/mt7621.dtsi') diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi index a06aee7..06828c6 100644 --- a/target/linux/ramips/dts/mt7621.dtsi +++ b/target/linux/ramips/dts/mt7621.dtsi @@ -88,6 +88,9 @@ compatible = "ns16550a"; reg = <0xc00 0x100>; + /* FIXME: there should be way to detect this */ + clock-frequency = <50000000>; + interrupt-parent = <&gic>; interrupts = ; @@ -102,6 +105,9 @@ compatible = "ralink,mt7621-spi"; reg = <0xb00 0x100>; + /* FIXME: there should be way to detect this */ + clock-frequency = <50000000>; + resets = <&rstctrl 18>; reset-names = "spi"; @@ -243,6 +249,14 @@ #interrupt-cells = <3>; mti,reserved-cpu-vectors = <7>; + + timer { + compatible = "mti,gic-timer"; + interrupts = ; + + /* FIXME: there should be way to detect this */ + clock-frequency = <880000000>; + }; }; nand@1e003000 { -- cgit v1.1