armv8/fsl_lsch2: Add the OCRAM initialization
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Fri, 16 Dec 2016 09:15:46 +0000 (17:15 +0800)
committerYork Sun <york.sun@nxp.com>
Wed, 18 Jan 2017 17:27:27 +0000 (09:27 -0800)
commit3b6bf8115ff2d85caa5b0af366b7053d5c7822fd
tree22c588cfa35f95d89062d5aa49316033181f38c6
parent6930be345aab208ac22ace91eea6790a13b46262
armv8/fsl_lsch2: Add the OCRAM initialization

Clear the content to zero and the ECC error bit of OCRAM1/2.

The OCRAM must be initialized to ZERO by the unit of 8-Byte before
accessing it, or else it will generate ECC error. And the IBR has
accessed the OCRAM before this initialization, so the ECC error
status bit should to be cleared.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Signed-off-by: Pratiyush Srivastava <pratiyush.srivastava@nxp.com>
Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/lowlevel.S
arch/arm/include/asm/arch-fsl-layerscape/config.h