Skip to content

Commit ff5c2bb

Browse files
Vidya SagarLorenzo Pieralisi
authored andcommitted
PCI: tegra: Fix CLKREQ dependency programming
Corrects the programming to provide REFCLK to the downstream device when there is no CLKREQ sideband signal routing present from root port to the endpont. Signed-off-by: Vidya Sagar <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Acked-by: Thierry Reding <[email protected]>
1 parent 54ecb8f commit ff5c2bb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040
#define APPL_PINMUX_CLKREQ_OVERRIDE BIT(3)
4141
#define APPL_PINMUX_CLK_OUTPUT_IN_OVERRIDE_EN BIT(4)
4242
#define APPL_PINMUX_CLK_OUTPUT_IN_OVERRIDE BIT(5)
43-
#define APPL_PINMUX_CLKREQ_OUT_OVRD_EN BIT(9)
44-
#define APPL_PINMUX_CLKREQ_OUT_OVRD BIT(10)
4543

4644
#define APPL_CTRL 0x4
4745
#define APPL_CTRL_SYS_PRE_DET_STATE BIT(6)
@@ -1193,8 +1191,8 @@ static int tegra_pcie_config_controller(struct tegra_pcie_dw *pcie,
11931191

11941192
if (!pcie->supports_clkreq) {
11951193
val = appl_readl(pcie, APPL_PINMUX);
1196-
val |= APPL_PINMUX_CLKREQ_OUT_OVRD_EN;
1197-
val |= APPL_PINMUX_CLKREQ_OUT_OVRD;
1194+
val |= APPL_PINMUX_CLKREQ_OVERRIDE_EN;
1195+
val &= ~APPL_PINMUX_CLKREQ_OVERRIDE;
11981196
appl_writel(pcie, val, APPL_PINMUX);
11991197
}
12001198

0 commit comments

Comments
 (0)