amd/stoneyridge: Add SlpTyp SMI handler
[coreboot.git] / src / mainboard / lenovo / t420s / devicetree.cb
bloba090308c8cf42a103e6279c8bb93c725a9f6efa9
1 chip northbridge/intel/sandybridge
2 register "gfx.ndid" = "3"
3 register "gfx.did" = "{ 0x80000100, 0x80000240, 0x80000410, 0x80000410, 0x00000005 }"
5 # Enable DisplayPort Hotplug with 6ms pulse
6 register "gpu_dp_d_hotplug" = "0x06"
8 # Enable Panel as LVDS and configure power delays
9 register "gpu_panel_port_select" = "0" # LVDS
10 register "gpu_panel_power_cycle_delay" = "1"
11 register "gpu_panel_power_up_delay" = "300" # T1+T2: 30ms
12 register "gpu_panel_power_down_delay" = "300" # T5+T6: 30ms
13 register "gpu_panel_power_backlight_on_delay" = "2000" # T3: 200ms
14 register "gpu_panel_power_backlight_off_delay" = "2000" # T4: 200ms
15 register "gfx.use_spread_spectrum_clock" = "1"
16 register "gfx.link_frequency_270_mhz" = "1"
17 register "gpu_cpu_backlight" = "0x1155"
18 register "gpu_pch_backlight" = "0x06100610"
20 device cpu_cluster 0 on
21 chip cpu/intel/socket_rPGA988B
22 device lapic 0 on end
23 end
24 chip cpu/intel/model_206ax
25 # Magic APIC ID to locate this chip
26 device lapic 0xACAC off end
28 register "c1_acpower" = "1" # ACPI(C1) = MWAIT(C1)
29 register "c2_acpower" = "3" # ACPI(C2) = MWAIT(C3)
30 register "c3_acpower" = "5" # ACPI(C3) = MWAIT(C7)
32 register "c1_battery" = "1" # ACPI(C1) = MWAIT(C1)
33 register "c2_battery" = "3" # ACPI(C2) = MWAIT(C3)
34 register "c3_battery" = "5" # ACPI(C3) = MWAIT(C7)
35 end
36 end
38 register "pci_mmio_size" = "2048"
40 device domain 0 on
41 device pci 00.0 on
42 subsystemid 0x17aa 0x21d2
43 end # host bridge
44 device pci 01.0 on end # NVIDIA Corporation GF119M [NVS 4200M]
45 device pci 02.0 on
46 subsystemid 0x17aa 0x21d3
47 end # Integrated Graphics Controller
49 chip southbridge/intel/bd82x6x # Intel Series 6 Cougar Point PCH
50 # GPI routing
51 # 0 No effect (default)
52 # 1 SMI# (if corresponding ALT_GPI_SMI_EN bit is also set)
53 # 2 SCI (if corresponding GPIO_EN bit is also set)
54 register "alt_gp_smi_en" = "0x0000"
55 register "gpi1_routing" = "2"
56 register "gpi13_routing" = "2"
58 # Enable SATA ports 0 (HDD bay) & 1 (ODD bay) & 2 (mSATA) & 4 (dock)
59 register "sata_port_map" = "0x17"
60 # Set max SATA speed to 6.0 Gb/s
61 register "sata_interface_speed_support" = "0x3"
63 register "gen1_dec" = "0x7c1601"
64 register "gen2_dec" = "0x0c15e1"
65 register "gen4_dec" = "0x0c06a1"
67 register "pcie_hotplug_map" = "{ 0, 0, 0, 1, 0, 0, 0, 0 }"
69 # Enable zero-based linear PCIe root port functions
70 register "pcie_port_coalesce" = "1"
72 register "c2_latency" = "101" # c2 not supported
73 register "p_cnt_throttling_supported" = "1"
75 register "spi_uvscc" = "0x2005"
76 register "spi_lvscc" = "0x2005"
78 device pci 16.0 off end # Management Engine Interface 1
79 device pci 16.1 off end # Management Engine Interface 2
80 device pci 16.2 off end # Management Engine IDE-R
81 device pci 16.3 off end # Management Engine KT
82 device pci 19.0 on
83 subsystemid 0x17aa 0x21ce
84 end # Intel Gigabit Ethernet
85 device pci 1a.0 on
86 subsystemid 0x17aa 0x21d2
87 end # USB Enhanced Host Controller #2
88 device pci 1b.0 on
89 subsystemid 0x17aa 0x21d2
90 end # High Definition Audio Controller
91 device pci 1c.0 off end # PCIe Port #1
92 device pci 1c.1 on
93 subsystemid 0x17aa 0x21d2
94 end # PCIe Port #2 Integrated Wireless LAN
95 device pci 1c.2 off end # PCIe Port #3
96 device pci 1c.3 on
97 subsystemid 0x17aa 0x21d2
98 end # PCIe Port #4 ExpressCard
99 device pci 1c.4 off end # PCIe Port #5
100 device pci 1c.5 off end # PCIe Port #6 Intel Gigabit Ethernet PHY (not PCIe)
101 device pci 1c.6 on
102 subsystemid 0x17aa 0x21d2
103 end # PCIe Port #7 NEC Corporation uPD720200A USB 3.0 Host Controller
104 device pci 1c.7 off end # PCIe Port #8
105 device pci 1d.0 on
106 subsystemid 0x17aa 0x21d2
107 end # USB Enhanced Host Controller #1
108 device pci 1e.0 off end # PCI bridge
109 device pci 1f.0 on
110 subsystemid 0x17aa 0x21d2
111 chip ec/lenovo/pmh7
112 device pnp ff.1 on # dummy
114 register "backlight_enable" = "0x01"
115 register "dock_event_enable" = "0x01"
118 chip drivers/pc80/tpm
119 device pnp 0c31.0 on end
122 chip ec/lenovo/h8
123 device pnp ff.2 on # dummy
124 io 0x60 = 0x62
125 io 0x62 = 0x66
126 io 0x64 = 0x1600
127 io 0x66 = 0x1604
130 register "config0" = "0xa7"
131 register "config1" = "0x01"
132 register "config2" = "0xa0"
133 register "config3" = "0xe2"
135 register "has_keyboard_backlight" = "0"
137 register "beepmask0" = "0x02"
138 register "beepmask1" = "0x86"
139 register "has_power_management_beeps" = "1"
140 register "event2_enable" = "0xff"
141 register "event3_enable" = "0xff"
142 register "event4_enable" = "0xf0"
143 register "event5_enable" = "0x3c"
144 register "event6_enable" = "0x00"
145 register "event7_enable" = "0xa1"
146 register "event8_enable" = "0x7b"
147 register "event9_enable" = "0xff"
148 register "eventa_enable" = "0x00"
149 register "eventb_enable" = "0x00"
150 register "eventc_enable" = "0xff"
151 register "eventd_enable" = "0xff"
152 register "evente_enable" = "0x0d"
154 register "has_bdc_detection" = "1"
155 register "bdc_gpio_num" = "54"
156 register "bdc_gpio_lvl" = "0"
158 chip drivers/lenovo/hybrid_graphics
159 device pnp ff.f on end # dummy
161 register "detect_gpio" = "21"
163 register "has_panel_hybrid_gpio" = "1"
164 register "panel_hybrid_gpio" = "52"
165 register "panel_integrated_lvl" = "1"
167 register "has_backlight_gpio" = "0"
168 register "has_dgpu_power_gpio" = "0"
170 register "has_thinker1" = "1"
172 end # LPC Controller
173 device pci 1f.2 on
174 subsystemid 0x17aa 0x21d2
175 end # 6 port SATA AHCI Controller
176 device pci 1f.3 on
177 subsystemid 0x17aa 0x21d2
178 # eeprom, 8 virtual devices, same chip
179 chip drivers/i2c/at24rf08c
180 device i2c 54 on end
181 device i2c 55 on end
182 device i2c 56 on end
183 device i2c 57 on end
184 device i2c 5c on end
185 device i2c 5d on end
186 device i2c 5e on end
187 device i2c 5f on end
189 end # SMBus Controller
190 device pci 1f.5 off end # SATA Controller 2
191 device pci 1f.6 on
192 subsystemid 0x17aa 0x21d2
193 end # Thermal