Skip to content
Commit c3ab2744 authored by Chris Packham's avatar Chris Packham Committed by Stefan Roese
Browse files

ARM: mvebu: handle unused DRAM banks with ECC enabled



dram_ecc_scrubbing() had code to skip unused DRAM banks but it would not
work because mvebu_sdram_bs() returns 0 and the code was subtracting 1
before checking the size. Remove the -1 from the bank size and the +1
from the total which will skip unused banks and still calculate the
correct size. Put the -1 where it is needed for scrubbing via the xor
engine.

Reported-by: default avatarJoshua Scott <joshua.scott@alliedtelesis.co.nz>
Signed-off-by: default avatarChris Packham <judge.packham@gmail.com>
Signed-off-by: default avatarStefan Roese <sr@denx.de>
parent 0a91e1cc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment