]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
arm: mvebu: sdram: Enable ECC support on Armada XP
authorStefan Roese <sr@denx.de>
Tue, 11 Aug 2015 15:08:01 +0000 (17:08 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:24:13 +0000 (10:24 +0200)
commit6b9658e4cbc939d57d0b228dc8cc248a28ee3dca
tree791e236c481023960e135cd9e0e8f55f1491a966
parentbd7ed3c35b498dfe82ebf4234b84c7cb31b0e8a9
arm: mvebu: sdram: Enable ECC support on Armada XP

This is tested on the DB-MV784MP-GP eval board. To really enable ECC
support on this board the I2C EEPROM needs to get changed. As it
saves the enabling of ECC support internally. For this the following
commands can be used to enable ECC support on this board:

Its recommended for first save (print) the value(s) in this EEPROM
address:

=> i2c md 4e 0.1 2
0000: 05 00    ..

To enable ECC support you need to set bit 1 in the 2nd byte:

Marvell>> i2c mw 4e 1.1 02
Marvell>> i2c md 4e 0.1 2
0000: 05 02    ..

To disable ECC support again, please use this command:

Marvell>> i2c mw 4e 1.1 00
Marvell>> i2c md 4e 0.1 2
0000: 05 00    ..

On other AXP boards, simply plugging an ECC DIMM should be enough to
enable ECC support.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Luka Perkov <luka.perkov@sartura.hr>
drivers/ddr/marvell/axp/ddr3_axp_config.h