blob: a28c1775729cee1b9919dfc710a42eeaa7befe88 [file] [log] [blame]
Edward O'Callaghan956c2982014-03-16 17:09:58 +11001chip northbridge/intel/sandybridge
Vladimir Serbinenkodd2bc3f2014-10-31 09:16:31 +01002 # IGD Displays
3 register "gfx.ndid" = "3"
4 register "gfx.did" = "{ 0x80000100, 0x80000240, 0x80000410, 0x80000410, 0x00000005 }"
Edward O'Callaghan956c2982014-03-16 17:09:58 +11005
6 # Enable DisplayPort Hotplug with 6ms pulse
7 register "gpu_dp_d_hotplug" = "0x06"
8
9 # Enable Panel as LVDS and configure power delays
10 register "gpu_panel_port_select" = "0" # LVDS
11 register "gpu_panel_power_cycle_delay" = "6" # T7: 500ms
12 register "gpu_panel_power_up_delay" = "100" # T1+T2: 10ms
13 register "gpu_panel_power_down_delay" = "100" # T5+T6: 10ms
Edward O'Callaghan5fcae802014-07-29 14:42:26 +100014 register "gpu_panel_power_backlight_on_delay" = "2000" # T3: 200ms
15 register "gpu_panel_power_backlight_off_delay" = "2000" # T4: 200ms
Vladimir Serbinenkoa71bdc32014-08-30 00:35:39 +020016 register "gfx.use_spread_spectrum_clock" = "1"
Vladimir Serbinenkoa71bdc32014-08-30 00:35:39 +020017 register "gfx.link_frequency_270_mhz" = "1"
Edward O'Callaghan5fcae802014-07-29 14:42:26 +100018 register "gpu_cpu_backlight" = "0x1155"
19 register "gpu_pch_backlight" = "0x11551155"
Edward O'Callaghan956c2982014-03-16 17:09:58 +110020
21 device cpu_cluster 0 on
22 chip cpu/intel/socket_rPGA989
23 device lapic 0 on end
24 end
25 chip cpu/intel/model_206ax
26 # Magic APIC ID to locate this chip
27 device lapic 0xACAC off end
28
Edward O'Callaghan956c2982014-03-16 17:09:58 +110029 register "c1_acpower" = "1" # ACPI(C1) = MWAIT(C1)
30 register "c2_acpower" = "3" # ACPI(C2) = MWAIT(C3)
31 register "c3_acpower" = "5" # ACPI(C3) = MWAIT(C7)
32
33 register "c1_battery" = "1" # ACPI(C1) = MWAIT(C1)
34 register "c2_battery" = "3" # ACPI(C2) = MWAIT(C3)
35 register "c3_battery" = "5" # ACPI(C3) = MWAIT(C7)
36 end
37 end
38
Patrick Rudolph266a1f72016-06-09 18:13:34 +020039 register "pci_mmio_size" = "2048"
40
Edward O'Callaghan956c2982014-03-16 17:09:58 +110041 device domain 0 on
42 device pci 00.0 on end # host bridge
Edward O'Callaghana8126432014-09-13 06:53:20 +100043 device pci 01.0 on end # PCIe Bridge for discrete graphics
Edward O'Callaghan956c2982014-03-16 17:09:58 +110044 device pci 02.0 on end # vga controller
45
46 chip southbridge/intel/bd82x6x # Intel Series 6 Cougar Point PCH
Edward O'Callaghan956c2982014-03-16 17:09:58 +110047 # GPI routing
48 # 0 No effect (default)
49 # 1 SMI# (if corresponding ALT_GPI_SMI_EN bit is also set)
50 # 2 SCI (if corresponding GPIO_EN bit is also set)
51 register "alt_gp_smi_en" = "0x0000"
52 register "gpi1_routing" = "2"
Nicolas Reineckeb0922f02015-02-01 02:53:35 +010053 register "gpi13_routing" = "2"
Edward O'Callaghan956c2982014-03-16 17:09:58 +110054
Edward O'Callaghancf6f9b92014-09-13 06:06:05 +100055 # Enable SATA ports 0 (HDD bay) & 1 (ODD bay) & 2 (mSATA) & 3 (eSATA) & 4 (dock)
56 register "sata_port_map" = "0x3f"
Edward O'Callaghan956c2982014-03-16 17:09:58 +110057 # Set max SATA speed to 6.0 Gb/s
58 register "sata_interface_speed_support" = "0x3"
59
60 register "gen1_dec" = "0x7c1601"
61 register "gen2_dec" = "0x0c15e1"
62 register "gen4_dec" = "0x0c06a1"
63
64 # Enable zero-based linear PCIe root port functions
65 register "pcie_port_coalesce" = "1"
Vladimir Serbinenko5b044ae2014-10-25 15:20:55 +020066 register "c2_latency" = "101" # c2 not supported
67 register "p_cnt_throttling_supported" = "1"
Edward O'Callaghan956c2982014-03-16 17:09:58 +110068
Vladimir Serbinenko36fa5b82014-10-28 23:43:20 +010069 register "pcie_hotplug_map" = "{ 0, 0, 1, 0, 0, 0, 0, 0 }"
70
Nicolas Reineckebcff3bd2015-03-31 01:40:46 +020071 register "xhci_switchable_ports" = "0xf"
72 register "superspeed_capable_ports" = "0xf"
73 register "xhci_overcurrent_mapping" = "0x4000201"
74
Patrick Rudolphc670a412017-04-28 17:28:32 +020075 register "spi_uvscc" = "0x2005"
76 register "spi_lvscc" = "0x2005"
77
Edward O'Callaghan956c2982014-03-16 17:09:58 +110078 device pci 14.0 on end # USB 3.0 Controller
79 device pci 16.0 on end # Management Engine Interface 1
80 device pci 16.1 off end # Management Engine Interface 2
81 device pci 16.2 off end # Management Engine IDE-R
82 device pci 16.3 off end # Management Engine KT
83 device pci 19.0 on end # Intel Gigabit Ethernet
84 device pci 1a.0 on end # USB2 EHCI #2
85 device pci 1b.0 on end # High Definition Audio
86 device pci 1c.0 on end # PCIe Port #1
87 device pci 1c.1 on end # PCIe Port #2
88 device pci 1c.2 on end # PCIe Port #3 (expresscard)
89 device pci 1c.3 off end # PCIe Port #4
90 device pci 1c.4 off end # PCIe Port #5
91 device pci 1c.5 off end # PCIe Port #6
92 device pci 1c.6 off end # PCIe Port #7
93 device pci 1c.7 off end # PCIe Port #8
94 device pci 1d.0 on end # USB2 EHCI #1
95 device pci 1e.0 off end # PCI bridge
96 device pci 1f.0 on #LPC bridge
97 chip ec/lenovo/pmh7
98 device pnp ff.1 on # dummy
99 end
100 register "backlight_enable" = "0x01"
101 register "dock_event_enable" = "0x01"
102 end
103
Philipp Deppenwiese3d02b9c2015-06-03 23:09:36 +0200104 chip drivers/pc80/tpm
105 device pnp 0c31.0 on end
106 end
107
Edward O'Callaghan956c2982014-03-16 17:09:58 +1100108 chip ec/lenovo/h8
109 device pnp ff.2 on # dummy
110 io 0x60 = 0x62
111 io 0x62 = 0x66
112 io 0x64 = 0x1600
113 io 0x66 = 0x1604
114 end
115
Edward O'Callaghanfe365ac2014-03-16 17:24:18 +1100116 register "config0" = "0xa7"
Edward O'Callaghan956c2982014-03-16 17:09:58 +1100117 register "config1" = "0x09"
118 register "config2" = "0xa0"
Edward O'Callaghanfe365ac2014-03-16 17:24:18 +1100119 register "config3" = "0xc2"
Edward O'Callaghan956c2982014-03-16 17:09:58 +1100120
121 register "has_keyboard_backlight" = "1"
122
123 register "beepmask0" = "0x00"
124 register "beepmask1" = "0x86"
125 register "has_power_management_beeps" = "0"
126 register "event2_enable" = "0xff"
127 register "event3_enable" = "0xff"
128 register "event4_enable" = "0xd0"
129 register "event5_enable" = "0xfc"
130 register "event6_enable" = "0x00"
131 register "event7_enable" = "0x01"
132 register "event8_enable" = "0x7b"
133 register "event9_enable" = "0xff"
134 register "eventa_enable" = "0x01"
135 register "eventb_enable" = "0x00"
136 register "eventc_enable" = "0xff"
137 register "eventd_enable" = "0xff"
138 register "evente_enable" = "0x0d"
Patrick Rudolphb77eec82017-05-21 09:20:39 +0200139
140 register "has_bdc_detection" = "1"
141 register "bdc_gpio_num" = "54"
142 register "bdc_gpio_lvl" = "0"
Edward O'Callaghan956c2982014-03-16 17:09:58 +1100143 end
Patrick Rudolphdb27e3382017-07-27 18:00:59 +0200144 chip drivers/lenovo/hybrid_graphics
145 device pnp ff.f on end # dummy
146
147 register "detect_gpio" = "21"
148
149 register "has_panel_hybrid_gpio" = "1"
150 register "panel_hybrid_gpio" = "52"
151 register "panel_integrated_lvl" = "1"
152
153 register "has_backlight_gpio" = "0"
154 register "has_dgpu_power_gpio" = "0"
155
156 register "has_thinker1" = "0"
157 end
Edward O'Callaghan956c2982014-03-16 17:09:58 +1100158 end # LPC bridge
159 device pci 1f.2 on end # SATA Controller 1
160 device pci 1f.3 on
161 # eeprom, 8 virtual devices, same chip
162 chip drivers/i2c/at24rf08c
163 device i2c 54 on end
164 device i2c 55 on end
165 device i2c 56 on end
166 device i2c 57 on end
167 device i2c 5c on end
168 device i2c 5d on end
169 device i2c 5e on end
170 device i2c 5f on end
171 end
172 end # SMBus
173 device pci 1f.5 off end # SATA Controller 2
174 device pci 1f.6 on end # Thermal
175 end
176 end
177end