Use subsystem id from devicetree.cb instead of Kconfig and move
[coreboot.git] / src / mainboard / tyan / s2895 / 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_940                     # CPU socket
4       device lapic 0 on end                     # Local APIC of the CPU
5     end
6   end
7   device pci_domain 0 on                        # PCI domain
8     subsystemid 0x10f1 0x2895 inherit
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/smsc/lpc47b397         # 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.3 on                # Parallel port
21                 io 0x60 = 0x378
22                 irq 0x70 = 7
23                 drq 0x74 = 4
24               end
25               device pnp 2e.4 on                # Com1
26                 io 0x60 = 0x3f8
27                 irq 0x70 = 4
28               end
29               device pnp 2e.5 off               # Com2
30                 io 0x60 = 0x2f8
31                 irq 0x70 = 3
32               end
33               device pnp 2e.7 on                # PS/2 keyboard & mouse
34                 io 0x60 = 0x60
35                 io 0x62 = 0x64
36                 irq 0x70 = 1
37                 irq 0x72 = 12
38               end
39               device pnp 2e.8 on                # Hardware monitor
40                 io 0x60 = 0x480
41                 chip drivers/generic/generic    # LM95221 CPU temp
42                   device i2c 2b on end
43                 end
44                 chip drivers/generic/generic    # EMCT03
45                   device i2c 54 on end
46                 end
47               end
48               device pnp 2e.a on                # RT
49                 io 0x60 = 0x400
50               end
51             end
52           end
53           device pci 1.1 on                     # SM 0
54             chip drivers/generic/generic        # DIMM 0-0-0
55               device i2c 50 on end
56             end
57             chip drivers/generic/generic        # DIMM 0-0-1
58               device i2c 51 on end
59             end
60             chip drivers/generic/generic        # DIMM 0-1-0
61               device i2c 52 on end
62             end
63             chip drivers/generic/generic        # DIMM 0-1-1
64               device i2c 53 on end
65             end
66             chip drivers/generic/generic        # DIMM 1-0-0
67               device i2c 54 on end
68             end
69             chip drivers/generic/generic        # DIMM 1-0-1
70               device i2c 55 on end
71             end
72             chip drivers/generic/generic        # DIMM 1-1-0
73               device i2c 56 on end
74             end
75             chip drivers/generic/generic        # DIMM 1-1-1
76               device i2c 57 on end
77             end
78           end
79           device pci 1.1 on                     # SM 1
80             chip drivers/generic/generic        # MAC EEPROM
81               device i2c 51 on end
82             end
83           end
84           device pci 2.0 on end                 # USB 1.1
85           device pci 2.1 on end                 # USB 2
86           device pci 4.0 on end                 # ACI
87           device pci 4.1 off end                # MCI
88           device pci 6.0 on end                 # IDE
89           device pci 7.0 on end                 # SATA 1
90           device pci 8.0 on end                 # SATA 0
91           device pci 9.0 on end                 # PCI
92           device pci a.0 on end                 # NIC
93           device pci b.0 off end                # PCI E 3
94           device pci c.0 off end                # PCI E 2
95           device pci d.0 off end                # PCI E 1
96           device pci e.0 on end                 # PCI E 0
97           register "ide0_enable" = "1"
98           register "ide1_enable" = "1"
99           register "sata0_enable" = "1"
100           register "sata1_enable" = "1"
101           # 1: SMBus under 2e.8, 2: SM0 3: SM1
102           register "mac_eeprom_smbus" = "3"
103           register "mac_eeprom_addr" = "0x51"
104         end
105       end
106       device pci 18.0 on end                    # Link 1
107       device pci 18.0 on                        # Link 2 == LDT 2
108         chip southbridge/amd/amd8131            # Southbridge
109           device pci 0.0 on end
110           device pci 0.1 on end
111           device pci 1.0 on
112             device pci 6.0 on end               # LSI SCSI
113             device pci 6.1 on end
114           end
115           device pci 1.1 on end
116         end
117       end
118       device pci 18.1 on end
119       device pci 18.2 on end
120       device pci 18.3 on end
121     end
122     chip northbridge/amd/amdk8                  # Northbridge / RAM controller
123       device pci 19.0 on                        # Link 0 == LDT 0
124         chip southbridge/nvidia/ck804           # Southbridge
125           device pci 0.0 on end                 # HT
126           device pci 1.0 on end                 # LPC
127           device pci 1.1 off end                # SM
128           device pci 2.0 off end                # USB 1.1
129           device pci 2.1 off end                # USB 2
130           device pci 4.0 off end                # ACI
131           device pci 4.1 off end                # MCI
132           device pci 6.0 off end                # IDE
133           device pci 7.0 off end                # SATA 1
134           device pci 8.0 off end                # SATA 0
135           device pci 9.0 off end                # PCI
136           device pci a.0 on end                 # NIC
137           device pci b.0 off end                # PCI E 3
138           device pci c.0 off end                # PCI E 2
139           device pci d.0 off end                # PCI E 1
140           device pci e.0 on end                 # PCI E 0
141           # 1: SMBus under 2e.8, 2: SM0 3: SM1
142           register "mac_eeprom_smbus" = "3"
143           register "mac_eeprom_addr" = "0x51"
144         end
145       end
146       device pci 19.0 on end
147       device pci 19.0 on end
148       device pci 19.1 on end
149       device pci 19.2 on end
150       device pci 19.3 on end
151     end
152   end
153   # chip drivers/generic/debug
154   #   device pnp 0.0 off end                    # chip name
155   #   device pnp 0.1 off end                    # pci_regs_all
156   #   device pnp 0.2 off end                    # mem
157   #   device pnp 0.3 off end                    # cpuid
158   #   device pnp 0.4 on  end                    # smbus_regs_all
159   #   device pnp 0.5 off end                    # dual core msr
160   #   device pnp 0.6 off end                    # cache size
161   #   device pnp 0.7 off end                    # tsc
162   # end
163 end