payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / lenovo / x200 / devicetree.cb
blobdd631a703418715b6bb5ea984fa0fd0c101fc625
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_BGA956
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 02.0 on # VGA
35 subsystemid 0x17aa 0x20e4
36 ioapic_irq 2 INTA 0x10
37 end
38 device pci 02.1 on
39 subsystemid 0x17aa 0x20e4
40 end # Display
41 device pci 03.0 on
42 subsystemid 0x17aa 0x20e6
43 end # ME
44 device pci 03.1 off end # ME
45 device pci 03.2 off end # ME
46 device pci 03.3 off end # ME
47 chip southbridge/intel/i82801ix
48 register "pirqa_routing" = "0x0b"
49 register "pirqb_routing" = "0x0b"
50 register "pirqc_routing" = "0x0b"
51 register "pirqd_routing" = "0x0b"
52 register "pirqe_routing" = "0x80"
53 register "pirqf_routing" = "0x80"
54 register "pirqg_routing" = "0x80"
55 register "pirqh_routing" = "0x80"
57 register "gpi8_routing" = "2"
58 register "gpe0_en" = "0x01000000"
59 register "gpi1_routing" = "2"
61 # Set AHCI mode, enable ports 1 and 2.
62 register "sata_port_map" = "0x03"
63 register "sata_clock_request" = "0"
64 register "sata_traffic_monitor" = "0"
66 # Set c-state support
67 register "c4onc3_enable" = "1"
68 register "c5_enable" = "1"
69 register "c6_enable" = "1"
71 # Set thermal throttling to 75%.
72 register "throttle_duty" = "THTL_75_0"
74 register "gen1_dec" = "0x007c1601"
75 register "gen2_dec" = "0x000c15e1"
76 register "gen3_dec" = "0x001c1681"
78 device pci 19.0 on end # LAN
79 device pci 1a.0 on # UHCI
80 subsystemid 0x17aa 0x20f0
81 ioapic_irq 2 INTA 0x10
82 end
83 device pci 1a.1 on # UHCI
84 subsystemid 0x17aa 0x20f0
85 ioapic_irq 2 INTB 0x11
86 end
87 device pci 1a.2 on # UHCI
88 subsystemid 0x17aa 0x20f0
89 ioapic_irq 2 INTC 0x12
90 end
91 device pci 1a.7 on # EHCI
92 subsystemid 0x17aa 0x20f1
93 ioapic_irq 2 INTC 0x12
94 end
95 device pci 1b.0 on # HD Audio
96 subsystemid 0x17aa 0x20f2
97 ioapic_irq 2 INTA 0x10
98 end
99 device pci 1c.0 on # PCIe Port #1
100 subsystemid 0x17aa 0x20f3 # WWAN
101 ioapic_irq 2 INTA 0x10
103 device pci 1c.1 on
104 subsystemid 0x17aa 0x20f3 # WLAN
105 end # PCIe Port #2
106 device pci 1c.2 on
107 subsystemid 0x17aa 0x20f3 # UWB
108 end # PCIe Port #3
109 device pci 1c.3 off end # PCIe Port #4
110 device pci 1c.4 off end # PCIe Port #5
111 device pci 1c.5 off end # PCIe Port #6
112 device pci 1d.0 on # UHCI
113 subsystemid 0x17aa 0x20f0
114 ioapic_irq 2 INTA 0x10
116 device pci 1d.1 on # UHCI
117 subsystemid 0x17aa 0x20f0
118 ioapic_irq 2 INTB 0x11
120 device pci 1d.2 on # UHCI
121 subsystemid 0x17aa 0x20f0
122 ioapic_irq 2 INTC 0x12
124 device pci 1d.7 on # EHCI
125 subsystemid 0x17aa 0x20f1
126 ioapic_irq 2 INTA 0x10
128 device pci 1e.0 on # PCI
129 subsystemid 0x17aa 0x20f4
131 device pci 1f.0 on # LPC bridge
132 subsystemid 0x17aa 0x20f5
134 chip drivers/generic/ioapic
135 register "have_isa_interrupts" = "1"
136 register "base" = "(void *)0xfec00000"
137 device ioapic 2 on end
140 chip ec/lenovo/pmh7
141 device pnp ff.1 on end # dummy
142 register "backlight_enable" = "0x01"
145 chip ec/lenovo/h8
146 device pnp ff.2 on # dummy
147 io 0x60 = 0x62
148 io 0x62 = 0x66
149 io 0x64 = 0x1600
150 io 0x66 = 0x1604
153 register "config0" = "0xa6"
154 register "config1" = "0x04"
155 register "config2" = "0xa0"
156 register "config3" = "0x01"
158 register "beepmask0" = "0xfe"
159 register "beepmask1" = "0x96"
160 register "has_power_management_beeps" = "1"
161 register "has_uwb" = "1"
163 register "event2_enable" = "0xff"
164 register "event3_enable" = "0xff"
165 register "event4_enable" = "0xf4"
166 register "event5_enable" = "0x3c"
167 register "event6_enable" = "0x80"
168 register "event7_enable" = "0x01"
169 register "event8_enable" = "0x01"
170 register "event9_enable" = "0xff"
171 register "eventa_enable" = "0xff"
172 register "eventb_enable" = "0xff"
173 register "eventc_enable" = "0xff"
174 register "eventd_enable" = "0xff"
176 register "has_bdc_detection" = "1"
177 register "bdc_gpio_num" = "7"
178 register "bdc_gpio_lvl" = "0"
181 device pci 1f.2 on # SATA/IDE 1
182 subsystemid 0x17aa 0x20f8
183 ioapic_irq 2 INTB 0x11
185 device pci 1f.3 on # SMBus
186 subsystemid 0x17aa 0x20f9
187 ioapic_irq 2 INTC 0x12
188 # eeprom, 8 virtual devices, same chip
189 chip drivers/i2c/at24rf08c
190 device i2c 54 on end
191 device i2c 55 on end
192 device i2c 56 on end
193 device i2c 57 on end
194 device i2c 5c on end
195 device i2c 5d on end
196 device i2c 5e on end
197 device i2c 5f on end
200 device pci 1f.5 off end # SATA/IDE 2
201 device pci 1f.6 off end # Thermal