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