[openwrt/openwrt] ramips: fix cpuclock for the GB-PC1

LEDE Commits lede-commits at lists.infradead.org
Thu Jan 11 23:04:49 PST 2018


mkresin pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/7059ab48a6d5858a46de9e21c3e15ee2b7a2c26f

commit 7059ab48a6d5858a46de9e21c3e15ee2b7a2c26f
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Tue Jan 9 18:50:44 2018 -0800

    ramips: fix cpuclock for the GB-PC1
    
    The GnuBee PC1 stock bootloader runs at 900Mhz. This fixes bad clock drift when running the platform.
    
    Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
 target/linux/ramips/dts/GB-PC1.dts | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/target/linux/ramips/dts/GB-PC1.dts b/target/linux/ramips/dts/GB-PC1.dts
index df7caa9..664dfa1 100644
--- a/target/linux/ramips/dts/GB-PC1.dts
+++ b/target/linux/ramips/dts/GB-PC1.dts
@@ -102,6 +102,11 @@
 	};
 };
 
+&cpuclock {
+	compatible = "fixed-clock";
+	clock-frequency = <90000000>;
+};
+
 &pcie {
 	status = "okay";
 };



More information about the lede-commits mailing list