Skip to content

Commit 996ab86

Browse files
Baruch Siachbjorn-helgaas
authored andcommitted
PCI: dwc: Move GEN3_RELATED DBI definitions to common header
These are common dwc macros that will be used for other platforms. Link: https://lore.kernel.org/r/1c2d5a7a139be81fa15f356b2380163dbdebdc09.1655799816.git.baruch@tkos.co.il Signed-off-by: Baruch Siach <baruch.siach@siklu.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Rob Herring <robh@kernel.org>
1 parent 7eb5768 commit 996ab86

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@
7474
#define PCIE_MSI_INTR0_MASK 0x82C
7575
#define PCIE_MSI_INTR0_STATUS 0x830
7676

77+
#define GEN3_RELATED_OFF 0x890
78+
#define GEN3_RELATED_OFF_GEN3_ZRXDC_NONCOMPL BIT(0)
79+
#define GEN3_RELATED_OFF_GEN3_EQ_DISABLE BIT(16)
80+
#define GEN3_RELATED_OFF_RATE_SHADOW_SEL_SHIFT 24
81+
#define GEN3_RELATED_OFF_RATE_SHADOW_SEL_MASK GENMASK(25, 24)
82+
7783
#define PCIE_PORT_MULTI_LANE_CTRL 0x8C0
7884
#define PORT_MLTI_UPCFG_SUPPORT BIT(7)
7985

drivers/pci/controller/dwc/pcie-tegra194.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,6 @@
191191
#define GEN3_EQ_CONTROL_OFF_PSET_REQ_VEC_MASK GENMASK(23, 8)
192192
#define GEN3_EQ_CONTROL_OFF_FB_MODE_MASK GENMASK(3, 0)
193193

194-
#define GEN3_RELATED_OFF 0x890
195-
#define GEN3_RELATED_OFF_GEN3_ZRXDC_NONCOMPL BIT(0)
196-
#define GEN3_RELATED_OFF_GEN3_EQ_DISABLE BIT(16)
197-
#define GEN3_RELATED_OFF_RATE_SHADOW_SEL_SHIFT 24
198-
#define GEN3_RELATED_OFF_RATE_SHADOW_SEL_MASK GENMASK(25, 24)
199-
200194
#define PORT_LOGIC_AMBA_ERROR_RESPONSE_DEFAULT 0x8D0
201195
#define AMBA_ERROR_RESPONSE_CRS_SHIFT 3
202196
#define AMBA_ERROR_RESPONSE_CRS_MASK GENMASK(1, 0)

0 commit comments

Comments
 (0)