payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / lenovo / t400 / devicetree.cb
blob670b4883f33dfdd49daffcd0a5bf2386d72767b9
1 chip northbridge/intel/gm45
2 # IGD Displays
3 register "gfx" = "GMA_STATIC_DISPLAYS(1)"
5 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
11 device cpu_cluster 0 on
12 chip cpu/intel/socket_p
13 device lapic 0 on end
14 end
15 chip cpu/intel/model_1067x
16 # Magic APIC ID to locate this chip
17 device lapic 0xACAC off end
19 # Enable Super LFM
20 register "slfm" = "1"
22 # Enable C5, C6
23 register "c5" = "1"
24 register "c6" = "1"
25 end
26 end
28 register "pci_mmio_size" = "2048"
30 device domain 0 on
31 device pci 00.0 on
32 subsystemid 0x17aa 0x20e0
33 end # host bridge
34 device pci 01.0 on end # PCIe Bridge for discrete graphics
35 device pci 02.0 on # VGA
36 subsystemid 0x17aa 0x20e4
37 ioapic_irq 2 INTA 0x10
38 end
39 device pci 02.1 on
40 subsystemid 0x17aa 0x20e4
41 end # Display
42 device pci 03.0 on
43 subsystemid 0x17aa 0x20e6
44 end # ME
45 device pci 03.1 off end # ME
46 device pci 03.2 off end # ME
47 device pci 03.3 off end # ME
48 chip southbridge/intel/i82801ix
49 register "pirqa_routing" = "0x0b"
50 register "pirqb_routing" = "0x0b"
51 register "pirqc_routing" = "0x0b"
52 register "pirqd_routing" = "0x0b"
53 register "pirqe_routing" = "0x80"
54 register "pirqf_routing" = "0x80"
55 register "pirqg_routing" = "0x80"
56 register "pirqh_routing" = "0x80"
58 register "gpi8_routing" = "2"
59 register "gpe0_en" = "0x01000000"
60 register "gpi1_routing" = "2"
62 # Set AHCI mode, enable ports 1 and 2.
63 register "sata_port_map" = "0x03"
64 register "sata_clock_request" = "0"
65 register "sata_traffic_monitor" = "0"
67 # Set c-state support
68 register "c4onc3_enable" = "1"
69 register "c5_enable" = "1"
70 register "c6_enable" = "1"
72 # Set thermal throttling to 75%.
73 register "throttle_duty" = "THTL_75_0"
75 # Enable PCIe ports 1,2,4 as slots (Mini * PCIe).
76 register "pcie_slot_implemented" = "0xb"
77 # Set power limits to 10 * 10^0 watts.
78 # Maybe we should set less for Mini PCIe.
79 register "pcie_power_limits" = "{ { 10, 0 }, { 10, 0 }, { 0, 0 }, { 10, 0 }, { 0, 0 }, { 0, 0 } }"
80 register "pcie_hotplug_map" = "{ 0, 0, 0, 1, 0, 0, 0, 0 }"
81 register "gen1_dec" = "0x007c1601"
82 register "gen2_dec" = "0x000c15e1"
83 register "gen3_dec" = "0x001c1681"
85 device pci 19.0 on end # LAN
86 device pci 1a.0 on # UHCI
87 subsystemid 0x17aa 0x20f0
88 ioapic_irq 2 INTA 0x10
89 end
90 device pci 1a.1 on # UHCI
91 subsystemid 0x17aa 0x20f0
92 ioapic_irq 2 INTB 0x11
93 end
94 device pci 1a.2 on # UHCI
95 subsystemid 0x17aa 0x20f0
96 ioapic_irq 2 INTC 0x12
97 end
98 device pci 1a.7 on # EHCI
99 subsystemid 0x17aa 0x20f1
100 ioapic_irq 2 INTC 0x12
102 device pci 1b.0 on # HD Audio
103 subsystemid 0x17aa 0x20f2
104 ioapic_irq 2 INTA 0x10
106 device pci 1c.0 on # PCIe Port #1
107 subsystemid 0x17aa 0x20f3 # WWAN
108 ioapic_irq 2 INTA 0x10
110 device pci 1c.1 on
111 subsystemid 0x17aa 0x20f3 # WLAN
112 end # PCIe Port #2
113 device pci 1c.2 on
114 subsystemid 0x17aa 0x20f3 # UWB
115 end # PCIe Port #3
116 device pci 1c.3 on
117 subsystemid 0x17aa 0x20f3 # Expresscard
118 smbios_slot_desc "7" "3" "ExpressCard Slot" "8"
119 end # PCIe Port #4
120 device pci 1c.4 off end # PCIe Port #5
121 device pci 1c.5 off end # PCIe Port #6
122 device pci 1d.0 on # UHCI
123 subsystemid 0x17aa 0x20f0
124 ioapic_irq 2 INTA 0x10
126 device pci 1d.1 on # UHCI
127 subsystemid 0x17aa 0x20f0
128 ioapic_irq 2 INTB 0x11
130 device pci 1d.2 on # UHCI
131 subsystemid 0x17aa 0x20f0
132 ioapic_irq 2 INTC 0x12
134 device pci 1d.7 on # EHCI
135 subsystemid 0x17aa 0x20f1
136 ioapic_irq 2 INTA 0x10
138 device pci 1e.0 on # PCI
139 subsystemid 0x17aa 0x20f4
141 device pci 1f.0 on # LPC bridge
142 subsystemid 0x17aa 0x20f5
144 chip drivers/generic/ioapic
145 register "have_isa_interrupts" = "1"
146 register "base" = "(void *)0xfec00000"
147 device ioapic 2 on end
150 chip ec/lenovo/pmh7
151 device pnp ff.1 on end # dummy
152 register "backlight_enable" = "0x01"
153 register "dock_event_enable" = "0x01"
156 chip ec/lenovo/h8
157 device pnp ff.2 on # dummy
158 io 0x60 = 0x62
159 io 0x62 = 0x66
160 io 0x64 = 0x1600
161 io 0x66 = 0x1604
164 register "config0" = "0xa6"
165 register "config1" = "0x04"
166 register "config2" = "0xa0"
167 register "config3" = "0x01"
169 register "beepmask0" = "0xfe"
170 register "beepmask1" = "0x96"
171 register "has_power_management_beeps" = "1"
172 register "has_uwb" = "1"
174 register "event2_enable" = "0xff"
175 register "event3_enable" = "0xff"
176 register "event4_enable" = "0xf4"
177 register "event5_enable" = "0x3c"
178 register "event6_enable" = "0x80"
179 register "event7_enable" = "0x01"
180 register "event8_enable" = "0x01"
181 register "event9_enable" = "0xff"
182 register "eventa_enable" = "0xff"
183 register "eventb_enable" = "0xff"
184 register "eventc_enable" = "0xff"
185 register "eventd_enable" = "0xff"
187 register "has_bdc_detection" = "1"
188 register "bdc_gpio_num" = "48"
189 register "bdc_gpio_lvl" = "0"
192 chip superio/nsc/pc87382
193 device pnp 164e.2 off end # IR
194 device pnp 164e.3 off end # Serial Port
195 device pnp 164e.7 on # GPIO
196 io 0x60 = 0x1680
198 device pnp 164e.19 on # DLPC
199 io 0x60 = 0x164c
203 chip superio/nsc/pc87384
204 device pnp 2e.1 on # Parallel Port
205 io 0x60 = 0x3bc
206 irq 0x70 = 7
208 device pnp 2e.2 off end # Serial Port / IR
209 device pnp 2e.3 on # Serial Port
210 io 0x60 = 0x3f8
211 irq 0x70 = 4
213 device pnp 2e.7 on # GPIO
214 io 0x60 = 0x1620
218 device pci 1f.2 on # SATA/IDE 1
219 subsystemid 0x17aa 0x20f8
220 ioapic_irq 2 INTB 0x11
222 device pci 1f.3 on end # SMBus
223 device pci 1f.5 off end # SATA/IDE 2
224 device pci 1f.6 off end # Thermal