no USE_INIT
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5339 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
3ac400e6e5
commit
f2b7a43f9d
|
@ -6,8 +6,8 @@
|
||||||
|
|
||||||
static inline void print_debug_sdram_8(const char *strval, uint32_t val)
|
static inline void print_debug_sdram_8(const char *strval, uint32_t val)
|
||||||
{
|
{
|
||||||
#if CONFIG_USE_INIT
|
#if CONFIG_USE_PRINTK_IN_CAR
|
||||||
printk(BIOS_DEBUG, "%s%02x\r\n", strval, val);
|
printk(BIOS_DEBUG, "%s%02x\n", strval, val);
|
||||||
#else
|
#else
|
||||||
print_debug(strval); print_debug_hex8(val); print_debug("\r\n");
|
print_debug(strval); print_debug_hex8(val); print_debug("\r\n");
|
||||||
#endif
|
#endif
|
||||||
|
@ -23,10 +23,10 @@ void sdram_initialize(int controllers, const struct mem_controller *ctrl)
|
||||||
int i;
|
int i;
|
||||||
/* Set the registers we can set once to reasonable values */
|
/* Set the registers we can set once to reasonable values */
|
||||||
for(i = 0; i < controllers; i++) {
|
for(i = 0; i < controllers; i++) {
|
||||||
print_debug_sdram_8("Ram1.",i);
|
print_debug_sdram_8("Ram1.", i);
|
||||||
|
|
||||||
#if RAMINIT_SYSINFO == 1
|
#if RAMINIT_SYSINFO == 1
|
||||||
sdram_set_registers(ctrl + i , sysinfo);
|
sdram_set_registers(ctrl + i, sysinfo);
|
||||||
#else
|
#else
|
||||||
sdram_set_registers(ctrl + i);
|
sdram_set_registers(ctrl + i);
|
||||||
#endif
|
#endif
|
||||||
|
@ -34,10 +34,10 @@ void sdram_initialize(int controllers, const struct mem_controller *ctrl)
|
||||||
|
|
||||||
/* Now setup those things we can auto detect */
|
/* Now setup those things we can auto detect */
|
||||||
for(i = 0; i < controllers; i++) {
|
for(i = 0; i < controllers; i++) {
|
||||||
print_debug_sdram_8("Ram2.",i);
|
print_debug_sdram_8("Ram2.", i);
|
||||||
|
|
||||||
#if RAMINIT_SYSINFO == 1
|
#if RAMINIT_SYSINFO == 1
|
||||||
sdram_set_spd_registers(ctrl + i , sysinfo);
|
sdram_set_spd_registers(ctrl + i, sysinfo);
|
||||||
#else
|
#else
|
||||||
sdram_set_spd_registers(ctrl + i);
|
sdram_set_spd_registers(ctrl + i);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue