blob: 23744e1f4bdff92dcb1cac135a2409deb703e4db [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
Nico Huberb0b25c82020-03-21 20:35:12 +01003 register "gfx" = "GMA_STATIC_DISPLAYS(1)"
Edward O'Callaghan956c2982014-03-16 17:09:58 +11004
5 # Enable DisplayPort Hotplug with 6ms pulse
6 register "gpu_dp_d_hotplug" = "0x06"
7
8 # Enable Panel as LVDS and configure power delays
Angel Ponsdc0c0812020-09-02 19:17:30 +02009 register "gpu_panel_port_select" = "PANEL_PORT_LVDS"
Edward O'Callaghan956c2982014-03-16 17:09:58 +110010 register "gpu_panel_power_cycle_delay" = "6" # T7: 500ms
11 register "gpu_panel_power_up_delay" = "100" # T1+T2: 10ms
12 register "gpu_panel_power_down_delay" = "100" # T5+T6: 10ms
Edward O'Callaghan5fcae802014-07-29 14:42:26 +100013 register "gpu_panel_power_backlight_on_delay" = "2000" # T3: 200ms
14 register "gpu_panel_power_backlight_off_delay" = "2000" # T4: 200ms
Edward O'Callaghan5fcae802014-07-29 14:42:26 +100015 register "gpu_cpu_backlight" = "0x1155"
16 register "gpu_pch_backlight" = "0x11551155"
Edward O'Callaghan956c2982014-03-16 17:09:58 +110017
18 device cpu_cluster 0 on
Edward O'Callaghan956c2982014-03-16 17:09:58 +110019 chip cpu/intel/model_206ax
20 # Magic APIC ID to locate this chip
Arthur Heymans7e6946a2019-01-21 17:55:02 +010021 device lapic 0x0 on end
Arthur Heymansb3f23232019-01-21 17:48:55 +010022 device lapic 0xacac off end
Edward O'Callaghan956c2982014-03-16 17:09:58 +110023
Angel Pons6f56a232021-01-04 17:02:23 +010024 register "acpi_c1" = "1" # ACPI(C1) = MWAIT(C1)
25 register "acpi_c2" = "3" # ACPI(C2) = MWAIT(C3)
26 register "acpi_c3" = "5" # ACPI(C3) = MWAIT(C7)
Edward O'Callaghan956c2982014-03-16 17:09:58 +110027 end
28 end
29
30 device domain 0 on
Peter Lemenkov2d68cec2019-12-01 12:25:23 +010031 subsystemid 0x17aa 0x21f6 inherit
32
Peter Lemenkov257cc4f2019-12-03 21:34:07 +010033 device pci 00.0 on end # Host bridge
34 device pci 01.0 on end # PCIe bridge for discrete graphics
35 device pci 02.0 on end # Internal graphics VGA controller
Edward O'Callaghan956c2982014-03-16 17:09:58 +110036
Peter Lemenkov98b78ef2019-12-03 22:15:49 +010037 chip southbridge/intel/bd82x6x # Intel Series 7 Panther Point PCH
Edward O'Callaghan956c2982014-03-16 17:09:58 +110038 # GPI routing
39 # 0 No effect (default)
40 # 1 SMI# (if corresponding ALT_GPI_SMI_EN bit is also set)
41 # 2 SCI (if corresponding GPIO_EN bit is also set)
42 register "alt_gp_smi_en" = "0x0000"
43 register "gpi1_routing" = "2"
Nicolas Reineckeb0922f02015-02-01 02:53:35 +010044 register "gpi13_routing" = "2"
Edward O'Callaghan956c2982014-03-16 17:09:58 +110045
Edward O'Callaghancf6f9b92014-09-13 06:06:05 +100046 register "sata_port_map" = "0x3f"
Edward O'Callaghan956c2982014-03-16 17:09:58 +110047 # Set max SATA speed to 6.0 Gb/s
48 register "sata_interface_speed_support" = "0x3"
49
50 register "gen1_dec" = "0x7c1601"
51 register "gen2_dec" = "0x0c15e1"
52 register "gen4_dec" = "0x0c06a1"
53
54 # Enable zero-based linear PCIe root port functions
55 register "pcie_port_coalesce" = "1"
Vladimir Serbinenko5b044ae2014-10-25 15:20:55 +020056 register "c2_latency" = "101" # c2 not supported
Edward O'Callaghan956c2982014-03-16 17:09:58 +110057
Vladimir Serbinenko36fa5b82014-10-28 23:43:20 +010058 register "pcie_hotplug_map" = "{ 0, 0, 1, 0, 0, 0, 0, 0 }"
59
Nicolas Reineckebcff3bd2015-03-31 01:40:46 +020060 register "xhci_switchable_ports" = "0xf"
61 register "superspeed_capable_ports" = "0xf"
Peter Lemenkov257cc4f2019-12-03 21:34:07 +010062 register "xhci_overcurrent_mapping" = "0x04000201"
Nicolas Reineckebcff3bd2015-03-31 01:40:46 +020063
Peter Lemenkov9364afd2020-02-04 14:53:18 +010064 register "docking_supported" = "1"
65
Patrick Rudolphc670a412017-04-28 17:28:32 +020066 register "spi_uvscc" = "0x2005"
67 register "spi_lvscc" = "0x2005"
68
Edward O'Callaghan956c2982014-03-16 17:09:58 +110069 device pci 14.0 on end # USB 3.0 Controller
70 device pci 16.0 on end # Management Engine Interface 1
71 device pci 16.1 off end # Management Engine Interface 2
72 device pci 16.2 off end # Management Engine IDE-R
73 device pci 16.3 off end # Management Engine KT
Peter Lemenkov2d68cec2019-12-01 12:25:23 +010074 device pci 19.0 on # Intel Gigabit Ethernet
75 subsystemid 0x17aa 0x21f3
76 end
Edward O'Callaghan956c2982014-03-16 17:09:58 +110077 device pci 1a.0 on end # USB2 EHCI #2
78 device pci 1b.0 on end # High Definition Audio
79 device pci 1c.0 on end # PCIe Port #1
80 device pci 1c.1 on end # PCIe Port #2
Peter Lemenkov257cc4f2019-12-03 21:34:07 +010081 device pci 1c.2 on # PCIe Port #3
Patrick Rudolph05216322019-04-12 16:14:27 +020082 smbios_slot_desc "7" "3" "ExpressCard Slot" "8"
Peter Lemenkov257cc4f2019-12-03 21:34:07 +010083 end
Edward O'Callaghan956c2982014-03-16 17:09:58 +110084 device pci 1c.3 off end # PCIe Port #4
85 device pci 1c.4 off end # PCIe Port #5
86 device pci 1c.5 off end # PCIe Port #6
87 device pci 1c.6 off end # PCIe Port #7
88 device pci 1c.7 off end # PCIe Port #8
89 device pci 1d.0 on end # USB2 EHCI #1
90 device pci 1e.0 off end # PCI bridge
Peter Lemenkov257cc4f2019-12-03 21:34:07 +010091 device pci 1f.0 on # PCI-LPC bridge
Edward O'Callaghan956c2982014-03-16 17:09:58 +110092 chip ec/lenovo/pmh7
Peter Lemenkov257cc4f2019-12-03 21:34:07 +010093 device pnp ff.1 on end # dummy
Edward O'Callaghan956c2982014-03-16 17:09:58 +110094 register "backlight_enable" = "0x01"
95 register "dock_event_enable" = "0x01"
96 end
97
Philipp Deppenwiese3d02b9c2015-06-03 23:09:36 +020098 chip drivers/pc80/tpm
99 device pnp 0c31.0 on end
100 end
101
Edward O'Callaghan956c2982014-03-16 17:09:58 +1100102 chip ec/lenovo/h8
103 device pnp ff.2 on # dummy
104 io 0x60 = 0x62
105 io 0x62 = 0x66
106 io 0x64 = 0x1600
107 io 0x66 = 0x1604
108 end
109
Edward O'Callaghanfe365ac2014-03-16 17:24:18 +1100110 register "config0" = "0xa7"
Edward O'Callaghan956c2982014-03-16 17:09:58 +1100111 register "config1" = "0x09"
112 register "config2" = "0xa0"
Edward O'Callaghanfe365ac2014-03-16 17:24:18 +1100113 register "config3" = "0xc2"
Edward O'Callaghan956c2982014-03-16 17:09:58 +1100114
115 register "has_keyboard_backlight" = "1"
116
117 register "beepmask0" = "0x00"
118 register "beepmask1" = "0x86"
119 register "has_power_management_beeps" = "0"
120 register "event2_enable" = "0xff"
121 register "event3_enable" = "0xff"
122 register "event4_enable" = "0xd0"
123 register "event5_enable" = "0xfc"
124 register "event6_enable" = "0x00"
125 register "event7_enable" = "0x01"
126 register "event8_enable" = "0x7b"
127 register "event9_enable" = "0xff"
128 register "eventa_enable" = "0x01"
129 register "eventb_enable" = "0x00"
130 register "eventc_enable" = "0xff"
131 register "eventd_enable" = "0xff"
132 register "evente_enable" = "0x0d"
Patrick Rudolphb77eec82017-05-21 09:20:39 +0200133
134 register "has_bdc_detection" = "1"
135 register "bdc_gpio_num" = "54"
136 register "bdc_gpio_lvl" = "0"
Edward O'Callaghan956c2982014-03-16 17:09:58 +1100137 end
Patrick Rudolphdb27e3382017-07-27 18:00:59 +0200138 chip drivers/lenovo/hybrid_graphics
139 device pnp ff.f on end # dummy
140
141 register "detect_gpio" = "21"
142
143 register "has_panel_hybrid_gpio" = "1"
144 register "panel_hybrid_gpio" = "52"
145 register "panel_integrated_lvl" = "1"
146
147 register "has_backlight_gpio" = "0"
148 register "has_dgpu_power_gpio" = "0"
149
Evgeny Zinoviev01869122018-08-30 00:23:39 +0300150 register "has_thinker1" = "1"
Patrick Rudolphdb27e3382017-07-27 18:00:59 +0200151 end
Peter Lemenkov257cc4f2019-12-03 21:34:07 +0100152 end
Edward O'Callaghan956c2982014-03-16 17:09:58 +1100153 device pci 1f.2 on end # SATA Controller 1
Peter Lemenkov257cc4f2019-12-03 21:34:07 +0100154 device pci 1f.3 on # SMBus
Elyes HAOUASb0f19882018-06-09 11:59:00 +0200155 # eeprom, 8 virtual devices, same chip
Edward O'Callaghan956c2982014-03-16 17:09:58 +1100156 chip drivers/i2c/at24rf08c
157 device i2c 54 on end
158 device i2c 55 on end
159 device i2c 56 on end
160 device i2c 57 on end
161 device i2c 5c on end
162 device i2c 5d on end
163 device i2c 5e on end
164 device i2c 5f on end
165 end
Peter Lemenkov257cc4f2019-12-03 21:34:07 +0100166 end
Edward O'Callaghan956c2982014-03-16 17:09:58 +1100167 device pci 1f.5 off end # SATA Controller 2
168 device pci 1f.6 on end # Thermal
169 end
170 end
171end