summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorJonathan Kollasch <jakllsch@kollasch.net>2010-10-07 23:02:06 +0000
committerMyles Watson <mylesgw@gmail.com>2010-10-07 23:02:06 +0000
commite5b7507882d4ee042d9c4d03e2e763bb49774b43 (patch)
treeb4a01d7f719cf50cb4d440472b8a2a50025064c2 /src/lib
parenta3bd1b1b25bb3056a6cc092b7a17a383e119a21f (diff)
Remove duplicate line from pci_ids.h.
Signed-off-by: Jonathan Kollasch <jakllsch@kollasch.net> Acked-by: Jonathan Kollasch <jakllsch@kollasch.net> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5920 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/generic_sdram.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/lib/generic_sdram.c b/src/lib/generic_sdram.c
index 3f691cb5a9..efb61dbf7a 100644
--- a/src/lib/generic_sdram.c
+++ b/src/lib/generic_sdram.c
@@ -1,9 +1,5 @@
#include <lib.h> /* Prototypes */
-#ifndef RAMINIT_SYSINFO
- #define RAMINIT_SYSINFO 0
-#endif
-
static inline void print_debug_sdram_8(const char *strval, uint32_t val)
{
#if CONFIG_CACHE_AS_RAM
@@ -14,7 +10,7 @@ static inline void print_debug_sdram_8(const char *strval, uint32_t val)
}
/* Setup SDRAM */
-#if RAMINIT_SYSINFO == 1
+#if CONFIG_RAMINIT_SYSINFO
void sdram_initialize(int controllers, const struct mem_controller *ctrl, void *sysinfo)
#else
void sdram_initialize(int controllers, const struct mem_controller *ctrl)
@@ -25,7 +21,7 @@ void sdram_initialize(int controllers, const struct mem_controller *ctrl)
for(i = 0; i < controllers; i++) {
print_debug_sdram_8("Ram1.", i);
- #if RAMINIT_SYSINFO == 1
+ #if CONFIG_RAMINIT_SYSINFO
sdram_set_registers(ctrl + i, sysinfo);
#else
sdram_set_registers(ctrl + i);
@@ -36,7 +32,7 @@ void sdram_initialize(int controllers, const struct mem_controller *ctrl)
for(i = 0; i < controllers; i++) {
print_debug_sdram_8("Ram2.", i);
- #if RAMINIT_SYSINFO == 1
+ #if CONFIG_RAMINIT_SYSINFO
sdram_set_spd_registers(ctrl + i, sysinfo);
#else
sdram_set_spd_registers(ctrl + i);
@@ -50,7 +46,7 @@ void sdram_initialize(int controllers, const struct mem_controller *ctrl)
*/
print_debug("Ram3\n");
- #if RAMINIT_SYSINFO == 1
+ #if CONFIG_RAMINIT_SYSINFO
sdram_enable(controllers, ctrl, sysinfo);
#else
sdram_enable(controllers, ctrl);