ramips: fix cpu clock of mt7621 and add dt clk devices
authorWeijie Gao <hackpascal@gmail.com>
Sun, 18 Nov 2018 17:14:53 +0000 (01:14 +0800)
committerJo-Philipp Wich <jo@mein.io>
Tue, 18 Dec 2018 16:48:17 +0000 (17:48 +0100)
commit1e4c24059f538bc1d8fc239f9771068d78f610bf
treea0989ba987769193b9ae8a64cc8ee05492b20963
parentcea458b1b034f141a66b73523026508feda42849
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>
(backported from c7ca224299e77f5d822dd154b99fe9aeefc550be)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
target/linux/ramips/dts/mt7621.dtsi
target/linux/ramips/patches-4.14/101-mt7621-timer.patch
target/linux/ramips/patches-4.14/102-mt7621-fix-cpu-clk-add-clkdev.patch [new file with mode: 0644]