James Ye | be6fd4c | 2017-07-22 19:19:42 +1000 | [diff] [blame] | 1 | chip northbridge/intel/sandybridge |
| 2 | # IGD Displays |
Nico Huber | b0b25c8 | 2020-03-21 20:35:12 +0100 | [diff] [blame] | 3 | register "gfx" = "GMA_STATIC_DISPLAYS(1)" |
James Ye | be6fd4c | 2017-07-22 19:19:42 +1000 | [diff] [blame] | 4 | |
| 5 | register "gpu_dp_d_hotplug" = "0x04" |
| 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" |
James Ye | be6fd4c | 2017-07-22 19:19:42 +1000 | [diff] [blame] | 9 | register "gpu_panel_power_cycle_delay" = "4" |
| 10 | register "gpu_panel_power_up_delay" = "100" |
| 11 | register "gpu_panel_power_down_delay" = "100" |
| 12 | register "gpu_panel_power_backlight_on_delay" = "3000" |
| 13 | register "gpu_panel_power_backlight_off_delay" = "2000" |
James Ye | be6fd4c | 2017-07-22 19:19:42 +1000 | [diff] [blame] | 14 | register "gpu_cpu_backlight" = "0x1155" |
| 15 | register "gpu_pch_backlight" = "0x11551155" |
| 16 | |
Keith Hui | 45e4ab4 | 2023-07-22 12:49:05 -0400 | [diff] [blame] | 17 | register "spd_addresses" = "{0x50, 0, 0x52, 0}" |
| 18 | |
Angel Pons | bceea67 | 2021-05-17 10:58:36 +0200 | [diff] [blame] | 19 | device domain 0 on |
James Ye | be6fd4c | 2017-07-22 19:19:42 +1000 | [diff] [blame] | 20 | subsystemid 0x17aa 0x21fe inherit |
| 21 | |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 22 | device ref host_bridge on end # Host bridge |
| 23 | device ref peg10 off end # PCIe Bridge for discrete graphics |
| 24 | device ref igd on end # Internal graphics VGA controller |
| 25 | device ref dev4 off end # Signal processing controller |
James Ye | be6fd4c | 2017-07-22 19:19:42 +1000 | [diff] [blame] | 26 | |
| 27 | chip southbridge/intel/bd82x6x |
| 28 | # GPI routing |
| 29 | register "alt_gp_smi_en" = "0x0000" |
| 30 | register "gpi6_routing" = "2" |
| 31 | register "gpi13_routing" = "2" |
| 32 | |
James Ye | ef2e86e | 2019-02-12 22:17:52 +1100 | [diff] [blame] | 33 | # Enable SATA ports 0 (2.5 inch) and 1 (mSATA) |
| 34 | register "sata_port_map" = "0x3" |
James Ye | be6fd4c | 2017-07-22 19:19:42 +1000 | [diff] [blame] | 35 | # Set max SATA speed to 6.0 Gb/s |
| 36 | register "sata_interface_speed_support" = "0x3" |
| 37 | |
| 38 | register "gen1_dec" = "0x007c1611" |
| 39 | register "gen2_dec" = "0x00040069" |
| 40 | register "gen3_dec" = "0x000c0701" |
| 41 | register "gen4_dec" = "0x000c06a1" |
| 42 | |
| 43 | register "xhci_switchable_ports" = "0xf" |
| 44 | register "superspeed_capable_ports" = "0xf" |
| 45 | register "xhci_overcurrent_mapping" = "0x00000c03" |
Keith Hui | c36b5ea1 | 2024-02-05 16:11:26 -0500 | [diff] [blame^] | 46 | register "usb_port_config" = "{ |
| 47 | {1, 1, 0}, /* P0: USB 3.0 1 (OC0) */ |
| 48 | {1, 1, 0}, /* P1: USB 3.0 2 (OC0) */ |
| 49 | {0, 0, 0}, |
| 50 | {1, 1, -1}, /* P3: Camera (no OC) */ |
| 51 | {1, 0, -1}, /* P4: WLAN (no OC) */ |
| 52 | {1, 0, -1}, /* P5: WWAN (no OC) */ |
| 53 | {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, |
| 54 | {1, 1, 4}, /* P9: USB 2.0 (AUO4) (OC4) */ |
| 55 | {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, |
| 56 | {1, 0, -1} /* P13: Bluetooth (no OC) */ |
| 57 | }" |
James Ye | be6fd4c | 2017-07-22 19:19:42 +1000 | [diff] [blame] | 58 | |
| 59 | # Enable zero-based linear PCIe root port functions |
Angel Pons | af4bd56 | 2021-12-28 13:05:56 +0100 | [diff] [blame] | 60 | register "pcie_port_coalesce" = "true" |
James Ye | be6fd4c | 2017-07-22 19:19:42 +1000 | [diff] [blame] | 61 | |
| 62 | register "spi_uvscc" = "0x2005" |
| 63 | register "spi_lvscc" = "0x2005" |
| 64 | |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 65 | device ref xhci on end # USB 3.0 Controller |
| 66 | device ref mei1 on end # Management Engine Interface 1 |
| 67 | device ref mei2 off end # Management Engine Interface 2 |
| 68 | device ref me_ide_r off end # Management Engine IDE-R |
| 69 | device ref me_kt off end # Management Engine KT |
| 70 | device ref gbe off end # Intel Gigabit Ethernet |
| 71 | device ref ehci2 on end # USB2 EHCI #2 |
Alexander Goncharov | 893c3ae8 | 2023-02-04 15:20:37 +0400 | [diff] [blame] | 72 | device ref hda on end # High Definition Audio controller |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 73 | device ref pcie_rp1 on end # PCIe Port #1 |
| 74 | device ref pcie_rp2 on end # PCIe Port #2 (WLAN card) |
| 75 | device ref pcie_rp3 on end # PCIe Port #3 (Card Reader) |
| 76 | device ref pcie_rp4 off end # PCIe Port #4 |
| 77 | device ref pcie_rp5 off end # PCIe Port #5 |
| 78 | device ref pcie_rp6 on end # PCIe Port #6 (Ethernet controller) |
| 79 | device ref pcie_rp7 off end # PCIe Port #7 |
| 80 | device ref pcie_rp8 off end # PCIe Port #8 |
| 81 | device ref ehci1 on end # USB2 EHCI #1 |
| 82 | device ref pci_bridge off end # PCI bridge |
| 83 | device ref lpc on # LPC bridge PCI-LPC bridge |
James Ye | be6fd4c | 2017-07-22 19:19:42 +1000 | [diff] [blame] | 84 | chip drivers/pc80/tpm |
| 85 | device pnp 0c31.0 on end |
| 86 | end |
| 87 | |
| 88 | chip ec/lenovo/h8 |
James Ye | a6450d7 | 2019-01-19 18:25:04 +1100 | [diff] [blame] | 89 | device pnp ff.1 on # dummy |
James Ye | be6fd4c | 2017-07-22 19:19:42 +1000 | [diff] [blame] | 90 | io 0x60 = 0x62 |
| 91 | io 0x62 = 0x66 |
| 92 | io 0x64 = 0x1600 |
| 93 | io 0x66 = 0x1604 |
| 94 | end |
| 95 | |
| 96 | register "config0" = "0xa6" |
| 97 | register "config1" = "0x04" |
| 98 | register "config2" = "0xa0" |
| 99 | register "config3" = "0x62" |
| 100 | |
| 101 | register "has_keyboard_backlight" = "0" |
| 102 | |
| 103 | register "beepmask0" = "0x00" |
| 104 | register "beepmask1" = "0x87" |
| 105 | register "has_power_management_beeps" = "0" |
| 106 | |
| 107 | register "event0_enable" = "0xff" |
| 108 | register "event1_enable" = "0xff" |
| 109 | register "event2_enable" = "0xff" |
| 110 | register "event3_enable" = "0xff" |
| 111 | register "event4_enable" = "0xff" |
| 112 | register "event5_enable" = "0xff" |
| 113 | register "event6_enable" = "0xff" |
| 114 | register "event7_enable" = "0xff" |
| 115 | register "event8_enable" = "0xff" |
| 116 | register "event9_enable" = "0xff" |
| 117 | register "eventa_enable" = "0xff" |
| 118 | register "eventb_enable" = "0xff" |
| 119 | register "eventc_enable" = "0xff" |
| 120 | register "eventd_enable" = "0xff" |
| 121 | register "evente_enable" = "0xff" |
| 122 | register "eventf_enable" = "0xff" |
| 123 | end |
| 124 | end |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 125 | device ref sata1 on end # SATA Controller 1 |
| 126 | device ref smbus on # SMBus |
James Ye | be6fd4c | 2017-07-22 19:19:42 +1000 | [diff] [blame] | 127 | # eeprom, 8 virtual devices, same chip |
| 128 | chip drivers/i2c/at24rf08c |
| 129 | device i2c 54 on end |
| 130 | device i2c 55 on end |
| 131 | device i2c 56 on end |
| 132 | device i2c 57 on end |
| 133 | device i2c 5c on end |
| 134 | device i2c 5d on end |
| 135 | device i2c 5e on end |
| 136 | device i2c 5f on end |
| 137 | end |
| 138 | end |
Arthur Heymans | b5df65a | 2022-11-12 14:51:49 +0100 | [diff] [blame] | 139 | device ref sata2 off end # SATA Controller 2 |
| 140 | device ref thermal off end # Thermal |
James Ye | be6fd4c | 2017-07-22 19:19:42 +1000 | [diff] [blame] | 141 | end |
| 142 | end |
| 143 | end |