Lee Leahy | c421041 | 2015-06-29 11:37:56 -0700 | [diff] [blame] | 1 | chip soc/intel/skylake |
| 2 | |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 3 | # Enable deep Sx states |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 4 | register "deep_s5_enable" = "1" |
| 5 | register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN" |
| 6 | |
| 7 | # GPE configuration |
| 8 | # Note that GPE events called out in ASL code rely on this |
| 9 | # route. i.e. If this route changes then the affected GPE |
| 10 | # offset bits also need to be changed. |
Duncan Laurie | d6a42f9 | 2015-09-08 16:28:21 -0700 | [diff] [blame] | 11 | register "gpe0_dw0" = "GPP_B" |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 12 | register "gpe0_dw1" = "GPP_D" |
| 13 | register "gpe0_dw2" = "GPP_E" |
| 14 | |
Subrata Banik | 89f6d60 | 2016-07-26 15:37:11 +0530 | [diff] [blame^] | 15 | # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 16 | register "gen1_dec" = "0x00fc0801" |
Subrata Banik | 89f6d60 | 2016-07-26 15:37:11 +0530 | [diff] [blame^] | 17 | register "gen2_dec" = "0x000c0201" |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 18 | |
Subrata Banik | 2a696c0 | 2016-02-08 17:19:10 +0530 | [diff] [blame] | 19 | # Enable "Intel Speed Shift Technology" |
| 20 | register "speed_shift_enable" = "1" |
| 21 | |
Duncan Laurie | 74b964e | 2015-09-04 10:41:02 -0700 | [diff] [blame] | 22 | # Enable DPTF |
| 23 | register "dptf_enable" = "1" |
| 24 | |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 25 | # FSP Configuration |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 26 | register "EnableAzalia" = "1" |
| 27 | register "DspEnable" = "1" |
| 28 | register "IoBufferOwnership" = "3" |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 29 | register "SmbusEnable" = "1" |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 30 | register "ScsEmmcEnabled" = "1" |
| 31 | register "ScsEmmcHs400Enabled" = "1" |
| 32 | register "ScsSdCardEnabled" = "2" |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 33 | register "InternalGfx" = "1" |
| 34 | register "SkipExtGfxScan" = "1" |
| 35 | register "Device4Enable" = "1" |
Archana Patni | 30f53cd | 2015-11-11 01:30:41 +0530 | [diff] [blame] | 36 | register "HeciEnabled" = "0" |
haridhar | f991bf0 | 2015-12-04 10:41:23 +0530 | [diff] [blame] | 37 | register "SaGv" = "3" |
Archana Patni | 4af905a | 2015-12-19 00:10:17 +0530 | [diff] [blame] | 38 | register "PmTimerDisabled" = "1" |
Rizwan Qureshi | fb87998 | 2015-11-19 16:06:28 +0530 | [diff] [blame] | 39 | |
| 40 | # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch |
| 41 | # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s |
| 42 | register "PmConfigSlpS3MinAssert" = "0x02" |
| 43 | |
| 44 | # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s |
| 45 | register "PmConfigSlpS4MinAssert" = "0x04" |
| 46 | |
| 47 | # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s |
| 48 | register "PmConfigSlpSusMinAssert" = "0x03" |
| 49 | |
| 50 | # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s |
| 51 | register "PmConfigSlpAMinAssert" = "0x03" |
| 52 | |
| 53 | # Determines if enable Serial IRQ. Values 0: Disabled, 1: Enabled |
| 54 | register "SerialIrqConfigSirqEnable" = "0x01" |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 55 | |
Rizwan Qureshi | 3fc4277 | 2015-11-20 11:47:40 +0530 | [diff] [blame] | 56 | # VR Settings Configuration for 5 Domains |
| 57 | #+----------------+-------+-------+-------------+-------------+-------+ |
| 58 | #| Domain/Setting | SA | IA | Ring Sliced | GT Unsliced | GT | |
| 59 | #+----------------+-------+-------+-------------+-------------+-------+ |
| 60 | #| Psi1Threshold | 20A | 20A | 20A | 20A | 20A | |
| 61 | #| Psi2Threshold | 4A | 5A | 5A | 5A | 5A | |
| 62 | #| Psi3Threshold | 1A | 1A | 1A | 1A | 1A | |
| 63 | #| Psi3Enable | 1 | 1 | 1 | 1 | 1 | |
| 64 | #| Psi4Enable | 1 | 1 | 1 | 1 | 1 | |
| 65 | #| ImonSlope | 0 | 0 | 0 | 0 | 0 | |
| 66 | #| ImonOffset | 0 | 0 | 0 | 0 | 0 | |
| 67 | #| IccMax | 7A | 34A | 34A | 35A | 35A | |
| 68 | #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V | 1.52V | |
| 69 | #+----------------+-------+-------+-------------+-------------+-------+ |
| 70 | register "domain_vr_config[VR_SYSTEM_AGENT]" = "{ |
| 71 | .vr_config_enable = 1, \ |
| 72 | .psi1threshold = 0x50, \ |
| 73 | .psi2threshold = 0x10, \ |
| 74 | .psi3threshold = 0x4, \ |
| 75 | .psi3enable = 1, \ |
| 76 | .psi4enable = 1, \ |
| 77 | .imon_slope = 0x0, \ |
| 78 | .imon_offset = 0x0, \ |
| 79 | .icc_max = 0x1C, \ |
| 80 | .voltage_limit = 0x5F0 \ |
| 81 | }" |
| 82 | |
| 83 | register "domain_vr_config[VR_IA_CORE]" = "{ |
| 84 | .vr_config_enable = 1, \ |
| 85 | .psi1threshold = 0x50, \ |
| 86 | .psi2threshold = 0x14, \ |
| 87 | .psi3threshold = 0x4, \ |
| 88 | .psi3enable = 1, \ |
| 89 | .psi4enable = 1, \ |
| 90 | .imon_slope = 0x0, \ |
| 91 | .imon_offset = 0x0, \ |
| 92 | .icc_max = 0x88, \ |
| 93 | .voltage_limit = 0x5F0 \ |
| 94 | }" |
| 95 | register "domain_vr_config[VR_RING]" = "{ |
| 96 | .vr_config_enable = 1, \ |
| 97 | .psi1threshold = 0x50, \ |
| 98 | .psi2threshold = 0x14, \ |
| 99 | .psi3threshold = 0x4, \ |
| 100 | .psi3enable = 1, \ |
| 101 | .psi4enable = 1, \ |
| 102 | .imon_slope = 0x0, \ |
| 103 | .imon_offset = 0x0, \ |
| 104 | .icc_max = 0x88, \ |
| 105 | .voltage_limit = 0x5F0, \ |
| 106 | }" |
| 107 | |
| 108 | register "domain_vr_config[VR_GT_UNSLICED]" = "{ |
| 109 | .vr_config_enable = 1, \ |
| 110 | .psi1threshold = 0x50, \ |
| 111 | .psi2threshold = 0x14, \ |
| 112 | .psi3threshold = 0x4, \ |
| 113 | .psi3enable = 1, \ |
| 114 | .psi4enable = 1, \ |
| 115 | .imon_slope = 0x0, \ |
| 116 | .imon_offset = 0x0, \ |
| 117 | .icc_max = 0x8C ,\ |
| 118 | .voltage_limit = 0x5F0 \ |
| 119 | }" |
| 120 | |
| 121 | register "domain_vr_config[VR_GT_SLICED]" = "{ |
| 122 | .vr_config_enable = 1, \ |
| 123 | .psi1threshold = 0x50, \ |
| 124 | .psi2threshold = 0x14, \ |
| 125 | .psi3threshold = 0x4, \ |
| 126 | .psi3enable = 1, \ |
| 127 | .psi4enable = 1, \ |
| 128 | .imon_slope = 0x0, \ |
| 129 | .imon_offset = 0x0, \ |
| 130 | .icc_max = 0x8C, \ |
| 131 | .voltage_limit = 0x5F0 \ |
| 132 | }" |
| 133 | |
Rizwan Qureshi | fefce18 | 2015-11-19 16:30:18 +0530 | [diff] [blame] | 134 | register "FspSkipMpInit" = "1" |
| 135 | |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 136 | # Enable Root port 1 and 5. |
| 137 | register "PcieRpEnable[0]" = "1" |
| 138 | register "PcieRpEnable[4]" = "1" |
| 139 | # Enable CLKREQ# |
| 140 | register "PcieRpClkReqSupport[0]" = "1" |
| 141 | register "PcieRpClkReqSupport[4]" = "1" |
| 142 | # RP 1 uses SRCCLKREQ1# while RP 5 uses SRCCLKREQ2# |
| 143 | register "PcieRpClkReqNumber[0]" = "1" |
| 144 | register "PcieRpClkReqNumber[4]" = "2" |
Lee Leahy | c421041 | 2015-06-29 11:37:56 -0700 | [diff] [blame] | 145 | |
Duncan Laurie | fe86666 | 2015-10-16 13:58:11 -0700 | [diff] [blame] | 146 | register "usb2_ports[0]" = "USB2_PORT_TYPE_C" # Type-C Port 1 |
| 147 | register "usb2_ports[1]" = "USB2_PORT_TYPE_C" # Type-C Port 2 |
| 148 | register "usb2_ports[2]" = "USB2_PORT_MID" # Bluetooth |
| 149 | register "usb2_ports[4]" = "USB2_PORT_MID" # Type-A Port (card) |
| 150 | register "usb2_ports[6]" = "USB2_PORT_FLEX" # Camera |
| 151 | register "usb2_ports[8]" = "USB2_PORT_LONG" # Type-A Port (board) |
Duncan Laurie | 2b9595a | 2015-08-28 17:48:11 -0700 | [diff] [blame] | 152 | |
Duncan Laurie | fe86666 | 2015-10-16 13:58:11 -0700 | [diff] [blame] | 153 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT" # Type-C Port 1 |
| 154 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT" # Type-C Port 2 |
| 155 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT" # Type-A Port (card) |
| 156 | register "usb3_ports[3]" = "USB3_PORT_DEFAULT" # Type-A Port (board) |
Duncan Laurie | c8d45ac | 2016-06-06 17:21:00 -0700 | [diff] [blame] | 157 | |
| 158 | register "i2c[4].voltage" = "I2C_VOLTAGE_1V8" # I2C4 is 1.8V |
Rizwan Qureshi | 9cd8e5a | 2015-10-05 19:13:01 +0530 | [diff] [blame] | 159 | |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 160 | # Must leave UART0 enabled or SD/eMMC will not work as PCI |
| 161 | register "SerialIoDevMode" = "{ \ |
| 162 | [PchSerialIoIndexI2C0] = PchSerialIoPci, \ |
| 163 | [PchSerialIoIndexI2C1] = PchSerialIoPci, \ |
| 164 | [PchSerialIoIndexI2C2] = PchSerialIoDisabled, \ |
| 165 | [PchSerialIoIndexI2C3] = PchSerialIoDisabled, \ |
| 166 | [PchSerialIoIndexI2C4] = PchSerialIoPci, \ |
| 167 | [PchSerialIoIndexI2C5] = PchSerialIoDisabled, \ |
| 168 | [PchSerialIoIndexSpi0] = PchSerialIoDisabled, \ |
| 169 | [PchSerialIoIndexSpi1] = PchSerialIoDisabled, \ |
| 170 | [PchSerialIoIndexUart0] = PchSerialIoPci, \ |
| 171 | [PchSerialIoIndexUart1] = PchSerialIoDisabled, \ |
Rizwan Qureshi | 9cd8e5a | 2015-10-05 19:13:01 +0530 | [diff] [blame] | 172 | [PchSerialIoIndexUart2] = PchSerialIoSkipInit, \ |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 173 | }" |
Lee Leahy | c421041 | 2015-06-29 11:37:56 -0700 | [diff] [blame] | 174 | |
pchandri | f28929d | 2016-01-19 10:49:51 -0800 | [diff] [blame] | 175 | # PL2 override 25W |
| 176 | register "tdp_pl2_override" = "25" |
| 177 | |
Subrata Banik | 9a8b67d | 2016-04-20 14:19:53 +0530 | [diff] [blame] | 178 | # Send an extra VR mailbox command for the PS4 exit issue |
| 179 | register "SendVrMbxCmd" = "2" |
| 180 | |
Duncan Laurie | 9482cf6 | 2016-06-22 11:31:51 -0700 | [diff] [blame] | 181 | # Use default SD card detect GPIO configuration |
| 182 | register "sdcard_cd_gpio_default" = "GPP_A7" |
| 183 | |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 184 | device cpu_cluster 0 on |
Lee Leahy | c421041 | 2015-06-29 11:37:56 -0700 | [diff] [blame] | 185 | device lapic 0 on end |
| 186 | end |
| 187 | device domain 0 on |
Lee Leahy | c421041 | 2015-06-29 11:37:56 -0700 | [diff] [blame] | 188 | device pci 00.0 on end # Host Bridge |
| 189 | device pci 02.0 on end # Integrated Graphics Device |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 190 | device pci 14.0 on end # USB xHCI |
| 191 | device pci 14.1 off end # USB xDCI (OTG) |
Lee Leahy | c421041 | 2015-06-29 11:37:56 -0700 | [diff] [blame] | 192 | device pci 14.2 on end # Thermal Subsystem |
Duncan Laurie | 9482cf6 | 2016-06-22 11:31:51 -0700 | [diff] [blame] | 193 | device pci 15.0 on |
| 194 | chip drivers/i2c/generic |
| 195 | register "hid" = ""ELAN0001"" |
| 196 | register "desc" = ""ELAN Touchscreen"" |
| 197 | register "irq" = "IRQ_EDGE_LOW(GPP_E7_IRQ)" |
| 198 | device i2c 10 on end |
| 199 | end |
| 200 | end # I2C #0 |
| 201 | device pci 15.1 on |
| 202 | chip drivers/i2c/generic |
| 203 | register "hid" = ""ELAN0000"" |
| 204 | register "desc" = ""ELAN Touchpad"" |
| 205 | register "irq" = "IRQ_EDGE_LOW(GPP_B3_IRQ)" |
| 206 | register "wake" = "GPE0_DW0_05" |
| 207 | device i2c 15 on end |
| 208 | end |
| 209 | end # I2C #1 |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 210 | device pci 15.2 off end # I2C #2 |
| 211 | device pci 15.3 off end # I2C #3 |
Lee Leahy | c421041 | 2015-06-29 11:37:56 -0700 | [diff] [blame] | 212 | device pci 16.0 on end # Management Engine Interface 1 |
| 213 | device pci 16.1 off end # Management Engine Interface 2 |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 214 | device pci 16.2 off end # Management Engine IDE-R |
| 215 | device pci 16.3 off end # Management Engine KT Redirection |
| 216 | device pci 16.4 off end # Management Engine Interface 3 |
| 217 | device pci 17.0 off end # SATA |
| 218 | device pci 19.0 on end # UART #2 |
| 219 | device pci 19.1 off end # I2C #5 |
Duncan Laurie | 9482cf6 | 2016-06-22 11:31:51 -0700 | [diff] [blame] | 220 | device pci 19.2 on |
| 221 | chip drivers/i2c/nau8825 |
| 222 | register "irq" = "IRQ_LEVEL_LOW(GPP_F10_IRQ)" |
| 223 | register "jkdet_enable" = "1" |
| 224 | register "jkdet_pull_enable" = "1" |
| 225 | register "jkdet_pull_up" = "1" |
| 226 | register "jkdet_polarity" = "1" # ActiveLow |
| 227 | register "vref_impedance" = "2" # 125kOhm |
| 228 | register "micbias_voltage" = "6" # 2.754 |
| 229 | register "sar_threshold_num" = "4" |
| 230 | register "sar_threshold[0]" = "0x08" |
| 231 | register "sar_threshold[1]" = "0x12" |
| 232 | register "sar_threshold[2]" = "0x26" |
| 233 | register "sar_threshold[3]" = "0x73" |
| 234 | register "sar_hysteresis" = "0" |
| 235 | register "sar_voltage" = "6" |
| 236 | register "sar_compare_time" = "1" # 1us |
| 237 | register "sar_sampling_time" = "1" # 4us |
| 238 | register "short_key_debounce" = "3" # 30ms |
| 239 | register "jack_insert_debounce" = "7" # 512ms |
| 240 | register "jack_eject_debounce" = "0" |
| 241 | device i2c 1a on end |
| 242 | end |
| 243 | chip drivers/i2c/generic |
| 244 | register "hid" = ""INT343B"" |
| 245 | register "desc" = ""SSM4567 Left Speaker Amp"" |
| 246 | register "uid" = "0" |
| 247 | register "device_present_gpio" = "GPP_E3" |
| 248 | device i2c 34 on end |
| 249 | end |
| 250 | chip drivers/i2c/generic |
| 251 | register "hid" = ""INT343B"" |
| 252 | register "desc" = ""SSM4567 Right Speaker Amp"" |
| 253 | register "uid" = "1" |
| 254 | register "device_present_gpio" = "GPP_E3" |
| 255 | device i2c 35 on end |
| 256 | end |
| 257 | end # I2C #4 |
| 258 | device pci 1c.0 on |
| 259 | chip drivers/intel/wifi |
| 260 | register "wake" = "GPE0_DW0_16" |
| 261 | device pci 00.0 on end |
| 262 | end |
| 263 | end # PCI Express Port 1 |
Lee Leahy | c421041 | 2015-06-29 11:37:56 -0700 | [diff] [blame] | 264 | device pci 1c.1 off end # PCI Express Port 2 |
| 265 | device pci 1c.2 off end # PCI Express Port 3 |
| 266 | device pci 1c.3 off end # PCI Express Port 4 |
Pratik Prajapati | f1acb9b | 2015-08-13 15:21:37 -0700 | [diff] [blame] | 267 | device pci 1c.4 on end # PCI Express Port 5 |
Lee Leahy | c421041 | 2015-06-29 11:37:56 -0700 | [diff] [blame] | 268 | device pci 1c.5 off end # PCI Express Port 6 |
| 269 | device pci 1c.6 off end # PCI Express Port 7 |
| 270 | device pci 1c.7 off end # PCI Express Port 8 |
Pratik Prajapati | f1acb9b | 2015-08-13 15:21:37 -0700 | [diff] [blame] | 271 | device pci 1d.0 off end # PCI Express Port 9 |
Lee Leahy | c421041 | 2015-06-29 11:37:56 -0700 | [diff] [blame] | 272 | device pci 1d.1 off end # PCI Express Port 10 |
| 273 | device pci 1d.2 off end # PCI Express Port 11 |
| 274 | device pci 1d.3 off end # PCI Express Port 12 |
| 275 | device pci 1e.0 on end # UART #0 |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 276 | device pci 1e.1 off end # UART #1 |
| 277 | device pci 1e.2 off end # GSPI #0 |
| 278 | device pci 1e.3 off end # GSPI #1 |
Lee Leahy | c421041 | 2015-06-29 11:37:56 -0700 | [diff] [blame] | 279 | device pci 1e.4 on end # eMMC |
| 280 | device pci 1e.5 off end # SDIO |
| 281 | device pci 1e.6 on end # SDCard |
| 282 | device pci 1f.0 on |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 283 | chip drivers/pc80/tpm |
| 284 | device pnp 0c31.0 on end |
| 285 | end |
Lee Leahy | c421041 | 2015-06-29 11:37:56 -0700 | [diff] [blame] | 286 | chip ec/google/chromeec |
| 287 | device pnp 0c09.0 on end |
| 288 | end |
| 289 | end # LPC Interface |
Archana Patni | 30f53cd | 2015-11-11 01:30:41 +0530 | [diff] [blame] | 290 | device pci 1f.1 on end # P2SB |
Naveen Krishna Chatradhi | 133dcd3 | 2015-07-10 16:00:51 +0530 | [diff] [blame] | 291 | device pci 1f.2 on end # Power Management Controller |
Duncan Laurie | 9482cf6 | 2016-06-22 11:31:51 -0700 | [diff] [blame] | 292 | device pci 1f.3 on |
| 293 | chip drivers/generic/max98357a |
| 294 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT(GPP_E3)" |
| 295 | register "device_present_gpio" = "GPP_E3" |
| 296 | register "device_present_gpio_invert" = "1" |
| 297 | device generic 0 on end |
| 298 | end |
| 299 | end # Intel HDA |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 300 | device pci 1f.4 on end # SMBus |
| 301 | device pci 1f.5 on end # PCH SPI |
| 302 | device pci 1f.6 off end # GbE |
Lee Leahy | c421041 | 2015-06-29 11:37:56 -0700 | [diff] [blame] | 303 | end |
| 304 | end |