Skip to content

Commit 2524dae

Browse files
Imran Shaikandersson
authored andcommitted
clk: qcom: gcc-qdu1000: Fix clkref clocks handling
Update the GCC clkref clock's halt_check to BRANCH_HALT, as it's status bit is not inverted in the latest hardware version of QDU1000 and QRU1000 SoCs. While at it, fix the gcc clkref clock ops as well. Fixes: 1c9efb0 ("clk: qcom: Add QDU1000 and QRU1000 GCC support") Signed-off-by: Imran Shaik <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent b311f5d commit 2524dae

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

drivers/clk/qcom/gcc-qdu1000.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1447,14 +1447,13 @@ static struct clk_branch gcc_pcie_0_cfg_ahb_clk = {
14471447

14481448
static struct clk_branch gcc_pcie_0_clkref_en = {
14491449
.halt_reg = 0x9c004,
1450-
.halt_bit = 31,
1451-
.halt_check = BRANCH_HALT_ENABLE,
1450+
.halt_check = BRANCH_HALT,
14521451
.clkr = {
14531452
.enable_reg = 0x9c004,
14541453
.enable_mask = BIT(0),
14551454
.hw.init = &(const struct clk_init_data) {
14561455
.name = "gcc_pcie_0_clkref_en",
1457-
.ops = &clk_branch_ops,
1456+
.ops = &clk_branch2_ops,
14581457
},
14591458
},
14601459
};
@@ -2274,14 +2273,13 @@ static struct clk_branch gcc_tsc_etu_clk = {
22742273

22752274
static struct clk_branch gcc_usb2_clkref_en = {
22762275
.halt_reg = 0x9c008,
2277-
.halt_bit = 31,
2278-
.halt_check = BRANCH_HALT_ENABLE,
2276+
.halt_check = BRANCH_HALT,
22792277
.clkr = {
22802278
.enable_reg = 0x9c008,
22812279
.enable_mask = BIT(0),
22822280
.hw.init = &(const struct clk_init_data) {
22832281
.name = "gcc_usb2_clkref_en",
2284-
.ops = &clk_branch_ops,
2282+
.ops = &clk_branch2_ops,
22852283
},
22862284
},
22872285
};

0 commit comments

Comments
 (0)