File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
drivers/pci/controller/dwc Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 27
27
#define PARF_SYS_CTRL 0x00
28
28
#define PARF_DB_CTRL 0x10
29
29
#define PARF_PM_CTRL 0x20
30
+ #define PARF_MHI_CLOCK_RESET_CTRL 0x174
30
31
#define PARF_MHI_BASE_ADDR_LOWER 0x178
31
32
#define PARF_MHI_BASE_ADDR_UPPER 0x17c
32
33
#define PARF_DEBUG_INT_EN 0x190
89
90
#define PARF_PM_CTRL_READY_ENTR_L23 BIT(2)
90
91
#define PARF_PM_CTRL_REQ_NOT_ENTR_L1 BIT(5)
91
92
93
+ /* PARF_MHI_CLOCK_RESET_CTRL fields */
94
+ #define PARF_MSTR_AXI_CLK_EN BIT(1)
95
+
92
96
/* PARF_AXI_MSTR_RD_HALT_NO_WRITES register fields */
93
97
#define PARF_AXI_MSTR_RD_HALT_NO_WRITE_EN BIT(0)
94
98
@@ -394,6 +398,11 @@ static int qcom_pcie_perst_deassert(struct dw_pcie *pci)
394
398
pcie_ep -> parf + PARF_MHI_BASE_ADDR_LOWER );
395
399
writel_relaxed (0 , pcie_ep -> parf + PARF_MHI_BASE_ADDR_UPPER );
396
400
401
+ /* Gate Master AXI clock to MHI bus during L1SS */
402
+ val = readl_relaxed (pcie_ep -> parf + PARF_MHI_CLOCK_RESET_CTRL );
403
+ val &= ~PARF_MSTR_AXI_CLK_EN ;
404
+ val = readl_relaxed (pcie_ep -> parf + PARF_MHI_CLOCK_RESET_CTRL );
405
+
397
406
dw_pcie_ep_init_notify (& pcie_ep -> pci .ep );
398
407
399
408
/* Enable LTSSM */
You can’t perform that action at this time.
0 commit comments