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