summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2010-03-30 22:21:06 +0000
committerStefan Reinauer <stepan@openbios.org>2010-03-30 22:21:06 +0000
commitf2b7a43f9d0806417847a16e24a55d07af972e10 (patch)
treedecc6e93fde7ef723792057d57a9bd27fcb6baa1
parent3ac400e6e57f2efc8db06b9b3206b253d142c741 (diff)
downloadcoreboot-f2b7a43f9d0806417847a16e24a55d07af972e10.tar.xz
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
-rw-r--r--src/lib/generic_sdram.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/generic_sdram.c b/src/lib/generic_sdram.c
index 9685267c08..79b501f9a4 100644
--- a/src/lib/generic_sdram.c
+++ b/src/lib/generic_sdram.c
@@ -6,8 +6,8 @@
static inline void print_debug_sdram_8(const char *strval, uint32_t val)
{
-#if CONFIG_USE_INIT
- printk(BIOS_DEBUG, "%s%02x\r\n", strval, val);
+#if CONFIG_USE_PRINTK_IN_CAR
+ printk(BIOS_DEBUG, "%s%02x\n", strval, val);
#else
print_debug(strval); print_debug_hex8(val); print_debug("\r\n");
#endif
@@ -23,10 +23,10 @@ void sdram_initialize(int controllers, const struct mem_controller *ctrl)
int i;
/* Set the registers we can set once to reasonable values */
for(i = 0; i < controllers; i++) {
- print_debug_sdram_8("Ram1.",i);
+ print_debug_sdram_8("Ram1.", i);
#if RAMINIT_SYSINFO == 1
- sdram_set_registers(ctrl + i , sysinfo);
+ sdram_set_registers(ctrl + i, sysinfo);
#else
sdram_set_registers(ctrl + i);
#endif
@@ -34,10 +34,10 @@ void sdram_initialize(int controllers, const struct mem_controller *ctrl)
/* Now setup those things we can auto detect */
for(i = 0; i < controllers; i++) {
- print_debug_sdram_8("Ram2.",i);
+ print_debug_sdram_8("Ram2.", i);
#if RAMINIT_SYSINFO == 1
- sdram_set_spd_registers(ctrl + i , sysinfo);
+ sdram_set_spd_registers(ctrl + i, sysinfo);
#else
sdram_set_spd_registers(ctrl + i);
#endif