1
0
This repository has been archived on 2024-11-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Lakka-rk322x/projects/Amlogic/patches/linux/amlogic-0061-WIP-clk-meson-g12a-fix-hifi-pll-lock.patch
2021-03-28 15:57:24 +00:00

34 lines
1.1 KiB
Diff

From c4b9d6d8feaf91a9b83285052ac7b4f45580ddb0 Mon Sep 17 00:00:00 2001
From: Jerome Brunet <jbrunet@baylibre.com>
Date: Tue, 14 Apr 2020 10:45:08 +0200
Subject: [PATCH 61/88] WIP: clk: meson: g12a: fix hifi pll lock
The HIFI pll of the g12a sometimes takes a long time to report the lock in
HIFI_PLL_CNTL0 bit 31. The would eventually be reported but the delay may
be so long that the driver consider it a lock failure.
Bit 30 seems to do the same job but more quickly, let's try this instead.
Fixes: 085a4ea93d54 ("clk: meson: g12a: add peripheral clock controller")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
drivers/clk/meson/g12a.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c
index a805bac93c11..c22611d3669a 100644
--- a/drivers/clk/meson/g12a.c
+++ b/drivers/clk/meson/g12a.c
@@ -1783,7 +1783,7 @@ static struct clk_regmap g12a_hifi_pll_dco = {
},
.l = {
.reg_off = HHI_HIFI_PLL_CNTL0,
- .shift = 31,
+ .shift = 30,
.width = 1,
},
.rst = {
--
2.17.1