aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo/t430s/variants/t431s/overridetree.cb
blob: e69f727f073a94bcbe64e2f916901d6149e3c186 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
chip northbridge/intel/sandybridge
	# Enable DisplayPort Hotplug with 6ms pulse
	register "gpu_dp_b_hotplug" = "4"
	register "gpu_dp_c_hotplug" = "4"
	register "gpu_dp_d_hotplug" = "4"

	# Enable Panel as eDP and configure power delays
	register "gpu_panel_port_select" = "1"			# eDP
	register "gpu_panel_power_up_delay" = "2000"		# 200ms
	register "gpu_panel_power_down_delay" = "500"		# 50ms
	register "gpu_panel_power_backlight_on_delay" = "1"	# 0.1ms
	register "gpu_panel_power_backlight_off_delay" = "1"	# 0.1ms
	register "gpu_cpu_backlight" = "0x03d2"

	device domain 0 on
		device pci 00.0 on
			subsystemid 0x17aa 0x2208
		end # host bridge
		device pci 01.0 off end # PCIe Bridge for discrete graphics
		device pci 02.0 on
			subsystemid 0x17aa 0x2208
		end # Integrated Graphics Controller
		chip southbridge/intel/bd82x6x # Intel Series 7 Panther Point PCH
			# Enable SATA ports 0 (HDD bay) & 1 (WWAN M.2 SATA) & 4 (dock)
			register "sata_port_map" = "0x13"
			# T431s has no Express Card slot.
			register "pcie_hotplug_map" = "{ 0, 0, 0, 0, 0, 0, 0, 0 }"
			device pci 14.0 on
				subsystemid 0x17aa 0x2208
			end # USB 3.0 Controller
			device pci 1a.0 on
				subsystemid 0x17aa 0x2208
			end # USB Enhanced Host Controller #2
			device pci 1b.0 on
				subsystemid 0x17aa 0x2208
			end # High Definition Audio Controller
			device pci 1c.0 on # PCIe Port #1
				subsystemid 0x17aa 0x2208
				chip drivers/ricoh/rce822 # Ricoh cardreader
					register "disable_mask" = "0x87"
					register "sdwppol" = "0"
					device pci 00.0 on # Ricoh SD card reader
						subsystemid 0x17aa 0x2208
					end
				end
			end
			device pci 1c.1 on
				subsystemid 0x17aa 0x2208
			end # PCIe Port #2 Integrated Wireless LAN
			device pci 1c.2 off end # PCIe Port #3
			device pci 1d.0 on
				subsystemid 0x17aa 0x2208
			end # USB Enhanced Host Controller #1
			device pci 1e.0 off end # PCI bridge
			device pci 1f.0 on
				subsystemid 0x17aa 0x2208
				chip ec/lenovo/h8
					register "config0" = "0xa6"
					register "config1" = "0x09"
					register "config3" = "0xc0"
					register "evente_enable" = "0x1d"
					# T431s only has BT on wlan card
					register "has_bdc_detection" = "0"
				end
			end # LPC Controller
			device pci 1f.2 on
				subsystemid 0x17aa 0x2208
			end # 6 port SATA AHCI Controller
			device pci 1f.3 on
				subsystemid 0x17aa 0x2208
			end # SMBus Controller
			device pci 1f.6 off end # Thermal
		end
	end
end