blob: e492dda71063b11bc8caa1d09e57633d2d32937e [file] [log] [blame]
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +01001chip 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 }"
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +01005
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
14 register "gpu_panel_power_backlight_on_delay" = "2100" # T3: 210ms
15 register "gpu_panel_power_backlight_off_delay" = "2100" # T4: 210ms
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"
Vladimir Serbinenko1783a3c2014-02-23 00:10:35 +010018 register "gpu_cpu_backlight" = "0x1155"
19 register "gpu_pch_backlight" = "0x11551155"
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +010020
21 device cpu_cluster 0 on
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +010022 chip cpu/intel/model_206ax
23 # Magic APIC ID to locate this chip
Arthur Heymans7e6946a2019-01-21 17:55:02 +010024 device lapic 0x0 on end
Arthur Heymansb3f23232019-01-21 17:48:55 +010025 device lapic 0xacac off end
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +010026
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +010027 register "c1_acpower" = "1" # ACPI(C1) = MWAIT(C1)
28 register "c2_acpower" = "3" # ACPI(C2) = MWAIT(C3)
29 register "c3_acpower" = "5" # ACPI(C3) = MWAIT(C7)
30
31 register "c1_battery" = "1" # ACPI(C1) = MWAIT(C1)
32 register "c2_battery" = "3" # ACPI(C2) = MWAIT(C3)
33 register "c3_battery" = "5" # ACPI(C3) = MWAIT(C7)
34 end
35 end
36
Patrick Rudolph266a1f72016-06-09 18:13:34 +020037 register "pci_mmio_size" = "1024"
38
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +010039 device domain 0 on
Peter Lemenkovbbb00d72019-11-27 22:50:30 +010040 subsystemid 0x17aa 0x21fa inherit
41
42 device pci 00.0 on end # host bridge
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +010043 device pci 01.0 off end # PCIe Bridge for discrete graphics
Peter Lemenkovbbb00d72019-11-27 22:50:30 +010044 device pci 02.0 on end # vga controller
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +010045
46 chip southbridge/intel/bd82x6x # Intel Series 6 Cougar Point PCH
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +010047 # 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"
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +010054
Vladimir Serbinenkoc8f54a12014-01-24 14:38:10 +010055 # Enable SATA ports 0 (HDD bay) & 1 (dock) & 2 (msata)
56 register "sata_port_map" = "0x7"
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +010057 # 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
Vladimir Serbinenko36fa5b82014-10-28 23:43:20 +010064 register "pcie_hotplug_map" = "{ 0, 0, 1, 0, 0, 0, 0, 0 }"
65
Vladimir Serbinenkoac1b6de2015-01-31 17:46:29 +010066 register "xhci_switchable_ports" = "0xf"
67 register "superspeed_capable_ports" = "0xf"
Nicolas Reineckebcff3bd2015-03-31 01:40:46 +020068 register "xhci_overcurrent_mapping" = "0x4000201"
Vladimir Serbinenkoac1b6de2015-01-31 17:46:29 +010069
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +010070 # Enable zero-based linear PCIe root port functions
71 register "pcie_port_coalesce" = "1"
Vladimir Serbinenko5b044ae2014-10-25 15:20:55 +020072 register "c2_latency" = "101" # c2 not supported
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +010073
Patrick Rudolphc670a412017-04-28 17:28:32 +020074 register "spi_uvscc" = "0x2005"
75 register "spi_lvscc" = "0x2005"
76
Peter Lemenkovbbb00d72019-11-27 22:50:30 +010077 device pci 14.0 on end # USB 3.0 Controller
78 device pci 16.0 on end # Management Engine Interface 1
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +010079 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
Vladimir Serbinenko96555bf2014-08-24 22:38:56 +020082 device pci 19.0 on
83 subsystemid 0x17aa 0x21f3
84 end # Intel Gigabit Ethernet
Peter Lemenkovbbb00d72019-11-27 22:50:30 +010085 device pci 1a.0 on end # USB2 EHCI #2
86 device pci 1b.0 on end # High Definition Audio
Vladimir Serbinenko96555bf2014-08-24 22:38:56 +020087 device pci 1c.0 on
Vladimir Serbinenko795f96e2014-10-27 02:45:22 +010088 chip drivers/ricoh/rce822
89 register "sdwppol" = "1"
90 register "disable_mask" = "0x87"
Peter Lemenkovbbb00d72019-11-27 22:50:30 +010091 device pci 00.0 on end
Vladimir Serbinenko96555bf2014-08-24 22:38:56 +020092 end
93 end # PCIe Port #1
Peter Lemenkovbbb00d72019-11-27 22:50:30 +010094 device pci 1c.1 on end # PCIe Port #2
Vladimir Serbinenko96555bf2014-08-24 22:38:56 +020095 device pci 1c.2 on
Patrick Rudolph05216322019-04-12 16:14:27 +020096 smbios_slot_desc "7" "3" "ExpressCard Slot" "8"
Vladimir Serbinenko96555bf2014-08-24 22:38:56 +020097 end # PCIe Port #3 (expresscard)
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +010098 device pci 1c.3 off end # PCIe Port #4
99 device pci 1c.4 off end # PCIe Port #5
100 device pci 1c.5 off end # PCIe Port #6
101 device pci 1c.6 off end # PCIe Port #7
102 device pci 1c.7 off end # PCIe Port #8
Peter Lemenkovbbb00d72019-11-27 22:50:30 +0100103 device pci 1d.0 on end # USB2 EHCI #1
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +0100104 device pci 1e.0 off end # PCI bridge
105 device pci 1f.0 on #LPC bridge
106 chip ec/lenovo/pmh7
Peter Lemenkovbbb00d72019-11-27 22:50:30 +0100107 device pnp ff.1 on end # dummy
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +0100108 register "backlight_enable" = "0x01"
109 register "dock_event_enable" = "0x01"
110 end
111
Vladimir Serbinenko61273d42015-05-13 17:47:58 +0200112 chip drivers/pc80/tpm
Elyes HAOUASb0f19882018-06-09 11:59:00 +0200113 device pnp 0c31.0 on end
Vladimir Serbinenko61273d42015-05-13 17:47:58 +0200114 end
115
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +0100116 chip ec/lenovo/h8
117 device pnp ff.2 on # dummy
118 io 0x60 = 0x62
119 io 0x62 = 0x66
120 io 0x64 = 0x1600
121 io 0x66 = 0x1604
122 end
123
124 register "config0" = "0xa6"
125 register "config1" = "0x09"
126 register "config2" = "0xa0"
127 register "config3" = "0xe0"
128
129 register "has_keyboard_backlight" = "1"
130
131 register "beepmask0" = "0x00"
132 register "beepmask1" = "0x86"
133 register "has_power_management_beeps" = "0"
134 register "event2_enable" = "0xff"
135 register "event3_enable" = "0xff"
136 register "event4_enable" = "0xd0"
137 register "event5_enable" = "0xfc"
138 register "event6_enable" = "0x00"
139 register "event7_enable" = "0x01"
140 register "event8_enable" = "0x7b"
141 register "event9_enable" = "0xff"
142 register "eventa_enable" = "0x01"
143 register "eventb_enable" = "0x00"
144 register "eventc_enable" = "0xff"
145 register "eventd_enable" = "0xff"
146 register "evente_enable" = "0x0d"
Patrick Rudolphb77eec82017-05-21 09:20:39 +0200147
Patrick Rudolphdf276902017-09-18 18:21:02 +0200148 # BDC detection is broken on this board:
149 # BDC shorts pin14 and pin1
150 # BDC's connector pin14 is left floating
151 # BDC's connector pin1 is routed to SB GPIO 54
152 register "has_bdc_detection" = "0"
Patrick Rudolph7d7c6312017-08-13 12:51:27 +0200153
154 register "has_wwan_detection" = "1"
155 register "wwan_gpio_num" = "70"
156 register "wwan_gpio_lvl" = "0"
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +0100157 end
158 end # LPC bridge
Peter Lemenkovbbb00d72019-11-27 22:50:30 +0100159 device pci 1f.2 on end # SATA Controller 1
Vladimir Serbinenko62adc4c2014-01-23 09:06:08 +0100160 device pci 1f.3 on
Elyes HAOUASb0f19882018-06-09 11:59:00 +0200161 # eeprom, 8 virtual devices, same chip
Vladimir Serbinenko62adc4c2014-01-23 09:06:08 +0100162 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
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +0100173 device pci 1f.5 off end # SATA Controller 2
Peter Lemenkovbbb00d72019-11-27 22:50:30 +0100174 device pci 1f.6 on end # Thermal
Vladimir Serbinenkoe7e95022014-01-12 15:26:15 +0100175 end
176 end
177end