This is an automatically generated commit which aids following Kernel patch history, as git will see the move and copy as a rename thus defeating the purpose. See: https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html for the original discussion. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
From fca6f185a9d9ef0892a719bc6da955b22d326ec7 Mon Sep 17 00:00:00 2001
|
|
From: Christian Marangi <ansuelsmth@gmail.com>
|
|
Date: Thu, 15 Sep 2022 02:24:33 +0200
|
|
Subject: [PATCH 4/9] clk: qcom: krait-cc: register REAL qsb fixed clock
|
|
|
|
With some tools it was discovered the real frequency of the qsb fixed
|
|
clock. While not 100% correct it's still better than using 1 as a dummy
|
|
frequency.
|
|
Correctly register the qsb fixed clock with the frequency of 225 MHz
|
|
instead of 1.
|
|
|
|
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
|
|
---
|
|
drivers/clk/qcom/krait-cc.c | 8 +++++---
|
|
1 file changed, 5 insertions(+), 3 deletions(-)
|
|
|
|
--- a/drivers/clk/qcom/krait-cc.c
|
|
+++ b/drivers/clk/qcom/krait-cc.c
|
|
@@ -25,6 +25,8 @@ enum {
|
|
clks_max,
|
|
};
|
|
|
|
+#define QSB_RATE 2250000000
|
|
+
|
|
static unsigned int sec_mux_map[] = {
|
|
2,
|
|
0,
|
|
@@ -364,7 +366,7 @@ static int krait_cc_probe(struct platfor
|
|
*/
|
|
clk = clk_get(dev, "qsb");
|
|
if (IS_ERR(clk))
|
|
- clk = clk_register_fixed_rate(dev, "qsb", NULL, 0, 1);
|
|
+ clk = clk_register_fixed_rate(dev, "qsb", NULL, 0, QSB_RATE);
|
|
if (IS_ERR(clk))
|
|
return PTR_ERR(clk);
|
|
|