1 #include <console/console.h>
3 #include <arch/romcc_io.h>
8 #if CONFIG_DEBUG_RAM_SETUP
9 void dump_spd_registers(void)
13 for(i = 0; i < DIMM_SOCKETS; i++) {
18 print_debug("dimm: ");
21 print_debug_hex8(device);
22 for(j = 0; j < 256; j++) {
30 status = smbus_read_byte(device, j);
32 print_debug("bad device\n");
36 print_debug_hex8(byte);
37 print_debug_char(' ');
44 static void print_debug_pci_dev(unsigned dev)
47 print_debug_hex8((dev >> 16) & 0xff);
48 print_debug_char(':');
49 print_debug_hex8((dev >> 11) & 0x1f);
50 print_debug_char('.');
51 print_debug_hex8((dev >> 8) & 7);
54 void dump_pci_device(unsigned dev)
57 print_debug_pci_dev(dev);
60 for (i = 0; i <= 255; i++) {
62 if ((i & 0x0f) == 0) {
64 print_debug_char(':');
66 val = pci_read_config8(dev, i);
67 print_debug_char(' ');
68 print_debug_hex8(val);
69 if ((i & 0x0f) == 0x0f) {