Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Bhupesh Sharma and committed by
Bjorn Andersson
2fb605a1 2dc63e76

+22
+20
drivers/clk/qcom/gcc-sm8150.c
··· 3466 3466 .flags = POLL_CFG_GDSCR, 3467 3467 }; 3468 3468 3469 + static struct gdsc ufs_card_gdsc = { 3470 + .gdscr = 0x75004, 3471 + .pd = { 3472 + .name = "ufs_card_gdsc", 3473 + }, 3474 + .pwrsts = PWRSTS_OFF_ON, 3475 + .flags = POLL_CFG_GDSCR, 3476 + }; 3477 + 3478 + static struct gdsc ufs_phy_gdsc = { 3479 + .gdscr = 0x77004, 3480 + .pd = { 3481 + .name = "ufs_phy_gdsc", 3482 + }, 3483 + .pwrsts = PWRSTS_OFF_ON, 3484 + .flags = POLL_CFG_GDSCR, 3485 + }; 3486 + 3469 3487 static struct gdsc usb30_prim_gdsc = { 3470 3488 .gdscr = 0xf004, 3471 3489 .pd = { ··· 3752 3734 static struct gdsc *gcc_sm8150_gdscs[] = { 3753 3735 [PCIE_0_GDSC] = &pcie_0_gdsc, 3754 3736 [PCIE_1_GDSC] = &pcie_1_gdsc, 3737 + [UFS_CARD_GDSC] = &ufs_card_gdsc, 3738 + [UFS_PHY_GDSC] = &ufs_phy_gdsc, 3755 3739 [USB30_PRIM_GDSC] = &usb30_prim_gdsc, 3756 3740 [USB30_SEC_GDSC] = &usb30_sec_gdsc, 3757 3741 };
+2
include/dt-bindings/clock/qcom,gcc-sm8150.h
··· 243 243 /* GCC GDSCRs */ 244 244 #define PCIE_0_GDSC 0 245 245 #define PCIE_1_GDSC 1 246 + #define UFS_CARD_GDSC 2 247 + #define UFS_PHY_GDSC 3 246 248 #define USB30_PRIM_GDSC 4 247 249 #define USB30_SEC_GDSC 5 248 250