devicetree.cb: Only add as many entries as there are DIMM slots.
[coreboot.git] / src / mainboard / asus / a8n_e / devicetree.cb
1 chip northbridge/amd/amdk8/root_complex         # Root complex
2   device lapic_cluster 0 on                     # (L)APIC cluster
3     chip cpu/amd/socket_939                     # CPU socket
4       device lapic 0 on end                     # Local APIC of the CPU
5     end
6   end
7
8   device pci_domain 0 on                        # PCI domain
9     chip northbridge/amd/amdk8                  # Northbridge / RAM controller
10       device pci 18.0 on                        # Link 0 == LDT 0
11         chip southbridge/nvidia/ck804           # Southbridge
12           device pci 0.0 on end                 # HT
13           device pci 1.0 on                     # LPC
14             chip superio/ite/it8712f            # Super I/O
15               device pnp 2e.0 on                # Floppy
16                 io 0x60 = 0x3f0
17                 irq 0x70 = 6
18                 drq 0x74 = 2
19               end
20               device pnp 2e.1 on                # Com1
21                 io 0x60 = 0x3f8
22                 irq 0x70 = 4
23               end
24               device pnp 2e.2 off               # Com2 (N/A on this board)
25                 io 0x60 = 0x2f8
26                 irq 0x70 = 3
27               end
28               device pnp 2e.3 on                # Parallel port
29                 io 0x60 = 0x378
30                 irq 0x70 = 7
31                 drq 0x74 = 3
32               end
33               device pnp 2e.4 on                # Environment controller
34                 io 0x60 = 0x290
35                 io 0x62 = 0x0000
36                 irq 0x70 = 0x00
37               end
38               device pnp 2e.5 on                # PS/2 keyboard
39                 io 0x60 = 0x60
40                 io 0x62 = 0x64
41                 irq 0x70 = 1
42                 irq 0x71 = 2
43               end
44               device pnp 2e.6 on                # PS/2 mouse
45                 irq 0x70 = 12
46                 irq 0x71 = 2
47               end
48               device pnp 2e.7 on                # GPIO config
49                 io 0x60 = 0x0800
50                 # Set GPIO 1 & 2
51                 io 0x25 = 0x0000
52                 # Set GPIO 3 & 4
53                 io 0x27 = 0x2540
54                 # GPIO Polarity for Set 3
55                 io 0xb2 = 0x2100
56                 # GPIO Pin Internal Pull up for Set 3
57                 io 0xba = 0x0100
58                 # Simple I/O register config
59                 io 0xc0 = 0x0000
60                 io 0xc2 = 0x2540
61                 io 0xc8 = 0x0000
62                 io 0xca = 0x0500
63               end
64               device pnp 2e.8 on                # MIDI port
65                 io 0x60 = 0x300
66                 irq 0x70 = 10
67               end
68               device pnp 2e.9 on                # Game port
69                 io 0x60 = 0x201
70               end
71               device pnp 2e.a off               # IR (N/A on this board)
72                 io 0x60 = 0x310
73                 irq 0x70 = 11
74               end
75             end
76           end
77           device pci 1.1 on                     # SM 0
78             # chip drivers/generic/generic      # DIMM 0-0-0
79             #   device i2c 50 on end
80             # end
81             # chip drivers/generic/generic      # DIMM 0-0-1
82             #   device i2c 51 on end
83             # end
84             # chip drivers/generic/generic      # DIMM 0-1-0
85             #   device i2c 52 on end
86             # end
87             # chip drivers/generic/generic      # DIMM 0-1-1
88             #   device i2c 53 on end
89             # end
90           end
91           device pci 2.0 on end                 # USB 1.1
92           device pci 2.1 on end                 # USB 2
93           device pci 4.0 on end                 # Onboard audio (ACI)
94           device pci 4.1 off end                # Onboard modem (MCI), N/A
95           device pci 6.0 on end                 # IDE
96           device pci 7.0 on end                 # SATA 1
97           device pci 8.0 on end                 # SATA 0
98           device pci 9.0 on end                 # PCI
99           device pci a.0 on end                 # NIC
100           device pci b.0 on end                 # PCI E 3
101           device pci c.0 on end                 # PCI E 2
102           device pci d.0 on end                 # PCI E 1
103           device pci e.0 on end                 # PCI E 0
104           register "ide0_enable" = "1"
105           register "ide1_enable" = "1"
106           register "sata0_enable" = "1"
107           register "sata1_enable" = "1"
108           # TODO
109           # register "mac_eeprom_smbus" = "3"
110           # register "mac_eeprom_addr" = "0x51"
111         end
112       end
113       device pci 18.1 on end
114       device pci 18.2 on end
115       device pci 18.3 on end
116     end
117   end
118 end