armv8/fsl_lsch2: Add chip power supply voltage setup
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Fri, 9 Dec 2016 08:09:00 +0000 (16:09 +0800)
committerYork Sun <york.sun@nxp.com>
Wed, 18 Jan 2017 17:29:08 +0000 (09:29 -0800)
commit031acdbae89515371f794d01df819b490ff7ca9c
tree6ce8549630686f35299191fe944d0b7d8e18e238
parent6424577b1bf1c7872baea42de174bc461de74b6b
armv8/fsl_lsch2: Add chip power supply voltage setup

Set up chip power supply voltage according to voltage ID.
The fuse status register provides the values from on-chip
voltage ID fuses programmed at the factory. These values
define the voltage requirements for the chip.

Main operations:
1. Set up the core voltage
2. Set up the SERDES voltage and reset SERDES lanes
3. Enable/disable DDR controller support 0.9V if needed

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_serdes.c
arch/arm/cpu/armv8/fsl-layerscape/soc.c
arch/arm/include/asm/arch-fsl-layerscape/fsl_serdes.h
arch/arm/include/asm/arch-fsl-layerscape/soc.h
include/fsl_ddr_sdram.h