Use subsystem id from devicetree.cb instead of Kconfig and move
[coreboot.git] / src / mainboard / lenovo / x60 / devicetree.cb
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ## Copyright (C) 2007-2009 coresystems GmbH
5 ## Copyright (C) 2011 Sven Schnelle <svens@stackframe.org>
6 ##
7 ## This program is free software; you can redistribute it and/or
8 ## modify it under the terms of the GNU General Public License as
9 ## published by the Free Software Foundation; version 2 of
10 ## the License.
11 ##
12 ## This program is distributed in the hope that it will be useful,
13 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 ## GNU General Public License for more details.
16 ##
17 ## You should have received a copy of the GNU General Public License
18 ## along with this program; if not, write to the Free Software
19 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
20 ## MA 02110-1301 USA
21 ##
22
23 chip northbridge/intel/i945
24
25         device lapic_cluster 0 on
26                 chip cpu/intel/socket_mFCPGA478
27                         device lapic 0 on end
28                 end
29         end
30
31         device pci_domain 0 on
32                 device pci 00.0 on # Host bridge
33                         subsystemid 0x17aa 0x2017
34                 end
35                 device pci 02.0 on # VGA controller
36                         subsystemid 0x17aa 0x201a
37                 end
38                 device pci 02.1 on # display controller
39                         subsystemid 0x17aa 0x201a
40                 end
41                 chip southbridge/intel/i82801gx
42                         register "pirqa_routing" = "0x0b"
43                         register "pirqb_routing" = "0x0b"
44                         register "pirqc_routing" = "0x0b"
45                         register "pirqd_routing" = "0x0b"
46                         register "pirqe_routing" = "0x0b"
47                         register "pirqf_routing" = "0x0b"
48                         register "pirqg_routing" = "0x0b"
49                         register "pirqh_routing" = "0x0b"
50
51                         # GPI routing
52                         #  0 No effect (default)
53                         #  1 SMI# (if corresponding ALT_GPI_SMI_EN bit is also set)
54                         #  2 SCI (if corresponding GPIO_EN bit is also set)
55                         register "gpi13_routing" = "2"
56                         register "gpi12_routing" = "2"
57                         register "gpi8_routing" = "2"
58
59                         register "sata_ahci" = "0x0"
60
61                         register "gpe0_en" = "0x11000006"
62
63                         device pci 1b.0 on # Audio Cnotroller
64                                 subsystemid 0x17aa 0x2010
65                         end
66                         device pci 1c.0 on end # Ethernet
67                         device pci 1c.1 on end # Atheros WLAN
68                         device pci 1d.0 on # USB UHCI
69                                 subsystemid 0x17aa 0x200a
70                         end
71                         device pci 1d.1 on # USB UHCI
72                                 subsystemid 0x17aa 0x200a
73                         end
74                         device pci 1d.2 on # USB UHCI
75                                 subsystemid 0x17aa 0x200a
76                         end
77                         device pci 1d.3 on # USB UHCI
78                                 subsystemid 0x17aa 0x200a
79                         end
80                         device pci 1d.7 on # USB2 EHCI
81                                 subsystemid 0x17aa 0x200b
82                         end
83                         device pci 1f.0 on # PCI-LPC bridge
84                                 subsystemid 0x17aa 0x2009
85                                 chip ec/lenovo/pmh7
86                                         device pnp ff.1 on # dummy
87                                         end
88                                 end
89                                 chip ec/acpi
90                                         device pnp ff.2 on # dummy
91                                                 io 0x60 = 0x62
92                                                 io 0x62 = 0x66
93                                                 io 0x64 = 0x1600
94                                                 io 0x66 = 0x1604
95                                         end
96                                 end
97                                 chip superio/nsc/pc87382
98                                         device pnp 164e.2 on # IR
99                                                 io 0x60 = 0x2f8
100                                         end
101
102                                         device pnp 164e.3 off # Serial Port
103                                                 io 0x60 = 0x3f8
104                                         end
105
106                                         device pnp 164e.7 on # GPIO
107                                                 io 0x60 = 0x1680
108                                         end
109
110                                         device pnp 164e.19 on # DLPC
111                                                 io 0x60 = 0x164c
112                                         end
113                                 end
114
115                                 chip superio/nsc/pc87392
116                                         device pnp 2e.0 off #FDC
117                                         end
118
119                                         device pnp 2e.1 on # Parallel Port
120                                                 io 0x60 = 0x3bc
121                                                 irq 0x70 = 7
122                                         end
123
124                                         device pnp 2e.2 off # Serial Port / IR
125                                                 io 0x60 = 0x2f8
126                                                 irq 0x70 = 4
127                                         end
128
129                                         device pnp 2e.3 on # Serial Port
130                                                 io 0x60 = 0x3f8
131                                                 irq 0x70 = 4
132                                         end
133
134                                         device pnp 2e.7 on # GPIO
135                                                 io 0x60 = 0x1620
136                                         end
137
138                                         device pnp 2e.a off # WDT
139                                         end
140                                 end
141                         end
142                         device pci 1f.1 off # IDE
143                                 subsystemid 0x17aa 0x200c
144                         end
145                         device pci 1f.2 on # SATA
146                                 subsystemid 0x17aa 0x200d
147                         end
148                         device pci 1f.3 on # SMBUS
149                                 subsystemid 0x17aa 0x200f
150                         end
151                 end
152                 chip southbridge/ricoh/rl5c476
153                 end
154         end
155 end