aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/intel/i440bx/raminit.c
diff options
context:
space:
mode:
authorKeith Hui <buurin@gmail.com>2017-07-20 21:14:21 -0400
committerMartin Roth <martinroth@google.com>2017-07-23 20:20:26 +0000
commit078e324080901f509493a08c7bf6d28e96119e3f (patch)
tree7bb7942e7ef0010d9bd63a83738d09b415f26097 /src/northbridge/intel/i440bx/raminit.c
parent5bb5307c7dc1b50926d717e03a6aaddcb5f6c706 (diff)
northbridge/intel/i440bx: Merge RAM init routines
There are 4 routines used in RAM init that most if not all i440bx mainboards call in the same order. Implements a single RAM init routine for them to allow for future consolidation. Boards to be changed to use this one routine in a future change. Change-Id: Ib553b07b117de12b7982586bce0f9355f55013a0 Signed-off-by: Keith Hui <buurin@gmail.com> Reviewed-on: https://review.coreboot.org/20676 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/northbridge/intel/i440bx/raminit.c')
-rw-r--r--src/northbridge/intel/i440bx/raminit.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/northbridge/intel/i440bx/raminit.c b/src/northbridge/intel/i440bx/raminit.c
index 67d8d3f334..565719ded3 100644
--- a/src/northbridge/intel/i440bx/raminit.c
+++ b/src/northbridge/intel/i440bx/raminit.c
@@ -979,3 +979,11 @@ void sdram_enable(void)
PRINT_DEBUG("Northbridge following SDRAM init:\n");
DUMPNORTH();
}
+
+void sdram_initialize(void)
+{
+ dump_spd_registers();
+ sdram_set_registers();
+ sdram_set_spd_registers();
+ sdram_enable();
+} \ No newline at end of file