Patrick Georgi | c49d7a3 | 2020-05-08 22:50:46 +0200 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
Dennis Wassenberg | bd10516 | 2015-09-10 12:20:58 +0200 | [diff] [blame] | 2 | |
| 3 | chip northbridge/intel/sandybridge |
| 4 | # IGD Displays |
| 5 | register "gfx.ndid" = "4" |
| 6 | register "gfx.did" = "{ 0x80000400, 0x80000300, 0x80000301, 0x80000100, }" |
| 7 | |
| 8 | # Enable Panel as eDP and configure power delays |
Angel Pons | dc0c081 | 2020-09-02 19:17:30 +0200 | [diff] [blame] | 9 | register "gpu_panel_port_select" = "PANEL_PORT_DP_A" |
Dennis Wassenberg | bd10516 | 2015-09-10 12:20:58 +0200 | [diff] [blame] | 10 | register "gpu_panel_power_cycle_delay" = "6" # 500ms |
| 11 | register "gpu_panel_power_up_delay" = "2000" # 200ms |
| 12 | register "gpu_panel_power_down_delay" = "500" # 50ms |
| 13 | register "gpu_panel_power_backlight_on_delay" = "1" # 100us as recommended by PRM |
| 14 | register "gpu_panel_power_backlight_off_delay" = "2000" # 200ms |
| 15 | |
| 16 | # Set backlight PWM values for eDP |
| 17 | register "gpu_cpu_backlight" = "0x00000ac8" |
| 18 | register "gpu_pch_backlight" = "0x13120000" |
| 19 | |
| 20 | device cpu_cluster 0 on |
Dennis Wassenberg | bd10516 | 2015-09-10 12:20:58 +0200 | [diff] [blame] | 21 | chip cpu/intel/model_206ax |
| 22 | # Magic APIC ID to locate this chip |
Angel Pons | c56c723 | 2021-05-17 11:03:55 +0200 | [diff] [blame] | 23 | device lapic 0 on end |
Arthur Heymans | b3f2323 | 2019-01-21 17:48:55 +0100 | [diff] [blame] | 24 | device lapic 0xacac off end |
Dennis Wassenberg | bd10516 | 2015-09-10 12:20:58 +0200 | [diff] [blame] | 25 | |
Angel Pons | 6f56a23 | 2021-01-04 17:02:23 +0100 | [diff] [blame] | 26 | register "acpi_c2" = "4" # ACPI(C2) = MWAIT(C6) |
| 27 | register "acpi_c3" = "0" |
Dennis Wassenberg | bd10516 | 2015-09-10 12:20:58 +0200 | [diff] [blame] | 28 | end |
| 29 | end |
| 30 | |
| 31 | device domain 0 on |
| 32 | device pci 00.0 on end # host bridge |
| 33 | device pci 02.0 on end # vga controller |
| 34 | |
| 35 | chip southbridge/intel/bd82x6x # Intel Series 6 Cougar Point PCH |
| 36 | # LPC i/o generic decodes |
| 37 | register "gen1_dec" = "0x003c0a01" # ITE environment controller |
| 38 | register "gen2_dec" = "0x000403e9" # additional com port |
| 39 | register "gen3_dec" = "0x000402e9" # additional com port |
| 40 | |
| 41 | # Enable both SATA ports 0, 1 |
| 42 | register "sata_port_map" = "0x03" |
| 43 | # Set max SATA speed to 6.0 Gb/s (should be the default, anyway) |
| 44 | register "sata_interface_speed_support" = "0x3" |
| 45 | |
| 46 | # Route GPI7 (EC SCI) as SCI |
| 47 | register "gpi7_routing" = "2" |
| 48 | |
| 49 | # Enable GPE17 (GPI7) and TCO SCI |
| 50 | register "gpe0_en" = "0x00800040" |
| 51 | |
| 52 | # Disable root port coalescing |
Angel Pons | af4bd56 | 2021-12-28 13:05:56 +0100 | [diff] [blame] | 53 | register "pcie_port_coalesce" = "false" |
Dennis Wassenberg | bd10516 | 2015-09-10 12:20:58 +0200 | [diff] [blame] | 54 | register "pcie_hotplug_map" = "{ 0, 0, 0, 0, 0, 0, 1, 1 }" |
| 55 | |
Dennis Wassenberg | bd10516 | 2015-09-10 12:20:58 +0200 | [diff] [blame] | 56 | |
| 57 | register "xhci_overcurrent_mapping" = "0x00000c03" |
| 58 | register "xhci_switchable_ports" = "0x0f" |
| 59 | register "superspeed_capable_ports" = "0x0f" |
| 60 | |
| 61 | register "spi_uvscc" = "0x2005" |
| 62 | register "spi_lvscc" = "0x2005" |
| 63 | |
| 64 | device pci 14.0 on end # USB 3.0 Controller |
| 65 | device pci 16.0 on end # Management Engine Interface 1 |
| 66 | device pci 16.1 off end # Management Engine Interface 2 |
| 67 | device pci 16.2 off end # Management Engine IDE-R |
| 68 | device pci 16.3 off end # Management Engine KT |
| 69 | device pci 19.0 on end # Intel Gigabit Ethernet |
| 70 | device pci 1a.0 on end # USB2 EHCI #2 |
| 71 | device pci 1b.0 on # High Definition Audio |
| 72 | subsystemid 0x1a86 0x4352 |
| 73 | end |
| 74 | |
| 75 | # Disabling 1c.0 might break IRQ settings as it enables port coalescing |
| 76 | device pci 1c.0 on end # PCIe Port #1 |
| 77 | device pci 1c.1 on end # PCIe Port #2 |
| 78 | device pci 1c.2 on end # PCIe Port #3 |
| 79 | device pci 1c.3 on end # PCIe Port #4 |
| 80 | device pci 1c.4 on end # PCIe Port #5 |
| 81 | device pci 1c.5 on end # PCIe Port #6 |
| 82 | device pci 1c.6 on end # PCIe Port #7 |
| 83 | device pci 1c.7 on end # PCIe Port #8 |
| 84 | |
| 85 | device pci 1d.0 on end # USB2 EHCI #1 |
| 86 | device pci 1e.0 off end # PCI bridge |
| 87 | device pci 1f.0 on # LPC bridge |
| 88 | chip ec/roda/it8518 |
| 89 | register "cpuhot_limit" = "100" |
| 90 | # 60h/64h KBC |
| 91 | device pnp ff.0 on # dummy address |
| 92 | end |
| 93 | end |
| 94 | chip superio/ite/it8783ef |
Vagiz Trakhanov | 17c5771 | 2017-09-28 14:21:54 +0000 | [diff] [blame] | 95 | register "TMPIN1.mode" = "THERMAL_RESISTOR" |
| 96 | register "TMPIN2.mode" = "THERMAL_RESISTOR" |
Elyes HAOUAS | b0f1988 | 2018-06-09 11:59:00 +0200 | [diff] [blame] | 97 | register "ec.vin_mask" = "VIN_ALL" |
Dennis Wassenberg | bd10516 | 2015-09-10 12:20:58 +0200 | [diff] [blame] | 98 | register "FAN1.mode" = "FAN_SMART_AUTOMATIC" |
| 99 | register "FAN1.smart.tmpin" = " 1" |
| 100 | register "FAN1.smart.tmp_off" = "60" |
| 101 | register "FAN1.smart.tmp_start" = "64" |
| 102 | register "FAN1.smart.tmp_delta" = " 2" |
| 103 | register "FAN1.smart.pwm_start" = "30" |
| 104 | register "FAN1.smart.slope" = "64" |
| 105 | register "FAN2.mode" = "FAN_SMART_AUTOMATIC" |
| 106 | register "FAN2.smart.tmpin" = " 1" |
| 107 | register "FAN2.smart.tmp_off" = "60" |
| 108 | register "FAN2.smart.tmp_start" = "64" |
| 109 | register "FAN2.smart.tmp_delta" = " 2" |
| 110 | register "FAN2.smart.pwm_start" = "30" |
| 111 | register "FAN2.smart.slope" = "64" |
| 112 | register "FAN3.mode" = "FAN_MODE_OFF" |
| 113 | device pnp 2e.0 off end # Floppy |
| 114 | device pnp 2e.1 on # COM 1 |
| 115 | io 0x60 = 0x3f8 |
| 116 | irq 0x70 = 4 |
| 117 | end |
| 118 | device pnp 2e.2 on # COM 2 |
| 119 | io 0x60 = 0x2f8 |
| 120 | irq 0x70 = 3 |
| 121 | end |
| 122 | device pnp 2e.3 on # Printer Port |
| 123 | io 0x60 = 0x378 |
| 124 | io 0x62 = 0x000 |
| 125 | irq 0x70 = 7 |
| 126 | drq 0x74 = 4 |
| 127 | irq 0xf0 = 0x00 |
| 128 | end |
| 129 | device pnp 2e.4 on # Environment Controller |
| 130 | io 0x60 = 0xa30 |
| 131 | io 0x62 = 0xa20 |
| 132 | irq 0x70 = 0 |
| 133 | irq 0xf0 = 0x80 |
| 134 | end |
| 135 | device pnp 2e.5 off end # Keyboard |
| 136 | device pnp 2e.6 off end # Mouse |
| 137 | device pnp 2e.7 off end # GPIO |
| 138 | device pnp 2e.8 on # COM 3 |
| 139 | io 0x60 = 0x3e8 |
| 140 | irq 0x70 = 4 |
| 141 | end |
| 142 | device pnp 2e.9 on # COM 4 |
| 143 | io 0x60 = 0x2e8 |
| 144 | irq 0x70 = 3 |
| 145 | end |
| 146 | device pnp 2e.a off end # COM 5 |
| 147 | device pnp 2e.b off end # COM 6 |
| 148 | device pnp 2e.c off end # CIR |
| 149 | end |
| 150 | end # LPC bridge |
| 151 | device pci 1f.2 on end # SATA Controller 1 |
| 152 | device pci 1f.3 on end # SMBus |
| 153 | device pci 1f.5 off end # SATA Controller 2 |
| 154 | device pci 1f.6 off end # Thermal |
| 155 | end |
| 156 | end |
| 157 | end |