mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-07 12:00:51 +09:00
ppc4xx: Add ECC status info to machine-check exception for IBM DDR2 core
Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
58eb869ffc
commit
be24ef6e8e
@ -209,6 +209,22 @@ MachineCheckException(struct pt_regs *regs)
|
|||||||
/* Clear MCSR */
|
/* Clear MCSR */
|
||||||
mtspr(SPRN_MCSR, val);
|
mtspr(SPRN_MCSR, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(CONFIG_DDR_ECC) && defined(CONFIG_SDRAM_PPC4xx_IBM_DDR2)
|
||||||
|
/*
|
||||||
|
* Read and print ECC status register/info:
|
||||||
|
* The faulting address is only known upon uncorrectable ECC
|
||||||
|
* errors.
|
||||||
|
*/
|
||||||
|
mfsdram(SDRAM_ECCES, val);
|
||||||
|
if (val & SDRAM_ECCES_CE)
|
||||||
|
printf("ECC: Correctable error\n");
|
||||||
|
if (val & SDRAM_ECCES_UE) {
|
||||||
|
printf("ECC: Uncorrectable error at 0x%02x%08x\n",
|
||||||
|
mfdcr(SDRAM_ERRADDULL), mfdcr(SDRAM_ERRADDLLL));
|
||||||
|
}
|
||||||
|
#endif /* CONFIG_DDR_ECC ... */
|
||||||
|
|
||||||
#if defined(CONFIG_440EPX) || defined(CONFIG_440GRX)
|
#if defined(CONFIG_440EPX) || defined(CONFIG_440GRX)
|
||||||
mfsdram(DDR0_00, val) ;
|
mfsdram(DDR0_00, val) ;
|
||||||
printf("DDR0: DDR0_00 %lx\n", val);
|
printf("DDR0: DDR0_00 %lx\n", val);
|
||||||
|
Loading…
Reference in New Issue
Block a user