diff options
author | Peng Fan <Peng.Fan@freescale.com> | 2015-03-12 10:08:03 +0800 |
---|---|---|
committer | Peng Fan <Peng.Fan@freescale.com> | 2015-04-29 14:40:29 +0800 |
commit | c0a8bf9ce4e747cac85c308658e0dbea0de448e7 (patch) | |
tree | a303233dae610e872502f476d15a2541c1dfd06a /arch/arm/imx-common/cpu.c | |
parent | f33cdaa4c3da4a8fd35aa2f9a3172f31cc887b35 (diff) | |
download | u-boot-imx-c0a8bf9ce4e747cac85c308658e0dbea0de448e7.zip u-boot-imx-c0a8bf9ce4e747cac85c308658e0dbea0de448e7.tar.gz u-boot-imx-c0a8bf9ce4e747cac85c308658e0dbea0de448e7.tar.bz2 |
MLK-10774-1 imx: LDO: add LDO bypass
This patch is from two commits:
1.
748eac71fde78aa0c2e8cb3a3bab94bd994c06f5
ENGR00315499-5: Support i.MX6 1.2GHz via LDO bypass
Add check for 1.2GHz core speed. If Speed grading fuse is for 1.2GHz,
enable LDO bypass and setup PMIC voltages. LDO bypass is dependent
on the flatten device tree file.
2.
93d457e4c601ee5266bc30b7dfa5fa1bbfa8500a
MLK-9891-1: ARM: imx6: split WDOG_B setting from set_anatop_bypass() function
We set WDOG_B in set_anatop_bypass() before, because it is the only case, but now
on i.mx6sabreauto board, we didn't use ldo-bypass mode, but have to use WDOG_B to
reboot whole board, so split these code to independent function so that board file
can call it freely.
Board code is not included, board ldo bypass code will be in bsp update code.
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Diffstat (limited to 'arch/arm/imx-common/cpu.c')
-rw-r--r-- | arch/arm/imx-common/cpu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/imx-common/cpu.c b/arch/arm/imx-common/cpu.c index 067d08f..67c4197 100644 --- a/arch/arm/imx-common/cpu.c +++ b/arch/arm/imx-common/cpu.c @@ -218,6 +218,9 @@ void arch_preboot_os(void) disable_sata_clock(); #endif #endif +#if defined(CONFIG_LDO_BYPASS_CHECK) + ldo_mode_set(check_ldo_bypass()); +#endif #if defined(CONFIG_VIDEO_IPUV3) /* disable video before launching O/S */ ipuv3_fb_shutdown(); |