Skip to content

Commit 544a18c

Browse files
shimodaykwilczynski
authored andcommitted
PCI: dwc: Add PCIE_PORT_{FORCE,LANE_SKEW} macros
R-Car Gen4 PCIe controller needs to use the Synopsys-specific PCIe configuration registers. So, add the macros. Link: https://lore.kernel.org/linux-pci/[email protected] Signed-off-by: Yoshihiro Shimoda <[email protected]> Signed-off-by: Krzysztof Wilczyński <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]>
1 parent 1613e60 commit 544a18c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/pci/controller/dwc/pcie-designware.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@
7171
#define LINK_WAIT_IATU 9
7272

7373
/* Synopsys-specific PCIe configuration registers */
74+
#define PCIE_PORT_FORCE 0x708
75+
#define PORT_FORCE_DO_DESKEW_FOR_SRIS BIT(23)
76+
7477
#define PCIE_PORT_AFR 0x70C
7578
#define PORT_AFR_N_FTS_MASK GENMASK(15, 8)
7679
#define PORT_AFR_N_FTS(n) FIELD_PREP(PORT_AFR_N_FTS_MASK, n)
@@ -92,6 +95,9 @@
9295
#define PORT_LINK_MODE_4_LANES PORT_LINK_MODE(0x7)
9396
#define PORT_LINK_MODE_8_LANES PORT_LINK_MODE(0xf)
9497

98+
#define PCIE_PORT_LANE_SKEW 0x714
99+
#define PORT_LANE_SKEW_INSERT_MASK GENMASK(23, 0)
100+
95101
#define PCIE_PORT_DEBUG0 0x728
96102
#define PORT_LOGIC_LTSSM_STATE_MASK 0x1f
97103
#define PORT_LOGIC_LTSSM_STATE_L0 0x11

0 commit comments

Comments
 (0)