Use subsystem id from devicetree.cb instead of Kconfig and move
[coreboot.git] / src / mainboard / amd / mahogany_fam10 / devicetree.cb
1 # sample config for amd/mahogany_fam10
2 chip northbridge/amd/amdfam10/root_complex
3         device lapic_cluster 0 on
4                 chip cpu/amd/socket_AM2r2  #L1 and DDR2
5                          device lapic 0 on end
6                 end
7         end
8         device pci_domain 0 on
9                 subsystemid 0x1022 0x3060 inherit
10                 chip northbridge/amd/amdfam10
11                         device pci 18.0 on #  northbridge
12                                 chip southbridge/amd/rs780
13                                         device pci 0.0 on end # HT      0x9600
14                                         device pci 1.0 on end # Internal Graphics P2P bridge 0x9602
15                                         device pci 2.0 on end # PCIE P2P bridge (external graphics) 0x9603
16                                         device pci 3.0 on end # PCIE P2P bridge 0x960b
17                                         device pci 4.0 on end # PCIE P2P bridge 0x9604
18                                         device pci 5.0 off end # PCIE P2P bridge 0x9605
19                                         device pci 6.0 off end # PCIE P2P bridge 0x9606
20                                         device pci 7.0 off end # PCIE P2P bridge 0x9607
21                                         device pci 8.0 off end # NB/SB Link P2P bridge
22                                         device pci 9.0 on end #
23                                         device pci a.0 on end #
24                                         register "gppsb_configuration" = "1"   # Configuration B
25                                         register "gpp_configuration" = "3"   # Configuration D default
26                                         register "port_enable" = "0x6fc"
27                                         register "gfx_dev2_dev3" = "1"
28                                         register "gfx_dual_slot" = "1"
29                                         register "gfx_lane_reversal" = "0"
30                                         register "gfx_tmds" = "0"
31                                         register "gfx_compliance" = "0"
32                                         register "gfx_reconfiguration" = "1"
33                                         register "gfx_link_width" = "0"
34                                 end
35                                 chip southbridge/amd/sb700 # it is under NB/SB Link, but on the same pri bus
36                                         device pci 11.0 on end # SATA
37                                         device pci 12.0 on end # USB
38                                         device pci 12.1 on end # USB
39                                         device pci 12.2 on end # USB
40                                         device pci 13.0 on end # USB
41                                         device pci 13.1 on end # USB
42                                         device pci 13.2 on end # USB
43                                         device pci 14.0 on # SM
44                                                 chip drivers/generic/generic #dimm 0-0-0
45                                                         device i2c 50 on end
46                                                 end
47                                                 chip drivers/generic/generic #dimm 0-0-1
48                                                         device i2c 51 on end
49                                                 end
50                                                 chip drivers/generic/generic #dimm 0-1-0
51                                                         device i2c 52 on end
52                                                 end
53                                                 chip drivers/generic/generic #dimm 0-1-1
54                                                         device i2c 53 on end
55                                                 end
56                                         end # SM
57                                         device pci 14.1 on end # IDE    0x439c
58                                         device pci 14.2 on end # HDA    0x4383
59                                         device pci 14.3 on # LPC        0x439d
60                                                 chip superio/ite/it8718f
61                                                         device pnp 2e.0 off #  Floppy
62                                                                 io 0x60 = 0x3f0
63                                                                 irq 0x70 = 6
64                                                                 drq 0x74 = 2
65                                                         end
66                                                         device pnp 2e.1 on #  Com1
67                                                                 io 0x60 = 0x3f8
68                                                                 irq 0x70 = 4
69                                                         end
70                                                         device pnp 2e.2 off #  Com2
71                                                                 io 0x60 = 0x2f8
72                                                                 irq 0x70 = 3
73                                                         end
74                                                         device pnp 2e.3 off #  Parallel Port
75                                                                 io 0x60 = 0x378
76                                                                 irq 0x70 = 7
77                                                         end
78                                                         device pnp 2e.4 off end #  EC
79                                                         device pnp 2e.5 on #  Keyboard
80                                                                 io 0x60 = 0x60
81                                                                 io 0x62 = 0x64
82                                                                 irq 0x70 = 1
83                                                         end
84                                                         device pnp 2e.6 on #  Mouse
85                                                                 irq 0x70 = 12
86                                                         end
87                                                         device pnp 2e.7 off #  GPIO, must be closed for unresolved reason.
88                                                         end
89                                                         device pnp 2e.8 off #  MIDI
90                                                                 io 0x60 = 0x300
91                                                                 irq 0x70 = 9
92                                                         end
93                                                         device pnp 2e.9 off #  GAME
94                                                                 io 0x60 = 0x220
95                                                         end
96                                                         device pnp 2e.a off end #  CIR
97                                                 end     #superio/ite/it8718f
98                                         end             #LPC
99                                         device pci 14.4 on end # PCI 0x4384
100                                         device pci 14.5 on end # USB 2
101                                         register "boot_switch_sata_ide" = "0"   # 0: boot from SATA. 1: IDE
102                                 end     #southbridge/amd/sb700
103                         end #  device pci 18.0
104
105                         device pci 18.0 on end
106                         device pci 18.0 on end
107                         device pci 18.1 on end
108                         device pci 18.2 on end
109                         device pci 18.3 on end
110                         device pci 18.4 on end
111 #                       device pci 00.5 on end
112                 end
113         end #pci_domain
114         #for node 32 to node 63
115 #       device pci_domain 0 on
116 #               chip northbridge/amd/amdfam10
117 #                         device pci 00.0 on end#  northbridge
118 #                         device pci 00.0 on end
119 #                         device pci 00.0 on end
120 #                         device pci 00.0 on end
121 #                         device pci 00.1 on end
122 #                         device pci 00.2 on end
123 #                         device pci 00.3 on end
124 #                         device pci 00.4 on end
125 #                        device pci 00.5 on end
126 #               end
127 #       end #pci_domain
128
129 #         chip drivers/generic/debug
130 #                device pnp 0.0 off end # chip name
131 #                 device pnp 0.1 on end # pci_regs_all
132 #                 device pnp 0.2 off end # mem
133 #                 device pnp 0.3 off end # cpuid
134 #                 device pnp 0.4 off end # smbus_regs_all
135 #                 device pnp 0.5 off end # dual core msr
136 #                 device pnp 0.6 off end # cache size
137 #                 device pnp 0.7 off end # tsc
138 #                 device pnp 0.8 off end # hard reset
139 #                 device pnp 0.9 off end # mcp55
140 #                 device pnp 0.a on end # GH ext table
141 #        end
142
143 end