summaryrefslogtreecommitdiff
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:30:36 +0800
commitb9bcfccc94d2abe9922ea311825e42888db1a3a7 (patch)
tree05b2488522467dc0f7a4e827e4cb8f0ff4fa2c2c
parent2556b15145f8026856ec3c78dd140bdcdfc3017b (diff)
downloadu-boot-imx-b9bcfccc94d2abe9922ea311825e42888db1a3a7.zip
u-boot-imx-b9bcfccc94d2abe9922ea311825e42888db1a3a7.tar.gz
u-boot-imx-b9bcfccc94d2abe9922ea311825e42888db1a3a7.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> (cherry picked from commit 987c48c07c9ef62fa3fe55faa6f7369b30637127)
-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)
{