diff options
author | Keith Hui <buurin@gmail.com> | 2017-07-20 21:14:21 -0400 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-07-23 20:20:26 +0000 |
commit | 078e324080901f509493a08c7bf6d28e96119e3f (patch) | |
tree | 7bb7942e7ef0010d9bd63a83738d09b415f26097 | |
parent | 5bb5307c7dc1b50926d717e03a6aaddcb5f6c706 (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>
-rw-r--r-- | src/northbridge/intel/i440bx/raminit.c | 8 | ||||
-rw-r--r-- | src/northbridge/intel/i440bx/raminit.h | 3 |
2 files changed, 11 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 diff --git a/src/northbridge/intel/i440bx/raminit.h b/src/northbridge/intel/i440bx/raminit.h index 609b591f6e..e20d559fa4 100644 --- a/src/northbridge/intel/i440bx/raminit.h +++ b/src/northbridge/intel/i440bx/raminit.h @@ -25,6 +25,9 @@ int spd_read_byte(unsigned int device, unsigned int address); void sdram_set_registers(void); void sdram_set_spd_registers(void); void sdram_enable(void); +/* A merger of above functions */ +void sdram_initialize(void); + /* Debug */ #if IS_ENABLED(CONFIG_DEBUG_RAM_SETUP) void dump_spd_registers(void); |