MLK-12495 mx6: Add LDO bypass support to i.MX6 SOC
authorYe Li <ye.li@nxp.com>
Fri, 23 Mar 2018 07:53:44 +0000 (00:53 -0700)
committerYe Li <ye.li@nxp.com>
Wed, 28 Apr 2021 20:49:33 +0000 (13:49 -0700)
commit95081f7d5cfeebea682c83d6ebc9ae4eefee2a0f
tree46666cd6ea08036928a562e8218824646b77f9d4
parentb31796d3637c4b8a6979af804634eb6854fd606a
MLK-12495 mx6: Add LDO bypass support to i.MX6 SOC

Port LDO bypass SOC codes from v2017 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 6bceaf009718cec856e11106d26e13601631fa4f)
(cherry picked from commit 0e2de4c2d5d2c79e485d164394f03065743ba2c4)
(cherry picked from commit 4160d7362893873d04b8a2d618ad6ff84c411da4)
arch/arm/include/asm/arch-mx6/sys_proto.h
arch/arm/mach-imx/cpu.c
arch/arm/mach-imx/mx6/Kconfig
arch/arm/mach-imx/mx6/soc.c