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 | 1fe32d6 | 2017-04-10 21:02:13 -0700 | [diff] [blame] | 4 | register "deep_s5_enable_ac" = "1" |
| 5 | register "deep_s5_enable_dc" = "1" |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 6 | register "deep_sx_config" = "DSX_EN_LAN_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. |
Duncan Laurie | d6a42f9 | 2015-09-08 16:28:21 -0700 | [diff] [blame] | 12 | register "gpe0_dw0" = "GPP_B" |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 13 | register "gpe0_dw1" = "GPP_D" |
| 14 | register "gpe0_dw2" = "GPP_E" |
| 15 | |
Subrata Banik | 89f6d60 | 2016-07-26 15:37:11 +0530 | [diff] [blame] | 16 | # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 17 | register "gen1_dec" = "0x00fc0801" |
Subrata Banik | 89f6d60 | 2016-07-26 15:37:11 +0530 | [diff] [blame] | 18 | register "gen2_dec" = "0x000c0201" |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 19 | |
Duncan Laurie | 74b964e | 2015-09-04 10:41:02 -0700 | [diff] [blame] | 20 | # Enable DPTF |
| 21 | register "dptf_enable" = "1" |
| 22 | |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 23 | # FSP Configuration |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 24 | register "DspEnable" = "1" |
| 25 | register "IoBufferOwnership" = "3" |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 26 | register "ScsEmmcHs400Enabled" = "1" |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 27 | register "SkipExtGfxScan" = "1" |
Praveen Hodagatta Pranesh | aa6a8fb | 2019-10-29 14:47:11 +0800 | [diff] [blame] | 28 | register "SaGv" = "SaGv_Enabled" |
Rizwan Qureshi | fb87998 | 2015-11-19 16:06:28 +0530 | [diff] [blame] | 29 | |
| 30 | # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch |
| 31 | # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s |
| 32 | register "PmConfigSlpS3MinAssert" = "0x02" |
| 33 | |
| 34 | # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s |
| 35 | register "PmConfigSlpS4MinAssert" = "0x04" |
| 36 | |
| 37 | # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s |
| 38 | register "PmConfigSlpSusMinAssert" = "0x03" |
| 39 | |
| 40 | # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s |
| 41 | register "PmConfigSlpAMinAssert" = "0x03" |
| 42 | |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 43 | |
Michael Niewöhner | dd32103 | 2019-10-09 21:02:36 +0200 | [diff] [blame] | 44 | # VR Settings Configuration for 4 Domains |
| 45 | #+----------------+-----------+-----------+-------------+----------+ |
| 46 | #| Domain/Setting | SA | IA | GT Unsliced | GT | |
| 47 | #+----------------+-----------+-----------+-------------+----------+ |
| 48 | #| Psi1Threshold | 20A | 20A | 20A | 20A | |
| 49 | #| Psi2Threshold | 4A | 5A | 5A | 5A | |
| 50 | #| Psi3Threshold | 1A | 1A | 1A | 1A | |
| 51 | #| Psi3Enable | 1 | 1 | 1 | 1 | |
| 52 | #| Psi4Enable | 1 | 1 | 1 | 1 | |
| 53 | #| ImonSlope | 0 | 0 | 0 | 0 | |
| 54 | #| ImonOffset | 0 | 0 | 0 | 0 | |
| 55 | #| IccMax | 7A | 34A | 35A | 35A | |
| 56 | #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V | |
| 57 | #+----------------+-----------+-----------+-------------+----------+ |
Rizwan Qureshi | 3fc4277 | 2015-11-20 11:47:40 +0530 | [diff] [blame] | 58 | register "domain_vr_config[VR_SYSTEM_AGENT]" = "{ |
Michael Niewöhner | dd32103 | 2019-10-09 21:02:36 +0200 | [diff] [blame] | 59 | .vr_config_enable = 1, |
| 60 | .psi1threshold = VR_CFG_AMP(20), |
| 61 | .psi2threshold = VR_CFG_AMP(4), |
| 62 | .psi3threshold = VR_CFG_AMP(1), |
| 63 | .psi3enable = 1, |
| 64 | .psi4enable = 1, |
| 65 | .imon_slope = 0x0, |
| 66 | .imon_offset = 0x0, |
| 67 | .icc_max = VR_CFG_AMP(7), |
| 68 | .voltage_limit = 1520, |
Rizwan Qureshi | 3fc4277 | 2015-11-20 11:47:40 +0530 | [diff] [blame] | 69 | }" |
| 70 | |
| 71 | register "domain_vr_config[VR_IA_CORE]" = "{ |
Michael Niewöhner | dd32103 | 2019-10-09 21:02:36 +0200 | [diff] [blame] | 72 | .vr_config_enable = 1, |
| 73 | .psi1threshold = VR_CFG_AMP(20), |
| 74 | .psi2threshold = VR_CFG_AMP(5), |
| 75 | .psi3threshold = VR_CFG_AMP(1), |
| 76 | .psi3enable = 1, |
| 77 | .psi4enable = 1, |
| 78 | .imon_slope = 0x0, |
| 79 | .imon_offset = 0x0, |
| 80 | .icc_max = VR_CFG_AMP(34), |
| 81 | .voltage_limit = 1520, |
Rizwan Qureshi | 3fc4277 | 2015-11-20 11:47:40 +0530 | [diff] [blame] | 82 | }" |
| 83 | |
| 84 | register "domain_vr_config[VR_GT_UNSLICED]" = "{ |
Michael Niewöhner | dd32103 | 2019-10-09 21:02:36 +0200 | [diff] [blame] | 85 | .vr_config_enable = 1, |
| 86 | .psi1threshold = VR_CFG_AMP(20), |
| 87 | .psi2threshold = VR_CFG_AMP(5), |
| 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(35), |
| 94 | .voltage_limit = 1520, |
Rizwan Qureshi | 3fc4277 | 2015-11-20 11:47:40 +0530 | [diff] [blame] | 95 | }" |
| 96 | |
| 97 | register "domain_vr_config[VR_GT_SLICED]" = "{ |
Michael Niewöhner | dd32103 | 2019-10-09 21:02:36 +0200 | [diff] [blame] | 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(35), |
| 107 | .voltage_limit = 1520, |
Rizwan Qureshi | 3fc4277 | 2015-11-20 11:47:40 +0530 | [diff] [blame] | 108 | }" |
| 109 | |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 110 | # Enable Root port 1 and 5. |
| 111 | register "PcieRpEnable[0]" = "1" |
| 112 | register "PcieRpEnable[4]" = "1" |
| 113 | # Enable CLKREQ# |
| 114 | register "PcieRpClkReqSupport[0]" = "1" |
| 115 | register "PcieRpClkReqSupport[4]" = "1" |
| 116 | # RP 1 uses SRCCLKREQ1# while RP 5 uses SRCCLKREQ2# |
| 117 | register "PcieRpClkReqNumber[0]" = "1" |
| 118 | register "PcieRpClkReqNumber[4]" = "2" |
Lee Leahy | c421041 | 2015-06-29 11:37:56 -0700 | [diff] [blame] | 119 | |
Felix Singer | cc93db9 | 2023-10-23 16:26:20 +0200 | [diff] [blame] | 120 | register "usb2_ports" = "{ |
| 121 | [0] = USB2_PORT_TYPE_C(OC0), /* Type-C Port 1 */ |
| 122 | [1] = USB2_PORT_TYPE_C(OC1), /* Type-C Port 2 */ |
| 123 | [2] = USB2_PORT_MID(OC_SKIP), /* Bluetooth */ |
| 124 | [4] = USB2_PORT_MID(OC2), /* Type-A Port (card) */ |
| 125 | [6] = USB2_PORT_FLEX(OC_SKIP), /* Camera */ |
| 126 | [8] = USB2_PORT_LONG(OC3), /* Type-A Port (board) */ |
| 127 | }" |
Duncan Laurie | 2b9595a | 2015-08-28 17:48:11 -0700 | [diff] [blame] | 128 | |
Felix Singer | cc93db9 | 2023-10-23 16:26:20 +0200 | [diff] [blame] | 129 | register "usb3_ports" = "{ |
| 130 | [0] = USB3_PORT_DEFAULT(OC0), /* Type-C Port 1 */ |
| 131 | [1] = USB3_PORT_DEFAULT(OC1), /* Type-C Port 2 */ |
| 132 | [2] = USB3_PORT_DEFAULT(OC2), /* Type-A Port (card) */ |
| 133 | [3] = USB3_PORT_DEFAULT(OC3), /* Type-A Port (board) */ |
| 134 | }" |
Duncan Laurie | c8d45ac | 2016-06-06 17:21:00 -0700 | [diff] [blame] | 135 | |
Aaron Durbin | ed14a4e | 2016-11-09 17:04:15 -0600 | [diff] [blame] | 136 | register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" # I2C4 is 1.8V |
Rizwan Qureshi | 9cd8e5a | 2015-10-05 19:13:01 +0530 | [diff] [blame] | 137 | |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 138 | # Must leave UART0 enabled or SD/eMMC will not work as PCI |
Felix Singer | 21b5a9a | 2023-10-23 07:26:28 +0200 | [diff] [blame] | 139 | register "SerialIoDevMode" = "{ |
| 140 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 141 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 142 | [PchSerialIoIndexI2C2] = PchSerialIoDisabled, |
| 143 | [PchSerialIoIndexI2C3] = PchSerialIoDisabled, |
| 144 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
| 145 | [PchSerialIoIndexI2C5] = PchSerialIoDisabled, |
| 146 | [PchSerialIoIndexSpi0] = PchSerialIoDisabled, |
| 147 | [PchSerialIoIndexSpi1] = PchSerialIoDisabled, |
| 148 | [PchSerialIoIndexUart0] = PchSerialIoPci, |
| 149 | [PchSerialIoIndexUart1] = PchSerialIoDisabled, |
| 150 | [PchSerialIoIndexUart2] = PchSerialIoSkipInit, |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 151 | }" |
Lee Leahy | c421041 | 2015-06-29 11:37:56 -0700 | [diff] [blame] | 152 | |
pchandri | f28929d | 2016-01-19 10:49:51 -0800 | [diff] [blame] | 153 | # PL2 override 25W |
Sumeet R Pawnikar | 97c5464 | 2020-05-10 01:24:11 +0530 | [diff] [blame] | 154 | register "power_limits_config" = "{ |
| 155 | .tdp_pl2_override = 25, |
| 156 | }" |
pchandri | f28929d | 2016-01-19 10:49:51 -0800 | [diff] [blame] | 157 | |
Subrata Banik | 9a8b67d | 2016-04-20 14:19:53 +0530 | [diff] [blame] | 158 | # Send an extra VR mailbox command for the PS4 exit issue |
| 159 | register "SendVrMbxCmd" = "2" |
| 160 | |
Duncan Laurie | 9482cf6 | 2016-06-22 11:31:51 -0700 | [diff] [blame] | 161 | # Use default SD card detect GPIO configuration |
Angel Pons | 6bd99f9 | 2021-02-20 00:16:47 +0100 | [diff] [blame] | 162 | register "sdcard_cd_gpio" = "GPP_A7" |
Duncan Laurie | 9482cf6 | 2016-06-22 11:31:51 -0700 | [diff] [blame] | 163 | |
Lee Leahy | c421041 | 2015-06-29 11:37:56 -0700 | [diff] [blame] | 164 | device domain 0 on |
Felix Singer | a0c3ba0 | 2023-11-12 18:18:51 +0000 | [diff] [blame] | 165 | device ref igpu on end |
| 166 | device ref sa_thermal on end |
| 167 | device ref south_xhci on end |
| 168 | device ref thermal on end |
| 169 | device ref i2c0 on |
Duncan Laurie | 9482cf6 | 2016-06-22 11:31:51 -0700 | [diff] [blame] | 170 | chip drivers/i2c/generic |
| 171 | register "hid" = ""ELAN0001"" |
| 172 | register "desc" = ""ELAN Touchscreen"" |
Furquan Shaikh | 5b9b593 | 2017-02-21 13:16:30 -0800 | [diff] [blame] | 173 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E7_IRQ)" |
Duncan Laurie | 9482cf6 | 2016-06-22 11:31:51 -0700 | [diff] [blame] | 174 | device i2c 10 on end |
| 175 | end |
Felix Singer | a0c3ba0 | 2023-11-12 18:18:51 +0000 | [diff] [blame] | 176 | end |
| 177 | device ref i2c1 on |
Duncan Laurie | 9482cf6 | 2016-06-22 11:31:51 -0700 | [diff] [blame] | 178 | chip drivers/i2c/generic |
| 179 | register "hid" = ""ELAN0000"" |
| 180 | register "desc" = ""ELAN Touchpad"" |
Furquan Shaikh | 5b9b593 | 2017-02-21 13:16:30 -0800 | [diff] [blame] | 181 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_B3_IRQ)" |
Duncan Laurie | 9482cf6 | 2016-06-22 11:31:51 -0700 | [diff] [blame] | 182 | register "wake" = "GPE0_DW0_05" |
| 183 | device i2c 15 on end |
| 184 | end |
Felix Singer | a0c3ba0 | 2023-11-12 18:18:51 +0000 | [diff] [blame] | 185 | end |
| 186 | device ref heci1 on end |
| 187 | device ref uart2 on end |
| 188 | device ref i2c4 on |
Duncan Laurie | 9482cf6 | 2016-06-22 11:31:51 -0700 | [diff] [blame] | 189 | chip drivers/i2c/nau8825 |
Furquan Shaikh | 5b9b593 | 2017-02-21 13:16:30 -0800 | [diff] [blame] | 190 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_F10_IRQ)" |
Duncan Laurie | 9482cf6 | 2016-06-22 11:31:51 -0700 | [diff] [blame] | 191 | register "jkdet_enable" = "1" |
| 192 | register "jkdet_pull_enable" = "1" |
| 193 | register "jkdet_pull_up" = "1" |
| 194 | register "jkdet_polarity" = "1" # ActiveLow |
| 195 | register "vref_impedance" = "2" # 125kOhm |
| 196 | register "micbias_voltage" = "6" # 2.754 |
| 197 | register "sar_threshold_num" = "4" |
| 198 | register "sar_threshold[0]" = "0x08" |
| 199 | register "sar_threshold[1]" = "0x12" |
| 200 | register "sar_threshold[2]" = "0x26" |
| 201 | register "sar_threshold[3]" = "0x73" |
| 202 | register "sar_hysteresis" = "0" |
| 203 | register "sar_voltage" = "6" |
| 204 | register "sar_compare_time" = "1" # 1us |
| 205 | register "sar_sampling_time" = "1" # 4us |
| 206 | register "short_key_debounce" = "3" # 30ms |
| 207 | register "jack_insert_debounce" = "7" # 512ms |
| 208 | register "jack_eject_debounce" = "0" |
| 209 | device i2c 1a on end |
| 210 | end |
| 211 | chip drivers/i2c/generic |
| 212 | register "hid" = ""INT343B"" |
| 213 | register "desc" = ""SSM4567 Left Speaker Amp"" |
| 214 | register "uid" = "0" |
| 215 | register "device_present_gpio" = "GPP_E3" |
| 216 | device i2c 34 on end |
| 217 | end |
| 218 | chip drivers/i2c/generic |
| 219 | register "hid" = ""INT343B"" |
| 220 | register "desc" = ""SSM4567 Right Speaker Amp"" |
| 221 | register "uid" = "1" |
| 222 | register "device_present_gpio" = "GPP_E3" |
| 223 | device i2c 35 on end |
| 224 | end |
Felix Singer | a0c3ba0 | 2023-11-12 18:18:51 +0000 | [diff] [blame] | 225 | end |
| 226 | device ref pcie_rp1 on |
Furquan Shaikh | a266d1e | 2020-10-04 12:52:54 -0700 | [diff] [blame] | 227 | chip drivers/wifi/generic |
Duncan Laurie | 9482cf6 | 2016-06-22 11:31:51 -0700 | [diff] [blame] | 228 | register "wake" = "GPE0_DW0_16" |
| 229 | device pci 00.0 on end |
| 230 | end |
Felix Singer | a0c3ba0 | 2023-11-12 18:18:51 +0000 | [diff] [blame] | 231 | end |
| 232 | device ref pcie_rp5 on end |
| 233 | device ref uart0 on end |
| 234 | device ref emmc on end |
| 235 | device ref sdxc on end |
| 236 | device ref lpc_espi on |
Duncan Laurie | 1c2de9f | 2015-09-03 16:05:00 -0700 | [diff] [blame] | 237 | chip drivers/pc80/tpm |
| 238 | device pnp 0c31.0 on end |
| 239 | end |
Lee Leahy | c421041 | 2015-06-29 11:37:56 -0700 | [diff] [blame] | 240 | chip ec/google/chromeec |
| 241 | device pnp 0c09.0 on end |
| 242 | end |
Felix Singer | a0c3ba0 | 2023-11-12 18:18:51 +0000 | [diff] [blame] | 243 | end |
| 244 | device ref hda on |
Duncan Laurie | 9482cf6 | 2016-06-22 11:31:51 -0700 | [diff] [blame] | 245 | chip drivers/generic/max98357a |
Aamir Bohra | a1c82c5 | 2020-03-16 18:57:48 +0530 | [diff] [blame] | 246 | register "hid" = ""MX98357A"" |
Furquan Shaikh | 028200f | 2016-10-04 10:53:32 -0700 | [diff] [blame] | 247 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E3)" |
Duncan Laurie | 9482cf6 | 2016-06-22 11:31:51 -0700 | [diff] [blame] | 248 | register "device_present_gpio" = "GPP_E3" |
| 249 | register "device_present_gpio_invert" = "1" |
| 250 | device generic 0 on end |
| 251 | end |
Felix Singer | a0c3ba0 | 2023-11-12 18:18:51 +0000 | [diff] [blame] | 252 | end |
| 253 | device ref smbus on end |
| 254 | device ref fast_spi on end |
Lee Leahy | c421041 | 2015-06-29 11:37:56 -0700 | [diff] [blame] | 255 | end |
| 256 | end |