ARM: tegra: pcie: Disable PCIe GEN2 capability
Eric Brower [Mon, 4 Nov 2013 19:27:55 +0000 (11:27 -0800)]
Disable PCIe Gen2 capability.  This is not supported on Tegra 20/30 SOCs.
Bug 1399592

Change-Id: I696a982b93d2e56a3b24379d38e51a5e93e4b7a1
Signed-off-by: Eric Brower <ebrower@nvidia.com>
Reviewed-on: http://git-master/r/326195
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

arch/arm/mach-tegra/pcie.c

index 04d3a5d..dd6da2a 100644 (file)
@@ -825,7 +825,7 @@ static void tegra_pcie_enable_controller(void)
        afi_writel(val, AFI_PCIE_CONFIG);
 
        /* Disable Gen 2 capability of PCIE */
-       val = afi_readl(AFI_FUSE) & ~AFI_FUSE_PCIE_T0_GEN2_DIS;
+       val = afi_readl(AFI_FUSE) | AFI_FUSE_PCIE_T0_GEN2_DIS;
        afi_writel(val, AFI_FUSE);
 
        /* Initialze internal PHY, enable up to 16 PCIE lanes */