Furquan Shaikh | 06cd903 | 2016-12-14 12:10:21 -0800 | [diff] [blame] | 1 | chip soc/intel/skylake |
| 2 | |
Furquan Shaikh | 2eb0837 | 2017-02-22 16:42:04 -0800 | [diff] [blame] | 3 | # Deep Sx states |
Duncan Laurie | 1fe32d6 | 2017-04-10 21:02:13 -0700 | [diff] [blame^] | 4 | register "deep_s3_enable_ac" = "0" |
| 5 | register "deep_s3_enable_dc" = "0" |
| 6 | register "deep_s5_enable_ac" = "1" |
| 7 | register "deep_s5_enable_dc" = "1" |
Furquan Shaikh | 06cd903 | 2016-12-14 12:10:21 -0800 | [diff] [blame] | 8 | register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN | DSX_EN_WAKE_PIN" |
| 9 | |
| 10 | # GPE configuration |
| 11 | # Note that GPE events called out in ASL code rely on this |
| 12 | # route. i.e. If this route changes then the affected GPE |
| 13 | # offset bits also need to be changed. |
| 14 | register "gpe0_dw0" = "GPP_B" |
| 15 | register "gpe0_dw1" = "GPP_D" |
| 16 | register "gpe0_dw2" = "GPP_E" |
| 17 | |
| 18 | # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f |
| 19 | register "gen1_dec" = "0x00fc0801" |
| 20 | register "gen2_dec" = "0x000c0201" |
| 21 | # EC memory map range is 0x900-0x9ff |
| 22 | register "gen3_dec" = "0x00fc0901" |
| 23 | |
Sumeet Pawnikar | d56fae1 | 2017-02-20 10:34:01 +0530 | [diff] [blame] | 24 | # Enable DPTF |
| 25 | register "dptf_enable" = "1" |
| 26 | |
Furquan Shaikh | 06cd903 | 2016-12-14 12:10:21 -0800 | [diff] [blame] | 27 | # FSP Configuration |
| 28 | register "ProbelessTrace" = "0" |
| 29 | register "EnableLan" = "0" |
| 30 | register "EnableSata" = "0" |
| 31 | register "SataSalpSupport" = "0" |
| 32 | register "SataMode" = "0" |
| 33 | register "SataPortsEnable[0]" = "0" |
| 34 | register "EnableAzalia" = "1" |
| 35 | register "DspEnable" = "1" |
| 36 | register "IoBufferOwnership" = "3" |
| 37 | register "EnableTraceHub" = "0" |
| 38 | register "XdciEnable" = "0" |
| 39 | register "SsicPortEnable" = "0" |
| 40 | register "SmbusEnable" = "1" |
| 41 | register "Cio2Enable" = "0" |
| 42 | register "ScsEmmcEnabled" = "1" |
| 43 | register "ScsEmmcHs400Enabled" = "1" |
Furquan Shaikh | b3b5dd9 | 2017-01-11 20:32:55 -0800 | [diff] [blame] | 44 | register "ScsSdCardEnabled" = "2" |
Furquan Shaikh | 06cd903 | 2016-12-14 12:10:21 -0800 | [diff] [blame] | 45 | register "IshEnable" = "0" |
| 46 | register "PttSwitch" = "0" |
| 47 | register "InternalGfx" = "1" |
| 48 | register "SkipExtGfxScan" = "1" |
| 49 | register "Device4Enable" = "1" |
| 50 | register "HeciEnabled" = "0" |
| 51 | register "FspSkipMpInit" = "1" |
| 52 | register "SaGv" = "3" |
| 53 | register "SerialIrqConfigSirqEnable" = "1" |
| 54 | register "PmConfigSlpS3MinAssert" = "2" # 50ms |
| 55 | register "PmConfigSlpS4MinAssert" = "1" # 1s |
| 56 | register "PmConfigSlpSusMinAssert" = "1" # 500ms |
| 57 | register "PmConfigSlpAMinAssert" = "3" # 2s |
| 58 | register "PmTimerDisabled" = "1" |
| 59 | register "SendVrMbxCmd" = "1" # IMVP8 workaround |
| 60 | |
| 61 | register "pirqa_routing" = "PCH_IRQ11" |
| 62 | register "pirqb_routing" = "PCH_IRQ10" |
| 63 | register "pirqc_routing" = "PCH_IRQ11" |
| 64 | register "pirqd_routing" = "PCH_IRQ11" |
| 65 | register "pirqe_routing" = "PCH_IRQ11" |
| 66 | register "pirqf_routing" = "PCH_IRQ11" |
| 67 | register "pirqg_routing" = "PCH_IRQ11" |
| 68 | register "pirqh_routing" = "PCH_IRQ11" |
| 69 | |
Duncan Laurie | 4fa8a6f | 2017-03-14 16:37:55 -0700 | [diff] [blame] | 70 | # VR Settings Configuration for 4 Domains |
| 71 | #+----------------+-------+-------+-------+-------+ |
| 72 | #| Domain/Setting | SA | IA | GTUS | GTS | |
| 73 | #+----------------+-------+-------+-------+-------+ |
| 74 | #| Psi1Threshold | 20A | 20A | 20A | 20A | |
| 75 | #| Psi2Threshold | 4A | 5A | 5A | 5A | |
| 76 | #| Psi3Threshold | 1A | 1A | 1A | 1A | |
| 77 | #| Psi3Enable | 1 | 1 | 1 | 1 | |
| 78 | #| Psi4Enable | 1 | 1 | 1 | 1 | |
| 79 | #| ImonSlope | 0 | 0 | 0 | 0 | |
| 80 | #| ImonOffset | 0 | 0 | 0 | 0 | |
| 81 | #| IccMax | 7A | 34A | 35A | 35A | |
| 82 | #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V | |
| 83 | #+----------------+-------+-------+-------+-------+ |
Furquan Shaikh | 06cd903 | 2016-12-14 12:10:21 -0800 | [diff] [blame] | 84 | register "domain_vr_config[VR_SYSTEM_AGENT]" = "{ |
| 85 | .vr_config_enable = 1, |
| 86 | .psi1threshold = VR_CFG_AMP(20), |
| 87 | .psi2threshold = VR_CFG_AMP(4), |
| 88 | .psi3threshold = VR_CFG_AMP(1), |
| 89 | .psi3enable = 1, |
| 90 | .psi4enable = 1, |
| 91 | .imon_slope = 0x0, |
| 92 | .imon_offset = 0x0, |
| 93 | .icc_max = VR_CFG_AMP(7), |
| 94 | .voltage_limit = 1520, |
| 95 | }" |
| 96 | |
| 97 | register "domain_vr_config[VR_IA_CORE]" = "{ |
| 98 | .vr_config_enable = 1, |
| 99 | .psi1threshold = VR_CFG_AMP(20), |
| 100 | .psi2threshold = VR_CFG_AMP(5), |
| 101 | .psi3threshold = VR_CFG_AMP(1), |
| 102 | .psi3enable = 1, |
| 103 | .psi4enable = 1, |
| 104 | .imon_slope = 0x0, |
| 105 | .imon_offset = 0x0, |
| 106 | .icc_max = VR_CFG_AMP(34), |
| 107 | .voltage_limit = 1520, |
| 108 | }" |
| 109 | |
Furquan Shaikh | 06cd903 | 2016-12-14 12:10:21 -0800 | [diff] [blame] | 110 | register "domain_vr_config[VR_GT_UNSLICED]" = "{ |
| 111 | .vr_config_enable = 1, |
| 112 | .psi1threshold = VR_CFG_AMP(20), |
| 113 | .psi2threshold = VR_CFG_AMP(5), |
| 114 | .psi3threshold = VR_CFG_AMP(1), |
| 115 | .psi3enable = 1, |
| 116 | .psi4enable = 1, |
| 117 | .imon_slope = 0x0, |
| 118 | .imon_offset = 0x0, |
| 119 | .icc_max = VR_CFG_AMP(35), |
| 120 | .voltage_limit = 1520, |
| 121 | }" |
| 122 | |
| 123 | register "domain_vr_config[VR_GT_SLICED]" = "{ |
| 124 | .vr_config_enable = 1, |
| 125 | .psi1threshold = VR_CFG_AMP(20), |
| 126 | .psi2threshold = VR_CFG_AMP(5), |
| 127 | .psi3threshold = VR_CFG_AMP(1), |
| 128 | .psi3enable = 1, |
| 129 | .psi4enable = 1, |
| 130 | .imon_slope = 0x0, |
| 131 | .imon_offset = 0x0, |
| 132 | .icc_max = VR_CFG_AMP(35), |
| 133 | .voltage_limit = 1520, |
| 134 | }" |
| 135 | |
| 136 | # Enable Root port 1. |
| 137 | register "PcieRpEnable[0]" = "1" |
| 138 | # Enable CLKREQ# |
| 139 | register "PcieRpClkReqSupport[0]" = "1" |
| 140 | # RP 1 uses SRCCLKREQ1# |
| 141 | register "PcieRpClkReqNumber[0]" = "1" |
| 142 | |
| 143 | register "usb2_ports[0]" = "USB2_PORT_LONG(OC0)" # Type-C Port 1 |
| 144 | register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port |
| 145 | register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth |
| 146 | register "usb2_ports[4]" = "USB2_PORT_LONG(OC1)" # Type-C Port 2 |
| 147 | register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port |
| 148 | register "usb2_ports[8]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port |
| 149 | |
| 150 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1 |
| 151 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2 |
| 152 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-A Port |
| 153 | register "usb3_ports[3]" = "USB3_PORT_EMPTY" # Empty |
| 154 | |
| 155 | register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3" # Touchscreen |
| 156 | register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3" # NFC |
| 157 | register "i2c_voltage[2]" = "I2C_VOLTAGE_1V8" # Camera |
| 158 | register "i2c_voltage[3]" = "I2C_VOLTAGE_1V8" # Pen |
| 159 | register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" # Camera |
| 160 | register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8" # Audio |
| 161 | |
Furquan Shaikh | 8201083 | 2017-04-10 21:27:21 -0700 | [diff] [blame] | 162 | # Use GSPI0 for cr50 TPM. Early init is required to set up a BAR for TPM |
| 163 | # communication before memory is up. |
| 164 | register "gspi[0]" = "{ |
| 165 | .speed_mhz = 1, |
| 166 | .early_init = 1, |
| 167 | }" |
| 168 | |
Furquan Shaikh | 06cd903 | 2016-12-14 12:10:21 -0800 | [diff] [blame] | 169 | # Must leave UART0 enabled or SD/eMMC will not work as PCI |
| 170 | register "SerialIoDevMode" = "{ |
| 171 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 172 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 173 | [PchSerialIoIndexI2C2] = PchSerialIoPci, |
| 174 | [PchSerialIoIndexI2C3] = PchSerialIoPci, |
| 175 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
| 176 | [PchSerialIoIndexI2C5] = PchSerialIoPci, |
| 177 | [PchSerialIoIndexSpi0] = PchSerialIoPci, |
| 178 | [PchSerialIoIndexSpi1] = PchSerialIoPci, |
| 179 | [PchSerialIoIndexUart0] = PchSerialIoPci, |
| 180 | [PchSerialIoIndexUart1] = PchSerialIoDisabled, |
| 181 | [PchSerialIoIndexUart2] = PchSerialIoSkipInit, |
| 182 | }" |
| 183 | |
| 184 | register "speed_shift_enable" = "1" |
| 185 | register "tdp_pl2_override" = "7" |
Sumeet Pawnikar | d56fae1 | 2017-02-20 10:34:01 +0530 | [diff] [blame] | 186 | register "tcc_offset" = "10" # TCC of 90C |
Furquan Shaikh | 06cd903 | 2016-12-14 12:10:21 -0800 | [diff] [blame] | 187 | |
Furquan Shaikh | d093e4a | 2017-01-13 17:27:36 -0800 | [diff] [blame] | 188 | # Use default SD card detect GPIO configuration |
Furquan Shaikh | 66386d2 | 2017-04-03 21:52:39 -0700 | [diff] [blame] | 189 | register "sdcard_cd_gpio_default" = "GPP_E15" |
Furquan Shaikh | d093e4a | 2017-01-13 17:27:36 -0800 | [diff] [blame] | 190 | |
Furquan Shaikh | 06cd903 | 2016-12-14 12:10:21 -0800 | [diff] [blame] | 191 | device cpu_cluster 0 on |
| 192 | device lapic 0 on end |
| 193 | end |
| 194 | device domain 0 on |
| 195 | device pci 00.0 on end # Host Bridge |
| 196 | device pci 02.0 on end # Integrated Graphics Device |
| 197 | device pci 14.0 on end # USB xHCI |
| 198 | device pci 14.1 off end # USB xDCI (OTG) |
| 199 | device pci 14.2 on end # Thermal Subsystem |
Furquan Shaikh | 13dae93 | 2017-01-12 02:06:47 -0800 | [diff] [blame] | 200 | device pci 15.0 on |
| 201 | chip drivers/i2c/generic |
| 202 | register "hid" = ""ATML0001"" |
| 203 | register "desc" = ""Atmel Touchscreen"" |
Furquan Shaikh | 6133508 | 2017-02-21 15:52:57 -0800 | [diff] [blame] | 204 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)" |
Furquan Shaikh | 13dae93 | 2017-01-12 02:06:47 -0800 | [diff] [blame] | 205 | register "probed" = "1" |
| 206 | device i2c 4b on end |
| 207 | end |
| 208 | end # I2C #0 |
Furquan Shaikh | 06cd903 | 2016-12-14 12:10:21 -0800 | [diff] [blame] | 209 | device pci 15.1 on end # I2C #1 |
| 210 | device pci 15.2 on end # I2C #2 |
Furquan Shaikh | c57c48b | 2017-02-15 09:53:50 -0800 | [diff] [blame] | 211 | device pci 15.3 on |
Furquan Shaikh | 5360c7e | 2017-02-19 01:18:09 -0800 | [diff] [blame] | 212 | chip drivers/i2c/hid |
| 213 | register "generic.hid" = ""WCOM50C1"" |
| 214 | register "generic.desc" = ""WCOM Digitizer"" |
Furquan Shaikh | 5b9b593 | 2017-02-21 13:16:30 -0800 | [diff] [blame] | 215 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D1_IRQ)" |
Furquan Shaikh | c57c48b | 2017-02-15 09:53:50 -0800 | [diff] [blame] | 216 | register "hid_desc_reg_offset" = "0x1" |
| 217 | device i2c 0x9 on end |
| 218 | end |
| 219 | end # I2C #3 |
Furquan Shaikh | 06cd903 | 2016-12-14 12:10:21 -0800 | [diff] [blame] | 220 | device pci 16.0 on end # Management Engine Interface 1 |
| 221 | device pci 16.1 off end # Management Engine Interface 2 |
| 222 | device pci 16.2 off end # Management Engine IDE-R |
| 223 | device pci 16.3 off end # Management Engine KT Redirection |
| 224 | device pci 16.4 off end # Management Engine Interface 3 |
| 225 | device pci 17.0 off end # SATA |
| 226 | device pci 19.0 on end # UART #2 |
Rizwan Qureshi | 7ed1eff | 2017-01-13 22:22:42 +0530 | [diff] [blame] | 227 | device pci 19.1 on |
| 228 | chip drivers/i2c/max98927 |
| 229 | register "interleave_mode" = "1" |
| 230 | register "uid" = "0" |
| 231 | register "desc" = ""SSM4567 Right Speaker Amp"" |
| 232 | register "name" = ""MAXR"" |
| 233 | device i2c 39 on end |
| 234 | end |
| 235 | chip drivers/i2c/max98927 |
| 236 | register "interleave_mode" = "1" |
| 237 | register "uid" = "1" |
| 238 | register "desc" = ""SSM4567 Left Speaker Amp"" |
| 239 | register "name" = ""MAXL"" |
| 240 | device i2c 3A on end |
| 241 | end |
Rizwan Qureshi | a04ceaa | 2017-02-07 21:11:45 +0530 | [diff] [blame] | 242 | chip drivers/i2c/generic |
| 243 | register "hid" = ""10EC5663"" |
| 244 | register "name" = ""RT53"" |
| 245 | register "desc" = ""Realtek RT5663"" |
Rizwan Qureshi | 6a1503e | 2017-03-16 13:19:22 +0530 | [diff] [blame] | 246 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D9)" |
Rizwan Qureshi | a04ceaa | 2017-02-07 21:11:45 +0530 | [diff] [blame] | 247 | register "probed" = "1" |
| 248 | device i2c 13 on end |
| 249 | end |
Rizwan Qureshi | 7ed1eff | 2017-01-13 22:22:42 +0530 | [diff] [blame] | 250 | end # I2C #5 |
Furquan Shaikh | 06cd903 | 2016-12-14 12:10:21 -0800 | [diff] [blame] | 251 | device pci 19.2 on end # I2C #4 |
| 252 | device pci 1c.0 on |
| 253 | chip drivers/intel/wifi |
| 254 | register "wake" = "GPE0_PCI_EXP" |
| 255 | device pci 00.0 on end |
| 256 | end |
| 257 | end # PCI Express Port 1 |
| 258 | device pci 1c.1 off end # PCI Express Port 2 |
| 259 | device pci 1c.2 off end # PCI Express Port 3 |
| 260 | device pci 1c.3 off end # PCI Express Port 4 |
| 261 | device pci 1c.4 off end # PCI Express Port 5 |
| 262 | device pci 1c.5 off end # PCI Express Port 6 |
| 263 | device pci 1c.6 off end # PCI Express Port 7 |
| 264 | device pci 1c.7 off end # PCI Express Port 8 |
| 265 | device pci 1d.0 off end # PCI Express Port 9 |
| 266 | device pci 1d.1 off end # PCI Express Port 10 |
| 267 | device pci 1d.2 off end # PCI Express Port 11 |
| 268 | device pci 1d.3 off end # PCI Express Port 12 |
| 269 | device pci 1e.0 on end # UART #0 |
| 270 | device pci 1e.1 off end # UART #1 |
| 271 | device pci 1e.2 on end # GSPI #0 |
| 272 | device pci 1e.3 on end # GSPI #1 |
| 273 | device pci 1e.4 on end # eMMC |
| 274 | device pci 1e.5 off end # SDIO |
Furquan Shaikh | b3b5dd9 | 2017-01-11 20:32:55 -0800 | [diff] [blame] | 275 | device pci 1e.6 on end # SDCard |
Furquan Shaikh | 06cd903 | 2016-12-14 12:10:21 -0800 | [diff] [blame] | 276 | device pci 1f.0 on |
| 277 | chip ec/google/chromeec |
| 278 | device pnp 0c09.0 on end |
| 279 | end |
| 280 | end # LPC Interface |
| 281 | device pci 1f.1 on end # P2SB |
| 282 | device pci 1f.2 on end # Power Management Controller |
| 283 | device pci 1f.3 on end # Intel HDA |
| 284 | device pci 1f.4 on end # SMBus |
| 285 | device pci 1f.5 on end # PCH SPI |
| 286 | device pci 1f.6 off end # GbE |
| 287 | end |
| 288 | end |