Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 1 | chip northbridge/intel/sandybridge |
Vladimir Serbinenko | dd2bc3f | 2014-10-31 09:16:31 +0100 | [diff] [blame] | 2 | # IGD Displays |
| 3 | register "gfx.ndid" = "3" |
| 4 | register "gfx.did" = "{ 0x80000100, 0x80000240, 0x80000410, 0x80000410, 0x00000005 }" |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 5 | |
| 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" = "5" |
| 12 | register "gpu_panel_power_up_delay" = "300" # T1+T2: 30ms |
| 13 | register "gpu_panel_power_down_delay" = "300" # T5+T6: 30ms |
| 14 | register "gpu_panel_power_backlight_on_delay" = "2000" # T3: 200ms |
| 15 | register "gpu_panel_power_backlight_off_delay" = "2000" # T4: 200ms |
Vladimir Serbinenko | a71bdc3 | 2014-08-30 00:35:39 +0200 | [diff] [blame] | 16 | register "gfx.use_spread_spectrum_clock" = "1" |
Vladimir Serbinenko | a71bdc3 | 2014-08-30 00:35:39 +0200 | [diff] [blame] | 17 | register "gfx.link_frequency_270_mhz" = "1" |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 18 | register "gpu_cpu_backlight" = "0x1155" |
| 19 | register "gpu_pch_backlight" = "0x06100610" |
| 20 | |
| 21 | device cpu_cluster 0 on |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 22 | chip cpu/intel/model_206ax |
| 23 | # Magic APIC ID to locate this chip |
Arthur Heymans | 7e6946a | 2019-01-21 17:55:02 +0100 | [diff] [blame] | 24 | device lapic 0x0 on end |
Arthur Heymans | b3f2323 | 2019-01-21 17:48:55 +0100 | [diff] [blame] | 25 | device lapic 0xacac off end |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 26 | |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 27 | 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 Rudolph | 266a1f7 | 2016-06-09 18:13:34 +0200 | [diff] [blame] | 37 | register "pci_mmio_size" = "1024" |
| 38 | |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 39 | device domain 0 on |
| 40 | device pci 00.0 on |
| 41 | subsystemid 0x17aa 0x21db |
| 42 | end # host bridge |
| 43 | device pci 01.0 off end # PCIe Bridge for discrete graphics |
| 44 | device pci 02.0 on |
| 45 | subsystemid 0x17aa 0x21db |
| 46 | end # vga controller |
| 47 | |
| 48 | chip southbridge/intel/bd82x6x # Intel Series 6 Cougar Point PCH |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 49 | # GPI routing |
| 50 | # 0 No effect (default) |
| 51 | # 1 SMI# (if corresponding ALT_GPI_SMI_EN bit is also set) |
| 52 | # 2 SCI (if corresponding GPIO_EN bit is also set) |
| 53 | register "alt_gp_smi_en" = "0x0000" |
| 54 | register "gpi1_routing" = "2" |
Nicolas Reinecke | b0922f0 | 2015-02-01 02:53:35 +0100 | [diff] [blame] | 55 | register "gpi13_routing" = "2" |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 56 | |
| 57 | # Enable SATA ports 0 (HDD bay) & 1 (dock) & 2 (msata) |
| 58 | register "sata_port_map" = "0x7" |
| 59 | # Set max SATA speed to 6.0 Gb/s |
| 60 | register "sata_interface_speed_support" = "0x3" |
| 61 | |
| 62 | register "gen1_dec" = "0x7c1601" |
| 63 | register "gen2_dec" = "0x0c15e1" |
| 64 | register "gen4_dec" = "0x0c06a1" |
| 65 | |
Vladimir Serbinenko | 36fa5b8 | 2014-10-28 23:43:20 +0100 | [diff] [blame] | 66 | register "pcie_hotplug_map" = "{ 0, 0, 0, 1, 0, 0, 0, 0 }" |
| 67 | |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 68 | # Enable zero-based linear PCIe root port functions |
| 69 | register "pcie_port_coalesce" = "1" |
| 70 | |
Vladimir Serbinenko | 5b044ae | 2014-10-25 15:20:55 +0200 | [diff] [blame] | 71 | register "c2_latency" = "101" # c2 not supported |
| 72 | register "p_cnt_throttling_supported" = "1" |
| 73 | |
Patrick Rudolph | c670a41 | 2017-04-28 17:28:32 +0200 | [diff] [blame] | 74 | register "spi_uvscc" = "0x2005" |
| 75 | register "spi_lvscc" = "0x2005" |
| 76 | |
Alexander Couzens | 0793afe | 2016-04-10 23:19:18 +0200 | [diff] [blame] | 77 | device pci 16.0 off end # Management Engine Interface 1 |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 78 | device pci 16.1 off end # Management Engine Interface 2 |
| 79 | device pci 16.2 off end # Management Engine IDE-R |
| 80 | device pci 16.3 off end # Management Engine KT |
| 81 | device pci 19.0 on |
| 82 | subsystemid 0x17aa 0x21ce |
| 83 | end # Intel Gigabit Ethernet |
| 84 | device pci 1a.0 on |
| 85 | subsystemid 0x17aa 0x21db |
| 86 | end # USB2 EHCI #2 |
| 87 | device pci 1b.0 on |
| 88 | subsystemid 0x17aa 0x21db |
| 89 | end # High Definition Audio |
| 90 | device pci 1c.0 on |
| 91 | subsystemid 0x17aa 0x21db |
| 92 | end # PCIe Port #1 |
| 93 | device pci 1c.1 on |
| 94 | subsystemid 0x17aa 0x21db |
| 95 | end # PCIe Port #2 (wlan) |
| 96 | device pci 1c.2 on |
| 97 | subsystemid 0x17aa 0x21db |
| 98 | end # PCIe Port #3 |
| 99 | device pci 1c.3 on |
| 100 | subsystemid 0x17aa 0x21db |
| 101 | end # PCIe Port #4 |
| 102 | device pci 1c.4 on |
| 103 | subsystemid 0x17aa 0x21db |
Vladimir Serbinenko | 795f96e | 2014-10-27 02:45:22 +0100 | [diff] [blame] | 104 | chip drivers/ricoh/rce822 |
| 105 | register "sdwppol" = "1" |
| 106 | register "disable_mask" = "0x87" |
| 107 | device pci 00.0 on |
| 108 | subsystemid 0x17aa 0x21fa |
| 109 | end |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 110 | end |
| 111 | end # PCIe Port #5 (SD) |
| 112 | device pci 1c.5 off end # PCIe Port #6 |
Marian Tietz | 7c6c4df | 2016-01-09 18:18:47 +0100 | [diff] [blame] | 113 | device pci 1c.6 on |
| 114 | subsystemid 0x17aa 0x21db |
| 115 | end # PCIe Port #7 |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 116 | device pci 1c.7 off end # PCIe Port #8 |
| 117 | device pci 1d.0 on |
| 118 | subsystemid 0x17aa 0x21db |
| 119 | end # USB2 EHCI #1 |
| 120 | device pci 1e.0 off end # PCI bridge |
| 121 | device pci 1f.0 on #LPC bridge |
| 122 | subsystemid 0x17aa 0x21db |
| 123 | chip ec/lenovo/pmh7 |
| 124 | device pnp ff.1 on # dummy |
| 125 | end |
| 126 | register "backlight_enable" = "0x01" |
| 127 | register "dock_event_enable" = "0x01" |
| 128 | end |
| 129 | |
Philipp Deppenwiese | 3d02b9c | 2015-06-03 23:09:36 +0200 | [diff] [blame] | 130 | chip drivers/pc80/tpm |
| 131 | device pnp 0c31.0 on end |
| 132 | end |
| 133 | |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 134 | chip ec/lenovo/h8 |
| 135 | device pnp ff.2 on # dummy |
| 136 | io 0x60 = 0x62 |
| 137 | io 0x62 = 0x66 |
| 138 | io 0x64 = 0x1600 |
| 139 | io 0x66 = 0x1604 |
| 140 | end |
| 141 | |
| 142 | register "config0" = "0xa6" |
| 143 | register "config1" = "0x01" |
| 144 | register "config2" = "0xa0" |
| 145 | register "config3" = "0x60" |
| 146 | |
| 147 | register "has_keyboard_backlight" = "0" |
| 148 | |
| 149 | register "beepmask0" = "0x00" |
| 150 | register "beepmask1" = "0x86" |
| 151 | register "has_power_management_beeps" = "1" |
| 152 | register "event2_enable" = "0xff" |
| 153 | register "event3_enable" = "0xff" |
| 154 | register "event4_enable" = "0xd0" |
| 155 | register "event5_enable" = "0xfc" |
| 156 | register "event6_enable" = "0x00" |
| 157 | register "event7_enable" = "0x81" |
| 158 | register "event8_enable" = "0x7b" |
| 159 | register "event9_enable" = "0xff" |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 160 | register "eventc_enable" = "0xff" |
| 161 | register "eventd_enable" = "0xff" |
| 162 | register "evente_enable" = "0x0d" |
Patrick Rudolph | b77eec8 | 2017-05-21 09:20:39 +0200 | [diff] [blame] | 163 | |
Patrick Rudolph | df27690 | 2017-09-18 18:21:02 +0200 | [diff] [blame] | 164 | # BDC detection is broken on this board: |
| 165 | # BDC shorts pin14 and pin1 |
| 166 | # BDC's connector pin14 is left floating |
| 167 | # BDC's connector pin1 is routed to SB GPIO 54 |
| 168 | register "has_bdc_detection" = "0" |
Patrick Rudolph | 7d7c631 | 2017-08-13 12:51:27 +0200 | [diff] [blame] | 169 | |
| 170 | register "has_wwan_detection" = "1" |
| 171 | register "wwan_gpio_num" = "70" |
| 172 | register "wwan_gpio_lvl" = "0" |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 173 | end |
| 174 | end # LPC bridge |
| 175 | device pci 1f.2 on |
| 176 | subsystemid 0x17aa 0x21db |
| 177 | end # SATA Controller 1 |
| 178 | device pci 1f.3 on |
| 179 | subsystemid 0x17aa 0x21db |
Elyes HAOUAS | b0f1988 | 2018-06-09 11:59:00 +0200 | [diff] [blame] | 180 | # eeprom, 8 virtual devices, same chip |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 181 | chip drivers/i2c/at24rf08c |
| 182 | device i2c 54 on end |
| 183 | device i2c 55 on end |
| 184 | device i2c 56 on end |
| 185 | device i2c 57 on end |
| 186 | device i2c 5c on end |
| 187 | device i2c 5d on end |
| 188 | device i2c 5e on end |
| 189 | device i2c 5f on end |
| 190 | end |
| 191 | end # SMBus |
| 192 | device pci 1f.5 off end # SATA Controller 2 |
| 193 | device pci 1f.6 on |
| 194 | subsystemid 0x17aa 0x21db |
| 195 | end # Thermal |
| 196 | end |
| 197 | end |
| 198 | end |