]> git.dujemihanovic.xyz Git - u-boot.git/commit
keystone2: ecc: add ddr3 error detection and correction support
authorVitaly Andrianov <vitalya@ti.com>
Wed, 22 Oct 2014 14:47:58 +0000 (17:47 +0300)
committerTom Rini <trini@ti.com>
Thu, 23 Oct 2014 15:27:29 +0000 (11:27 -0400)
commit89f44bb0ceda8ba6b96f16d84a0a8a014f251e6e
tree73ddf2d3c066e9a52aad7b5312c651e266092bc9
parent079da2d514a447626a81f9df45c9f57e2f512a77
keystone2: ecc: add ddr3 error detection and correction support

This patch adds the DDR3 ECC support to enable ECC in the DDR3
EMIF controller for Keystone II devices.

By default, ECC will only be enabled if RMW is supported in the
DDR EMIF controller. The entire DDR memory will be scrubbed to
zero using an EDMA channel after ECC is enabled and before
u-boot is re-located to DDR memory.

An ecc_test environment variable is added for ECC testing.
If ecc_test is set to 0, a detection of 2-bit error will reset
the device, if ecc_test is set to 1, 2-bit error detection
will not reset the device, user can still boot the kernel to
check the ECC error handling in kernel.

Signed-off-by: Hao Zhang <hzhang@ti.com>
Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
arch/arm/cpu/armv7/keystone/ddr3.c
arch/arm/include/asm/arch-keystone/ddr3.h
arch/arm/include/asm/arch-keystone/hardware-k2hk.h
arch/arm/include/asm/arch-keystone/hardware.h
board/ti/ks2_evm/board.c
board/ti/ks2_evm/ddr3_k2hk.c