From 86d7d18b6fff71f4758c192127e22701560e82c3 Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Sat, 14 Mar 2015 17:57:06 +0800 Subject: MLK-10774-10 imx:mx6sx add mx6sx support for pcie power down Add mx6sx support for pcie power down Signed-off-by: Peng Fan --- arch/arm/cpu/armv7/mx6/soc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'arch/arm/cpu/armv7/mx6') diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c index df374f4..9499b1a 100644 --- a/arch/arm/cpu/armv7/mx6/soc.c +++ b/arch/arm/cpu/armv7/mx6/soc.c @@ -391,9 +391,15 @@ static void imx_set_pcie_phy_power_down(void) { u32 val; +#ifndef CONFIG_MX6SX val = readl(IOMUXC_BASE_ADDR + 0x4); val |= 0x1 << 18; writel(val, IOMUXC_BASE_ADDR + 0x4); +#else + val = readl(IOMUXC_GPR_BASE_ADDR + 0x30); + val |= 0x1 << 30; + writel(val, IOMUXC_GPR_BASE_ADDR + 0x30); +#endif } #endif -- cgit v1.1