summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRanjani Vaidyanathan <ra5478@freescale.com>2011-11-17 16:57:52 -0600
committerRanjani Vaidyanathan <ra5478@freescale.com>2011-11-17 17:51:08 -0600
commit6ef098d726b3f7efb955ebea857311aca0192f83 (patch)
treea09275beb1c6e5ed3b24ce36b24a7e2c32c17f9a
parent02922d7dae392d6c506169cc9bfd5b009e259a94 (diff)
downloadu-boot-imx-6ef098d726b3f7efb955ebea857311aca0192f83.zip
u-boot-imx-6ef098d726b3f7efb955ebea857311aca0192f83.tar.gz
u-boot-imx-6ef098d726b3f7efb955ebea857311aca0192f83.tar.bz2
ENGR00162570: MX6-Increase VDDSOC_CAP voltage to 1.2V
Set the VDDSOC LDO to increase the VDDSOC cap to 1.2V. This is required for correct functioning of GPU and when the ARM LDO is set to 1.225V (when ARM core is at 1GHz). Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
-rw-r--r--cpu/arm_cortexa8/mx6/generic.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpu/arm_cortexa8/mx6/generic.c b/cpu/arm_cortexa8/mx6/generic.c
index 019a3f3..6af07d0 100644
--- a/cpu/arm_cortexa8/mx6/generic.c
+++ b/cpu/arm_cortexa8/mx6/generic.c
@@ -774,12 +774,19 @@ int cpu_eth_init(bd_t *bis)
#if defined(CONFIG_ARCH_CPU_INIT)
int arch_cpu_init(void)
{
+ int val;
icache_enable();
dcache_enable();
#ifndef CONFIG_L2_OFF
l2_cache_enable();
#endif
+ /* Increase the VDDSOC to 1.2V */
+ val = REG_RD(ANATOP_BASE_ADDR, HW_ANADIG_REG_CORE);
+ val &= ~BM_ANADIG_REG_CORE_REG2_TRG;
+ val |= BF_ANADIG_REG_CORE_REG2_TRG(0x5);
+ REG_SET(ANATOP_BASE_ADDR, HW_ANADIG_REG_CORE, val);
+
return 0;
}
#endif