aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq40xx
diff options
context:
space:
mode:
authorPavel Kubelun <be.dissent@gmail.com>2019-05-06 20:59:40 +0300
committerChristian Lamparter <chunkeey@gmail.com>2021-11-01 00:56:51 +0100
commit78be2741aa85abe39809ff3f3ce3e10942138831 (patch)
tree9064b243ca280dfa2bd9b0b67164491194c6a3b2 /target/linux/ipq40xx
parentabb4083fa06841ef5b094aee24a3b1f58403516b (diff)
downloadupstream-78be2741aa85abe39809ff3f3ce3e10942138831.tar.gz
upstream-78be2741aa85abe39809ff3f3ce3e10942138831.tar.bz2
upstream-78be2741aa85abe39809ff3f3ce3e10942138831.zip
ipq40xx: fix sleep clock
It seems like sleep_clk was copied from ipq806x. Fix ipq40xx sleep_clk to the value QSDK defines. Signed-off-by: Pavel Kubelun <be.dissent@gmail.com> Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [5.4+5.10]
Diffstat (limited to 'target/linux/ipq40xx')
-rw-r--r--target/linux/ipq40xx/patches-5.10/105-ipq40xx-fix-sleep-clock.patch29
-rw-r--r--target/linux/ipq40xx/patches-5.4/105-ipq40xx-fix-sleep-clock.patch29
2 files changed, 58 insertions, 0 deletions
diff --git a/target/linux/ipq40xx/patches-5.10/105-ipq40xx-fix-sleep-clock.patch b/target/linux/ipq40xx/patches-5.10/105-ipq40xx-fix-sleep-clock.patch
new file mode 100644
index 0000000000..97a36872e9
--- /dev/null
+++ b/target/linux/ipq40xx/patches-5.10/105-ipq40xx-fix-sleep-clock.patch
@@ -0,0 +1,29 @@
+From 4d44bb1031a68d7d5b604d3b340c059f41ca62af Mon Sep 17 00:00:00 2001
+From: dissent1 <be.dissent@gmail.com>
+Date: Mon, 6 May 2019 20:55:16 +0300
+Subject: [PATCH] ipq40xx: fix sleep clock
+
+It seems like sleep_clk was copied from ipq806x.
+Fix ipq40xx sleep_clk to the value QSDK defines.
+
+Also rename the sleep clock node like the GCC driver names it.
+
+Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
+---
+ arch/arm/boot/dts/qcom-ipq4019.dtsi | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/arch/arm/boot/dts/qcom-ipq4019.dtsi
++++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi
+@@ -141,9 +141,9 @@
+ };
+
+ clocks {
+- sleep_clk: sleep_clk {
++ sleep_clk: gcc_sleep_clk_src {
+ compatible = "fixed-clock";
+- clock-frequency = <32768>;
++ clock-frequency = <32000>;
+ #clock-cells = <0>;
+ };
+
diff --git a/target/linux/ipq40xx/patches-5.4/105-ipq40xx-fix-sleep-clock.patch b/target/linux/ipq40xx/patches-5.4/105-ipq40xx-fix-sleep-clock.patch
new file mode 100644
index 0000000000..97a36872e9
--- /dev/null
+++ b/target/linux/ipq40xx/patches-5.4/105-ipq40xx-fix-sleep-clock.patch
@@ -0,0 +1,29 @@
+From 4d44bb1031a68d7d5b604d3b340c059f41ca62af Mon Sep 17 00:00:00 2001
+From: dissent1 <be.dissent@gmail.com>
+Date: Mon, 6 May 2019 20:55:16 +0300
+Subject: [PATCH] ipq40xx: fix sleep clock
+
+It seems like sleep_clk was copied from ipq806x.
+Fix ipq40xx sleep_clk to the value QSDK defines.
+
+Also rename the sleep clock node like the GCC driver names it.
+
+Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
+---
+ arch/arm/boot/dts/qcom-ipq4019.dtsi | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/arch/arm/boot/dts/qcom-ipq4019.dtsi
++++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi
+@@ -141,9 +141,9 @@
+ };
+
+ clocks {
+- sleep_clk: sleep_clk {
++ sleep_clk: gcc_sleep_clk_src {
+ compatible = "fixed-clock";
+- clock-frequency = <32768>;
++ clock-frequency = <32000>;
+ #clock-cells = <0>;
+ };
+