- Initial checkin of the freebios2 tree
[coreboot.git] / src / sdram / generic_sdram.c
1 void sdram_no_memory(void)
2 {
3         print_err("No memory!!\r\n");
4         while(1) { 
5                 hlt(); 
6         }
7 }
8
9 /* Setup SDRAM */
10 void sdram_initialize(void)
11 {
12         print_debug("Ram1\r\n");
13         /* Set the registers we can set once to reasonable values */
14         sdram_set_registers();
15
16         print_debug("Ram2\r\n");
17         /* Now setup those things we can auto detect */
18         sdram_set_spd_registers();
19
20         print_debug("Ram3\r\n");
21         /* Now that everything is setup enable the SDRAM.
22          * Some chipsets do the work for use while on others 
23          * we need to it by hand.
24          */
25         sdram_enable();
26
27         print_debug("Ram4\r\n");
28         sdram_first_normal_reference();
29
30         print_debug("Ram5\r\n");
31         sdram_enable_refresh();
32         sdram_special_finishup();
33
34         print_debug("Ram6\r\n");
35 }