MLK-12495 mx6: Add LDO bypass support
authorYe Li <ye.li@nxp.com>
Mon, 7 Mar 2016 07:37:34 +0000 (15:37 +0800)
committerYe Li <ye.li@nxp.com>
Wed, 5 Apr 2017 06:04:41 +0000 (14:04 +0800)
commit8f8699a8845c3f1a838d0e8a258ceebcc60f5622
tree9bb37fa7e1d5b846e87e59c0ad6cdf94f882153b
parente1c8247f3460cc5742d4470731581f79d3a64198
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>
(cherry picked from commit 5b87d04dba66fa45375d59648838ef89f559f75d)
13 files changed:
arch/arm/cpu/armv7/mx6/Kconfig
arch/arm/cpu/armv7/mx6/soc.c
arch/arm/imx-common/cpu.c
arch/arm/include/asm/arch-mx6/sys_proto.h
board/freescale/mx6qarm2/mx6qarm2.c
board/freescale/mx6qsabreauto/mx6qsabreauto.c
board/freescale/mx6sabresd/mx6sabresd.c
board/freescale/mx6slevk/mx6slevk.c
board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
board/freescale/mx6sxsabresd/mx6sxsabresd.c
board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
include/configs/mx6_common.h
include/configs/mx6ul_14x14_evk.h