summaryrefslogtreecommitdiff
path: root/drivers/ddr/marvell/axp/xor.h
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2015-08-06 14:43:13 +0200
committerLuka Perkov <luka.perkov@sartura.hr>2015-08-17 18:49:33 +0200
commit0ceb2dae788848ad6df9fb1cc0e20e632f380887 (patch)
tree0c760046fefc20f5c17e721e6906d52a7be9d9f2 /drivers/ddr/marvell/axp/xor.h
parenta8b57a90ec65832ca069ed1b0900cf92e9efd6a0 (diff)
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>
Diffstat (limited to 'drivers/ddr/marvell/axp/xor.h')
-rw-r--r--drivers/ddr/marvell/axp/xor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ddr/marvell/axp/xor.h b/drivers/ddr/marvell/axp/xor.h
index 353648758a..3ff784d7a9 100644
--- a/drivers/ddr/marvell/axp/xor.h
+++ b/drivers/ddr/marvell/axp/xor.h
@@ -60,6 +60,7 @@ struct crc_dma_desc {
u32 src_addr1; /* Mode: Source Block address pointer */
} __packed;
+void mv_xor_hal_init(u32 chan_num);
int mv_xor_state_get(u32 chan);
void mv_sys_xor_init(MV_DRAM_INFO *dram_info);
void mv_sys_xor_finish(void);