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>
This commit is contained in:
parent
d118b8e518
commit
049e77e6bc
|
@ -946,15 +946,6 @@ static void set_dram_row_attributes(void)
|
||||||
PRINT_DEBUG("%s has been set to 0x%02x\n", "DRAMC", value);
|
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)
|
static void sdram_enable(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -1009,7 +1000,10 @@ void sdram_initialize(int s3resume)
|
||||||
|
|
||||||
dump_spd_registers();
|
dump_spd_registers();
|
||||||
sdram_set_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();
|
sdram_enable();
|
||||||
|
|
||||||
/* Clear any errors reported during raminit. */
|
/* Clear any errors reported during raminit. */
|
||||||
|
|
Loading…
Reference in New Issue