Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 1 | chip soc/intel/skylake |
| 2 | |
| 3 | # Enable deep Sx states |
| 4 | register "deep_s3_enable" = "1" |
| 5 | register "deep_s5_enable" = "1" |
| 6 | register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN | DSX_EN_WAKE_PIN" |
| 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_B" |
| 13 | register "gpe0_dw1" = "GPP_D" |
| 14 | register "gpe0_dw2" = "GPP_E" |
| 15 | |
| 16 | # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f |
| 17 | register "gen1_dec" = "0x00fc0801" |
| 18 | register "gen2_dec" = "0x000c0201" |
| 19 | # EC memory map range is 0x900-0x9ff |
| 20 | register "gen3_dec" = "0x00fc0901" |
| 21 | |
| 22 | # FSP Configuration |
| 23 | register "ProbelessTrace" = "0" |
| 24 | register "EnableLan" = "0" |
| 25 | register "EnableSata" = "0" |
| 26 | register "SataSalpSupport" = "0" |
| 27 | register "SataMode" = "0" |
| 28 | register "SataPortsEnable[0]" = "0" |
| 29 | register "EnableAzalia" = "1" |
| 30 | register "DspEnable" = "1" |
| 31 | register "IoBufferOwnership" = "3" |
| 32 | register "EnableTraceHub" = "0" |
| 33 | register "XdciEnable" = "0" |
| 34 | register "SsicPortEnable" = "0" |
| 35 | register "SmbusEnable" = "1" |
| 36 | register "Cio2Enable" = "0" |
| 37 | register "ScsEmmcEnabled" = "1" |
| 38 | register "ScsEmmcHs400Enabled" = "1" |
| 39 | register "ScsSdCardEnabled" = "0" |
| 40 | register "IshEnable" = "0" |
| 41 | register "PttSwitch" = "0" |
| 42 | register "InternalGfx" = "1" |
| 43 | register "SkipExtGfxScan" = "1" |
| 44 | register "Device4Enable" = "1" |
| 45 | register "HeciEnabled" = "0" |
| 46 | register "FspSkipMpInit" = "1" |
| 47 | register "SaGv" = "3" |
| 48 | register "SerialIrqConfigSirqEnable" = "1" |
| 49 | register "PmConfigSlpS3MinAssert" = "2" # 50ms |
| 50 | register "PmConfigSlpS4MinAssert" = "1" # 1s |
| 51 | register "PmConfigSlpSusMinAssert" = "1" # 500ms |
| 52 | register "PmConfigSlpAMinAssert" = "3" # 2s |
| 53 | register "PmTimerDisabled" = "1" |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 54 | |
| 55 | register "pirqa_routing" = "PCH_IRQ11" |
| 56 | register "pirqb_routing" = "PCH_IRQ10" |
| 57 | register "pirqc_routing" = "PCH_IRQ11" |
| 58 | register "pirqd_routing" = "PCH_IRQ11" |
| 59 | register "pirqe_routing" = "PCH_IRQ11" |
| 60 | register "pirqf_routing" = "PCH_IRQ11" |
| 61 | register "pirqg_routing" = "PCH_IRQ11" |
| 62 | register "pirqh_routing" = "PCH_IRQ11" |
| 63 | |
| 64 | # VR Settings Configuration for 5 Domains |
| 65 | #+----------------+-------+-------+-------------+-------------+-------+ |
| 66 | #| Domain/Setting | SA | IA | Ring Sliced | GT Unsliced | GT | |
| 67 | #+----------------+-------+-------+-------------+-------------+-------+ |
| 68 | #| Psi1Threshold | 20A | 20A | 20A | 20A | 20A | |
| 69 | #| Psi2Threshold | 4A | 5A | 5A | 5A | 5A | |
| 70 | #| Psi3Threshold | 1A | 1A | 1A | 1A | 1A | |
| 71 | #| Psi3Enable | 1 | 1 | 1 | 1 | 1 | |
| 72 | #| Psi4Enable | 1 | 1 | 1 | 1 | 1 | |
| 73 | #| ImonSlope | 0 | 0 | 0 | 0 | 0 | |
| 74 | #| ImonOffset | 0 | 0 | 0 | 0 | 0 | |
Duncan Laurie | 949e34c | 2017-01-21 19:11:37 -0800 | [diff] [blame] | 75 | #| IccMax | 4A | 24A | 24A | 24A | 24A | |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 76 | #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V | 1.52V | |
| 77 | #+----------------+-------+-------+-------------+-------------+-------+ |
| 78 | register "domain_vr_config[VR_SYSTEM_AGENT]" = "{ |
| 79 | .vr_config_enable = 1, |
| 80 | .psi1threshold = VR_CFG_AMP(20), |
| 81 | .psi2threshold = VR_CFG_AMP(4), |
| 82 | .psi3threshold = VR_CFG_AMP(1), |
| 83 | .psi3enable = 1, |
| 84 | .psi4enable = 1, |
| 85 | .imon_slope = 0x0, |
| 86 | .imon_offset = 0x0, |
Duncan Laurie | 949e34c | 2017-01-21 19:11:37 -0800 | [diff] [blame] | 87 | .icc_max = VR_CFG_AMP(4), |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 88 | .voltage_limit = 1520, |
| 89 | }" |
| 90 | |
| 91 | register "domain_vr_config[VR_IA_CORE]" = "{ |
| 92 | .vr_config_enable = 1, |
| 93 | .psi1threshold = VR_CFG_AMP(20), |
| 94 | .psi2threshold = VR_CFG_AMP(5), |
| 95 | .psi3threshold = VR_CFG_AMP(1), |
| 96 | .psi3enable = 1, |
| 97 | .psi4enable = 1, |
| 98 | .imon_slope = 0x0, |
| 99 | .imon_offset = 0x0, |
Duncan Laurie | 949e34c | 2017-01-21 19:11:37 -0800 | [diff] [blame] | 100 | .icc_max = VR_CFG_AMP(24), |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 101 | .voltage_limit = 1520, |
| 102 | }" |
| 103 | |
| 104 | register "domain_vr_config[VR_RING]" = "{ |
| 105 | .vr_config_enable = 1, |
| 106 | .psi1threshold = VR_CFG_AMP(20), |
| 107 | .psi2threshold = VR_CFG_AMP(5), |
| 108 | .psi3threshold = VR_CFG_AMP(1), |
| 109 | .psi3enable = 1, |
| 110 | .psi4enable = 1, |
| 111 | .imon_slope = 0x0, |
| 112 | .imon_offset = 0x0, |
Duncan Laurie | 949e34c | 2017-01-21 19:11:37 -0800 | [diff] [blame] | 113 | .icc_max = VR_CFG_AMP(24), |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 114 | .voltage_limit = 1520, |
| 115 | }" |
| 116 | |
| 117 | register "domain_vr_config[VR_GT_UNSLICED]" = "{ |
| 118 | .vr_config_enable = 1, |
| 119 | .psi1threshold = VR_CFG_AMP(20), |
| 120 | .psi2threshold = VR_CFG_AMP(5), |
| 121 | .psi3threshold = VR_CFG_AMP(1), |
| 122 | .psi3enable = 1, |
| 123 | .psi4enable = 1, |
| 124 | .imon_slope = 0x0, |
| 125 | .imon_offset = 0x0, |
Duncan Laurie | 949e34c | 2017-01-21 19:11:37 -0800 | [diff] [blame] | 126 | .icc_max = VR_CFG_AMP(24), |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 127 | .voltage_limit = 1520, |
| 128 | }" |
| 129 | |
| 130 | register "domain_vr_config[VR_GT_SLICED]" = "{ |
| 131 | .vr_config_enable = 1, |
| 132 | .psi1threshold = VR_CFG_AMP(20), |
| 133 | .psi2threshold = VR_CFG_AMP(5), |
| 134 | .psi3threshold = VR_CFG_AMP(1), |
| 135 | .psi3enable = 1, |
| 136 | .psi4enable = 1, |
| 137 | .imon_slope = 0x0, |
| 138 | .imon_offset = 0x0, |
Duncan Laurie | 949e34c | 2017-01-21 19:11:37 -0800 | [diff] [blame] | 139 | .icc_max = VR_CFG_AMP(24), |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 140 | .voltage_limit = 1520, |
| 141 | }" |
| 142 | |
Duncan Laurie | 949e34c | 2017-01-21 19:11:37 -0800 | [diff] [blame] | 143 | # Enable Root port 1 with SRCCLKREQ1# |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 144 | register "PcieRpEnable[0]" = "1" |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 145 | register "PcieRpClkReqSupport[0]" = "1" |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 146 | register "PcieRpClkReqNumber[0]" = "1" |
| 147 | |
Duncan Laurie | 949e34c | 2017-01-21 19:11:37 -0800 | [diff] [blame] | 148 | # Enable Root port 5 with SRCCLKREQ4# |
| 149 | register "PcieRpEnable[4]" = "1" |
| 150 | register "PcieRpClkReqSupport[4]" = "1" |
| 151 | register "PcieRpClkReqNumber[4]" = "4" |
| 152 | |
Subrata Banik | 2c3054c | 2016-11-22 20:21:49 +0530 | [diff] [blame] | 153 | register "usb2_ports[0]" = "USB2_PORT_LONG(OC0)" # Type-C Port 1 |
| 154 | register "usb2_ports[1]" = "USB2_PORT_FLEX(OC_SKIP)" # Camera |
| 155 | register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth |
| 156 | register "usb2_ports[4]" = "USB2_PORT_LONG(OC1)" # Type-C Port 2 |
Duncan Laurie | 949e34c | 2017-01-21 19:11:37 -0800 | [diff] [blame] | 157 | register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # H1 |
Subrata Banik | 2c3054c | 2016-11-22 20:21:49 +0530 | [diff] [blame] | 158 | register "usb2_ports[8]" = "USB2_PORT_EMPTY" # Empty |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 159 | |
Subrata Banik | 2c3054c | 2016-11-22 20:21:49 +0530 | [diff] [blame] | 160 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1 |
| 161 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2 |
Duncan Laurie | 949e34c | 2017-01-21 19:11:37 -0800 | [diff] [blame] | 162 | register "usb3_ports[2]" = "USB3_PORT_EMPTY" # Empty |
| 163 | register "usb3_ports[3]" = "USB3_PORT_EMPTY" # Empty |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 164 | |
Aaron Durbin | ed14a4e | 2016-11-09 17:04:15 -0600 | [diff] [blame] | 165 | register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3" # Touchscreen |
| 166 | register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3" # TPM |
| 167 | register "i2c_voltage[2]" = "I2C_VOLTAGE_1V8" # Touchpad |
Aaron Durbin | ed14a4e | 2016-11-09 17:04:15 -0600 | [diff] [blame] | 168 | register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" # Audio |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 169 | |
| 170 | # Enable I2C1 bus early for TPM access |
Duncan Laurie | c86fa6d | 2017-02-17 17:26:04 -0800 | [diff] [blame] | 171 | register "i2c[1]" = "{ |
| 172 | .early_init = 1, |
| 173 | .speed = I2C_SPEED_FAST, |
| 174 | .rise_time_ns = 88, |
| 175 | .fall_time_ns = 32, |
| 176 | }" |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 177 | |
| 178 | # Must leave UART0 enabled or SD/eMMC will not work as PCI |
| 179 | register "SerialIoDevMode" = "{ |
| 180 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 181 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 182 | [PchSerialIoIndexI2C2] = PchSerialIoPci, |
Duncan Laurie | 93eb8c4 | 2016-12-12 10:43:45 -0800 | [diff] [blame] | 183 | [PchSerialIoIndexI2C3] = PchSerialIoDisabled, |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 184 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
| 185 | [PchSerialIoIndexI2C5] = PchSerialIoDisabled, |
| 186 | [PchSerialIoIndexSpi0] = PchSerialIoPci, |
| 187 | [PchSerialIoIndexSpi1] = PchSerialIoPci, |
| 188 | [PchSerialIoIndexUart0] = PchSerialIoPci, |
| 189 | [PchSerialIoIndexUart1] = PchSerialIoDisabled, |
| 190 | [PchSerialIoIndexUart2] = PchSerialIoSkipInit, |
| 191 | }" |
| 192 | |
| 193 | register "speed_shift_enable" = "1" |
| 194 | register "dptf_enable" = "1" |
| 195 | register "tdp_pl2_override" = "7" |
Duncan Laurie | 690831d | 2016-12-16 08:01:09 -0800 | [diff] [blame] | 196 | register "tcc_offset" = "10" |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 197 | |
| 198 | device cpu_cluster 0 on |
| 199 | device lapic 0 on end |
| 200 | end |
| 201 | device domain 0 on |
| 202 | device pci 00.0 on end # Host Bridge |
| 203 | device pci 02.0 on end # Integrated Graphics Device |
| 204 | device pci 14.0 on end # USB xHCI |
| 205 | device pci 14.1 off end # USB xDCI (OTG) |
| 206 | device pci 14.2 on end # Thermal Subsystem |
| 207 | device pci 15.0 on |
Furquan Shaikh | 5360c7e | 2017-02-19 01:18:09 -0800 | [diff] [blame^] | 208 | chip drivers/i2c/hid |
| 209 | register "generic.hid" = ""WCOM50C1"" |
| 210 | register "generic.desc" = ""WCOM Digitizer"" |
Duncan Laurie | 2d14021 | 2016-12-15 18:51:29 -0800 | [diff] [blame] | 211 | register "generic.irq" = "IRQ_LEVEL_LOW(GPP_E7_IRQ)" |
Duncan Laurie | 658a6dc | 2017-02-17 17:27:51 -0800 | [diff] [blame] | 212 | register "generic.speed" = "I2C_SPEED_FAST_PLUS" |
Duncan Laurie | 2d14021 | 2016-12-15 18:51:29 -0800 | [diff] [blame] | 213 | register "hid_desc_reg_offset" = "0x1" |
| 214 | device i2c 0a on end |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 215 | end |
| 216 | end # I2C #0 |
| 217 | device pci 15.1 on |
| 218 | chip drivers/i2c/tpm |
| 219 | register "hid" = ""GOOG0005"" |
| 220 | register "irq" = "IRQ_EDGE_LOW(GPP_E0_IRQ)" |
| 221 | device i2c 50 on end |
| 222 | end |
| 223 | end # I2C #1 |
| 224 | device pci 15.2 on |
Wei-Ning Huang | e9a2295 | 2017-02-07 14:14:39 +0800 | [diff] [blame] | 225 | chip drivers/i2c/generic |
| 226 | register "hid" = ""GOOG5400"" |
| 227 | register "desc" = ""Touchpad"" |
| 228 | register "irq" = "IRQ_EDGE_LOW(GPP_B3_IRQ)" |
Duncan Laurie | 2d14021 | 2016-12-15 18:51:29 -0800 | [diff] [blame] | 229 | device i2c 49 on end |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 230 | end |
| 231 | end # I2C #2 |
Duncan Laurie | 93eb8c4 | 2016-12-12 10:43:45 -0800 | [diff] [blame] | 232 | device pci 15.3 off end # I2C #3 |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 233 | device pci 16.0 on end # Management Engine Interface 1 |
| 234 | device pci 16.1 off end # Management Engine Interface 2 |
| 235 | device pci 16.2 off end # Management Engine IDE-R |
| 236 | device pci 16.3 off end # Management Engine KT Redirection |
| 237 | device pci 16.4 off end # Management Engine Interface 3 |
| 238 | device pci 17.0 off end # SATA |
| 239 | device pci 19.0 on end # UART #2 |
Duncan Laurie | 949e34c | 2017-01-21 19:11:37 -0800 | [diff] [blame] | 240 | device pci 19.1 off end # I2C #5 |
Duncan Laurie | 5492bfb5 | 2017-02-17 17:40:10 -0800 | [diff] [blame] | 241 | device pci 19.2 on |
| 242 | chip drivers/i2c/max98927 |
| 243 | register "interleave_mode" = "1" |
| 244 | register "uid" = "0" |
| 245 | register "desc" = ""Right Speaker Amp"" |
| 246 | register "name" = ""MAXR"" |
| 247 | device i2c 39 on end |
| 248 | end |
| 249 | chip drivers/i2c/max98927 |
| 250 | register "interleave_mode" = "1" |
| 251 | register "uid" = "1" |
| 252 | register "desc" = ""Left Speaker Amp"" |
| 253 | register "name" = ""MAXL"" |
| 254 | device i2c 3a on end |
| 255 | end |
| 256 | chip drivers/i2c/generic |
| 257 | register "hid" = ""10EC5663"" |
| 258 | register "name" = ""RT53"" |
| 259 | register "desc" = ""Realtek RT5663"" |
| 260 | register "irq" = "IRQ_LEVEL_LOW(GPP_D9_IRQ)" |
| 261 | register "probed" = "1" |
| 262 | device i2c 13 on end |
| 263 | end |
| 264 | end # I2C #4 |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 265 | device pci 1c.0 on |
| 266 | chip drivers/intel/wifi |
| 267 | register "wake" = "GPE0_PCI_EXP" |
| 268 | device pci 00.0 on end |
| 269 | end |
| 270 | end # PCI Express Port 1 |
| 271 | device pci 1c.1 off end # PCI Express Port 2 |
| 272 | device pci 1c.2 off end # PCI Express Port 3 |
| 273 | device pci 1c.3 off end # PCI Express Port 4 |
Duncan Laurie | 949e34c | 2017-01-21 19:11:37 -0800 | [diff] [blame] | 274 | device pci 1c.4 on end # PCI Express Port 5 |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 275 | device pci 1c.5 off end # PCI Express Port 6 |
| 276 | device pci 1c.6 off end # PCI Express Port 7 |
| 277 | device pci 1c.7 off end # PCI Express Port 8 |
| 278 | device pci 1d.0 off end # PCI Express Port 9 |
| 279 | device pci 1d.1 off end # PCI Express Port 10 |
| 280 | device pci 1d.2 off end # PCI Express Port 11 |
| 281 | device pci 1d.3 off end # PCI Express Port 12 |
| 282 | device pci 1e.0 on end # UART #0 |
| 283 | device pci 1e.1 off end # UART #1 |
| 284 | device pci 1e.2 on end # GSPI #0 |
Furquan Shaikh | 231c198 | 2017-02-11 12:02:40 -0800 | [diff] [blame] | 285 | device pci 1e.3 on |
| 286 | chip drivers/spi/acpi |
| 287 | register "hid" = "ACPI_DT_NAMESPACE_HID" |
| 288 | register "uid" = "1" |
| 289 | register "compat_string" = ""fpc,fpc1020"" |
Duncan Laurie | 6c82385 | 2017-02-17 17:24:12 -0800 | [diff] [blame] | 290 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_HIGH(GPP_C8)" |
| 291 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C9)" |
Furquan Shaikh | 231c198 | 2017-02-11 12:02:40 -0800 | [diff] [blame] | 292 | device spi 0 on end |
| 293 | end |
| 294 | end # GSPI #1 |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 295 | device pci 1e.4 on end # eMMC |
| 296 | device pci 1e.5 off end # SDIO |
| 297 | device pci 1e.6 off end # SDCard |
| 298 | device pci 1f.0 on |
| 299 | chip ec/google/chromeec |
| 300 | device pnp 0c09.0 on end |
| 301 | end |
| 302 | end # LPC Interface |
| 303 | device pci 1f.1 on end # P2SB |
| 304 | device pci 1f.2 on end # Power Management Controller |
| 305 | device pci 1f.3 on end # Intel HDA |
| 306 | device pci 1f.4 on end # SMBus |
| 307 | device pci 1f.5 on end # PCH SPI |
| 308 | device pci 1f.6 off end # GbE |
| 309 | end |
| 310 | end |