summaryrefslogtreecommitdiff
path: root/arch/arm/cpu
diff options
context:
space:
mode:
authorYe.Li <B37916@freescale.com>2014-06-30 11:06:29 +0800
committerPeng Fan <Peng.Fan@freescale.com>2015-04-29 14:42:34 +0800
commitcd71ea40cd2756db8c8a50209df468fb600024db (patch)
tree995d65874a361457fc2526be55a9c20919899dd8 /arch/arm/cpu
parentd73835c61a6a0e65760929364ee1290cc4c65d01 (diff)
downloadu-boot-imx-cd71ea40cd2756db8c8a50209df468fb600024db.zip
u-boot-imx-cd71ea40cd2756db8c8a50209df468fb600024db.tar.gz
u-boot-imx-cd71ea40cd2756db8c8a50209df468fb600024db.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) Signed-off-by: Peng Fan <Peng.Fan@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 496148d..51631ce 100644
--- a/arch/arm/cpu/armv7/mx6/soc.c
+++ b/arch/arm/cpu/armv7/mx6/soc.c
@@ -370,6 +370,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;
@@ -378,6 +379,7 @@ static void imx_set_pcie_phy_power_down(void)
val |= 0x1 << 18;
writel(val, IOMUXC_BASE_ADDR + 0x4);
}
+#endif
int arch_cpu_init(void)
{