diff options
author | Keith Hui <buurin@gmail.com> | 2023-03-23 16:27:45 -0400 |
---|---|---|
committer | Lean Sheng Tan <sheng.tan@9elements.com> | 2023-05-19 10:12:28 +0000 |
commit | 049e77e6bcbe4918e7eeb685627cd0b5914bad5a (patch) | |
tree | 6dd866074658583d2c858ed8fe57df9ae35a425f /src/northbridge | |
parent | d118b8e518718f5cd15957cd91477cbd26054440 (diff) |
nb/intel/i440bx: Roll sdram_set_spd_registers() into parent
Being a static function, compiler is already putting its contents
in sdram_initialize(), its only caller.
Change-Id: Ie74d2283ef672a267d6a0c66d94aa0610f36c4f1
Signed-off-by: Keith Hui <buurin@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74033
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/northbridge')
-rw-r--r-- | src/northbridge/intel/i440bx/raminit.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/northbridge/intel/i440bx/raminit.c b/src/northbridge/intel/i440bx/raminit.c index 8d9ceff71a..3c0951df08 100644 --- a/src/northbridge/intel/i440bx/raminit.c +++ b/src/northbridge/intel/i440bx/raminit.c @@ -946,15 +946,6 @@ static void set_dram_row_attributes(void) PRINT_DEBUG("%s has been set to 0x%02x\n", "DRAMC", value); } -static void sdram_set_spd_registers(void) -{ - /* Setup DRAM row boundary registers and other attributes. */ - set_dram_row_attributes(); - - /* Setup DRAM buffer strength. */ - set_dram_buffer_strength(); -} - static void sdram_enable(void) { int i; @@ -1009,7 +1000,10 @@ void sdram_initialize(int s3resume) dump_spd_registers(); sdram_set_registers(); - sdram_set_spd_registers(); + /* Set up DRAM row boundary registers and other attributes. */ + set_dram_row_attributes(); + /* Set up DRAM buffer strength. */ + set_dram_buffer_strength(); sdram_enable(); /* Clear any errors reported during raminit. */ |