Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +0100 | [diff] [blame] | 1 | chip northbridge/intel/sandybridge |
Peter Lemenkov | 18f8885 | 2019-10-23 22:07:58 +0200 | [diff] [blame] | 2 | # IGD Displays |
Nico Huber | b0b25c8 | 2020-03-21 20:35:12 +0100 | [diff] [blame] | 3 | register "gfx" = "GMA_STATIC_DISPLAYS(1)" |
Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +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" |
Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +0100 | [diff] [blame] | 10 | register "gpu_panel_power_cycle_delay" = "1" |
| 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 |
Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +0100 | [diff] [blame] | 15 | register "gpu_cpu_backlight" = "0x1155" |
| 16 | register "gpu_pch_backlight" = "0x06100610" |
| 17 | |
| 18 | device cpu_cluster 0 on |
Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +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 |
Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +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) |
Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +0100 | [diff] [blame] | 27 | end |
| 28 | end |
| 29 | |
| 30 | device domain 0 on |
Peter Lemenkov | 5ee7e47 | 2019-11-27 12:17:26 +0100 | [diff] [blame] | 31 | subsystemid 0x17aa 0x21d2 inherit |
| 32 | |
| 33 | device pci 00.0 on end # host bridge |
Patrick Rudolph | 830fdc7 | 2016-04-21 07:15:14 +0200 | [diff] [blame] | 34 | device pci 01.0 on end # NVIDIA Corporation GF119M [NVS 4200M] |
Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +0100 | [diff] [blame] | 35 | device pci 02.0 on |
| 36 | subsystemid 0x17aa 0x21d3 |
| 37 | end # Integrated Graphics Controller |
| 38 | |
| 39 | chip southbridge/intel/bd82x6x # Intel Series 6 Cougar Point PCH |
| 40 | # GPI routing |
| 41 | # 0 No effect (default) |
| 42 | # 1 SMI# (if corresponding ALT_GPI_SMI_EN bit is also set) |
| 43 | # 2 SCI (if corresponding GPIO_EN bit is also set) |
| 44 | register "alt_gp_smi_en" = "0x0000" |
| 45 | register "gpi1_routing" = "2" |
Nicolas Reinecke | b0922f0 | 2015-02-01 02:53:35 +0100 | [diff] [blame] | 46 | register "gpi13_routing" = "2" |
Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +0100 | [diff] [blame] | 47 | |
| 48 | # Enable SATA ports 0 (HDD bay) & 1 (ODD bay) & 2 (mSATA) & 4 (dock) |
| 49 | register "sata_port_map" = "0x17" |
| 50 | # Set max SATA speed to 6.0 Gb/s |
| 51 | register "sata_interface_speed_support" = "0x3" |
| 52 | |
| 53 | register "gen1_dec" = "0x7c1601" |
| 54 | register "gen2_dec" = "0x0c15e1" |
| 55 | register "gen4_dec" = "0x0c06a1" |
| 56 | |
| 57 | register "pcie_hotplug_map" = "{ 0, 0, 0, 1, 0, 0, 0, 0 }" |
| 58 | |
| 59 | # Enable zero-based linear PCIe root port functions |
| 60 | register "pcie_port_coalesce" = "1" |
| 61 | |
Peter Lemenkov | 18f8885 | 2019-10-23 22:07:58 +0200 | [diff] [blame] | 62 | # device specific SPI configuration |
Patrick Rudolph | c670a41 | 2017-04-28 17:28:32 +0200 | [diff] [blame] | 63 | register "spi_uvscc" = "0x2005" |
| 64 | register "spi_lvscc" = "0x2005" |
| 65 | |
Evgeny Zinoviev | 72628fa | 2021-11-22 02:51:14 +0300 | [diff] [blame] | 66 | device pci 16.0 on end # Management Engine Interface 1 |
Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +0100 | [diff] [blame] | 67 | device pci 16.1 off end # Management Engine Interface 2 |
| 68 | device pci 16.2 off end # Management Engine IDE-R |
| 69 | device pci 16.3 off end # Management Engine KT |
| 70 | device pci 19.0 on |
| 71 | subsystemid 0x17aa 0x21ce |
| 72 | end # Intel Gigabit Ethernet |
Peter Lemenkov | 5ee7e47 | 2019-11-27 12:17:26 +0100 | [diff] [blame] | 73 | device pci 1a.0 on end # USB Enhanced Host Controller #2 |
| 74 | device pci 1b.0 on end # High Definition Audio Controller |
Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +0100 | [diff] [blame] | 75 | device pci 1c.0 off end # PCIe Port #1 |
Peter Lemenkov | 5ee7e47 | 2019-11-27 12:17:26 +0100 | [diff] [blame] | 76 | device pci 1c.1 on end # PCIe Port #2 Integrated Wireless LAN |
Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +0100 | [diff] [blame] | 77 | device pci 1c.2 off end # PCIe Port #3 |
| 78 | device pci 1c.3 on |
Patrick Rudolph | 0521632 | 2019-04-12 16:14:27 +0200 | [diff] [blame] | 79 | smbios_slot_desc "7" "3" "ExpressCard Slot" "8" |
Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +0100 | [diff] [blame] | 80 | end # PCIe Port #4 ExpressCard |
Jake Mannens | a072287 | 2020-04-09 09:40:57 +1000 | [diff] [blame] | 81 | device pci 1c.4 on end # PCIe Port #5 NEC Corporation uPD720200A USB 3.0 Host Controller |
Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +0100 | [diff] [blame] | 82 | device pci 1c.5 off end # PCIe Port #6 Intel Gigabit Ethernet PHY (not PCIe) |
Jake Mannens | a072287 | 2020-04-09 09:40:57 +1000 | [diff] [blame] | 83 | device pci 1c.6 off end # PCIe Port #7 |
Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +0100 | [diff] [blame] | 84 | device pci 1c.7 off end # PCIe Port #8 |
Peter Lemenkov | 5ee7e47 | 2019-11-27 12:17:26 +0100 | [diff] [blame] | 85 | device pci 1d.0 on end # USB Enhanced Host Controller #1 |
Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +0100 | [diff] [blame] | 86 | device pci 1e.0 off end # PCI bridge |
| 87 | device pci 1f.0 on |
Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +0100 | [diff] [blame] | 88 | chip ec/lenovo/pmh7 |
Peter Lemenkov | 5ee7e47 | 2019-11-27 12:17:26 +0100 | [diff] [blame] | 89 | device pnp ff.1 on end # dummy |
Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +0100 | [diff] [blame] | 90 | register "backlight_enable" = "0x01" |
| 91 | register "dock_event_enable" = "0x01" |
| 92 | end |
| 93 | |
Philipp Deppenwiese | 3d02b9c | 2015-06-03 23:09:36 +0200 | [diff] [blame] | 94 | chip drivers/pc80/tpm |
| 95 | device pnp 0c31.0 on end |
| 96 | end |
| 97 | |
Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +0100 | [diff] [blame] | 98 | chip ec/lenovo/h8 |
| 99 | device pnp ff.2 on # dummy |
| 100 | io 0x60 = 0x62 |
| 101 | io 0x62 = 0x66 |
| 102 | io 0x64 = 0x1600 |
| 103 | io 0x66 = 0x1604 |
| 104 | end |
| 105 | |
| 106 | register "config0" = "0xa7" |
| 107 | register "config1" = "0x01" |
| 108 | register "config2" = "0xa0" |
| 109 | register "config3" = "0xe2" |
| 110 | |
| 111 | register "has_keyboard_backlight" = "0" |
| 112 | |
| 113 | register "beepmask0" = "0x02" |
| 114 | register "beepmask1" = "0x86" |
| 115 | register "has_power_management_beeps" = "1" |
| 116 | register "event2_enable" = "0xff" |
| 117 | register "event3_enable" = "0xff" |
| 118 | register "event4_enable" = "0xf0" |
| 119 | register "event5_enable" = "0x3c" |
| 120 | register "event6_enable" = "0x00" |
| 121 | register "event7_enable" = "0xa1" |
| 122 | register "event8_enable" = "0x7b" |
| 123 | register "event9_enable" = "0xff" |
| 124 | register "eventa_enable" = "0x00" |
| 125 | register "eventb_enable" = "0x00" |
| 126 | register "eventc_enable" = "0xff" |
| 127 | register "eventd_enable" = "0xff" |
| 128 | register "evente_enable" = "0x0d" |
Patrick Rudolph | b77eec8 | 2017-05-21 09:20:39 +0200 | [diff] [blame] | 129 | |
| 130 | register "has_bdc_detection" = "1" |
| 131 | register "bdc_gpio_num" = "54" |
| 132 | register "bdc_gpio_lvl" = "0" |
Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +0100 | [diff] [blame] | 133 | end |
Patrick Rudolph | db27e338 | 2017-07-27 18:00:59 +0200 | [diff] [blame] | 134 | chip drivers/lenovo/hybrid_graphics |
| 135 | device pnp ff.f on end # dummy |
| 136 | |
| 137 | register "detect_gpio" = "21" |
| 138 | |
| 139 | register "has_panel_hybrid_gpio" = "1" |
| 140 | register "panel_hybrid_gpio" = "52" |
| 141 | register "panel_integrated_lvl" = "1" |
| 142 | |
| 143 | register "has_backlight_gpio" = "0" |
| 144 | register "has_dgpu_power_gpio" = "0" |
| 145 | |
| 146 | register "has_thinker1" = "1" |
| 147 | end |
Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +0100 | [diff] [blame] | 148 | end # LPC Controller |
Peter Lemenkov | 5ee7e47 | 2019-11-27 12:17:26 +0100 | [diff] [blame] | 149 | device pci 1f.2 on end # 6 port SATA AHCI Controller |
Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +0100 | [diff] [blame] | 150 | device pci 1f.3 on |
Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +0100 | [diff] [blame] | 151 | # eeprom, 8 virtual devices, same chip |
| 152 | chip drivers/i2c/at24rf08c |
| 153 | device i2c 54 on end |
| 154 | device i2c 55 on end |
| 155 | device i2c 56 on end |
| 156 | device i2c 57 on end |
| 157 | device i2c 5c on end |
| 158 | device i2c 5d on end |
| 159 | device i2c 5e on end |
| 160 | device i2c 5f on end |
| 161 | end |
| 162 | end # SMBus Controller |
| 163 | device pci 1f.5 off end # SATA Controller 2 |
Peter Lemenkov | 5ee7e47 | 2019-11-27 12:17:26 +0100 | [diff] [blame] | 164 | device pci 1f.6 on end # Thermal |
Nicolas Reinecke | 572795b | 2014-12-29 19:57:29 +0100 | [diff] [blame] | 165 | end |
| 166 | end |
| 167 | end |