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