Skip to content

Commit 59dd704

Browse files
committed
Merge branch 'pci/controller/rcar-gen4'
- Add Synopsys DWC macros for lane skew configuration (Yoshihiro Shimoda) - Add struct rcar_gen4_pcie_drvdata to provide for future SoCs with different initialization requirements (Yoshihiro Shimoda) - Add .ltssm_control() method for SoC dependencies (Yoshihiro Shimoda) - Add r8a779g0 (R-Car V4H) support (Yoshihiro Shimoda) * pci/controller/rcar-gen4: PCI: rcar-gen4: Add support for R-Car V4H PCI: rcar-gen4: Add .ltssm_control() for other SoC support PCI: rcar-gen4: Add struct rcar_gen4_pcie_drvdata PCI: dwc: Add PCIE_PORT_{FORCE,LANE_SKEW} macros
2 parents 55b3ebf + faf5a97 commit 59dd704

File tree

2 files changed

+276
-34
lines changed

2 files changed

+276
-34
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@
6969
#define LINK_WAIT_IATU 9
7070

7171
/* Synopsys-specific PCIe configuration registers */
72+
#define PCIE_PORT_FORCE 0x708
73+
#define PORT_FORCE_DO_DESKEW_FOR_SRIS BIT(23)
74+
7275
#define PCIE_PORT_AFR 0x70C
7376
#define PORT_AFR_N_FTS_MASK GENMASK(15, 8)
7477
#define PORT_AFR_N_FTS(n) FIELD_PREP(PORT_AFR_N_FTS_MASK, n)
@@ -90,6 +93,9 @@
9093
#define PORT_LINK_MODE_4_LANES PORT_LINK_MODE(0x7)
9194
#define PORT_LINK_MODE_8_LANES PORT_LINK_MODE(0xf)
9295

96+
#define PCIE_PORT_LANE_SKEW 0x714
97+
#define PORT_LANE_SKEW_INSERT_MASK GENMASK(23, 0)
98+
9399
#define PCIE_PORT_DEBUG0 0x728
94100
#define PORT_LOGIC_LTSSM_STATE_MASK 0x1f
95101
#define PORT_LOGIC_LTSSM_STATE_L0 0x11

0 commit comments

Comments
 (0)