| 1 |
chip soc/intel/skylake |
| 2 |
|
| 3 |
# IGD Displays |
| 4 |
register "gfx" = "GMA_STATIC_DISPLAYS(0)" |
| 5 |
|
| 6 |
register "panel_cfg" = "{ |
| 7 |
.up_delay_ms = 100, |
| 8 |
.down_delay_ms = 500, |
| 9 |
.cycle_delay_ms = 500, |
| 10 |
.backlight_on_delay_ms = 1, |
| 11 |
.backlight_off_delay_ms = 200, |
| 12 |
.backlight_pwm_hz = 1000, |
| 13 |
}" |
| 14 |
|
| 15 |
# Deep Sx states |
| 16 |
register "deep_s3_enable_ac" = "false" |
| 17 |
register "deep_s3_enable_dc" = "false" |
| 18 |
register "deep_s5_enable_ac" = "true" |
| 19 |
register "deep_s5_enable_dc" = "true" |
| 20 |
register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN | DSX_EN_WAKE_PIN | DSX_DIS_AC_PRESENT_PD" |
| 21 |
|
| 22 |
# GPE configuration |
| 23 |
# Note that GPE events called out in ASL code rely on this |
| 24 |
# route. i.e. If this route changes then the affected GPE |
| 25 |
# offset bits also need to be changed. |
| 26 |
register "gpe0_dw0" = "GPP_B" |
| 27 |
register "gpe0_dw1" = "GPP_D" |
| 28 |
register "gpe0_dw2" = "GPP_E" |
| 29 |
|
| 30 |
# Enable DPTF |
| 31 |
register "dptf_enable" = "true" |
| 32 |
|
| 33 |
# Enable S0ix |
| 34 |
register "s0ix_enable" = true |
| 35 |
|
| 36 |
# FSP Configuration |
| 37 |
register "DspEnable" = "true" |
| 38 |
register "IoBufferOwnership" = "3" |
| 39 |
register "ScsEmmcHs400Enabled" = "1" |
| 40 |
register "SkipExtGfxScan" = "1" |
| 41 |
register "SaGv" = "SaGv_Enabled" |
| 42 |
register "PmConfigSlpS3MinAssert" = "2" # 50ms |
| 43 |
register "PmConfigSlpS4MinAssert" = "1" # 1s |
| 44 |
register "PmConfigSlpSusMinAssert" = "1" # 500ms |
| 45 |
register "PmConfigSlpAMinAssert" = "3" # 2s |
| 46 |
|
| 47 |
# VR Slew rate setting for improving audible noise |
| 48 |
register "AcousticNoiseMitigation" = "1" |
| 49 |
register "FastPkgCRampDisableIa" = "1" |
| 50 |
register "FastPkgCRampDisableGt" = "1" |
| 51 |
register "FastPkgCRampDisableSa" = "1" |
| 52 |
register "SlowSlewRateForIa" = "3" # Fast/16 |
| 53 |
register "SlowSlewRateForGt" = "3" # Fast/16 |
| 54 |
register "SlowSlewRateForSa" = "2" # Fast/8 |
| 55 |
|
| 56 |
# VR Settings Configuration for 4 Domains |
| 57 |
#+----------------+-------+-------+-------+-------+ |
| 58 |
#| Domain/Setting | SA | IA | GTUS | GTS | |
| 59 |
#+----------------+-------+-------+-------+-------+ |
| 60 |
#| Psi1Threshold | 20A | 20A | 20A | 20A | |
| 61 |
#| Psi2Threshold | 2A | 2A | 2A | 2A | |
| 62 |
#| Psi3Threshold | 1A | 1A | 1A | 1A | |
| 63 |
#| Psi3Enable | 1 | 1 | 1 | 1 | |
| 64 |
#| Psi4Enable | 1 | 1 | 1 | 1 | |
| 65 |
#| ImonSlope | 0 | 0 | 0 | 0 | |
| 66 |
#| ImonOffset | 0 | 0 | 0 | 0 | |
| 67 |
#| IccMax | 5A | 24A | 24A | 24A | |
| 68 |
#| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V | |
| 69 |
#| AcLoadline | 15 | 5.7 | 5.5 | 5.5 | |
| 70 |
#| DcLoadline | 14.3 | 4.83 | 4.2 | 4.2 | |
| 71 |
#+----------------+-------+-------+-------+-------+ |
| 72 |
register "domain_vr_config[VR_SYSTEM_AGENT]" = "{ |
| 73 |
.vr_config_enable = 1, |
| 74 |
.psi1threshold = VR_CFG_AMP(20), |
| 75 |
.psi2threshold = VR_CFG_AMP(2), |
| 76 |
.psi3threshold = VR_CFG_AMP(1), |
| 77 |
.psi3enable = 1, |
| 78 |
.psi4enable = 1, |
| 79 |
.imon_slope = 0x0, |
| 80 |
.imon_offset = 0x0, |
| 81 |
.icc_max = VR_CFG_AMP(5), |
| 82 |
.voltage_limit = 1520, |
| 83 |
.ac_loadline = 1500, |
| 84 |
.dc_loadline = 1430, |
| 85 |
}" |
| 86 |
|
| 87 |
register "domain_vr_config[VR_IA_CORE]" = "{ |
| 88 |
.vr_config_enable = 1, |
| 89 |
.psi1threshold = VR_CFG_AMP(20), |
| 90 |
.psi2threshold = VR_CFG_AMP(2), |
| 91 |
.psi3threshold = VR_CFG_AMP(1), |
| 92 |
.psi3enable = 1, |
| 93 |
.psi4enable = 1, |
| 94 |
.imon_slope = 0x0, |
| 95 |
.imon_offset = 0x0, |
| 96 |
.icc_max = VR_CFG_AMP(24), |
| 97 |
.voltage_limit = 1520, |
| 98 |
.ac_loadline = 570, |
| 99 |
.dc_loadline = 483, |
| 100 |
}" |
| 101 |
|
| 102 |
register "domain_vr_config[VR_GT_UNSLICED]" = "{ |
| 103 |
.vr_config_enable = 1, |
| 104 |
.psi1threshold = VR_CFG_AMP(20), |
| 105 |
.psi2threshold = VR_CFG_AMP(2), |
| 106 |
.psi3threshold = VR_CFG_AMP(1), |
| 107 |
.psi3enable = 1, |
| 108 |
.psi4enable = 1, |
| 109 |
.imon_slope = 0x0, |
| 110 |
.imon_offset = 0x0, |
| 111 |
.icc_max = VR_CFG_AMP(24), |
| 112 |
.voltage_limit = 1520, |
| 113 |
.ac_loadline = 550, |
| 114 |
.dc_loadline = 420, |
| 115 |
}" |
| 116 |
|
| 117 |
register "domain_vr_config[VR_GT_SLICED]" = "{ |
| 118 |
.vr_config_enable = 1, |
| 119 |
.psi1threshold = VR_CFG_AMP(20), |
| 120 |
.psi2threshold = VR_CFG_AMP(2), |
| 121 |
.psi3threshold = VR_CFG_AMP(1), |
| 122 |
.psi3enable = 1, |
| 123 |
.psi4enable = 1, |
| 124 |
.imon_slope = 0x0, |
| 125 |
.imon_offset = 0x0, |
| 126 |
.icc_max = VR_CFG_AMP(24), |
| 127 |
.voltage_limit = 1520, |
| 128 |
.ac_loadline = 550, |
| 129 |
.dc_loadline = 420, |
| 130 |
}" |
| 131 |
|
| 132 |
# Intel Common SoC Config |
| 133 |
#+-------------------+---------------------------+ |
| 134 |
#| Field | Value | |
| 135 |
#+-------------------+---------------------------+ |
| 136 |
#| I2C0 | Touchscreen | |
| 137 |
#| I2C1 | cr50 TPM. Early init is | |
| 138 |
#| | required to set up a BAR | |
| 139 |
#| | for TPM communication | |
| 140 |
#| | before memory is up | |
| 141 |
#| I2C2 | Trackpad | |
| 142 |
#| I2C3 | Pen | |
| 143 |
#| I2C4 | Camera | |
| 144 |
#| I2C5 | Audio | |
| 145 |
#| pch_thermal_trip | PCH Trip Temperature | |
| 146 |
#+-------------------+---------------------------+ |
| 147 |
register "common_soc_config" = "{ |
| 148 |
.i2c[0] = { |
| 149 |
.speed = I2C_SPEED_FAST, |
| 150 |
.speed_config[0] = { |
| 151 |
.speed = I2C_SPEED_FAST, |
| 152 |
.scl_lcnt = 180, |
| 153 |
.scl_hcnt = 90, |
| 154 |
.sda_hold = 36, |
| 155 |
}, |
| 156 |
}, |
| 157 |
.i2c[1] = { |
| 158 |
.early_init = 1, |
| 159 |
.speed = I2C_SPEED_FAST, |
| 160 |
.speed_config[0] = { |
| 161 |
.speed = I2C_SPEED_FAST, |
| 162 |
.scl_lcnt = 185, |
| 163 |
.scl_hcnt = 90, |
| 164 |
.sda_hold = 36, |
| 165 |
}, |
| 166 |
}, |
| 167 |
.i2c[2] = { |
| 168 |
.speed = I2C_SPEED_FAST, |
| 169 |
.speed_config[0] = { |
| 170 |
.speed = I2C_SPEED_FAST, |
| 171 |
.scl_lcnt = 190, |
| 172 |
.scl_hcnt = 100, |
| 173 |
.sda_hold = 36, |
| 174 |
}, |
| 175 |
}, |
| 176 |
.i2c[3] = { |
| 177 |
.speed = I2C_SPEED_FAST, |
| 178 |
.speed_config[0] = { |
| 179 |
.speed = I2C_SPEED_FAST, |
| 180 |
.scl_lcnt = 185, |
| 181 |
.scl_hcnt = 90, |
| 182 |
.sda_hold = 36, |
| 183 |
}, |
| 184 |
}, |
| 185 |
.i2c[4] = { |
| 186 |
.speed = I2C_SPEED_FAST, |
| 187 |
.speed_config[0] = { |
| 188 |
.speed = I2C_SPEED_FAST, |
| 189 |
.scl_lcnt = 190, |
| 190 |
.scl_hcnt = 100, |
| 191 |
.sda_hold = 36, |
| 192 |
}, |
| 193 |
}, |
| 194 |
.i2c[5] = { |
| 195 |
.speed = I2C_SPEED_FAST, |
| 196 |
.speed_config[0] = { |
| 197 |
.speed = I2C_SPEED_FAST, |
| 198 |
.scl_lcnt = 190, |
| 199 |
.scl_hcnt = 100, |
| 200 |
.sda_hold = 36, |
| 201 |
}, |
| 202 |
}, |
| 203 |
.pch_thermal_trip = 75, |
| 204 |
}" |
| 205 |
|
| 206 |
# Touch Screen |
| 207 |
register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3" |
| 208 |
|
| 209 |
# H1 |
| 210 |
register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3" |
| 211 |
|
| 212 |
# Trackpad |
| 213 |
register "i2c_voltage[2]" = "I2C_VOLTAGE_1V8" |
| 214 |
|
| 215 |
# Pen |
| 216 |
register "i2c_voltage[3]" = "I2C_VOLTAGE_1V8" |
| 217 |
|
| 218 |
# Camera |
| 219 |
register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" |
| 220 |
|
| 221 |
# Audio |
| 222 |
register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8" |
| 223 |
|
| 224 |
# Must leave UART0 enabled or SD/eMMC will not work as PCI |
| 225 |
register "SerialIoDevMode" = "{ |
| 226 |
[PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 227 |
[PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 228 |
[PchSerialIoIndexI2C2] = PchSerialIoPci, |
| 229 |
[PchSerialIoIndexI2C3] = PchSerialIoPci, |
| 230 |
[PchSerialIoIndexI2C4] = PchSerialIoPci, |
| 231 |
[PchSerialIoIndexI2C5] = PchSerialIoPci, |
| 232 |
[PchSerialIoIndexSpi0] = PchSerialIoDisabled, |
| 233 |
[PchSerialIoIndexSpi1] = PchSerialIoDisabled, |
| 234 |
[PchSerialIoIndexUart0] = PchSerialIoSkipInit, |
| 235 |
[PchSerialIoIndexUart1] = PchSerialIoDisabled, |
| 236 |
[PchSerialIoIndexUart2] = PchSerialIoSkipInit, |
| 237 |
}" |
| 238 |
|
| 239 |
# PL2 override 15W for KBL-Y |
| 240 |
register "power_limits_config" = "{ |
| 241 |
.tdp_pl2_override = 15, |
| 242 |
.psys_pmax = 45, |
| 243 |
}" |
| 244 |
register "tcc_offset" = "10" # TCC of 90C |
| 245 |
|
| 246 |
# Use default SD card detect GPIO configuration |
| 247 |
register "sdcard_cd_gpio" = "GPP_E15" |
| 248 |
|
| 249 |
device domain 0 on |
| 250 |
device ref igpu on end |
| 251 |
device ref sa_thermal on end |
| 252 |
device ref imgu on end |
| 253 |
device ref south_xhci on |
| 254 |
register "usb2_ports" = "{ |
| 255 |
[0] = USB2_PORT_LONG(OC1), // Type-C Port 1 |
| 256 |
[1] = USB2_PORT_SHORT(OC2), // Type-A Port |
| 257 |
[2] = USB2_PORT_SHORT(OC_SKIP), // Bluetooth |
| 258 |
[4] = USB2_PORT_LONG(OC0), // Type-C Port 2 |
| 259 |
[6] = USB2_PORT_SHORT(OC_SKIP), // H1 |
| 260 |
[8] = USB2_PORT_SHORT(OC_SKIP), // Camera |
| 261 |
}" |
| 262 |
|
| 263 |
register "usb3_ports" = "{ |
| 264 |
[0] = USB3_PORT_DEFAULT(OC1), // Type-C Port 1 |
| 265 |
[1] = USB3_PORT_DEFAULT(OC0), // Type-C Port 2 |
| 266 |
[2] = USB3_PORT_DEFAULT(OC2), // Type-A Port |
| 267 |
[3] = USB3_PORT_DEFAULT(OC_SKIP), // LTE module |
| 268 |
}" |
| 269 |
end |
| 270 |
device ref south_xdci on end |
| 271 |
device ref thermal on end |
| 272 |
device ref cio on end |
| 273 |
device ref i2c0 on |
| 274 |
chip drivers/i2c/hid |
| 275 |
register "generic.hid" = ""SYTS7813"" |
| 276 |
register "generic.desc" = ""Synaptics Touchscreen"" |
| 277 |
register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)" |
| 278 |
register "generic.detect" = "1" |
| 279 |
register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C22)" |
| 280 |
register "generic.enable_delay_ms" = "45" |
| 281 |
register "generic.has_power_resource" = "1" |
| 282 |
register "hid_desc_reg_offset" = "0x20" |
| 283 |
device i2c 20 on end |
| 284 |
end |
| 285 |
end |
| 286 |
device ref i2c1 on |
| 287 |
chip drivers/i2c/tpm |
| 288 |
register "hid" = ""GOOG0005"" |
| 289 |
register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E0_IRQ)" |
| 290 |
device i2c 50 on end |
| 291 |
end |
| 292 |
end |
| 293 |
device ref i2c2 on |
| 294 |
chip drivers/i2c/generic |
| 295 |
register "hid" = ""STH9321"" |
| 296 |
register "name" = ""SEMTECH SX9321"" |
| 297 |
register "desc" = ""SAR Proximity Sensor"" |
| 298 |
register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_A18_IRQ)" |
| 299 |
register "device_present_gpio" = "GPP_B20" |
| 300 |
device i2c 28 on end |
| 301 |
end |
| 302 |
end |
| 303 |
device ref i2c3 on |
| 304 |
chip drivers/i2c/hid |
| 305 |
register "generic.hid" = ""ACPI0C50"" |
| 306 |
register "generic.cid" = ""PNP0C50"" |
| 307 |
register "generic.desc" = ""Digitizer device"" |
| 308 |
register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_A22_IRQ)" |
| 309 |
register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C9)" |
| 310 |
register "generic.has_power_resource" = "1" |
| 311 |
register "generic.wake" = "GPE0_DW0_21" |
| 312 |
register "generic.detect" = "1" |
| 313 |
register "hid_desc_reg_offset" = "0x1" |
| 314 |
device i2c 0x9 on end |
| 315 |
end |
| 316 |
chip drivers/generic/gpio_keys |
| 317 |
register "name" = ""PENH"" |
| 318 |
register "gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_B19)" |
| 319 |
register "key.dev_name" = ""EJCT"" |
| 320 |
register "key.linux_code" = "SW_PEN_INSERTED" |
| 321 |
register "key.linux_input_type" = "EV_SW" |
| 322 |
register "key.label" = ""pen_eject"" |
| 323 |
register "key.wakeup_route" = "WAKEUP_ROUTE_DISABLED" |
| 324 |
device generic 0 on end |
| 325 |
end |
| 326 |
end |
| 327 |
device ref heci1 on end |
| 328 |
device ref uart2 on end |
| 329 |
device ref i2c5 on |
| 330 |
chip drivers/generic/max98357a |
| 331 |
register "hid" = ""MX98357A"" |
| 332 |
register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A23)" |
| 333 |
register "sdmode_delay" = "5" |
| 334 |
device generic 0 on end |
| 335 |
end |
| 336 |
chip drivers/i2c/da7219 |
| 337 |
register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D9_IRQ)" |
| 338 |
register "btn_cfg" = "50" |
| 339 |
register "mic_det_thr" = "200" |
| 340 |
register "jack_ins_deb" = "20" |
| 341 |
register "jack_det_rate" = ""32ms_64ms"" |
| 342 |
register "jack_rem_deb" = "1" |
| 343 |
register "a_d_btn_thr" = "0xa" |
| 344 |
register "d_b_btn_thr" = "0x16" |
| 345 |
register "b_c_btn_thr" = "0x21" |
| 346 |
register "c_mic_btn_thr" = "0x3e" |
| 347 |
register "btn_avg" = "4" |
| 348 |
register "adc_1bit_rpt" = "1" |
| 349 |
register "micbias_lvl" = "2600" |
| 350 |
register "mic_amp_in_sel" = ""diff"" |
| 351 |
device i2c 1A on end |
| 352 |
end |
| 353 |
end |
| 354 |
device ref i2c4 on |
| 355 |
chip drivers/i2c/generic |
| 356 |
register "hid" = ""ELAN0000"" |
| 357 |
register "desc" = ""ELAN Touchpad"" |
| 358 |
register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_B3_IRQ)" |
| 359 |
register "wake" = "GPE0_DW0_05" |
| 360 |
device i2c 15 on end |
| 361 |
end |
| 362 |
end |
| 363 |
device ref pcie_rp1 on |
| 364 |
register "PcieRpClkReqSupport[0]" = "true" |
| 365 |
register "PcieRpClkReqNumber[0]" = "1" |
| 366 |
register "PcieRpClkSrcNumber[0]" = "1" |
| 367 |
register "PcieRpAdvancedErrorReporting[0]" = "1" |
| 368 |
register "PcieRpLtrEnable[0]" = "true" |
| 369 |
chip drivers/wifi/generic |
| 370 |
register "wake" = "GPE0_DW0_00" |
| 371 |
device pci 00.0 on end |
| 372 |
end |
| 373 |
end |
| 374 |
device ref uart0 on end |
| 375 |
device ref emmc on end |
| 376 |
device ref sdxc on end |
| 377 |
device ref lpc_espi on |
| 378 |
# EC host command ranges are in 0x800-0x8ff & 0x200-0x20f |
| 379 |
register "gen1_dec" = "0x00fc0801" |
| 380 |
register "gen2_dec" = "0x000c0201" |
| 381 |
# EC memory map range is 0x900-0x9ff |
| 382 |
register "gen3_dec" = "0x00fc0901" |
| 383 |
|
| 384 |
chip ec/google/chromeec |
| 385 |
device pnp 0c09.0 on end |
| 386 |
end |
| 387 |
end |
| 388 |
device ref hda on end |
| 389 |
device ref smbus on end |
| 390 |
device ref fast_spi on end |
| 391 |
end |
| 392 |
end |