u-boot-brain/arch/powerpc/cpu
Stefan Roese 58eb869ffc ppc4xx: Add "ecctest" command to test/simulate ECC errors
This patch adds the "ecctest" command to test and simulate ECC errors
(single bit and/or double bit) while running from SDRAM. Currently only
the IBM DDR2 controller is supported (405EX, 440SP(e), 460EX/GT).

This is done by copying and calling functions, modifying the SDRAM
controller operation mode, in internal SRAM/OCM.

For correctable ECC errors (single bit) only the status will be printed
since the DDR2 controller doesn't provide the faulting address:

=> ecctest 1000000 1
Using address 01000000 for 1 bit ECC error injection
ECC: Correctable error

Uncorrectable ECC errors (double bit) will also display the faulting
address:

=> ecctest 1000000 2
Using address 01000000 for 2 bit ECC error injection
ECC: Uncorrectable error at 0x0001000000

To enable this "ecctest" function you need to define CONFIG_CMD_ECCTEST
in the board config header.

Tested on katmai and t3corp.

Signed-off-by: Stefan Roese <sr@denx.de>
2010-07-23 09:54:54 +02:00
..
74xx_7xx Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
mpc5xx Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
mpc5xxx Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
mpc8xx Drop support for GTH board 2010-07-17 20:47:08 +02:00
mpc8xxx powerpc 83xx/85xx: Merge lbc upmconfig code 2010-07-16 10:55:09 -05:00
mpc83xx powerpc 83xx/85xx: Merge lbc upmconfig code 2010-07-16 10:55:09 -05:00
mpc85xx powerpc/85xx: Move p1022ds slot code into board file 2010-07-16 10:55:10 -05:00
mpc86xx 83xx/85xx/86xx: LBC register cleanup 2010-07-16 10:55:09 -05:00
mpc512x Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
mpc824x Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
mpc8220 Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
mpc8260 Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
ppc4xx ppc4xx: Add "ecctest" command to test/simulate ECC errors 2010-07-23 09:54:54 +02:00