diff options
author | Bhupesh Sharma <bhupesh.sharma@linaro.org> | 2022-03-03 09:21:39 +0100 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2022-03-09 15:53:29 +0100 |
commit | 2fb605a1a529d366513fd223b4ee7c75db2db7e8 (patch) | |
tree | 2e4838c4b4ba9b6f7524ed7535fbee864e67bc91 /drivers/clk | |
parent | clk: qcom: gcc: Add PCIe0 and PCIe1 GDSC for SM8150 (diff) | |
download | linux-2fb605a1a529d366513fd223b4ee7c75db2db7e8.tar.xz linux-2fb605a1a529d366513fd223b4ee7c75db2db7e8.zip |
clk: qcom: gcc: Add UFS_CARD and UFS_PHY GDSCs for SM8150
Add the UFS_CARD and UFS_PHY GDSC defines & driver structures
for SM8150.
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220303082140.240745-2-bhupesh.sharma@linaro.org
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/qcom/gcc-sm8150.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/clk/qcom/gcc-sm8150.c b/drivers/clk/qcom/gcc-sm8150.c index 7e478dc2cefe..1ba2714d387c 100644 --- a/drivers/clk/qcom/gcc-sm8150.c +++ b/drivers/clk/qcom/gcc-sm8150.c @@ -3466,6 +3466,24 @@ static struct gdsc pcie_1_gdsc = { .flags = POLL_CFG_GDSCR, }; +static struct gdsc ufs_card_gdsc = { + .gdscr = 0x75004, + .pd = { + .name = "ufs_card_gdsc", + }, + .pwrsts = PWRSTS_OFF_ON, + .flags = POLL_CFG_GDSCR, +}; + +static struct gdsc ufs_phy_gdsc = { + .gdscr = 0x77004, + .pd = { + .name = "ufs_phy_gdsc", + }, + .pwrsts = PWRSTS_OFF_ON, + .flags = POLL_CFG_GDSCR, +}; + static struct gdsc usb30_prim_gdsc = { .gdscr = 0xf004, .pd = { @@ -3734,6 +3752,8 @@ static const struct qcom_reset_map gcc_sm8150_resets[] = { static struct gdsc *gcc_sm8150_gdscs[] = { [PCIE_0_GDSC] = &pcie_0_gdsc, [PCIE_1_GDSC] = &pcie_1_gdsc, + [UFS_CARD_GDSC] = &ufs_card_gdsc, + [UFS_PHY_GDSC] = &ufs_phy_gdsc, [USB30_PRIM_GDSC] = &usb30_prim_gdsc, [USB30_SEC_GDSC] = &usb30_sec_gdsc, }; |