diff options
author | Jason Chen <b02280@freescale.com> | 2012-01-12 15:37:43 +0800 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2012-04-23 07:48:48 -0600 |
commit | 7ebf30ecd12108ef8af052cbd7079638b9292d9b (patch) | |
tree | 22be869d8bf7ef6c75b2f76142faba975638d134 | |
parent | 996306c921cefe11717f13e2b026a48cea414cf0 (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>
-rw-r--r-- | arch/arm/cpu/armv7/mx6/soc.c | 13 |
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 53d671f1f..49ee12e60 100644 --- a/arch/arm/cpu/armv7/mx6/soc.c +++ b/arch/arm/cpu/armv7/mx6/soc.c @@ -86,12 +86,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 |