T60: enable C4onC3 mode
[coreboot.git] / src / mainboard / lenovo / t60 / 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 0x2015
34                 end
35                 device pci 01.0 on # PCI-e
36                         device pci 00.0 on # VGA
37                                 subsystemid 0x17aa 0x20a4
38                         end
39                 end
40
41                 device pci 02.0 on # GMA Graphics controller
42                         subsystemid 0x17aa 0x201a
43                 end
44                 device pci 02.1 on # display controller
45                         subsystemid 0x17aa 0x201a
46                 end
47
48                 chip southbridge/intel/i82801gx
49                         register "pirqa_routing" = "0x0b"
50                         register "pirqb_routing" = "0x0b"
51                         register "pirqc_routing" = "0x0b"
52                         register "pirqd_routing" = "0x0b"
53                         register "pirqe_routing" = "0x0b"
54                         register "pirqf_routing" = "0x0b"
55                         register "pirqg_routing" = "0x0b"
56                         register "pirqh_routing" = "0x0b"
57
58                         # GPI routing
59                         #  0 No effect (default)
60                         #  1 SMI# (if corresponding ALT_GPI_SMI_EN bit is also set)
61                         #  2 SCI (if corresponding GPIO_EN bit is also set)
62                         register "gpi13_routing" = "2"
63                         register "gpi12_routing" = "2"
64                         register "gpi8_routing" = "2"
65
66                         register "sata_ahci" = "0x0"
67
68                         register "gpe0_en" = "0x11000006"
69                         register "alt_gp_smi_en" = "0x1000"
70
71                         register "c4onc3_enable" = "1"
72
73                         device pci 1b.0 on # Audio Cnotroller
74                                 subsystemid 0x17aa 0x2010
75                         end
76                         device pci 1c.0 on # Ethernet
77                                 subsystemid 0x17aa 0x2001
78                         end
79                         device pci 1c.1 on end # WLAN
80                         device pci 1d.0 on # USB UHCI
81                                 subsystemid 0x17aa 0x200a
82                         end
83                         device pci 1d.1 on # USB UHCI
84                                 subsystemid 0x17aa 0x200a
85                         end
86                         device pci 1d.2 on # USB UHCI
87                                 subsystemid 0x17aa 0x200a
88                         end
89                         device pci 1d.3 on # USB UHCI
90                                 subsystemid 0x17aa 0x200a
91                         end
92                         device pci 1d.7 on # USB2 EHCI
93                                 subsystemid 0x17aa 0x200b
94                         end
95                         device pci 1e.0 on # PCI Bridge
96                                 chip southbridge/ti/pci1x2x
97                                         device pci 00.0 on
98                                                 subsystemid 0x17aa 0x2012
99                                         end
100                                         register "scr" = "0x0844d070"
101                                         register "mrr" = "0x01d01002"
102
103                                 end
104                         end
105                         device pci 1f.0 on # PCI-LPC bridge
106                                 subsystemid 0x17aa 0x2009
107                                 chip ec/lenovo/pmh7
108                                         device pnp ff.1 on # dummy
109                                         end
110
111                                         register "backlight_enable" = "0x01"
112                                         register "dock_event_enable" = "0x01"
113                                 end
114                                 chip ec/lenovo/h8
115                                         device pnp ff.2 on # dummy
116                                                 io 0x60 = 0x62
117                                                 io 0x62 = 0x66
118                                                 io 0x64 = 0x1600
119                                                 io 0x66 = 0x1604
120                                         end
121
122
123                                         register "config0" = "0xa6"
124                                         register "config1" = "0x05"
125                                         register "config2" = "0xa0"
126                                         register "config3" = "0x01"
127
128                                         register "beepmask0" = "0xfe"
129                                         register "beepmask1" = "0x96"
130
131                                         register "event2_enable" = "0xff"
132                                         register "event3_enable" = "0xff"
133                                         register "event4_enable" = "0xf4"
134                                         register "event5_enable" = "0x3f"
135                                         register "event6_enable" = "0x80"
136                                         register "event7_enable" = "0x01"
137                                         register "event8_enable" = "0x01"
138                                         register "event9_enable" = "0xff"
139                                         register "eventa_enable" = "0xff"
140                                         register "eventb_enable" = "0xff"
141                                         register "eventc_enable" = "0xff"
142                                         register "eventd_enable" = "0xff"
143                                         register "eventc_enable" = "0x3c"
144
145                                         register "wlan_enable" = "0x01"
146                                         register "trackpoint_enable" = "0x03"
147
148                                 end
149                                 chip superio/nsc/pc87382
150                                         device pnp 164e.2 on # IR
151                                                 io 0x60 = 0x2f8
152                                         end
153
154                                         device pnp 164e.3 off # Serial Port
155                                                 io 0x60 = 0x3f8
156                                         end
157
158                                         device pnp 164e.7 on # GPIO
159                                                 io 0x60 = 0x1680
160                                         end
161
162                                         device pnp 164e.19 on # DLPC
163                                                 io 0x60 = 0x164c
164                                         end
165                                 end
166
167                                 chip superio/nsc/pc87384
168                                         device pnp 2e.0 off #FDC
169                                         end
170
171                                         device pnp 2e.1 on # Parallel Port
172                                                 io 0x60 = 0x3bc
173                                                 irq 0x70 = 7
174                                         end
175
176                                         device pnp 2e.2 off # Serial Port / IR
177                                                 io 0x60 = 0x2f8
178                                                 irq 0x70 = 4
179                                         end
180
181                                         device pnp 2e.3 on # Serial Port
182                                                 io 0x60 = 0x3f8
183                                                 irq 0x70 = 4
184                                         end
185
186                                         device pnp 2e.7 on # GPIO
187                                                 io 0x60 = 0x1620
188                                         end
189
190                                         device pnp 2e.a off # WDT
191                                         end
192                                 end
193                         end
194                         device pci 1f.1 on # IDE
195                                 subsystemid 0x17aa 0x200c
196                         end
197                         device pci 1f.2 on # SATA
198                                 subsystemid 0x17aa 0x200d
199                         end
200                         device pci 1f.3 on # SMBUS
201                                 subsystemid 0x17aa 0x200f
202                                 chip drivers/ics/954309
203                                         register "reg0" = "0x2e"
204                                         register "reg1" = "0xf7"
205                                         register "reg2" = "0x3c"
206                                         register "reg3" = "0x20"
207                                         register "reg4" = "0x01"
208                                         register "reg5" = "0x00"
209                                         register "reg6" = "0x1b"
210                                         register "reg7" = "0x01"
211                                         register "reg8" = "0x54"
212                                         register "reg9" = "0xff"
213                                         register "reg10" = "0xff"
214                                         register "reg11" = "0x07"
215                                         device i2c 69 on end
216                                 end
217                         end
218                 end
219         end
220 end