Use subsystem id from devicetree.cb instead of Kconfig and move
[coreboot.git] / src / mainboard / asrock / e350m1 / devicetree.cb
1 #
2 # This file is part of the coreboot project.
3 #
4 # Copyright (C) 2011 Advanced Micro Devices, Inc.
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; version 2 of the License.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
18 #
19 chip northbridge/amd/agesa_wrapper/family14/root_complex
20         device lapic_cluster 0 on
21                 chip cpu/amd/agesa_wrapper/family14
22                   device lapic 0 on end
23                 end
24         end
25         device pci_domain 0 on
26                 subsystemid 0x1022 0x1510 inherit
27                 chip northbridge/amd/agesa_wrapper/family14 # CPU side of HT root complex
28 #                       device pci 18.0 on #  northbridge
29                                 chip northbridge/amd/agesa_wrapper/family14 # PCI side of HT root complex
30                                         device pci 0.0 on end # Root Complex
31                                         device pci 1.0 on end # Internal Graphics P2P bridge 0x9804
32                                         device pci 1.1 on end # Internal Multimedia
33                                         device pci 4.0 on end # PCIE P2P bridge 0x9604
34                                         device pci 5.0 off end # PCIE P2P bridge 0x9605
35                                         device pci 6.0 off end # PCIE P2P bridge 0x9606
36                                         device pci 7.0 off end # PCIE P2P bridge 0x9607
37                                         device pci 8.0 off end # NB/SB Link P2P bridge
38                                 end # agesa_wrapper northbridge
39
40                                 chip southbridge/amd/cimx_wrapper/sb800 # it is under NB/SB Link, but on the same pri bus
41                                         device pci 11.0 on end # SATA
42                                         device pci 12.0 on end # USB
43                                         device pci 12.1 on end # USB
44                                         device pci 12.2 on end # USB
45                                         device pci 13.0 on end # USB
46                                         device pci 13.1 on end # USB
47                                         device pci 13.2 on end # USB
48                                         device pci 14.0 on # SM
49                                                 chip drivers/generic/generic #dimm 0-0-0
50                                                         device i2c 50 on end
51                                                 end
52                                                 chip drivers/generic/generic #dimm 0-0-1
53                                                         device i2c 51 on end
54                                                 end
55                                         end # SM
56                                         device pci 14.1 on end # IDE    0x439c
57                                         device pci 14.2 on end # HDA    0x4383
58                                         device pci 14.3 on # LPC        0x439d
59                                                 chip superio/winbond/w83627hf
60                                                         device pnp 2e.0 off #  Floppy
61                                                                 io 0x60 = 0x3f0
62                                                                 irq 0x70 = 6
63                                                                 drq 0x74 = 2
64                                                         end
65                                                         device pnp 2e.1 off #  Parallel Port
66                                                                 io 0x60 = 0x378
67                                                                 irq 0x70 = 7
68                                                         end
69                                                         device pnp 2e.2 on #  Com1
70                                                                 io 0x60 = 0x3f8
71                                                                 irq 0x70 = 4
72                                                         end
73                                                         device pnp 2e.3 off #  Com2
74                                                                 io 0x60 = 0x2f8
75                                                                 irq 0x70 = 3
76                                                         end
77                                                         device pnp 2e.5 on #  Keyboard
78                                                                 io 0x60 = 0x60
79                                                                 io 0x62 = 0x64
80                                                                 irq 0x70 = 1
81                                                                 irq 0x72 = 12
82                                                         end
83                                                         device pnp 2e.6 off #  CIR
84                                                                 io 0x60 = 0x100
85                                                         end
86                                                         device pnp 2e.7 off #  GAME_MIDI_GIPO1
87                                                                 io 0x60 = 0x220
88                                                                 io 0x62 = 0x300
89                                                                 irq 0x70 = 9
90                                                         end
91                                                         device pnp 2e.8 off end #  GPIO2
92                                                         device pnp 2e.9 off end #  GPIO3
93                                                         device pnp 2e.a off end #  ACPI
94                                                         device pnp 2e.b on #  HW Monitor
95                                                                 io 0x60 = 0x290
96                                                                 irq 0x70 = 5
97                                                         end
98                                                 end
99                                         end #LPC
100                                         device pci 14.4 on end # PCI 0x4384
101                                         device pci 14.5 on end # USB 2
102                                         device pci 15.0 on end # PCIe PortA
103                                         device pci 15.1 on end # PCIe PortB
104                                         device pci 15.2 on end # PCIe PortC
105                                         device pci 15.3 on end # PCIe PortD
106                                         register "gpp_configuration" = "4" #1:1:1:1
107                                         register "boot_switch_sata_ide" = "0"   # 0: boot from SATA. 1: IDE
108                                 end     #southbridge/amd/cimx_wrapper/sb800
109 #                       end #  device pci 18.0
110 # These seem unnecessary
111                         device pci 18.0 on end
112                         #device pci 18.0 on end
113                         device pci 18.1 on end
114                         device pci 18.2 on end
115                         device pci 18.3 on end
116                         device pci 18.4 on end
117                         device pci 18.5 on end
118                         device pci 18.6 on end
119                         device pci 18.7 on end
120                 end #chip northbridge/amd/agesa_wrapper/family14 # CPU side of HT root complex
121         end #pci_domain
122 end #northbridge/amd/agesa_wrapper/family14/root_complex
123