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 |
| 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 | |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 29 | 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 Rudolph | 266a1f7 | 2016-06-09 18:13:34 +0200 | [diff] [blame^] | 39 | register "pci_mmio_size" = "1024" |
| 40 | |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 41 | device domain 0 on |
| 42 | device pci 00.0 on |
| 43 | subsystemid 0x17aa 0x21db |
| 44 | end # host bridge |
| 45 | device pci 01.0 off end # PCIe Bridge for discrete graphics |
| 46 | device pci 02.0 on |
| 47 | subsystemid 0x17aa 0x21db |
| 48 | end # vga controller |
| 49 | |
| 50 | chip southbridge/intel/bd82x6x # Intel Series 6 Cougar Point PCH |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 51 | # GPI routing |
| 52 | # 0 No effect (default) |
| 53 | # 1 SMI# (if corresponding ALT_GPI_SMI_EN bit is also set) |
| 54 | # 2 SCI (if corresponding GPIO_EN bit is also set) |
| 55 | register "alt_gp_smi_en" = "0x0000" |
| 56 | register "gpi1_routing" = "2" |
Nicolas Reinecke | b0922f0 | 2015-02-01 02:53:35 +0100 | [diff] [blame] | 57 | register "gpi13_routing" = "2" |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 58 | |
| 59 | # Enable SATA ports 0 (HDD bay) & 1 (dock) & 2 (msata) |
| 60 | register "sata_port_map" = "0x7" |
| 61 | # Set max SATA speed to 6.0 Gb/s |
| 62 | register "sata_interface_speed_support" = "0x3" |
| 63 | |
| 64 | register "gen1_dec" = "0x7c1601" |
| 65 | register "gen2_dec" = "0x0c15e1" |
| 66 | register "gen4_dec" = "0x0c06a1" |
| 67 | |
Vladimir Serbinenko | 36fa5b8 | 2014-10-28 23:43:20 +0100 | [diff] [blame] | 68 | register "pcie_hotplug_map" = "{ 0, 0, 0, 1, 0, 0, 0, 0 }" |
| 69 | |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 70 | # Enable zero-based linear PCIe root port functions |
| 71 | register "pcie_port_coalesce" = "1" |
| 72 | |
Vladimir Serbinenko | 5b044ae | 2014-10-25 15:20:55 +0200 | [diff] [blame] | 73 | register "c2_latency" = "101" # c2 not supported |
| 74 | register "p_cnt_throttling_supported" = "1" |
| 75 | |
Alexander Couzens | 0793afe | 2016-04-10 23:19:18 +0200 | [diff] [blame] | 76 | device pci 16.0 off end # Management Engine Interface 1 |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 77 | device pci 16.1 off end # Management Engine Interface 2 |
| 78 | device pci 16.2 off end # Management Engine IDE-R |
| 79 | device pci 16.3 off end # Management Engine KT |
| 80 | device pci 19.0 on |
| 81 | subsystemid 0x17aa 0x21ce |
| 82 | end # Intel Gigabit Ethernet |
| 83 | device pci 1a.0 on |
| 84 | subsystemid 0x17aa 0x21db |
| 85 | end # USB2 EHCI #2 |
| 86 | device pci 1b.0 on |
| 87 | subsystemid 0x17aa 0x21db |
| 88 | end # High Definition Audio |
| 89 | device pci 1c.0 on |
| 90 | subsystemid 0x17aa 0x21db |
| 91 | end # PCIe Port #1 |
| 92 | device pci 1c.1 on |
| 93 | subsystemid 0x17aa 0x21db |
| 94 | end # PCIe Port #2 (wlan) |
| 95 | device pci 1c.2 on |
| 96 | subsystemid 0x17aa 0x21db |
| 97 | end # PCIe Port #3 |
| 98 | device pci 1c.3 on |
| 99 | subsystemid 0x17aa 0x21db |
| 100 | end # PCIe Port #4 |
| 101 | device pci 1c.4 on |
| 102 | subsystemid 0x17aa 0x21db |
Vladimir Serbinenko | 795f96e | 2014-10-27 02:45:22 +0100 | [diff] [blame] | 103 | chip drivers/ricoh/rce822 |
| 104 | register "sdwppol" = "1" |
| 105 | register "disable_mask" = "0x87" |
| 106 | device pci 00.0 on |
| 107 | subsystemid 0x17aa 0x21fa |
| 108 | end |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 109 | end |
| 110 | end # PCIe Port #5 (SD) |
| 111 | device pci 1c.5 off end # PCIe Port #6 |
Marian Tietz | 7c6c4df | 2016-01-09 18:18:47 +0100 | [diff] [blame] | 112 | device pci 1c.6 on |
| 113 | subsystemid 0x17aa 0x21db |
| 114 | end # PCIe Port #7 |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 115 | device pci 1c.7 off end # PCIe Port #8 |
| 116 | device pci 1d.0 on |
| 117 | subsystemid 0x17aa 0x21db |
| 118 | end # USB2 EHCI #1 |
| 119 | device pci 1e.0 off end # PCI bridge |
| 120 | device pci 1f.0 on #LPC bridge |
| 121 | subsystemid 0x17aa 0x21db |
| 122 | chip ec/lenovo/pmh7 |
| 123 | device pnp ff.1 on # dummy |
| 124 | end |
| 125 | register "backlight_enable" = "0x01" |
| 126 | register "dock_event_enable" = "0x01" |
| 127 | end |
| 128 | |
Philipp Deppenwiese | 3d02b9c | 2015-06-03 23:09:36 +0200 | [diff] [blame] | 129 | chip drivers/pc80/tpm |
| 130 | device pnp 0c31.0 on end |
| 131 | end |
| 132 | |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 133 | chip ec/lenovo/h8 |
| 134 | device pnp ff.2 on # dummy |
| 135 | io 0x60 = 0x62 |
| 136 | io 0x62 = 0x66 |
| 137 | io 0x64 = 0x1600 |
| 138 | io 0x66 = 0x1604 |
| 139 | end |
| 140 | |
| 141 | register "config0" = "0xa6" |
| 142 | register "config1" = "0x01" |
| 143 | register "config2" = "0xa0" |
| 144 | register "config3" = "0x60" |
| 145 | |
| 146 | register "has_keyboard_backlight" = "0" |
| 147 | |
| 148 | register "beepmask0" = "0x00" |
| 149 | register "beepmask1" = "0x86" |
| 150 | register "has_power_management_beeps" = "1" |
| 151 | register "event2_enable" = "0xff" |
| 152 | register "event3_enable" = "0xff" |
| 153 | register "event4_enable" = "0xd0" |
| 154 | register "event5_enable" = "0xfc" |
| 155 | register "event6_enable" = "0x00" |
| 156 | register "event7_enable" = "0x81" |
| 157 | register "event8_enable" = "0x7b" |
| 158 | register "event9_enable" = "0xff" |
| 159 | register "eventa_enable" = "0x01" |
| 160 | register "eventb_enable" = "0xf0" |
| 161 | register "eventc_enable" = "0xff" |
| 162 | register "eventd_enable" = "0xff" |
| 163 | register "evente_enable" = "0x0d" |
| 164 | end |
| 165 | end # LPC bridge |
| 166 | device pci 1f.2 on |
| 167 | subsystemid 0x17aa 0x21db |
| 168 | end # SATA Controller 1 |
| 169 | device pci 1f.3 on |
| 170 | subsystemid 0x17aa 0x21db |
| 171 | # eeprom, 8 virtual devices, same chip |
| 172 | chip drivers/i2c/at24rf08c |
| 173 | device i2c 54 on end |
| 174 | device i2c 55 on end |
| 175 | device i2c 56 on end |
| 176 | device i2c 57 on end |
| 177 | device i2c 5c on end |
| 178 | device i2c 5d on end |
| 179 | device i2c 5e on end |
| 180 | device i2c 5f on end |
| 181 | end |
| 182 | end # SMBus |
| 183 | device pci 1f.5 off end # SATA Controller 2 |
| 184 | device pci 1f.6 on |
| 185 | subsystemid 0x17aa 0x21db |
| 186 | end # Thermal |
| 187 | end |
| 188 | end |
| 189 | end |