Philipp Deppenwiese | 714baa1 | 2017-01-02 17:58:09 +0100 | [diff] [blame] | 1 | chip northbridge/intel/sandybridge |
Nico Huber | b0b25c8 | 2020-03-21 20:35:12 +0100 | [diff] [blame] | 2 | register "gfx" = "GMA_STATIC_DISPLAYS(1)" |
Philipp Deppenwiese | 714baa1 | 2017-01-02 17:58:09 +0100 | [diff] [blame] | 3 | |
| 4 | # Enable DisplayPort Hotplug with 6ms pulse |
| 5 | register "gpu_dp_d_hotplug" = "0x06" |
| 6 | |
| 7 | # Enable Panel as LVDS and configure power delays |
Angel Pons | dc0c081 | 2020-09-02 19:17:30 +0200 | [diff] [blame] | 8 | register "gpu_panel_port_select" = "PANEL_PORT_LVDS" |
Philipp Deppenwiese | 714baa1 | 2017-01-02 17:58:09 +0100 | [diff] [blame] | 9 | register "gpu_panel_power_cycle_delay" = "6" # T7: 500ms |
| 10 | register "gpu_panel_power_up_delay" = "100" # T1+T2: 10ms |
| 11 | register "gpu_panel_power_down_delay" = "100" # T5+T6: 10ms |
| 12 | register "gpu_panel_power_backlight_on_delay" = "2100" # T3: 210ms |
| 13 | register "gpu_panel_power_backlight_off_delay" = "2100" # T4: 210ms |
Philipp Deppenwiese | 714baa1 | 2017-01-02 17:58:09 +0100 | [diff] [blame] | 14 | register "gpu_cpu_backlight" = "0x1155" |
| 15 | register "gpu_pch_backlight" = "0x11551155" |
| 16 | |
Angel Pons | bceea67 | 2021-05-17 10:58:36 +0200 | [diff] [blame] | 17 | device domain 0 on |
Peter Lemenkov | 07b2fdb | 2019-11-27 22:56:57 +0100 | [diff] [blame] | 18 | subsystemid 0x17aa 0x21f3 inherit |
| 19 | |
Philipp Deppenwiese | 714baa1 | 2017-01-02 17:58:09 +0100 | [diff] [blame] | 20 | chip southbridge/intel/bd82x6x # Intel Series 6 Cougar Point PCH |
Philipp Deppenwiese | 714baa1 | 2017-01-02 17:58:09 +0100 | [diff] [blame] | 21 | register "docking_supported" = "1" |
| 22 | register "gen1_dec" = "0x000c15e1" |
| 23 | register "gen2_dec" = "0x007c1601" |
| 24 | register "gen3_dec" = "0x000c06a1" |
| 25 | register "gpi13_routing" = "2" |
| 26 | register "gpi1_routing" = "2" |
Patrick Rudolph | a703393 | 2017-05-26 15:26:10 +0200 | [diff] [blame] | 27 | register "pcie_hotplug_map" = "{ 0, 0, 1, 0, 0, 0, 0, 0 }" |
Angel Pons | af4bd56 | 2021-12-28 13:05:56 +0100 | [diff] [blame] | 28 | register "pcie_port_coalesce" = "true" |
Philipp Deppenwiese | 714baa1 | 2017-01-02 17:58:09 +0100 | [diff] [blame] | 29 | register "sata_interface_speed_support" = "0x3" |
| 30 | register "sata_port_map" = "0x17" |
Bill XIE | c557847 | 2023-10-27 18:58:15 +0800 | [diff] [blame] | 31 | |
| 32 | # Do not enable xHCI Port 4 since WWAN USB is EHCI-only |
| 33 | register "superspeed_capable_ports" = "0x7" |
| 34 | register "xhci_switchable_ports" = "0x7" |
Philipp Deppenwiese | 714baa1 | 2017-01-02 17:58:09 +0100 | [diff] [blame] | 35 | register "xhci_overcurrent_mapping" = "0x04000201" |
Philipp Deppenwiese | 714baa1 | 2017-01-02 17:58:09 +0100 | [diff] [blame] | 36 | |
| 37 | # device specific SPI configuration |
| 38 | register "spi_uvscc" = "0x2005" |
| 39 | register "spi_lvscc" = "0x2005" |
| 40 | |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 41 | device ref xhci on end # USB 3.0 Controller |
| 42 | device ref mei1 on end # Management Engine Interface 1 |
| 43 | device ref mei2 off end # Management Engine Interface 2 |
| 44 | device ref me_ide_r off end # Management Engine IDE-R |
| 45 | device ref me_kt off end # Management Engine KT |
| 46 | device ref gbe on end # Intel Gigabit Ethernet |
| 47 | device ref ehci2 on end # USB2 EHCI #2 |
Alexander Goncharov | 893c3ae8 | 2023-02-04 15:20:37 +0400 | [diff] [blame] | 48 | device ref hda on end # High Definition Audio controller |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 49 | device ref pcie_rp1 on # PCIe Port #1 |
Philipp Deppenwiese | 714baa1 | 2017-01-02 17:58:09 +0100 | [diff] [blame] | 50 | chip drivers/ricoh/rce822 # Ricoh cardreader |
| 51 | register "disable_mask" = "0x87" |
| 52 | register "sdwppol" = "1" |
Peter Lemenkov | 07b2fdb | 2019-11-27 22:56:57 +0100 | [diff] [blame] | 53 | device pci 00.0 on end # Ricoh SD card reader |
Philipp Deppenwiese | 714baa1 | 2017-01-02 17:58:09 +0100 | [diff] [blame] | 54 | end |
| 55 | end |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 56 | device ref pcie_rp2 on end # PCIe Port #2 |
| 57 | device ref pcie_rp3 on # PCIe Port #3 |
Patrick Rudolph | 0521632 | 2019-04-12 16:14:27 +0200 | [diff] [blame] | 58 | smbios_slot_desc "7" "3" "ExpressCard Slot" "8" |
Philipp Deppenwiese | 714baa1 | 2017-01-02 17:58:09 +0100 | [diff] [blame] | 59 | end |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 60 | device ref pcie_rp4 off end # PCIe Port #4 |
| 61 | device ref pcie_rp5 off end # PCIe Port #5 |
| 62 | device ref pcie_rp6 off end # PCIe Port #6 |
| 63 | device ref pcie_rp7 off end # PCIe Port #7 |
| 64 | device ref pcie_rp8 off end # PCIe Port #8 |
| 65 | device ref ehci1 on end # USB2 EHCI #1 |
| 66 | device ref pci_bridge off end # PCI bridge |
| 67 | device ref lpc on # LPC bridge PCI-LPC bridge |
Philipp Deppenwiese | 714baa1 | 2017-01-02 17:58:09 +0100 | [diff] [blame] | 68 | chip ec/lenovo/pmh7 |
Elyes Haouas | af93336 | 2023-03-19 08:01:53 +0100 | [diff] [blame] | 69 | register "backlight_enable" = "true" |
| 70 | register "dock_event_enable" = "true" |
Peter Lemenkov | 07b2fdb | 2019-11-27 22:56:57 +0100 | [diff] [blame] | 71 | device pnp ff.1 on end # dummy |
Philipp Deppenwiese | 714baa1 | 2017-01-02 17:58:09 +0100 | [diff] [blame] | 72 | end |
| 73 | chip ec/lenovo/h8 |
| 74 | device pnp ff.2 on # dummy |
| 75 | io 0x60 = 0x62 |
| 76 | io 0x62 = 0x66 |
| 77 | io 0x64 = 0x1600 |
| 78 | io 0x66 = 0x1604 |
| 79 | end |
| 80 | register "config0" = "0xa7" |
| 81 | register "config1" = "0x01" |
| 82 | register "config2" = "0xa0" |
| 83 | register "config3" = "0xe2" |
| 84 | |
| 85 | register "has_keyboard_backlight" = "0" |
| 86 | |
| 87 | register "beepmask0" = "0x02" |
| 88 | register "beepmask1" = "0x86" |
| 89 | register "has_power_management_beeps" = "1" |
| 90 | register "event2_enable" = "0xff" |
| 91 | register "event3_enable" = "0xff" |
| 92 | register "event4_enable" = "0xf0" |
| 93 | register "event5_enable" = "0x3c" |
| 94 | register "event6_enable" = "0x00" |
| 95 | register "event7_enable" = "0xa1" |
| 96 | register "event8_enable" = "0x7b" |
| 97 | register "event9_enable" = "0xff" |
| 98 | register "eventa_enable" = "0x00" |
| 99 | register "eventb_enable" = "0x00" |
| 100 | register "eventc_enable" = "0xff" |
| 101 | register "eventd_enable" = "0xff" |
| 102 | register "evente_enable" = "0x0d" |
Patrick Rudolph | b77eec8 | 2017-05-21 09:20:39 +0200 | [diff] [blame] | 103 | |
| 104 | register "has_bdc_detection" = "1" |
| 105 | register "bdc_gpio_num" = "54" |
| 106 | register "bdc_gpio_lvl" = "0" |
Patrick Rudolph | 7d7c631 | 2017-08-13 12:51:27 +0200 | [diff] [blame] | 107 | |
| 108 | register "has_wwan_detection" = "1" |
| 109 | register "wwan_gpio_num" = "70" |
| 110 | register "wwan_gpio_lvl" = "0" |
Philipp Deppenwiese | 714baa1 | 2017-01-02 17:58:09 +0100 | [diff] [blame] | 111 | end |
Patrick Rudolph | db27e338 | 2017-07-27 18:00:59 +0200 | [diff] [blame] | 112 | chip drivers/lenovo/hybrid_graphics |
| 113 | device pnp ff.f on end # dummy |
| 114 | |
| 115 | register "detect_gpio" = "21" |
| 116 | |
| 117 | register "has_panel_hybrid_gpio" = "1" |
| 118 | register "panel_hybrid_gpio" = "52" |
| 119 | register "panel_integrated_lvl" = "1" |
| 120 | |
| 121 | register "has_backlight_gpio" = "0" |
| 122 | register "has_dgpu_power_gpio" = "0" |
| 123 | |
Evgeny Zinoviev | 0186912 | 2018-08-30 00:23:39 +0300 | [diff] [blame] | 124 | register "has_thinker1" = "1" |
Patrick Rudolph | db27e338 | 2017-07-27 18:00:59 +0200 | [diff] [blame] | 125 | end |
Patrick Rudolph | 1e96ea1 | 2018-06-03 10:15:33 +0200 | [diff] [blame] | 126 | chip drivers/pc80/tpm |
| 127 | device pnp 0c31.0 on end |
| 128 | end |
Philipp Deppenwiese | 714baa1 | 2017-01-02 17:58:09 +0100 | [diff] [blame] | 129 | end |
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 # SMBus |
Philipp Deppenwiese | 714baa1 | 2017-01-02 17:58:09 +0100 | [diff] [blame] | 132 | chip drivers/i2c/at24rf08c # eeprom, 8 virtual devices, same chip |
Peter Lemenkov | 07b2fdb | 2019-11-27 22:56:57 +0100 | [diff] [blame] | 133 | device i2c 54 on end |
| 134 | device i2c 55 on end |
| 135 | device i2c 56 on end |
| 136 | device i2c 57 on end |
| 137 | device i2c 5c on end |
| 138 | device i2c 5d on end |
| 139 | device i2c 5e on end |
| 140 | device i2c 5f on end |
Philipp Deppenwiese | 714baa1 | 2017-01-02 17:58:09 +0100 | [diff] [blame] | 141 | end |
| 142 | end |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 143 | device ref sata2 off end # SATA Controller 2 |
| 144 | device ref thermal off end # Thermal |
Philipp Deppenwiese | 714baa1 | 2017-01-02 17:58:09 +0100 | [diff] [blame] | 145 | end |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 146 | device ref host_bridge on end # Host bridge Host bridge |
| 147 | device ref peg10 on end # PCIe Bridge for discrete graphics |
| 148 | device ref igd on end # Internal graphics VGA controller |
| 149 | device ref dev4 off end # Signal processing controller |
Philipp Deppenwiese | 714baa1 | 2017-01-02 17:58:09 +0100 | [diff] [blame] | 150 | end |
| 151 | end |