History

clk: qcom: gcc: Add PCIe0 and PCIe1 GDSC for SM8150

Add the PCIe0 and PCIe1 GDSC defines & driver structures for SM8150.

Bhupesh Sharma committed 4 years ago

Commit 2dc63e71 parent b5273582 files · +22 −0Browse files

Unified · Split

2 files
  1. drivers/clk/qcom/gcc-sm8150.c +20 −0
  2. include/dt-bindings/clock/qcom,gcc-sm8150.h +2 −0
drivers/clk/qcom/gcc-sm8150.c+20−0
@@ -3448,6 +3448,24 @@ static struct clk_branch gcc_video_xo_clk = { · 3447 unmodified lines
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[] = { · 260 unmodified lines
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+2−0
@@ -241,6 +241,8 @@ · 240 unmodified lines
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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t