| 1 |
## SPDX-License-Identifier: GPL-2.0-only |
| 2 |
|
| 3 |
chip soc/intel/skylake |
| 4 |
register "deep_sx_config" = "DSX_EN_WAKE_PIN" |
| 5 |
|
| 6 |
register "eist_enable" = "1" |
| 7 |
|
| 8 |
# GPE configuration |
| 9 |
# Note that GPE events called out in ASL code rely on this |
| 10 |
# route. i.e. If this route changes then the affected GPE |
| 11 |
# offset bits also need to be changed. |
| 12 |
register "gpe0_dw0" = "GPP_G" |
| 13 |
register "gpe0_dw1" = "GPP_D" |
| 14 |
register "gpe0_dw2" = "GPP_E" |
| 15 |
|
| 16 |
# Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch |
| 17 |
# SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s |
| 18 |
register "PmConfigSlpS3MinAssert" = "0x02" |
| 19 |
|
| 20 |
# SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s |
| 21 |
register "PmConfigSlpS4MinAssert" = "0x04" |
| 22 |
|
| 23 |
# SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s |
| 24 |
register "PmConfigSlpSusMinAssert" = "0x03" |
| 25 |
|
| 26 |
# SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s |
| 27 |
register "PmConfigSlpAMinAssert" = "0x03" |
| 28 |
|
| 29 |
# PL2 override 91W |
| 30 |
register "power_limits_config" = "{ |
| 31 |
.tdp_pl2_override = 91, |
| 32 |
}" |
| 33 |
|
| 34 |
device domain 0 on |
| 35 |
subsystemid 0x17aa 0x30bc inherit |
| 36 |
|
| 37 |
device ref peg0 on |
| 38 |
smbios_slot_desc "SlotTypePciExpressGen3" "SlotLengthOther" |
| 39 |
"PCIE16X_1" "SlotDataBusWidth16X" |
| 40 |
end |
| 41 |
device ref igpu on |
| 42 |
register "PrimaryDisplay" = "Display_PEG" |
| 43 |
end |
| 44 |
device ref sa_thermal on end |
| 45 |
device ref south_xhci on |
| 46 |
register "usb2_ports" = "{ |
| 47 |
[0] = USB2_PORT_MID(OC0), /* Rear port 5 */ |
| 48 |
[1] = USB2_PORT_MID(OC0), /* Rear port 6 */ |
| 49 |
[2] = USB2_PORT_EMPTY, /* BMC slot not populated */ |
| 50 |
[3] = USB2_PORT_MID(OC_SKIP), /* M.2 */ |
| 51 |
[4] = USB2_PORT_MID(OC4), /* Front port 1 */ |
| 52 |
[5] = USB2_PORT_MID(OC4), /* Front port 2 */ |
| 53 |
[6] = USB2_PORT_MID(OC2), /* Rear port 3 */ |
| 54 |
[7] = USB2_PORT_MID(OC3), /* Rear port 4 */ |
| 55 |
[8] = USB2_PORT_MID(OC5), /* FUSB_1 Header */ |
| 56 |
[9] = USB2_PORT_MID(OC5), /* FUSB_1 Header */ |
| 57 |
[10] = USB2_PORT_MID(OC6), /* FUSB_2 Header */ |
| 58 |
[11] = USB2_PORT_MID(OC6), /* FUSB_2 Header */ |
| 59 |
[12] = USB2_PORT_MID(OC1), /* Rear port 7 */ |
| 60 |
[13] = USB2_PORT_MID(OC1), /* Rear port 8 */ |
| 61 |
}" |
| 62 |
|
| 63 |
register "usb3_ports" = "{ |
| 64 |
[0] = USB3_PORT_DEFAULT(OC0), /* Rear port 5 */ |
| 65 |
[1] = USB3_PORT_DEFAULT(OC0), /* Rear port 6 */ |
| 66 |
[2] = USB3_PORT_DEFAULT(OC2), /* Rear port 3 */ |
| 67 |
[3] = USB3_PORT_DEFAULT(OC3), /* Rear port 4 */ |
| 68 |
[4] = USB3_PORT_DEFAULT(OC4), /* Front port 1 */ |
| 69 |
[5] = USB3_PORT_DEFAULT(OC4), /* Front port 2 */ |
| 70 |
[6] = USB3_PORT_DEFAULT(OC1), /* Rear port 7 */ |
| 71 |
[7] = USB3_PORT_DEFAULT(OC1), /* Rear port 8 */ |
| 72 |
[8] = USB3_PORT_EMPTY, /* HSIO used for PCIe */ |
| 73 |
[9] = USB3_PORT_EMPTY, /* HSIO used for PCIe */ |
| 74 |
}" |
| 75 |
end |
| 76 |
device ref thermal on end |
| 77 |
device ref heci1 on end |
| 78 |
device ref sata on |
| 79 |
register "SataSalpSupport" = "true" |
| 80 |
register "SataPortsEnable" = "{ |
| 81 |
[0] = true, |
| 82 |
[1] = true, |
| 83 |
[2] = true, |
| 84 |
[3] = true, |
| 85 |
}" |
| 86 |
end |
| 87 |
device ref pcie_rp5 on |
| 88 |
register "PcieRpClkReqSupport[4]" = "false" |
| 89 |
register "PcieRpAdvancedErrorReporting[4]" = "true" |
| 90 |
register "PcieRpLtrEnable[4]" = "true" |
| 91 |
register "PcieRpClkSrcNumber[4]" = "1" |
| 92 |
register "PcieRpHotPlug[4]" = "true" |
| 93 |
|
| 94 |
smbios_slot_desc "SlotTypePciExpressGen3" "SlotLengthOther" |
| 95 |
"PCIE1X_1" "SlotDataBusWidth1X" |
| 96 |
end |
| 97 |
device ref pcie_rp7 on # M.2 E-key |
| 98 |
register "PcieRpClkReqSupport[6]" = "true" |
| 99 |
register "PcieRpClkReqNumber[6]" = "4" |
| 100 |
register "PcieRpAdvancedErrorReporting[6]" = "true" |
| 101 |
register "PcieRpLtrEnable[6]" = "true" |
| 102 |
register "PcieRpClkSrcNumber[6]" = "7" |
| 103 |
register "PcieRpHotPlug[6]" = "true" |
| 104 |
|
| 105 |
smbios_slot_desc "SlotTypeM2Socket1_SD" "SlotLengthOther" |
| 106 |
"M_2" "SlotDataBusWidth1X" |
| 107 |
end |
| 108 |
device ref pcie_rp9 on |
| 109 |
register "PcieRpClkReqSupport[8]" = "false" |
| 110 |
register "PcieRpAdvancedErrorReporting[8]" = "true" |
| 111 |
register "PcieRpLtrEnable[8]" = "true" |
| 112 |
register "PcieRpClkSrcNumber[8]" = "2" |
| 113 |
register "PcieRpHotPlug[8]" = "true" |
| 114 |
|
| 115 |
smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthOther" |
| 116 |
"PCIE4X_1" "SlotDataBusWidth4X" |
| 117 |
end |
| 118 |
device ref lpc_espi on |
| 119 |
register "gen1_dec" = "0x00fc0201" |
| 120 |
register "gen2_dec" = "0x003c0a01" |
| 121 |
register "gen3_dec" = "0x00040069" |
| 122 |
register "gen4_dec" = "0x000c0081" |
| 123 |
register "serirq_mode" = "SERIRQ_CONTINUOUS" |
| 124 |
|
| 125 |
# Actually a NCT6685D, but the 6687D seems similar enough |
| 126 |
chip superio/nuvoton/nct6687d |
| 127 |
device pnp 2e.1 on # Parallel port |
| 128 |
io 0x60 = 0x278 |
| 129 |
irq 0x70 = 7 |
| 130 |
drq 0x74 = 3 |
| 131 |
end |
| 132 |
device pnp 2e.2 on # COM1 - optional module |
| 133 |
io 0x60 = 0x2f8 |
| 134 |
irq 0x70 = 3 |
| 135 |
end |
| 136 |
device pnp 2e.3 on # COM2, IR |
| 137 |
io 0x60 = 0x3f8 |
| 138 |
irq 0x70 = 4 |
| 139 |
end |
| 140 |
device pnp 2e.5 on # Keyboard |
| 141 |
io 0x60 = 0x60 |
| 142 |
io 0x62 = 0x64 |
| 143 |
irq 0x70 = 1 |
| 144 |
irq 0x72 = 12 |
| 145 |
end |
| 146 |
device pnp 2e.6 off end # CIR |
| 147 |
device pnp 2e.7 off end # GPIO0-7 |
| 148 |
device pnp 2e.8 off end # P80 UART |
| 149 |
device pnp 2e.9 off end # GPIO8-9, GPIO1-8 AF |
| 150 |
device pnp 2e.a on # ACPI |
| 151 |
io 0x60 = 0xa10 |
| 152 |
irq 0xe7 = 0x0f |
| 153 |
irq 0xe8 = 0xe0 |
| 154 |
irq 0xec = 0x00 |
| 155 |
irq 0xee = 0xff |
| 156 |
end |
| 157 |
device pnp 2e.b on # EC |
| 158 |
io 0x60 = 0xa20 |
| 159 |
end |
| 160 |
device pnp 2e.c off end # RTC |
| 161 |
device pnp 2e.d off end # Deep Sleep |
| 162 |
device pnp 2e.e on # TACH/PWM assignment |
| 163 |
# Pin 122 TACHIN0, Pin 121 PWMOUT0 (CPU Fan) |
| 164 |
irq 0xe1 = 0x80 |
| 165 |
# Pin 98 TACHIN2, Pin 95 PWMOUT2 (AUX1 Fan) |
| 166 |
irq 0xe2 = 0xa2 |
| 167 |
# Pin 125 TACHIN3, Pin 124 PWMOUT3 (AUX2 Fan) |
| 168 |
irq 0xe3 = 0xb3 |
| 169 |
irq 0xe4 = 0x10 # Pin 126 PWMOUT1 (SYS Fan) |
| 170 |
irq 0xe5 = 0x09 # Pin 127 TACHIN1 (SYS Fan) |
| 171 |
end |
| 172 |
device pnp 2e.f off end # Function register |
| 173 |
end |
| 174 |
chip drivers/pc80/tpm |
| 175 |
device pnp 0c31.0 on end |
| 176 |
end |
| 177 |
end |
| 178 |
device ref hda on |
| 179 |
register "PchHdaVcType" = "Vc1" |
| 180 |
end |
| 181 |
device ref smbus on end |
| 182 |
device ref fast_spi on end |
| 183 |
device ref gbe on end |
| 184 |
end |
| 185 |
end |