[coreboot] [commit] r5339 - trunk/src/lib

repository service svn at coreboot.org
Wed Mar 31 00:21:06 CEST 2010


Author: stepan
Date: Wed Mar 31 00:21:06 2010
New Revision: 5339
URL: https://tracker.coreboot.org/trac/coreboot/changeset/5339

Log:
no USE_INIT
Signed-off-by: Stefan Reinauer <stepan at coresystems.de>
Acked-by: Stefan Reinauer <stepan at coresystems.de>

Modified:
   trunk/src/lib/generic_sdram.c

Modified: trunk/src/lib/generic_sdram.c
==============================================================================
--- trunk/src/lib/generic_sdram.c	Wed Mar 31 00:12:59 2010	(r5338)
+++ trunk/src/lib/generic_sdram.c	Wed Mar 31 00:21:06 2010	(r5339)
@@ -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 @@
 	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 @@
 
 	/* 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




More information about the coreboot mailing list