Skip to content

Commit 2dc63e7

Browse files
bhupesh-sharmaandersson
authored andcommitted
clk: qcom: gcc: Add PCIe0 and PCIe1 GDSC for SM8150
Add the PCIe0 and PCIe1 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/20220302203045.184500-4-bhupesh.sharma@linaro.org
1 parent b527358 commit 2dc63e7

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

drivers/clk/qcom/gcc-sm8150.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3448,6 +3448,24 @@ static struct clk_branch gcc_video_xo_clk = {
34483448
},
34493449
};
34503450

3451+
static struct gdsc pcie_0_gdsc = {
3452+
.gdscr = 0x6b004,
3453+
.pd = {
3454+
.name = "pcie_0_gdsc",
3455+
},
3456+
.pwrsts = PWRSTS_OFF_ON,
3457+
.flags = POLL_CFG_GDSCR,
3458+
};
3459+
3460+
static struct gdsc pcie_1_gdsc = {
3461+
.gdscr = 0x8d004,
3462+
.pd = {
3463+
.name = "pcie_1_gdsc",
3464+
},
3465+
.pwrsts = PWRSTS_OFF_ON,
3466+
.flags = POLL_CFG_GDSCR,
3467+
};
3468+
34513469
static struct gdsc usb30_prim_gdsc = {
34523470
.gdscr = 0xf004,
34533471
.pd = {
@@ -3714,6 +3732,8 @@ static const struct qcom_reset_map gcc_sm8150_resets[] = {
37143732
};
37153733

37163734
static struct gdsc *gcc_sm8150_gdscs[] = {
3735+
[PCIE_0_GDSC] = &pcie_0_gdsc,
3736+
[PCIE_1_GDSC] = &pcie_1_gdsc,
37173737
[USB30_PRIM_GDSC] = &usb30_prim_gdsc,
37183738
[USB30_SEC_GDSC] = &usb30_sec_gdsc,
37193739
};

include/dt-bindings/clock/qcom,gcc-sm8150.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@
241241
#define GCC_USB_PHY_CFG_AHB2PHY_BCR 28
242242

243243
/* GCC GDSCRs */
244+
#define PCIE_0_GDSC 0
245+
#define PCIE_1_GDSC 1
244246
#define USB30_PRIM_GDSC 4
245247
#define USB30_SEC_GDSC 5
246248

0 commit comments

Comments
 (0)