summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Hui <buurin@gmail.com>2023-03-23 01:14:58 -0400
committerLean Sheng Tan <sheng.tan@9elements.com>2023-05-17 13:10:10 +0000
commit6554873850f86993ab300d37b110fc160954f155 (patch)
tree7ac061b6c7b42bd22df8addf137c3d4e96e2244f
parenta491f2fa459dca41cea8e007852b4df6da1e7fb5 (diff)
downloadcoreboot-6554873850f86993ab300d37b110fc160954f155.tar.gz
nb/intel/i440bx: Clear memory errors before ending raminit
i440BX datasheet says all memory errors reported during RAM init should be ignored. Do as it says. Change-Id: Iaf85fde813aa083ae62218a2df5aec303e3c9f8c Signed-off-by: Keith Hui <buurin@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/73952 Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/northbridge/intel/i440bx/raminit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/northbridge/intel/i440bx/raminit.c b/src/northbridge/intel/i440bx/raminit.c
index 81c4e785a3..9f5f2dd918 100644
--- a/src/northbridge/intel/i440bx/raminit.c
+++ b/src/northbridge/intel/i440bx/raminit.c
@@ -1012,5 +1012,10 @@ void sdram_initialize(int s3resume)
sdram_set_spd_registers();
sdram_enable();
+ /* Clear any errors reported during raminit. */
+ pci_write_config32(NB, EAP, 0x3);
+ pci_write_config8(NB, ERRSTS, 0x11);
+ pci_write_config8(NB, ERRSTS + 1, 0x1f);
+
timestamp_add_now(TS_INITRAM_END);
}