ARM: tegra: t12x: implent pad pll iddq for sata
venkatajagadish [Tue, 22 Oct 2013 06:52:23 +0000 (11:52 +0530)]
Bug 1389315

Change-Id: Iaf6ecc3c06cd70efb7da1d7d1fb51ee6485a6b4c
Signed-off-by: venkatajagadish <vjagadish@nvidia.com>
Reviewed-on: http://git-master/r/300407
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

drivers/ata/ahci-tegra.c

index 361c849..9179f22 100644 (file)
@@ -1715,6 +1715,10 @@ void tegra_ahci_put_sata_in_iddq()
        val |= (PADPLL_IDDQ_SWCTL_ON | PADPLL_IDDQ_OVERRIDE_VALUE_ON);
        pmc_writel(val, APB_PMC_SATA_PWRGT_0_REG);
 
+       val = xusb_readl(XUSB_PADCTL_IOPHY_PLL_S0_CTL1_0);
+       val |= (PLL_PWR_OVRD_MASK | PLL_IDDQ_MASK | PLL_RST_MASK);
+       xusb_writel(val, XUSB_PADCTL_IOPHY_PLL_S0_CTL1_0);
+
 }
 void tegra_ahci_clr_clk_rst_cnt_rst_dev(void)
 {