Skip to content

Commit bb5c022

Browse files
Mani-Sadhasivamandersson
authored andcommitted
clk: qcom: gcc-sc8180x: Add missing UFS QREF clocks
Add missing QREF clocks for UFS MEM and UFS CARD controllers. Fixes: 4433594 ("clk: qcom: gcc: Add global clock controller driver for SC8180x") Acked-by: Konrad Dybcio <konrad.dybcio@linaro.org> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Link: https://lore.kernel.org/r/20240131-ufs-phy-clock-v3-4-58a49d2f4605@linaro.org Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 286ffaa commit bb5c022

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

drivers/clk/qcom/gcc-sc8180x.c

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3347,6 +3347,19 @@ static struct clk_branch gcc_ufs_card_2_unipro_core_clk = {
33473347
},
33483348
};
33493349

3350+
static struct clk_branch gcc_ufs_card_clkref_en = {
3351+
.halt_reg = 0x8c004,
3352+
.halt_check = BRANCH_HALT,
3353+
.clkr = {
3354+
.enable_reg = 0x8c004,
3355+
.enable_mask = BIT(0),
3356+
.hw.init = &(const struct clk_init_data) {
3357+
.name = "gcc_ufs_card_clkref_en",
3358+
.ops = &clk_branch2_ops,
3359+
},
3360+
},
3361+
};
3362+
33503363
static struct clk_branch gcc_ufs_card_ahb_clk = {
33513364
.halt_reg = 0x75014,
33523365
.halt_check = BRANCH_HALT,
@@ -3561,6 +3574,19 @@ static struct clk_branch gcc_ufs_card_unipro_core_hw_ctl_clk = {
35613574
},
35623575
};
35633576

3577+
static struct clk_branch gcc_ufs_mem_clkref_en = {
3578+
.halt_reg = 0x8c000,
3579+
.halt_check = BRANCH_HALT,
3580+
.clkr = {
3581+
.enable_reg = 0x8c000,
3582+
.enable_mask = BIT(0),
3583+
.hw.init = &(const struct clk_init_data) {
3584+
.name = "gcc_ufs_mem_clkref_en",
3585+
.ops = &clk_branch2_ops,
3586+
},
3587+
},
3588+
};
3589+
35643590
static struct clk_branch gcc_ufs_phy_ahb_clk = {
35653591
.halt_reg = 0x77014,
35663592
.halt_check = BRANCH_HALT,
@@ -4413,6 +4439,7 @@ static struct clk_regmap *gcc_sc8180x_clocks[] = {
44134439
[GCC_UFS_CARD_2_TX_SYMBOL_0_CLK] = &gcc_ufs_card_2_tx_symbol_0_clk.clkr,
44144440
[GCC_UFS_CARD_2_UNIPRO_CORE_CLK] = &gcc_ufs_card_2_unipro_core_clk.clkr,
44154441
[GCC_UFS_CARD_2_UNIPRO_CORE_CLK_SRC] = &gcc_ufs_card_2_unipro_core_clk_src.clkr,
4442+
[GCC_UFS_CARD_CLKREF_EN] = &gcc_ufs_card_clkref_en.clkr,
44164443
[GCC_UFS_CARD_AHB_CLK] = &gcc_ufs_card_ahb_clk.clkr,
44174444
[GCC_UFS_CARD_AXI_CLK] = &gcc_ufs_card_axi_clk.clkr,
44184445
[GCC_UFS_CARD_AXI_CLK_SRC] = &gcc_ufs_card_axi_clk_src.clkr,
@@ -4429,6 +4456,7 @@ static struct clk_regmap *gcc_sc8180x_clocks[] = {
44294456
[GCC_UFS_CARD_UNIPRO_CORE_CLK] = &gcc_ufs_card_unipro_core_clk.clkr,
44304457
[GCC_UFS_CARD_UNIPRO_CORE_CLK_SRC] = &gcc_ufs_card_unipro_core_clk_src.clkr,
44314458
[GCC_UFS_CARD_UNIPRO_CORE_HW_CTL_CLK] = &gcc_ufs_card_unipro_core_hw_ctl_clk.clkr,
4459+
[GCC_UFS_MEM_CLKREF_EN] = &gcc_ufs_mem_clkref_en.clkr,
44324460
[GCC_UFS_PHY_AHB_CLK] = &gcc_ufs_phy_ahb_clk.clkr,
44334461
[GCC_UFS_PHY_AXI_CLK] = &gcc_ufs_phy_axi_clk.clkr,
44344462
[GCC_UFS_PHY_AXI_CLK_SRC] = &gcc_ufs_phy_axi_clk_src.clkr,

0 commit comments

Comments
 (0)