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 | |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 18 | device domain 0 on |
Peter Lemenkov | 289b7d6 | 2019-11-27 22:45:36 +0100 | [diff] [blame] | 19 | subsystemid 0x17aa 0x21db inherit |
| 20 | |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 21 | device ref host_bridge on end # host bridge |
| 22 | device ref peg10 off end # PCIe Bridge for discrete graphics |
| 23 | device ref igd on end # vga controller |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 24 | |
| 25 | chip southbridge/intel/bd82x6x # Intel Series 6 Cougar Point PCH |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 26 | # GPI routing |
| 27 | # 0 No effect (default) |
| 28 | # 1 SMI# (if corresponding ALT_GPI_SMI_EN bit is also set) |
| 29 | # 2 SCI (if corresponding GPIO_EN bit is also set) |
| 30 | register "alt_gp_smi_en" = "0x0000" |
| 31 | register "gpi1_routing" = "2" |
Nicolas Reinecke | b0922f0 | 2015-02-01 02:53:35 +0100 | [diff] [blame] | 32 | register "gpi13_routing" = "2" |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 33 | |
| 34 | # Enable SATA ports 0 (HDD bay) & 1 (dock) & 2 (msata) |
| 35 | register "sata_port_map" = "0x7" |
| 36 | # Set max SATA speed to 6.0 Gb/s |
| 37 | register "sata_interface_speed_support" = "0x3" |
| 38 | |
| 39 | register "gen1_dec" = "0x7c1601" |
| 40 | register "gen2_dec" = "0x0c15e1" |
| 41 | register "gen4_dec" = "0x0c06a1" |
| 42 | |
Vladimir Serbinenko | 36fa5b8 | 2014-10-28 23:43:20 +0100 | [diff] [blame] | 43 | register "pcie_hotplug_map" = "{ 0, 0, 0, 1, 0, 0, 0, 0 }" |
| 44 | |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 45 | # Enable zero-based linear PCIe root port functions |
Angel Pons | af4bd56 | 2021-12-28 13:05:56 +0100 | [diff] [blame] | 46 | register "pcie_port_coalesce" = "true" |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 47 | |
Patrick Rudolph | c670a41 | 2017-04-28 17:28:32 +0200 | [diff] [blame] | 48 | register "spi_uvscc" = "0x2005" |
| 49 | register "spi_lvscc" = "0x2005" |
| 50 | |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 51 | device ref mei1 on end # Management Engine Interface 1 |
| 52 | device ref mei2 off end # Management Engine Interface 2 |
| 53 | device ref me_ide_r off end # Management Engine IDE-R |
| 54 | device ref me_kt off end # Management Engine KT |
| 55 | device ref gbe on |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 56 | subsystemid 0x17aa 0x21ce |
| 57 | end # Intel Gigabit Ethernet |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 58 | device ref ehci2 on end # USB2 EHCI #2 |
| 59 | device ref hda on end # High Definition Audio |
| 60 | device ref pcie_rp1 on end # PCIe Port #1 |
| 61 | device ref pcie_rp2 on end # PCIe Port #2 (wlan) |
| 62 | device ref pcie_rp3 on end # PCIe Port #3 |
| 63 | device ref pcie_rp4 on |
Patrick Rudolph | 0521632 | 2019-04-12 16:14:27 +0200 | [diff] [blame] | 64 | smbios_slot_desc "7" "3" "ExpressCard Slot" "8" |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 65 | end # PCIe Port #4 |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 66 | device ref pcie_rp5 on |
Vladimir Serbinenko | 795f96e | 2014-10-27 02:45:22 +0100 | [diff] [blame] | 67 | chip drivers/ricoh/rce822 |
| 68 | register "sdwppol" = "1" |
| 69 | register "disable_mask" = "0x87" |
Peter Lemenkov | 289b7d6 | 2019-11-27 22:45:36 +0100 | [diff] [blame] | 70 | device pci 00.0 on end |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 71 | end |
| 72 | end # PCIe Port #5 (SD) |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 73 | device ref pcie_rp6 off end # PCIe Port #6 |
| 74 | device ref pcie_rp7 on end # PCIe Port #7 |
| 75 | device ref pcie_rp8 off end # PCIe Port #8 |
| 76 | device ref ehci1 on end # USB2 EHCI #1 |
| 77 | device ref pci_bridge off end # PCI bridge |
| 78 | device ref lpc on #LPC bridge |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 79 | chip ec/lenovo/pmh7 |
Peter Lemenkov | 289b7d6 | 2019-11-27 22:45:36 +0100 | [diff] [blame] | 80 | device pnp ff.1 on end # dummy |
Elyes Haouas | af93336 | 2023-03-19 08:01:53 +0100 | [diff] [blame^] | 81 | register "backlight_enable" = "true" |
| 82 | register "dock_event_enable" = "true" |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 83 | end |
| 84 | |
Philipp Deppenwiese | 3d02b9c | 2015-06-03 23:09:36 +0200 | [diff] [blame] | 85 | chip drivers/pc80/tpm |
| 86 | device pnp 0c31.0 on end |
| 87 | end |
| 88 | |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 89 | chip ec/lenovo/h8 |
| 90 | device pnp ff.2 on # dummy |
| 91 | io 0x60 = 0x62 |
| 92 | io 0x62 = 0x66 |
| 93 | io 0x64 = 0x1600 |
| 94 | io 0x66 = 0x1604 |
| 95 | end |
| 96 | |
| 97 | register "config0" = "0xa6" |
| 98 | register "config1" = "0x01" |
| 99 | register "config2" = "0xa0" |
| 100 | register "config3" = "0x60" |
| 101 | |
| 102 | register "has_keyboard_backlight" = "0" |
| 103 | |
| 104 | register "beepmask0" = "0x00" |
| 105 | register "beepmask1" = "0x86" |
| 106 | register "has_power_management_beeps" = "1" |
| 107 | register "event2_enable" = "0xff" |
| 108 | register "event3_enable" = "0xff" |
| 109 | register "event4_enable" = "0xd0" |
| 110 | register "event5_enable" = "0xfc" |
| 111 | register "event6_enable" = "0x00" |
| 112 | register "event7_enable" = "0x81" |
| 113 | register "event8_enable" = "0x7b" |
| 114 | register "event9_enable" = "0xff" |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 115 | register "eventc_enable" = "0xff" |
| 116 | register "eventd_enable" = "0xff" |
| 117 | register "evente_enable" = "0x0d" |
Patrick Rudolph | b77eec8 | 2017-05-21 09:20:39 +0200 | [diff] [blame] | 118 | |
Patrick Rudolph | df27690 | 2017-09-18 18:21:02 +0200 | [diff] [blame] | 119 | # BDC detection is broken on this board: |
| 120 | # BDC shorts pin14 and pin1 |
| 121 | # BDC's connector pin14 is left floating |
| 122 | # BDC's connector pin1 is routed to SB GPIO 54 |
| 123 | register "has_bdc_detection" = "0" |
Patrick Rudolph | 7d7c631 | 2017-08-13 12:51:27 +0200 | [diff] [blame] | 124 | |
| 125 | register "has_wwan_detection" = "1" |
| 126 | register "wwan_gpio_num" = "70" |
| 127 | register "wwan_gpio_lvl" = "0" |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 128 | end |
| 129 | end # LPC bridge |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 130 | device ref sata1 on end # SATA Controller 1 |
| 131 | device ref smbus on |
Elyes HAOUAS | b0f1988 | 2018-06-09 11:59:00 +0200 | [diff] [blame] | 132 | # eeprom, 8 virtual devices, same chip |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 133 | chip drivers/i2c/at24rf08c |
| 134 | device i2c 54 on end |
| 135 | device i2c 55 on end |
| 136 | device i2c 56 on end |
| 137 | device i2c 57 on end |
| 138 | device i2c 5c on end |
| 139 | device i2c 5d on end |
| 140 | device i2c 5e on end |
| 141 | device i2c 5f on end |
| 142 | end |
| 143 | end # SMBus |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 144 | device ref sata2 off end # SATA Controller 2 |
| 145 | device ref thermal on end # Thermal |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 146 | end |
| 147 | end |
| 148 | end |