]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
pcie: host: tegra: remove stale T210 fpga code
authorVidya Sagar <vidyas@nvidia.com>
Wed, 10 Jun 2015 00:56:12 +0000 (06:26 +0530)
committerLaxman Dewangan <ldewangan@nvidia.com>
Mon, 15 Jun 2015 05:59:28 +0000 (22:59 -0700)
removes stale T210 FPGA code

Bug 200019588

Reviewed-on: http://git-master/r/755981
(cherry picked from commit c4a36928427e5b02f34d7937e562192cbac51028)
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Change-Id: I7216dcc3043f5db0d8bd3582e73241f60f7a4e15
Reviewed-on: http://git-master/r/757754
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/pci/host/pci-tegra.c

index 2eac4d703c24dc0807cebf7c732c6d8ef2d4bd87..817357f885375daa0cd7f39d8791f9974c40667b 100644 (file)
@@ -1336,30 +1336,12 @@ static void tegra_pcie_unmap_resources(struct tegra_pcie *pcie)
        }
 }
 
-static bool tegra_pcie_is_fpga_pcie(void)
-{
-#define CLK_RST_BOND_OUT_REG           0x60006078
-#define CLK_RST_BOND_OUT_REG_PCIE      (1 << 6)
-       static int val;
-
-       PR_FUNC_LINE;
-       if (!val)
-               val = readl(ioremap(CLK_RST_BOND_OUT_REG, 4));
-       /* return if current netlist does not contain PCIE */
-       if (val & CLK_RST_BOND_OUT_REG_PCIE)
-               return false;
-       return true;
-}
-
 static int tegra_pcie_fpga_phy_init(struct tegra_pcie *pcie)
 {
 #define FPGA_GEN2_SPEED_SUPPORT                0x90000001
        struct tegra_pcie_port *port;
 
        PR_FUNC_LINE;
-       if (!tegra_pcie_is_fpga_pcie())
-               return -ENODEV;
-
        /* Do reset for FPGA pcie phy */
        afi_writel(pcie, AFI_WR_SCRATCH_0_RESET_VAL, AFI_WR_SCRATCH_0);
        udelay(10);
@@ -1380,7 +1362,7 @@ static void tegra_pcie_pme_turnoff(struct tegra_pcie *pcie)
        unsigned int data;
 
        PR_FUNC_LINE;
-       if (tegra_platform_is_fpga() && !tegra_pcie_is_fpga_pcie())
+       if (tegra_platform_is_fpga())
                return;
        data = afi_readl(pcie, AFI_PCIE_PME);
        data |= AFI_PCIE_PME_TURN_OFF;