summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJason Liu <r64343@freescale.com>2013-05-22 15:53:42 +0800
committerJason Liu <r64343@freescale.com>2013-05-24 09:26:01 +0800
commitc396f370d3de7f21b12f7c15237ecd03bf31fcc6 (patch)
treedb25463213f1ddba9acfa50a8520a8b4b4a17599 /arch
parentb0d17d9fc6012926bb97e2e7ac917042f9828938 (diff)
downloadu-boot-imx-c396f370d3de7f21b12f7c15237ecd03bf31fcc6.zip
u-boot-imx-c396f370d3de7f21b12f7c15237ecd03bf31fcc6.tar.gz
u-boot-imx-c396f370d3de7f21b12f7c15237ecd03bf31fcc6.tar.bz2
ENGR00264076-1 i.mx6:reset LDOs step_time
ROM may modify CORE's LDO step_time settings according to the fuse setting for safe, reset them to the default value.Reset it to 0'b00. 0'b00: 64 cycles of 24M clock; 0'b01: 128 cycles of 24M clock; 0'b02: 256 cycles of 24M clock; 0'b03: 512 cycles of 24M clock; Signed-off-by: Anson Huang <b20788@freescale.com> Signed-off-by: Jason Liu <r64343@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/armv7/mx6/soc.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c
index 69b8487..8826e4d 100644
--- a/arch/arm/cpu/armv7/mx6/soc.c
+++ b/arch/arm/cpu/armv7/mx6/soc.c
@@ -2,7 +2,7 @@
* (C) Copyright 2007
* Sascha Hauer, Pengutronix
*
- * (C) Copyright 2009 Freescale Semiconductor, Inc.
+ * (C) Copyright 2009-2013 Freescale Semiconductor, Inc.
*
* See file CREDITS for list of people who contributed to this
* project.
@@ -133,6 +133,14 @@ void set_vddsoc(u32 mv)
*/
reg = (reg & ~(0x1F << 18)) | (val << 18);
writel(reg, &anatop->reg_core);
+
+ /* ROM may modify LDO ramp up time according to fuse setting for safe,
+ * we need to reset these settings to match the reset value: 0'b00
+ */
+ reg = readl(&anatop->ana_misc2);
+ reg &= ~(0x3f << 24);
+ writel(reg, &anatop->ana_misc2);
+
}
static void imx_set_wdog_powerdown(bool enable)