diff options
author | Ye Li <ye.li@nxp.com> | 2016-03-07 15:37:34 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2016-03-25 15:21:23 +0800 |
commit | 5b87d04dba66fa45375d59648838ef89f559f75d (patch) | |
tree | e717ae1edf1020a39c5b22e84554057895cf71de /arch/arm/imx-common | |
parent | 32ad8302436700af8e8ad7375552b05fb1c912b8 (diff) | |
download | u-boot-imx-5b87d04dba66fa45375d59648838ef89f559f75d.zip u-boot-imx-5b87d04dba66fa45375d59648838ef89f559f75d.tar.gz u-boot-imx-5b87d04dba66fa45375d59648838ef89f559f75d.tar.bz2 |
MLK-12495 mx6: Add LDO bypass support
Port LDO bypass support from v2015 to support the features:
1. 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. 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.
Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'arch/arm/imx-common')
-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 3c7e7d1..cf84856 100644 --- a/arch/arm/imx-common/cpu.c +++ b/arch/arm/imx-common/cpu.c @@ -279,6 +279,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(); |