From e5b7507882d4ee042d9c4d03e2e763bb49774b43 Mon Sep 17 00:00:00 2001 From: Jonathan Kollasch Date: Thu, 7 Oct 2010 23:02:06 +0000 Subject: Remove duplicate line from pci_ids.h. Signed-off-by: Jonathan Kollasch Acked-by: Jonathan Kollasch git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5920 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/lib/generic_sdram.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/lib') 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 /* 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); -- cgit v1.2.3