aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7/mx6/soc.c
diff options
context:
space:
mode:
authorJason Chen <b02280@freescale.com>2012-01-12 15:37:43 +0800
committerEric Miao <eric.miao@linaro.org>2012-01-17 12:17:42 +0800
commit5878df1b7162cea6b65436b5dedb5f37fc1cc8f3 (patch)
treec19b6c9bcdd16d99ff1c22b8ea4e7f667badf494 /arch/arm/cpu/armv7/mx6/soc.c
parent0df5a4fe9bce4eb0afdaea2ef2d3729f56176805 (diff)
arm: imx6q: add anatop regulator init
init core regulator to 1.2V Signed-off-by: Jason Chen <b02280@freescale.com> Signed-off-by: Eric Miao <eric.miao@linaro.org>
Diffstat (limited to 'arch/arm/cpu/armv7/mx6/soc.c')
-rw-r--r--arch/arm/cpu/armv7/mx6/soc.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c
index 7cf7ef16a..f9cfefb14 100644
--- a/arch/arm/cpu/armv7/mx6/soc.c
+++ b/arch/arm/cpu/armv7/mx6/soc.c
@@ -63,12 +63,25 @@ void init_axi_cache_qos(void)
writel(0x007f007f, IOMUXC_BASE_ADDR + 0x01c);
}
+void init_anatop_reg(void)
+{
+ u32 reg;
+
+ /* Increase the VDDSOC to 1.2V */
+ reg = readl(ANATOP_BASE_ADDR + 0x140);
+ reg &= ~0x007C0000;
+ reg |= (0x14 << 18) & 0x007C0000;
+ writel(reg, ANATOP_BASE_ADDR + 0x140);
+}
+
int arch_cpu_init(void)
{
init_aips();
init_axi_cache_qos();
+ init_anatop_reg();
+
return 0;
}
#endif