arm: mvebu: Add complete SDRAM ECC scrubbing
authorStefan Roese <sr@denx.de>
Thu, 6 Aug 2015 12:43:13 +0000 (14:43 +0200)
committerLuka Perkov <luka.perkov@sartura.hr>
Mon, 17 Aug 2015 16:49:33 +0000 (18:49 +0200)
commit0ceb2dae788848ad6df9fb1cc0e20e632f380887
tree0c760046fefc20f5c17e721e6906d52a7be9d9f2
parenta8b57a90ec65832ca069ed1b0900cf92e9efd6a0
arm: mvebu: Add complete SDRAM ECC scrubbing

This patch introduces the SDRAM scrubbing for ECC enabled board
to fill/initialize the ECC bytes. This is done via the XOR engine
to speed up the process. The scrubbing is a 2-stage process:

1) SPL scrubs the area 0 - 0x100.0000 (16MiB) for the main U-Boot
2) U-Boot scrubs the remaining SDRAM area(s)

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Luka Perkov <luka.perkov@sartura.hr>
arch/arm/mach-mvebu/Makefile
arch/arm/mach-mvebu/dram.c
drivers/ddr/marvell/axp/xor.c
drivers/ddr/marvell/axp/xor.h