summaryrefslogtreecommitdiff
path: root/src/mainboard/asus/p3b-f/auto.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2008-11-27 00:47:07 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2008-11-27 00:47:07 +0000
commit1683cef9961efb3a8b843fce532da5ae640aac0b (patch)
treeaeb4b351787869347efa69ff36cc7bffccd81f7b /src/mainboard/asus/p3b-f/auto.c
parent544dca4195a6fb77286299bf42d4db5813dc28ac (diff)
downloadcoreboot-1683cef9961efb3a8b843fce532da5ae640aac0b.tar.xz
Remove the unnecessary memctrl[] indirection, 440BX only has one
memory controller. Also, drop some unused '#if 0' code. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3773 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/asus/p3b-f/auto.c')
-rw-r--r--src/mainboard/asus/p3b-f/auto.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/mainboard/asus/p3b-f/auto.c b/src/mainboard/asus/p3b-f/auto.c
index 413b4f3cd8..b4880d556b 100644
--- a/src/mainboard/asus/p3b-f/auto.c
+++ b/src/mainboard/asus/p3b-f/auto.c
@@ -50,17 +50,9 @@ static inline int spd_read_byte(unsigned int device, unsigned int address)
#include "northbridge/intel/i440bx/raminit.c"
#include "northbridge/intel/i440bx/debug.c"
-#include "sdram/generic_sdram.c"
static void main(unsigned long bist)
{
- static const struct mem_controller memctrl[] = {
- {
- .d0 = PCI_DEV(0, 0, 0),
- .channel0 = {0x50, 0x51, 0x52, 0x53},
- }
- };
-
if (bist == 0)
early_mtrr_init();
@@ -70,7 +62,9 @@ static void main(unsigned long bist)
console_init();
report_bist_failure(bist);
enable_smbus();
- /* dump_spd_registers(&memctrl[0]); */
- sdram_initialize(ARRAY_SIZE(memctrl), memctrl);
+ /* dump_spd_registers(); */
+ sdram_set_registers();
+ sdram_set_spd_registers();
+ sdram_enable();
/* ram_check(0, 640 * 1024); */
}