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 |
Nico Huber | b0b25c8 | 2020-03-21 20:35:12 +0100 | [diff] [blame] | 3 | register "gfx" = "GMA_STATIC_DISPLAYS(1)" |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [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 | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 10 | register "gpu_panel_power_cycle_delay" = "5" |
| 11 | register "gpu_panel_power_up_delay" = "300" # T1+T2: 30ms |
| 12 | register "gpu_panel_power_down_delay" = "300" # T5+T6: 30ms |
| 13 | register "gpu_panel_power_backlight_on_delay" = "2000" # T3: 200ms |
| 14 | register "gpu_panel_power_backlight_off_delay" = "2000" # T4: 200ms |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 15 | register "gpu_cpu_backlight" = "0x1155" |
| 16 | register "gpu_pch_backlight" = "0x06100610" |
| 17 | |
Keith Hui | 45e4ab4 | 2023-07-22 12:49:05 -0400 | [diff] [blame] | 18 | register "spd_addresses" = "{0x50, 0, 0x51, 0}" |
Keith Hui | 7039edd | 2023-07-21 10:12:05 -0400 | [diff] [blame] | 19 | register "ec_present" = "1" # I have an embedded controller |
| 20 | register "max_mem_clock_mhz" = "666" # So DDR3 freq = 1333 |
| 21 | |
| 22 | register "usb_port_config" = "{ |
| 23 | { 1, 0, 0x0040 }, |
| 24 | { 1, 1, 0x0080 }, |
| 25 | { 1, 3, 0x0080 }, |
| 26 | { 1, 3, 0x0080 }, |
| 27 | { 1, 0, 0x0080 }, |
| 28 | { 1, 0, 0x0080 }, |
| 29 | { 1, 2, 0x0040 }, |
| 30 | { 1, 2, 0x0040 }, |
| 31 | { 1, 6, 0x0080 }, |
| 32 | { 1, 5, 0x0080 }, |
| 33 | { 1, 6, 0x0080 }, |
| 34 | { 1, 6, 0x0080 }, |
| 35 | { 1, 7, 0x0080 }, |
| 36 | { 1, 6, 0x0080 },}" |
| 37 | |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 38 | device domain 0 on |
Peter Lemenkov | 289b7d6 | 2019-11-27 22:45:36 +0100 | [diff] [blame] | 39 | subsystemid 0x17aa 0x21db inherit |
| 40 | |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 41 | device ref host_bridge on end # host bridge |
| 42 | device ref peg10 off end # PCIe Bridge for discrete graphics |
| 43 | device ref igd on end # vga controller |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 44 | |
| 45 | chip southbridge/intel/bd82x6x # Intel Series 6 Cougar Point PCH |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [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 | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 53 | |
| 54 | # Enable SATA ports 0 (HDD bay) & 1 (dock) & 2 (msata) |
| 55 | register "sata_port_map" = "0x7" |
| 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, 0, 1, 0, 0, 0, 0 }" |
| 64 | |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 65 | # Enable zero-based linear PCIe root port functions |
Angel Pons | af4bd56 | 2021-12-28 13:05:56 +0100 | [diff] [blame] | 66 | register "pcie_port_coalesce" = "true" |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 67 | |
Patrick Rudolph | c670a41 | 2017-04-28 17:28:32 +0200 | [diff] [blame] | 68 | register "spi_uvscc" = "0x2005" |
| 69 | register "spi_lvscc" = "0x2005" |
| 70 | |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 71 | device ref mei1 on end # Management Engine Interface 1 |
| 72 | device ref mei2 off end # Management Engine Interface 2 |
| 73 | device ref me_ide_r off end # Management Engine IDE-R |
| 74 | device ref me_kt off end # Management Engine KT |
| 75 | device ref gbe on |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 76 | subsystemid 0x17aa 0x21ce |
| 77 | end # Intel Gigabit Ethernet |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 78 | device ref ehci2 on end # USB2 EHCI #2 |
| 79 | device ref hda on end # High Definition Audio |
Patrick Rudolph | e2ce52f | 2023-10-07 08:03:30 +0200 | [diff] [blame^] | 80 | device ref pcie_rp1 off end # PCIe Port #1 |
| 81 | device ref pcie_rp2 on # PCIe Port #2 (wlan) |
| 82 | smbios_slot_desc "SlotTypeM2Socket1_SD" "SlotLengthShort" |
| 83 | "WIFI" "SlotDataBusWidth1X" |
| 84 | end |
| 85 | device ref pcie_rp3 off end # PCIe Port #3 |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 86 | device ref pcie_rp4 on |
Patrick Rudolph | 0521632 | 2019-04-12 16:14:27 +0200 | [diff] [blame] | 87 | smbios_slot_desc "7" "3" "ExpressCard Slot" "8" |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 88 | end # PCIe Port #4 |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 89 | device ref pcie_rp5 on |
Vladimir Serbinenko | 795f96e | 2014-10-27 02:45:22 +0100 | [diff] [blame] | 90 | chip drivers/ricoh/rce822 |
| 91 | register "sdwppol" = "1" |
| 92 | register "disable_mask" = "0x87" |
Peter Lemenkov | 289b7d6 | 2019-11-27 22:45:36 +0100 | [diff] [blame] | 93 | device pci 00.0 on end |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 94 | end |
| 95 | end # PCIe Port #5 (SD) |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 96 | device ref pcie_rp6 off end # PCIe Port #6 |
Patrick Rudolph | e2ce52f | 2023-10-07 08:03:30 +0200 | [diff] [blame^] | 97 | device ref pcie_rp7 on end # PCIe Port #7 Optional XHCI controller |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 98 | device ref pcie_rp8 off end # PCIe Port #8 |
| 99 | device ref ehci1 on end # USB2 EHCI #1 |
| 100 | device ref pci_bridge off end # PCI bridge |
| 101 | device ref lpc on #LPC bridge |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 102 | chip ec/lenovo/pmh7 |
Peter Lemenkov | 289b7d6 | 2019-11-27 22:45:36 +0100 | [diff] [blame] | 103 | device pnp ff.1 on end # dummy |
Elyes Haouas | af93336 | 2023-03-19 08:01:53 +0100 | [diff] [blame] | 104 | register "backlight_enable" = "true" |
| 105 | register "dock_event_enable" = "true" |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 106 | end |
| 107 | |
Philipp Deppenwiese | 3d02b9c | 2015-06-03 23:09:36 +0200 | [diff] [blame] | 108 | chip drivers/pc80/tpm |
| 109 | device pnp 0c31.0 on end |
| 110 | end |
| 111 | |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 112 | chip ec/lenovo/h8 |
| 113 | device pnp ff.2 on # dummy |
| 114 | io 0x60 = 0x62 |
| 115 | io 0x62 = 0x66 |
| 116 | io 0x64 = 0x1600 |
| 117 | io 0x66 = 0x1604 |
| 118 | end |
| 119 | |
| 120 | register "config0" = "0xa6" |
| 121 | register "config1" = "0x01" |
| 122 | register "config2" = "0xa0" |
| 123 | register "config3" = "0x60" |
| 124 | |
| 125 | register "has_keyboard_backlight" = "0" |
| 126 | |
| 127 | register "beepmask0" = "0x00" |
| 128 | register "beepmask1" = "0x86" |
| 129 | register "has_power_management_beeps" = "1" |
| 130 | register "event2_enable" = "0xff" |
| 131 | register "event3_enable" = "0xff" |
| 132 | register "event4_enable" = "0xd0" |
| 133 | register "event5_enable" = "0xfc" |
| 134 | register "event6_enable" = "0x00" |
| 135 | register "event7_enable" = "0x81" |
| 136 | register "event8_enable" = "0x7b" |
| 137 | register "event9_enable" = "0xff" |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 138 | register "eventc_enable" = "0xff" |
| 139 | register "eventd_enable" = "0xff" |
| 140 | register "evente_enable" = "0x0d" |
Patrick Rudolph | b77eec8 | 2017-05-21 09:20:39 +0200 | [diff] [blame] | 141 | |
Patrick Rudolph | df27690 | 2017-09-18 18:21:02 +0200 | [diff] [blame] | 142 | # BDC detection is broken on this board: |
| 143 | # BDC shorts pin14 and pin1 |
| 144 | # BDC's connector pin14 is left floating |
| 145 | # BDC's connector pin1 is routed to SB GPIO 54 |
| 146 | register "has_bdc_detection" = "0" |
Patrick Rudolph | 7d7c631 | 2017-08-13 12:51:27 +0200 | [diff] [blame] | 147 | |
| 148 | register "has_wwan_detection" = "1" |
| 149 | register "wwan_gpio_num" = "70" |
| 150 | register "wwan_gpio_lvl" = "0" |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 151 | end |
| 152 | end # LPC bridge |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 153 | device ref sata1 on end # SATA Controller 1 |
| 154 | device ref smbus on |
Elyes HAOUAS | b0f1988 | 2018-06-09 11:59:00 +0200 | [diff] [blame] | 155 | # eeprom, 8 virtual devices, same chip |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 156 | chip drivers/i2c/at24rf08c |
| 157 | device i2c 54 on end |
| 158 | device i2c 55 on end |
| 159 | device i2c 56 on end |
| 160 | device i2c 57 on end |
| 161 | device i2c 5c on end |
| 162 | device i2c 5d on end |
| 163 | device i2c 5e on end |
| 164 | device i2c 5f on end |
| 165 | end |
| 166 | end # SMBus |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 167 | device ref sata2 off end # SATA Controller 2 |
| 168 | device ref thermal on end # Thermal |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 169 | end |
| 170 | end |
| 171 | end |