summaryrefslogtreecommitdiff
path: root/arch/arm/cpu
diff options
context:
space:
mode:
authorYe.Li <B37916@freescale.com>2014-06-30 11:06:29 +0800
committerYe.Li <B37916@freescale.com>2014-06-30 11:27:47 +0800
commit987c48c07c9ef62fa3fe55faa6f7369b30637127 (patch)
tree05b2488522467dc0f7a4e827e4cb8f0ff4fa2c2c /arch/arm/cpu
parentbb533f0ce2e00e683a44ac9027cdba3eb12e9b45 (diff)
downloadu-boot-imx-987c48c07c9ef62fa3fe55faa6f7369b30637127.zip
u-boot-imx-987c48c07c9ef62fa3fe55faa6f7369b30637127.tar.gz
u-boot-imx-987c48c07c9ef62fa3fe55faa6f7369b30637127.tar.bz2
ENGR00320350 iMX6SLEVK: Fix build warning of PCIE Phy power down
Since the iMX6SL does not have PCIE module, should not define the function "imx_set_pcie_phy_power_down" for it. Otherwise, get the build warning below: arch/arm/cpu/armv7/mx6/soc.c:446:13: warning: 'imx_set_pcie_phy_power_down' defined but not used [-Wunused-function] static void imx_set_pcie_phy_power_down(void) Signed-off-by: Ye.Li <B37916@freescale.com>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r--arch/arm/cpu/armv7/mx6/soc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c
index e8dc42d..4662893 100644
--- a/arch/arm/cpu/armv7/mx6/soc.c
+++ b/arch/arm/cpu/armv7/mx6/soc.c
@@ -443,6 +443,7 @@ static void imx_set_vddpu_power_down(void)
writel(val, &anatop->reg_core_clr);
}
+#ifndef CONFIG_MX6SL
static void imx_set_pcie_phy_power_down(void)
{
u32 val;
@@ -457,6 +458,7 @@ static void imx_set_pcie_phy_power_down(void)
writel(val, IOMUXC_GPR_BASE_ADDR + 0x30);
#endif
}
+#endif
int arch_cpu_init(void)
{