- generalize generic_sdram.c
[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(const struct mem_controller *ctrl)
11 {
12         print_debug("Ram1\r\n");
13         /* Set the registers we can set once to reasonable values */
14         sdram_set_registers(ctrl);
15
16         print_debug("Ram2\r\n");
17         /* Now setup those things we can auto detect */
18         sdram_set_spd_registers(ctrl);
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(ctrl);
26
27         print_debug("Ram4\r\n");
28 }