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>
Fri, 24 May 2019 11:28:23 +0000 (04:28 -0700)
commit0e2de4c2d5d2c79e485d164394f03065743ba2c4
tree2ba08f4d013b40b7d86f5f0c235ef89f308fd490
parentc3fa80efdb8680b4b35bc5b3607c148c3c48732b
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)
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