blob: 4e88e276d3920374bf6e8acf91bfc15f9fc40808 [file] [log] [blame]
Timothy Pearson4b373c92015-04-05 17:54:08 -05001chip northbridge/intel/gm45
2 # IGD Displays
3 register "gfx.ndid" = "3"
4 register "gfx.did" = "{ 0x80000100, 0x80000240, 0x80000410, 0x80000410, 0x00000005 }"
5
6 register "gfx.use_spread_spectrum_clock" = "1"
Timothy Pearson4b373c92015-04-05 17:54:08 -05007
8 device cpu_cluster 0 on
Arthur Heymans3cf2d9c2016-10-27 00:36:02 +02009 chip cpu/intel/socket_mPGA478MN
Timothy Pearson4b373c92015-04-05 17:54:08 -050010 device lapic 0 on end
11 end
12 chip cpu/intel/model_1067x
13 # Magic APIC ID to locate this chip
14 device lapic 0xACAC off end
15
16 # Enable Super LFM
17 register "slfm" = "1"
18
19 # Enable C5, C6
20 register "c5" = "1"
21 register "c6" = "1"
22 end
23 end
24
Patrick Rudolph266a1f72016-06-09 18:13:34 +020025 register "pci_mmio_size" = "2048"
26
Timothy Pearson4b373c92015-04-05 17:54:08 -050027 device domain 0 on
28 device pci 00.0 on
29 subsystemid 0x17aa 0x20e0
30 end # host bridge
Patrick Rudolph830fdc72016-04-21 07:15:14 +020031 device pci 01.0 on end # PCIe Bridge for discrete graphics
Timothy Pearson4b373c92015-04-05 17:54:08 -050032 device pci 02.0 on # VGA
33 subsystemid 0x17aa 0x20e4
34 ioapic_irq 2 INTA 0x10
35 end
36 device pci 02.1 on
37 subsystemid 0x17aa 0x20e4
38 end # Display
39 device pci 03.0 on
40 subsystemid 0x17aa 0x20e6
41 end # ME
42 device pci 03.1 off end # ME
43 device pci 03.2 off end # ME
44 device pci 03.3 off end # ME
45 chip southbridge/intel/i82801ix
46 register "pirqa_routing" = "0x0b"
47 register "pirqb_routing" = "0x0b"
48 register "pirqc_routing" = "0x0b"
49 register "pirqd_routing" = "0x0b"
50 register "pirqe_routing" = "0x80"
51 register "pirqf_routing" = "0x80"
52 register "pirqg_routing" = "0x80"
53 register "pirqh_routing" = "0x80"
54
55 register "gpi8_routing" = "2"
56 register "gpe0_en" = "0x01000000"
57 register "gpi1_routing" = "2"
58
59 # Set AHCI mode, enable ports 1 and 2.
60 register "sata_port_map" = "0x03"
61 register "sata_clock_request" = "0"
62 register "sata_traffic_monitor" = "0"
63
64 # Set c-state support
Arthur Heymans2a1847e2016-06-17 19:06:25 +020065 register "c4onc3_enable" = "1"
Timothy Pearson4b373c92015-04-05 17:54:08 -050066 register "c5_enable" = "1"
67 register "c6_enable" = "1"
68
69 # Set thermal throttling to 75%.
70 register "throttle_duty" = "THTL_75_0"
71
72 # Enable PCIe ports 1,2,4 as slots (Mini * PCIe).
73 register "pcie_slot_implemented" = "0xb"
74 # Set power limits to 10 * 10^0 watts.
75 # Maybe we should set less for Mini PCIe.
76 register "pcie_power_limits" = "{ { 10, 0 }, { 10, 0 }, { 0, 0 }, { 10, 0 }, { 0, 0 }, { 0, 0 } }"
77 register "pcie_hotplug_map" = "{ 0, 0, 0, 1, 0, 0, 0, 0 }"
78
Timothy Pearson4b373c92015-04-05 17:54:08 -050079 device pci 19.0 on end # LAN
80 device pci 1a.0 on # UHCI
81 subsystemid 0x17aa 0x20f0
82 ioapic_irq 2 INTA 0x10
83 end
84 device pci 1a.1 on # UHCI
85 subsystemid 0x17aa 0x20f0
86 ioapic_irq 2 INTB 0x11
87 end
88 device pci 1a.2 on # UHCI
89 subsystemid 0x17aa 0x20f0
90 ioapic_irq 2 INTC 0x12
91 end
92 device pci 1a.7 on # EHCI
93 subsystemid 0x17aa 0x20f1
94 ioapic_irq 2 INTC 0x12
95 end
96 device pci 1b.0 on # HD Audio
97 subsystemid 0x17aa 0x20f2
98 ioapic_irq 2 INTA 0x10
99 end
100 device pci 1c.0 on # PCIe Port #1
101 subsystemid 0x17aa 0x20f3 # WWAN
102 ioapic_irq 2 INTA 0x10
103 end
104 device pci 1c.1 on
105 subsystemid 0x17aa 0x20f3 # WLAN
106 end # PCIe Port #2
107 device pci 1c.2 on
108 subsystemid 0x17aa 0x20f3 # UWB
109 end # PCIe Port #3
110 device pci 1c.3 on
111 subsystemid 0x17aa 0x20f3 # Expresscard
112 end # PCIe Port #4
113 device pci 1c.4 off end # PCIe Port #5
114 device pci 1c.5 off end # PCIe Port #6
115 device pci 1d.0 on # UHCI
116 subsystemid 0x17aa 0x20f0
117 ioapic_irq 2 INTA 0x10
118 end
119 device pci 1d.1 on # UHCI
120 subsystemid 0x17aa 0x20f0
121 ioapic_irq 2 INTB 0x11
122 end
123 device pci 1d.2 on # UHCI
124 subsystemid 0x17aa 0x20f0
125 ioapic_irq 2 INTC 0x12
126 end
127 device pci 1d.7 on # EHCI
128 subsystemid 0x17aa 0x20f1
129 ioapic_irq 2 INTA 0x10
130 end
131 device pci 1e.0 on # PCI
132 subsystemid 0x17aa 0x20f4
133 end
134 device pci 1f.0 on # LPC bridge
135 subsystemid 0x17aa 0x20f5
Arthur Heymans2bbffc02019-01-22 21:22:52 +0100136
137 chip drivers/generic/ioapic
138 register "have_isa_interrupts" = "1"
139 register "irq_on_fsb" = "1"
140 register "enable_virtual_wire" = "1"
141 register "base" = "(void *)0xfec00000"
142 device ioapic 2 on end
143 end
144
Timothy Pearson4b373c92015-04-05 17:54:08 -0500145 chip ec/lenovo/pmh7
146 device pnp ff.1 on # dummy
147 end
148 register "backlight_enable" = "0x01"
149 register "dock_event_enable" = "0x01"
150 end
151
152 chip ec/lenovo/h8
153 device pnp ff.2 on # dummy
154 io 0x60 = 0x62
155 io 0x62 = 0x66
156 io 0x64 = 0x1600
157 io 0x66 = 0x1604
158 end
159
160 register "config0" = "0xa6"
161 register "config1" = "0x04"
162 register "config2" = "0xa0"
163 register "config3" = "0x01"
164
165 register "beepmask0" = "0xfe"
166 register "beepmask1" = "0x96"
167 register "has_power_management_beeps" = "1"
168 register "has_uwb" = "1"
169
170 register "event2_enable" = "0xff"
171 register "event3_enable" = "0xff"
172 register "event4_enable" = "0xf4"
173 register "event5_enable" = "0x3c"
174 register "event6_enable" = "0x80"
175 register "event7_enable" = "0x01"
176 register "event8_enable" = "0x01"
177 register "event9_enable" = "0xff"
178 register "eventa_enable" = "0xff"
179 register "eventb_enable" = "0xff"
180 register "eventc_enable" = "0xff"
181 register "eventd_enable" = "0xff"
Patrick Rudolphb77eec82017-05-21 09:20:39 +0200182
183 register "has_bdc_detection" = "1"
184 register "bdc_gpio_num" = "48"
185 register "bdc_gpio_lvl" = "0"
Timothy Pearson4b373c92015-04-05 17:54:08 -0500186 end
187
188 chip superio/nsc/pc87382
Kyösti Mälkki9ab5adb2017-01-08 09:07:14 +0200189 device pnp 164e.2 off end # IR
190 device pnp 164e.3 off end # Serial Port
191 device pnp 164e.7 on # GPIO
192 io 0x60 = 0x1680
193 end
194 device pnp 164e.19 on # DLPC
195 io 0x60 = 0x164c
196 end
197 end
198
199 chip superio/nsc/pc87384
200 device pnp 2e.1 on # Parallel Port
201 io 0x60 = 0x3bc
202 irq 0x70 = 7
203 end
204 device pnp 2e.2 off end # Serial Port / IR
205 device pnp 2e.3 on # Serial Port
206 io 0x60 = 0x3f8
207 irq 0x70 = 4
208 end
209 device pnp 2e.7 on # GPIO
210 io 0x60 = 0x1620
211 end
Timothy Pearson4b373c92015-04-05 17:54:08 -0500212 end
213
Patrick Rudolph24680d02017-07-25 18:18:57 +0200214 chip drivers/lenovo/hybrid_graphics
215 device pnp ff.f on end # dummy
216
217 register "detect_gpio" = "21"
218
219 register "has_panel_hybrid_gpio" = "1"
220 register "panel_hybrid_gpio" = "22"
221 register "panel_integrated_lvl" = "0"
222
223 register "has_backlight_gpio" = "1"
224 register "backlight_gpio" = "19"
225 register "backlight_integrated_lvl" = "0"
226
227 register "has_dgpu_power_gpio" = "1"
228 register "dgpu_power_gpio" = "49"
229 register "dgpu_power_off_lvl" = "0"
230
231 register "has_thinker1" = "0"
232 end
Timothy Pearson4b373c92015-04-05 17:54:08 -0500233 end
234 device pci 1f.2 on # SATA/IDE 1
235 subsystemid 0x17aa 0x20f8
236 ioapic_irq 2 INTB 0x11
237 end
238 device pci 1f.3 on # SMBus
239 subsystemid 0x17aa 0x20f9
240 ioapic_irq 2 INTC 0x12
Elyes HAOUASe3e3f4f2018-06-29 21:41:41 +0200241 # eeprom, 8 virtual devices, same chip
Timothy Pearson4b373c92015-04-05 17:54:08 -0500242 chip drivers/i2c/at24rf08c
243 device i2c 54 on end
244 device i2c 55 on end
245 device i2c 56 on end
246 device i2c 57 on end
247 device i2c 5c on end
248 device i2c 5d on end
249 device i2c 5e on end
250 device i2c 5f on end
251 end
252 end
253 device pci 1f.5 off end # SATA/IDE 2
254 device pci 1f.6 off end # Thermal
255 end
256 end
257end