blob: 7946e34bb203f6ece40bf535c03930dd6e214088 [file] [log] [blame]
Timothy Pearson4b373c92015-04-05 17:54:08 -05001chip northbridge/intel/gm45
2 # IGD Displays
Nico Huberb0b25c82020-03-21 20:35:12 +01003 register "gfx" = "GMA_STATIC_DISPLAYS(1)"
Timothy Pearson4b373c92015-04-05 17:54:08 -05004
Nico Huber089790c2020-01-25 20:24:20 +01005 register "gpu_panel_power_up_delay" = "250" # T1+T2: 25ms
6 register "gpu_panel_power_down_delay" = "250" # T3: 25ms
7 register "gpu_panel_power_backlight_on_delay" = "2500" # T5: 250ms
8 register "gpu_panel_power_backlight_off_delay" = "2500" # Tx: 250ms
9 register "gpu_panel_power_cycle_delay" = "3" # T4: 200ms
Timothy Pearson4b373c92015-04-05 17:54:08 -050010
Arthur Heymans98c92572022-11-07 11:39:58 +010011 register "slfm" = "1"
12
Timothy Pearson4b373c92015-04-05 17:54:08 -050013 device cpu_cluster 0 on
Arthur Heymans2fb6f682022-11-07 09:45:19 +010014 ops gm45_cpu_bus_ops
Nico Huberc570a0e2019-02-27 14:32:23 +010015 chip cpu/intel/socket_p
Timothy Pearson4b373c92015-04-05 17:54:08 -050016 device lapic 0 on end
17 end
Timothy Pearson4b373c92015-04-05 17:54:08 -050018 end
19
Patrick Rudolph266a1f72016-06-09 18:13:34 +020020 register "pci_mmio_size" = "2048"
21
Timothy Pearson4b373c92015-04-05 17:54:08 -050022 device domain 0 on
Arthur Heymans2fb6f682022-11-07 09:45:19 +010023 ops gm45_pci_domain_ops
Timothy Pearson4b373c92015-04-05 17:54:08 -050024 device pci 00.0 on
25 subsystemid 0x17aa 0x20e0
26 end # host bridge
Patrick Rudolph830fdc72016-04-21 07:15:14 +020027 device pci 01.0 on end # PCIe Bridge for discrete graphics
Timothy Pearson4b373c92015-04-05 17:54:08 -050028 device pci 02.0 on # VGA
29 subsystemid 0x17aa 0x20e4
Timothy Pearson4b373c92015-04-05 17:54:08 -050030 end
31 device pci 02.1 on
32 subsystemid 0x17aa 0x20e4
33 end # Display
34 device pci 03.0 on
35 subsystemid 0x17aa 0x20e6
36 end # ME
37 device pci 03.1 off end # ME
38 device pci 03.2 off end # ME
39 device pci 03.3 off end # ME
40 chip southbridge/intel/i82801ix
41 register "pirqa_routing" = "0x0b"
42 register "pirqb_routing" = "0x0b"
43 register "pirqc_routing" = "0x0b"
44 register "pirqd_routing" = "0x0b"
45 register "pirqe_routing" = "0x80"
46 register "pirqf_routing" = "0x80"
47 register "pirqg_routing" = "0x80"
48 register "pirqh_routing" = "0x80"
49
50 register "gpi8_routing" = "2"
51 register "gpe0_en" = "0x01000000"
52 register "gpi1_routing" = "2"
53
54 # Set AHCI mode, enable ports 1 and 2.
55 register "sata_port_map" = "0x03"
56 register "sata_clock_request" = "0"
57 register "sata_traffic_monitor" = "0"
58
59 # Set c-state support
Arthur Heymans2a1847e2016-06-17 19:06:25 +020060 register "c4onc3_enable" = "1"
Timothy Pearson4b373c92015-04-05 17:54:08 -050061 register "c5_enable" = "1"
62 register "c6_enable" = "1"
63
64 # Set thermal throttling to 75%.
65 register "throttle_duty" = "THTL_75_0"
66
67 # Enable PCIe ports 1,2,4 as slots (Mini * PCIe).
68 register "pcie_slot_implemented" = "0xb"
69 # Set power limits to 10 * 10^0 watts.
70 # Maybe we should set less for Mini PCIe.
71 register "pcie_power_limits" = "{ { 10, 0 }, { 10, 0 }, { 0, 0 }, { 10, 0 }, { 0, 0 }, { 0, 0 } }"
72 register "pcie_hotplug_map" = "{ 0, 0, 0, 1, 0, 0, 0, 0 }"
Arthur Heymans9ed0df42019-10-12 14:18:18 +020073 register "gen1_dec" = "0x007c1601"
74 register "gen2_dec" = "0x000c15e1"
75 register "gen3_dec" = "0x001c1681"
Timothy Pearson4b373c92015-04-05 17:54:08 -050076
Timothy Pearson4b373c92015-04-05 17:54:08 -050077 device pci 19.0 on end # LAN
78 device pci 1a.0 on # UHCI
79 subsystemid 0x17aa 0x20f0
Timothy Pearson4b373c92015-04-05 17:54:08 -050080 end
81 device pci 1a.1 on # UHCI
82 subsystemid 0x17aa 0x20f0
Timothy Pearson4b373c92015-04-05 17:54:08 -050083 end
84 device pci 1a.2 on # UHCI
85 subsystemid 0x17aa 0x20f0
Timothy Pearson4b373c92015-04-05 17:54:08 -050086 end
87 device pci 1a.7 on # EHCI
88 subsystemid 0x17aa 0x20f1
Timothy Pearson4b373c92015-04-05 17:54:08 -050089 end
90 device pci 1b.0 on # HD Audio
91 subsystemid 0x17aa 0x20f2
Timothy Pearson4b373c92015-04-05 17:54:08 -050092 end
93 device pci 1c.0 on # PCIe Port #1
94 subsystemid 0x17aa 0x20f3 # WWAN
Timothy Pearson4b373c92015-04-05 17:54:08 -050095 end
96 device pci 1c.1 on
97 subsystemid 0x17aa 0x20f3 # WLAN
98 end # PCIe Port #2
99 device pci 1c.2 on
100 subsystemid 0x17aa 0x20f3 # UWB
101 end # PCIe Port #3
102 device pci 1c.3 on
103 subsystemid 0x17aa 0x20f3 # Expresscard
Patrick Rudolph05216322019-04-12 16:14:27 +0200104 smbios_slot_desc "7" "3" "ExpressCard Slot" "8"
Timothy Pearson4b373c92015-04-05 17:54:08 -0500105 end # PCIe Port #4
106 device pci 1c.4 off end # PCIe Port #5
107 device pci 1c.5 off end # PCIe Port #6
108 device pci 1d.0 on # UHCI
109 subsystemid 0x17aa 0x20f0
Timothy Pearson4b373c92015-04-05 17:54:08 -0500110 end
111 device pci 1d.1 on # UHCI
112 subsystemid 0x17aa 0x20f0
Timothy Pearson4b373c92015-04-05 17:54:08 -0500113 end
114 device pci 1d.2 on # UHCI
115 subsystemid 0x17aa 0x20f0
Timothy Pearson4b373c92015-04-05 17:54:08 -0500116 end
117 device pci 1d.7 on # EHCI
118 subsystemid 0x17aa 0x20f1
Timothy Pearson4b373c92015-04-05 17:54:08 -0500119 end
120 device pci 1e.0 on # PCI
121 subsystemid 0x17aa 0x20f4
122 end
123 device pci 1f.0 on # LPC bridge
124 subsystemid 0x17aa 0x20f5
Arthur Heymans2bbffc02019-01-22 21:22:52 +0100125
Timothy Pearson4b373c92015-04-05 17:54:08 -0500126 chip ec/lenovo/pmh7
Peter Lemenkov4ed25982020-02-06 14:51:27 +0100127 device pnp ff.1 on end # dummy
Timothy Pearson4b373c92015-04-05 17:54:08 -0500128 register "backlight_enable" = "0x01"
129 register "dock_event_enable" = "0x01"
130 end
131
132 chip ec/lenovo/h8
133 device pnp ff.2 on # dummy
134 io 0x60 = 0x62
135 io 0x62 = 0x66
136 io 0x64 = 0x1600
137 io 0x66 = 0x1604
138 end
139
140 register "config0" = "0xa6"
141 register "config1" = "0x04"
142 register "config2" = "0xa0"
143 register "config3" = "0x01"
144
145 register "beepmask0" = "0xfe"
146 register "beepmask1" = "0x96"
147 register "has_power_management_beeps" = "1"
148 register "has_uwb" = "1"
149
150 register "event2_enable" = "0xff"
151 register "event3_enable" = "0xff"
152 register "event4_enable" = "0xf4"
153 register "event5_enable" = "0x3c"
154 register "event6_enable" = "0x80"
155 register "event7_enable" = "0x01"
156 register "event8_enable" = "0x01"
157 register "event9_enable" = "0xff"
158 register "eventa_enable" = "0xff"
159 register "eventb_enable" = "0xff"
160 register "eventc_enable" = "0xff"
161 register "eventd_enable" = "0xff"
Patrick Rudolphb77eec82017-05-21 09:20:39 +0200162
163 register "has_bdc_detection" = "1"
164 register "bdc_gpio_num" = "48"
165 register "bdc_gpio_lvl" = "0"
Timothy Pearson4b373c92015-04-05 17:54:08 -0500166 end
167
168 chip superio/nsc/pc87382
Kyösti Mälkki9ab5adb2017-01-08 09:07:14 +0200169 device pnp 164e.2 off end # IR
170 device pnp 164e.3 off end # Serial Port
171 device pnp 164e.7 on # GPIO
172 io 0x60 = 0x1680
173 end
174 device pnp 164e.19 on # DLPC
175 io 0x60 = 0x164c
176 end
177 end
178
179 chip superio/nsc/pc87384
180 device pnp 2e.1 on # Parallel Port
181 io 0x60 = 0x3bc
182 irq 0x70 = 7
183 end
184 device pnp 2e.2 off end # Serial Port / IR
185 device pnp 2e.3 on # Serial Port
186 io 0x60 = 0x3f8
187 irq 0x70 = 4
188 end
189 device pnp 2e.7 on # GPIO
190 io 0x60 = 0x1620
191 end
Timothy Pearson4b373c92015-04-05 17:54:08 -0500192 end
Timothy Pearson4b373c92015-04-05 17:54:08 -0500193 end
194 device pci 1f.2 on # SATA/IDE 1
195 subsystemid 0x17aa 0x20f8
Timothy Pearson4b373c92015-04-05 17:54:08 -0500196 end
Arthur Heymans03180212018-09-16 18:55:28 +0200197 device pci 1f.3 on end # SMBus
Timothy Pearson4b373c92015-04-05 17:54:08 -0500198 device pci 1f.5 off end # SATA/IDE 2
199 device pci 1f.6 off end # Thermal
200 end
201 end
202end