Convert all Intel i810 boards to CAR.
[coreboot.git] / src / northbridge / intel / i82810 / debug.c
1 static void dump_spd_registers(void)
2 {
3 #if CONFIG_DEBUG_RAM_SETUP
4         int i;
5         print_debug("\n");
6         for(i = 0; i < DIMM_SOCKETS; i++) {
7                 unsigned device;
8                 device = DIMM_SPD_BASE + i;
9                 if (device) {
10                         int j;
11                         print_debug("dimm: ");
12                         print_debug_hex8(i);
13                         print_debug(".0: ");
14                         print_debug_hex8(device);
15                         for(j = 0; j < 256; j++) {
16                                 int status;
17                                 unsigned char byte;
18                                 if ((j & 0xf) == 0) {
19                                         print_debug("\n");
20                                         print_debug_hex8(j);
21                                         print_debug(": ");
22                                 }
23                                 status = smbus_read_byte(device, j);
24                                 if (status < 0) {
25                                         print_debug("bad device\n");
26                                         break;
27                                 }
28                                 byte = status & 0xff;
29                                 print_debug_hex8(byte);
30                                 print_debug_char(' ');
31                         }
32                         print_debug("\n");
33                 }
34         }
35 #endif
36 }