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_c1" = "1" # ACPI(C1) = MWAIT(C1) |
| 27 | register "acpi_c2" = "4" # ACPI(C2) = MWAIT(C6) |
| 28 | register "acpi_c3" = "0" |
Dennis Wassenberg | bd10516 | 2015-09-10 12:20:58 +0200 | [diff] [blame] | 29 | end |
| 30 | end |
| 31 | |
| 32 | device domain 0 on |
| 33 | device pci 00.0 on end # host bridge |
| 34 | device pci 02.0 on end # vga controller |
| 35 | |
| 36 | chip southbridge/intel/bd82x6x # Intel Series 6 Cougar Point PCH |
| 37 | # LPC i/o generic decodes |
| 38 | register "gen1_dec" = "0x003c0a01" # ITE environment controller |
| 39 | register "gen2_dec" = "0x000403e9" # additional com port |
| 40 | register "gen3_dec" = "0x000402e9" # additional com port |
| 41 | |
| 42 | # Enable both SATA ports 0, 1 |
| 43 | register "sata_port_map" = "0x03" |
| 44 | # Set max SATA speed to 6.0 Gb/s (should be the default, anyway) |
| 45 | register "sata_interface_speed_support" = "0x3" |
| 46 | |
| 47 | # Route GPI7 (EC SCI) as SCI |
| 48 | register "gpi7_routing" = "2" |
| 49 | |
| 50 | # Enable GPE17 (GPI7) and TCO SCI |
| 51 | register "gpe0_en" = "0x00800040" |
| 52 | |
| 53 | # Disable root port coalescing |
| 54 | register "pcie_port_coalesce" = "0" |
| 55 | register "pcie_hotplug_map" = "{ 0, 0, 0, 0, 0, 0, 1, 1 }" |
| 56 | |
Dennis Wassenberg | bd10516 | 2015-09-10 12:20:58 +0200 | [diff] [blame] | 57 | |
| 58 | register "xhci_overcurrent_mapping" = "0x00000c03" |
| 59 | register "xhci_switchable_ports" = "0x0f" |
| 60 | register "superspeed_capable_ports" = "0x0f" |
| 61 | |
| 62 | register "spi_uvscc" = "0x2005" |
| 63 | register "spi_lvscc" = "0x2005" |
| 64 | |
| 65 | device pci 14.0 on end # USB 3.0 Controller |
| 66 | device pci 16.0 on end # Management Engine Interface 1 |
| 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 end # Intel Gigabit Ethernet |
| 71 | device pci 1a.0 on end # USB2 EHCI #2 |
| 72 | device pci 1b.0 on # High Definition Audio |
| 73 | subsystemid 0x1a86 0x4352 |
| 74 | end |
| 75 | |
| 76 | # Disabling 1c.0 might break IRQ settings as it enables port coalescing |
| 77 | device pci 1c.0 on end # PCIe Port #1 |
| 78 | device pci 1c.1 on end # PCIe Port #2 |
| 79 | device pci 1c.2 on end # PCIe Port #3 |
| 80 | device pci 1c.3 on end # PCIe Port #4 |
| 81 | device pci 1c.4 on end # PCIe Port #5 |
| 82 | device pci 1c.5 on end # PCIe Port #6 |
| 83 | device pci 1c.6 on end # PCIe Port #7 |
| 84 | device pci 1c.7 on end # PCIe Port #8 |
| 85 | |
| 86 | device pci 1d.0 on end # USB2 EHCI #1 |
| 87 | device pci 1e.0 off end # PCI bridge |
| 88 | device pci 1f.0 on # LPC bridge |
| 89 | chip ec/roda/it8518 |
| 90 | register "cpuhot_limit" = "100" |
| 91 | # 60h/64h KBC |
| 92 | device pnp ff.0 on # dummy address |
| 93 | end |
| 94 | end |
| 95 | chip superio/ite/it8783ef |
Vagiz Trakhanov | 17c5771 | 2017-09-28 14:21:54 +0000 | [diff] [blame] | 96 | register "TMPIN1.mode" = "THERMAL_RESISTOR" |
| 97 | register "TMPIN2.mode" = "THERMAL_RESISTOR" |
Elyes HAOUAS | b0f1988 | 2018-06-09 11:59:00 +0200 | [diff] [blame] | 98 | register "ec.vin_mask" = "VIN_ALL" |
Dennis Wassenberg | bd10516 | 2015-09-10 12:20:58 +0200 | [diff] [blame] | 99 | register "FAN1.mode" = "FAN_SMART_AUTOMATIC" |
| 100 | register "FAN1.smart.tmpin" = " 1" |
| 101 | register "FAN1.smart.tmp_off" = "60" |
| 102 | register "FAN1.smart.tmp_start" = "64" |
| 103 | register "FAN1.smart.tmp_delta" = " 2" |
| 104 | register "FAN1.smart.pwm_start" = "30" |
| 105 | register "FAN1.smart.slope" = "64" |
| 106 | register "FAN2.mode" = "FAN_SMART_AUTOMATIC" |
| 107 | register "FAN2.smart.tmpin" = " 1" |
| 108 | register "FAN2.smart.tmp_off" = "60" |
| 109 | register "FAN2.smart.tmp_start" = "64" |
| 110 | register "FAN2.smart.tmp_delta" = " 2" |
| 111 | register "FAN2.smart.pwm_start" = "30" |
| 112 | register "FAN2.smart.slope" = "64" |
| 113 | register "FAN3.mode" = "FAN_MODE_OFF" |
| 114 | device pnp 2e.0 off end # Floppy |
| 115 | device pnp 2e.1 on # COM 1 |
| 116 | io 0x60 = 0x3f8 |
| 117 | irq 0x70 = 4 |
| 118 | end |
| 119 | device pnp 2e.2 on # COM 2 |
| 120 | io 0x60 = 0x2f8 |
| 121 | irq 0x70 = 3 |
| 122 | end |
| 123 | device pnp 2e.3 on # Printer Port |
| 124 | io 0x60 = 0x378 |
| 125 | io 0x62 = 0x000 |
| 126 | irq 0x70 = 7 |
| 127 | drq 0x74 = 4 |
| 128 | irq 0xf0 = 0x00 |
| 129 | end |
| 130 | device pnp 2e.4 on # Environment Controller |
| 131 | io 0x60 = 0xa30 |
| 132 | io 0x62 = 0xa20 |
| 133 | irq 0x70 = 0 |
| 134 | irq 0xf0 = 0x80 |
| 135 | end |
| 136 | device pnp 2e.5 off end # Keyboard |
| 137 | device pnp 2e.6 off end # Mouse |
| 138 | device pnp 2e.7 off end # GPIO |
| 139 | device pnp 2e.8 on # COM 3 |
| 140 | io 0x60 = 0x3e8 |
| 141 | irq 0x70 = 4 |
| 142 | end |
| 143 | device pnp 2e.9 on # COM 4 |
| 144 | io 0x60 = 0x2e8 |
| 145 | irq 0x70 = 3 |
| 146 | end |
| 147 | device pnp 2e.a off end # COM 5 |
| 148 | device pnp 2e.b off end # COM 6 |
| 149 | device pnp 2e.c off end # CIR |
| 150 | end |
| 151 | end # LPC bridge |
| 152 | device pci 1f.2 on end # SATA Controller 1 |
| 153 | device pci 1f.3 on end # SMBus |
| 154 | device pci 1f.5 off end # SATA Controller 2 |
| 155 | device pci 1f.6 off end # Thermal |
| 156 | end |
| 157 | end |
| 158 | end |