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 <mar.kolya@gmail.com>

SVN-Revision: 47843
This commit is contained in:
John Crispin
2015-12-11 15:03:39 +00:00
parent a87272ebfb
commit abd11be13c
3 changed files with 101 additions and 0 deletions

View File

@@ -88,6 +88,9 @@
compatible = "ns16550a";
reg = <0xc00 0x100>;
/* FIXME: there should be way to detect this */
clock-frequency = <50000000>;
interrupt-parent = <&gic>;
interrupts = <GIC_SHARED 26 IRQ_TYPE_LEVEL_HIGH>;
@@ -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 = <GIC_LOCAL 1 IRQ_TYPE_NONE>;
/* FIXME: there should be way to detect this */
clock-frequency = <880000000>;
};
};
nand@1e003000 {