Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 1 | chip soc/intel/skylake |
| 2 | |
| 3 | # Enable deep Sx states |
Duncan Laurie | 73ff0fb | 2017-04-10 21:07:06 -0700 | [diff] [blame] | 4 | register "deep_s3_enable_ac" = "0" |
Duncan Laurie | 1fe32d6 | 2017-04-10 21:02:13 -0700 | [diff] [blame] | 5 | register "deep_s3_enable_dc" = "1" |
| 6 | register "deep_s5_enable_ac" = "1" |
| 7 | register "deep_s5_enable_dc" = "1" |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 8 | register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN | DSX_EN_WAKE_PIN" |
| 9 | |
Matt Delco | 1950ed9 | 2018-08-15 11:51:43 -0700 | [diff] [blame] | 10 | register "eist_enable" = "1" |
| 11 | |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 12 | # GPE configuration |
| 13 | # Note that GPE events called out in ASL code rely on this |
| 14 | # route. i.e. If this route changes then the affected GPE |
| 15 | # offset bits also need to be changed. |
| 16 | register "gpe0_dw0" = "GPP_B" |
| 17 | register "gpe0_dw1" = "GPP_D" |
| 18 | register "gpe0_dw2" = "GPP_E" |
| 19 | |
| 20 | # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f |
| 21 | register "gen1_dec" = "0x00fc0801" |
| 22 | register "gen2_dec" = "0x000c0201" |
| 23 | # EC memory map range is 0x900-0x9ff |
| 24 | register "gen3_dec" = "0x00fc0901" |
| 25 | |
| 26 | # FSP Configuration |
| 27 | register "ProbelessTrace" = "0" |
| 28 | register "EnableLan" = "0" |
| 29 | register "EnableSata" = "0" |
| 30 | register "SataSalpSupport" = "0" |
| 31 | register "SataMode" = "0" |
| 32 | register "SataPortsEnable[0]" = "0" |
| 33 | register "EnableAzalia" = "1" |
| 34 | register "DspEnable" = "1" |
| 35 | register "IoBufferOwnership" = "3" |
| 36 | register "EnableTraceHub" = "0" |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 37 | register "SsicPortEnable" = "0" |
| 38 | register "SmbusEnable" = "1" |
| 39 | register "Cio2Enable" = "0" |
| 40 | register "ScsEmmcEnabled" = "1" |
| 41 | register "ScsEmmcHs400Enabled" = "1" |
| 42 | register "ScsSdCardEnabled" = "0" |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 43 | register "PttSwitch" = "0" |
| 44 | register "InternalGfx" = "1" |
| 45 | register "SkipExtGfxScan" = "1" |
| 46 | register "Device4Enable" = "1" |
| 47 | register "HeciEnabled" = "0" |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 48 | register "SaGv" = "3" |
| 49 | register "SerialIrqConfigSirqEnable" = "1" |
| 50 | register "PmConfigSlpS3MinAssert" = "2" # 50ms |
| 51 | register "PmConfigSlpS4MinAssert" = "1" # 1s |
| 52 | register "PmConfigSlpSusMinAssert" = "1" # 500ms |
| 53 | register "PmConfigSlpAMinAssert" = "3" # 2s |
| 54 | register "PmTimerDisabled" = "1" |
Duncan Laurie | d60b493 | 2017-11-01 13:23:45 -0700 | [diff] [blame] | 55 | register "VmxEnable" = "1" |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 56 | |
| 57 | register "pirqa_routing" = "PCH_IRQ11" |
| 58 | register "pirqb_routing" = "PCH_IRQ10" |
| 59 | register "pirqc_routing" = "PCH_IRQ11" |
| 60 | register "pirqd_routing" = "PCH_IRQ11" |
| 61 | register "pirqe_routing" = "PCH_IRQ11" |
| 62 | register "pirqf_routing" = "PCH_IRQ11" |
| 63 | register "pirqg_routing" = "PCH_IRQ11" |
| 64 | register "pirqh_routing" = "PCH_IRQ11" |
| 65 | |
Duncan Laurie | 4fa8a6f | 2017-03-14 16:37:55 -0700 | [diff] [blame] | 66 | # VR Settings Configuration for 4 Domains |
| 67 | #+----------------+-------+-------+-------+-------+ |
| 68 | #| Domain/Setting | SA | IA | GTUS | GTS | |
| 69 | #+----------------+-------+-------+-------+-------+ |
| 70 | #| Psi1Threshold | 20A | 20A | 20A | 20A | |
V Sowmya | 41f9373 | 2017-05-23 14:17:01 +0530 | [diff] [blame] | 71 | #| Psi2Threshold | 2A | 2A | 2A | 2A | |
Duncan Laurie | 4fa8a6f | 2017-03-14 16:37:55 -0700 | [diff] [blame] | 72 | #| Psi3Threshold | 1A | 1A | 1A | 1A | |
| 73 | #| Psi3Enable | 1 | 1 | 1 | 1 | |
| 74 | #| Psi4Enable | 1 | 1 | 1 | 1 | |
| 75 | #| ImonSlope | 0 | 0 | 0 | 0 | |
| 76 | #| ImonOffset | 0 | 0 | 0 | 0 | |
| 77 | #| IccMax | 4A | 24A | 24A | 24A | |
| 78 | #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V | |
V Sowmya | 41f9373 | 2017-05-23 14:17:01 +0530 | [diff] [blame] | 79 | #| AcLoadline | 14.9 | 5 | 5.7 | 4.57 | |
| 80 | #| DcLoadline | 14.2 | 4.86 | 4.2 | 4.3 | |
Duncan Laurie | 4fa8a6f | 2017-03-14 16:37:55 -0700 | [diff] [blame] | 81 | #+----------------+-------+-------+-------+-------+ |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 82 | register "domain_vr_config[VR_SYSTEM_AGENT]" = "{ |
| 83 | .vr_config_enable = 1, |
| 84 | .psi1threshold = VR_CFG_AMP(20), |
V Sowmya | 41f9373 | 2017-05-23 14:17:01 +0530 | [diff] [blame] | 85 | .psi2threshold = VR_CFG_AMP(2), |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 86 | .psi3threshold = VR_CFG_AMP(1), |
| 87 | .psi3enable = 1, |
| 88 | .psi4enable = 1, |
| 89 | .imon_slope = 0x0, |
| 90 | .imon_offset = 0x0, |
Duncan Laurie | 949e34c | 2017-01-21 19:11:37 -0800 | [diff] [blame] | 91 | .icc_max = VR_CFG_AMP(4), |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 92 | .voltage_limit = 1520, |
V Sowmya | 41f9373 | 2017-05-23 14:17:01 +0530 | [diff] [blame] | 93 | .ac_loadline = 1490, |
| 94 | .dc_loadline = 1420, |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 95 | }" |
| 96 | |
| 97 | register "domain_vr_config[VR_IA_CORE]" = "{ |
| 98 | .vr_config_enable = 1, |
| 99 | .psi1threshold = VR_CFG_AMP(20), |
V Sowmya | 41f9373 | 2017-05-23 14:17:01 +0530 | [diff] [blame] | 100 | .psi2threshold = VR_CFG_AMP(2), |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 101 | .psi3threshold = VR_CFG_AMP(1), |
| 102 | .psi3enable = 1, |
| 103 | .psi4enable = 1, |
| 104 | .imon_slope = 0x0, |
| 105 | .imon_offset = 0x0, |
Duncan Laurie | 949e34c | 2017-01-21 19:11:37 -0800 | [diff] [blame] | 106 | .icc_max = VR_CFG_AMP(24), |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 107 | .voltage_limit = 1520, |
V Sowmya | 41f9373 | 2017-05-23 14:17:01 +0530 | [diff] [blame] | 108 | .ac_loadline = 500, |
| 109 | .dc_loadline = 486, |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 110 | }" |
| 111 | |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 112 | register "domain_vr_config[VR_GT_UNSLICED]" = "{ |
| 113 | .vr_config_enable = 1, |
| 114 | .psi1threshold = VR_CFG_AMP(20), |
V Sowmya | 41f9373 | 2017-05-23 14:17:01 +0530 | [diff] [blame] | 115 | .psi2threshold = VR_CFG_AMP(2), |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 116 | .psi3threshold = VR_CFG_AMP(1), |
| 117 | .psi3enable = 1, |
| 118 | .psi4enable = 1, |
| 119 | .imon_slope = 0x0, |
| 120 | .imon_offset = 0x0, |
Duncan Laurie | 949e34c | 2017-01-21 19:11:37 -0800 | [diff] [blame] | 121 | .icc_max = VR_CFG_AMP(24), |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 122 | .voltage_limit = 1520, |
Duncan Laurie | 57e9e3b | 2017-03-14 16:42:33 -0700 | [diff] [blame] | 123 | .ac_loadline = 570, |
| 124 | .dc_loadline = 420, |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 125 | }" |
| 126 | |
| 127 | register "domain_vr_config[VR_GT_SLICED]" = "{ |
| 128 | .vr_config_enable = 1, |
| 129 | .psi1threshold = VR_CFG_AMP(20), |
V Sowmya | 41f9373 | 2017-05-23 14:17:01 +0530 | [diff] [blame] | 130 | .psi2threshold = VR_CFG_AMP(2), |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 131 | .psi3threshold = VR_CFG_AMP(1), |
| 132 | .psi3enable = 1, |
| 133 | .psi4enable = 1, |
| 134 | .imon_slope = 0x0, |
| 135 | .imon_offset = 0x0, |
Duncan Laurie | 949e34c | 2017-01-21 19:11:37 -0800 | [diff] [blame] | 136 | .icc_max = VR_CFG_AMP(24), |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 137 | .voltage_limit = 1520, |
V Sowmya | 41f9373 | 2017-05-23 14:17:01 +0530 | [diff] [blame] | 138 | .ac_loadline = 457, |
| 139 | .dc_loadline = 430, |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 140 | }" |
| 141 | |
Duncan Laurie | 949e34c | 2017-01-21 19:11:37 -0800 | [diff] [blame] | 142 | # Enable Root port 1 with SRCCLKREQ1# |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 143 | register "PcieRpEnable[0]" = "1" |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 144 | register "PcieRpClkReqSupport[0]" = "1" |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 145 | register "PcieRpClkReqNumber[0]" = "1" |
Furquan Shaikh | ebd67c2 | 2017-09-18 14:21:48 -0700 | [diff] [blame] | 146 | register "PcieRpAdvancedErrorReporting[0]" = "1" |
| 147 | register "PcieRpLtrEnable[0]" = "1" |
Duncan Laurie | 25874b8 | 2018-01-29 12:02:41 -0800 | [diff] [blame] | 148 | register "PcieRpHotPlug[0]" = "1" |
Divya Chellap | e7fb7ce | 2017-12-19 20:16:50 +0530 | [diff] [blame] | 149 | #RP 1 uses CLK SRC 1 |
| 150 | register "PcieRpClkSrcNumber[0]" = "1" |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 151 | |
Duncan Laurie | 949e34c | 2017-01-21 19:11:37 -0800 | [diff] [blame] | 152 | # Enable Root port 5 with SRCCLKREQ4# |
| 153 | register "PcieRpEnable[4]" = "1" |
| 154 | register "PcieRpClkReqSupport[4]" = "1" |
| 155 | register "PcieRpClkReqNumber[4]" = "4" |
Furquan Shaikh | ebd67c2 | 2017-09-18 14:21:48 -0700 | [diff] [blame] | 156 | register "PcieRpAdvancedErrorReporting[4]" = "1" |
| 157 | register "PcieRpLtrEnable[4]" = "1" |
Divya Chellap | e7fb7ce | 2017-12-19 20:16:50 +0530 | [diff] [blame] | 158 | #RP 5 uses CLK SRC 4 |
| 159 | register "PcieRpClkSrcNumber[4]" = "4" |
Duncan Laurie | 949e34c | 2017-01-21 19:11:37 -0800 | [diff] [blame] | 160 | |
Subrata Banik | 2c3054c | 2016-11-22 20:21:49 +0530 | [diff] [blame] | 161 | register "usb2_ports[0]" = "USB2_PORT_LONG(OC0)" # Type-C Port 1 |
| 162 | register "usb2_ports[1]" = "USB2_PORT_FLEX(OC_SKIP)" # Camera |
| 163 | register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth |
| 164 | register "usb2_ports[4]" = "USB2_PORT_LONG(OC1)" # Type-C Port 2 |
Duncan Laurie | 949e34c | 2017-01-21 19:11:37 -0800 | [diff] [blame] | 165 | register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # H1 |
Subrata Banik | 2c3054c | 2016-11-22 20:21:49 +0530 | [diff] [blame] | 166 | register "usb2_ports[8]" = "USB2_PORT_EMPTY" # Empty |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 167 | |
Subrata Banik | 2c3054c | 2016-11-22 20:21:49 +0530 | [diff] [blame] | 168 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" # Type-C Port 1 |
| 169 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC1)" # Type-C Port 2 |
Duncan Laurie | 949e34c | 2017-01-21 19:11:37 -0800 | [diff] [blame] | 170 | register "usb3_ports[2]" = "USB3_PORT_EMPTY" # Empty |
| 171 | register "usb3_ports[3]" = "USB3_PORT_EMPTY" # Empty |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 172 | |
Subrata Banik | c4986eb | 2018-05-09 14:55:09 +0530 | [diff] [blame] | 173 | # Intel Common SoC Config |
| 174 | #+-------------------+---------------------------+ |
| 175 | #| Field | Value | |
| 176 | #+-------------------+---------------------------+ |
| 177 | #| chipset_lockdown | CHIPSET_LOCKDOWN_COREBOOT | |
| 178 | #| I2C0 | Touchscreen | |
| 179 | #| I2C1 | Early TPM access | |
| 180 | #| I2C2 | Touchpad | |
| 181 | #| I2C4 | Audio | |
| 182 | #+-------------------+---------------------------+ |
| 183 | register "common_soc_config" = "{ |
| 184 | .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT, |
| 185 | .i2c[0] = { |
| 186 | .speed = I2C_SPEED_FAST_PLUS, |
| 187 | .rise_time_ns = 98, |
| 188 | .fall_time_ns = 38, |
| 189 | }, |
| 190 | .i2c[1] = { |
| 191 | .early_init = 1, |
| 192 | .speed = I2C_SPEED_FAST, |
| 193 | .rise_time_ns = 112, |
| 194 | .fall_time_ns = 34, |
| 195 | }, |
| 196 | .i2c[2] = { |
| 197 | .speed = I2C_SPEED_FAST, |
| 198 | .speed_config[0] = { |
| 199 | .speed = I2C_SPEED_FAST, |
| 200 | .scl_lcnt = 186, |
| 201 | .scl_hcnt = 93, |
| 202 | .sda_hold = 36, |
| 203 | } |
| 204 | }, |
| 205 | .i2c[4] = { |
| 206 | .speed = I2C_SPEED_FAST, |
| 207 | .speed_config[0] = { |
| 208 | .speed = I2C_SPEED_FAST, |
| 209 | .scl_lcnt = 176, |
| 210 | .scl_hcnt = 95, |
| 211 | .sda_hold = 36, |
| 212 | } |
| 213 | }, |
| 214 | }" |
| 215 | |
Duncan Laurie | d4d6ba1 | 2017-02-24 12:28:12 -0800 | [diff] [blame] | 216 | # Touchscreen |
| 217 | register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3" |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 218 | |
| 219 | # Enable I2C1 bus early for TPM access |
Duncan Laurie | d4d6ba1 | 2017-02-24 12:28:12 -0800 | [diff] [blame] | 220 | register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3" |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 221 | |
Duncan Laurie | d4d6ba1 | 2017-02-24 12:28:12 -0800 | [diff] [blame] | 222 | # Touchpad |
| 223 | register "i2c_voltage[2]" = "I2C_VOLTAGE_1V8" |
Duncan Laurie | d4d6ba1 | 2017-02-24 12:28:12 -0800 | [diff] [blame] | 224 | |
| 225 | # Audio |
| 226 | register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" |
Duncan Laurie | d4d6ba1 | 2017-02-24 12:28:12 -0800 | [diff] [blame] | 227 | |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 228 | # Must leave UART0 enabled or SD/eMMC will not work as PCI |
| 229 | register "SerialIoDevMode" = "{ |
| 230 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 231 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 232 | [PchSerialIoIndexI2C2] = PchSerialIoPci, |
Duncan Laurie | 93eb8c4 | 2016-12-12 10:43:45 -0800 | [diff] [blame] | 233 | [PchSerialIoIndexI2C3] = PchSerialIoDisabled, |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 234 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
| 235 | [PchSerialIoIndexI2C5] = PchSerialIoDisabled, |
| 236 | [PchSerialIoIndexSpi0] = PchSerialIoPci, |
Duncan Laurie | c5eab98 | 2017-05-16 19:06:04 -0700 | [diff] [blame] | 237 | [PchSerialIoIndexSpi1] = PchSerialIoDisabled, |
Duncan Laurie | e49b866 | 2017-04-13 01:40:53 -0700 | [diff] [blame] | 238 | [PchSerialIoIndexUart0] = PchSerialIoSkipInit, |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 239 | [PchSerialIoIndexUart1] = PchSerialIoDisabled, |
| 240 | [PchSerialIoIndexUart2] = PchSerialIoSkipInit, |
| 241 | }" |
| 242 | |
| 243 | register "speed_shift_enable" = "1" |
| 244 | register "dptf_enable" = "1" |
Lucas Chen | cc11c97 | 2018-08-14 16:06:56 +0800 | [diff] [blame] | 245 | register "tdp_pl1_override" = "7" |
Duncan Laurie | 07a597f | 2017-05-26 15:55:04 -0700 | [diff] [blame] | 246 | register "tdp_pl2_override" = "15" |
Duncan Laurie | 690831d | 2016-12-16 08:01:09 -0800 | [diff] [blame] | 247 | register "tcc_offset" = "10" |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 248 | |
| 249 | device cpu_cluster 0 on |
| 250 | device lapic 0 on end |
| 251 | end |
| 252 | device domain 0 on |
| 253 | device pci 00.0 on end # Host Bridge |
| 254 | device pci 02.0 on end # Integrated Graphics Device |
Duncan Laurie | 283b01d | 2018-05-07 15:39:37 -0700 | [diff] [blame] | 255 | device pci 14.0 on |
| 256 | chip drivers/usb/acpi |
| 257 | register "desc" = ""Root Hub"" |
| 258 | register "type" = "UPC_TYPE_HUB" |
| 259 | device usb 0.0 on |
| 260 | chip drivers/usb/acpi |
| 261 | register "desc" = ""USB2 Type-C Left"" |
| 262 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Duncan Laurie | b0a0c6c | 2018-12-01 17:15:29 -0800 | [diff] [blame^] | 263 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
Duncan Laurie | 283b01d | 2018-05-07 15:39:37 -0700 | [diff] [blame] | 264 | device usb 2.0 on end |
| 265 | end |
| 266 | chip drivers/usb/acpi |
| 267 | register "desc" = ""USB2 Camera"" |
| 268 | register "type" = "UPC_TYPE_INTERNAL" |
| 269 | device usb 2.1 on end |
| 270 | end |
| 271 | chip drivers/usb/acpi |
| 272 | register "desc" = ""USB2 Bluetooth"" |
| 273 | register "type" = "UPC_TYPE_INTERNAL" |
| 274 | device usb 2.2 on end |
| 275 | end |
| 276 | chip drivers/usb/acpi |
| 277 | register "desc" = ""USB2 Type-C Right"" |
| 278 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Duncan Laurie | b0a0c6c | 2018-12-01 17:15:29 -0800 | [diff] [blame^] | 279 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
Duncan Laurie | 283b01d | 2018-05-07 15:39:37 -0700 | [diff] [blame] | 280 | device usb 2.4 on end |
| 281 | end |
| 282 | chip drivers/usb/acpi |
| 283 | register "desc" = ""USB2 H1 TPM"" |
| 284 | register "type" = "UPC_TYPE_INTERNAL" |
| 285 | device usb 2.6 on end |
| 286 | end |
| 287 | chip drivers/usb/acpi |
| 288 | register "desc" = ""USB3 Type-C Left"" |
| 289 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Duncan Laurie | b0a0c6c | 2018-12-01 17:15:29 -0800 | [diff] [blame^] | 290 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
Duncan Laurie | 283b01d | 2018-05-07 15:39:37 -0700 | [diff] [blame] | 291 | device usb 3.0 on end |
| 292 | end |
| 293 | chip drivers/usb/acpi |
| 294 | register "desc" = ""USB3 Type-C Right"" |
| 295 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Duncan Laurie | b0a0c6c | 2018-12-01 17:15:29 -0800 | [diff] [blame^] | 296 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
Duncan Laurie | 283b01d | 2018-05-07 15:39:37 -0700 | [diff] [blame] | 297 | device usb 3.1 on end |
| 298 | end |
| 299 | end |
| 300 | end |
| 301 | end # USB xHCI |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 302 | device pci 14.1 off end # USB xDCI (OTG) |
| 303 | device pci 14.2 on end # Thermal Subsystem |
| 304 | device pci 15.0 on |
Furquan Shaikh | 5360c7e | 2017-02-19 01:18:09 -0800 | [diff] [blame] | 305 | chip drivers/i2c/hid |
| 306 | register "generic.hid" = ""WCOM50C1"" |
| 307 | register "generic.desc" = ""WCOM Digitizer"" |
Furquan Shaikh | 5b9b593 | 2017-02-21 13:16:30 -0800 | [diff] [blame] | 308 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)" |
Duncan Laurie | 658a6dc | 2017-02-17 17:27:51 -0800 | [diff] [blame] | 309 | register "generic.speed" = "I2C_SPEED_FAST_PLUS" |
Duncan Laurie | 2d14021 | 2016-12-15 18:51:29 -0800 | [diff] [blame] | 310 | register "hid_desc_reg_offset" = "0x1" |
| 311 | device i2c 0a on end |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 312 | end |
| 313 | end # I2C #0 |
| 314 | device pci 15.1 on |
| 315 | chip drivers/i2c/tpm |
| 316 | register "hid" = ""GOOG0005"" |
Furquan Shaikh | 5b9b593 | 2017-02-21 13:16:30 -0800 | [diff] [blame] | 317 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_E0_IRQ)" |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 318 | device i2c 50 on end |
| 319 | end |
| 320 | end # I2C #1 |
| 321 | device pci 15.2 on |
Wei-Ning Huang | 267e4a5 | 2017-04-24 18:53:22 +0800 | [diff] [blame] | 322 | chip drivers/i2c/hid |
| 323 | register "generic.hid" = ""ACPI0C50"" |
| 324 | register "generic.desc" = ""Touchpad"" |
| 325 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_B3_IRQ)" |
| 326 | register "hid_desc_reg_offset" = "0x1" |
Duncan Laurie | 2d14021 | 2016-12-15 18:51:29 -0800 | [diff] [blame] | 327 | device i2c 49 on end |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 328 | end |
Wei-Ning Huang | 267e4a5 | 2017-04-24 18:53:22 +0800 | [diff] [blame] | 329 | chip drivers/i2c/generic |
| 330 | register "hid" = ""GOOG0008"" |
| 331 | register "desc" = ""Touchpad EC Interface"" |
| 332 | device i2c 1e on end |
| 333 | end |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 334 | end # I2C #2 |
Duncan Laurie | 93eb8c4 | 2016-12-12 10:43:45 -0800 | [diff] [blame] | 335 | device pci 15.3 off end # I2C #3 |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 336 | device pci 16.0 on end # Management Engine Interface 1 |
| 337 | device pci 16.1 off end # Management Engine Interface 2 |
| 338 | device pci 16.2 off end # Management Engine IDE-R |
| 339 | device pci 16.3 off end # Management Engine KT Redirection |
| 340 | device pci 16.4 off end # Management Engine Interface 3 |
| 341 | device pci 17.0 off end # SATA |
| 342 | device pci 19.0 on end # UART #2 |
Duncan Laurie | 949e34c | 2017-01-21 19:11:37 -0800 | [diff] [blame] | 343 | device pci 19.1 off end # I2C #5 |
Duncan Laurie | 5492bfb5 | 2017-02-17 17:40:10 -0800 | [diff] [blame] | 344 | device pci 19.2 on |
| 345 | chip drivers/i2c/max98927 |
| 346 | register "interleave_mode" = "1" |
Harsha Priya | 130b4a2 | 2017-08-24 14:40:04 -0700 | [diff] [blame] | 347 | register "vmon_slot_no" = "4" |
| 348 | register "imon_slot_no" = "5" |
Duncan Laurie | 5492bfb5 | 2017-02-17 17:40:10 -0800 | [diff] [blame] | 349 | register "uid" = "0" |
| 350 | register "desc" = ""Right Speaker Amp"" |
| 351 | register "name" = ""MAXR"" |
| 352 | device i2c 39 on end |
| 353 | end |
| 354 | chip drivers/i2c/max98927 |
| 355 | register "interleave_mode" = "1" |
Harsha Priya | 130b4a2 | 2017-08-24 14:40:04 -0700 | [diff] [blame] | 356 | register "vmon_slot_no" = "6" |
| 357 | register "imon_slot_no" = "7" |
Duncan Laurie | 5492bfb5 | 2017-02-17 17:40:10 -0800 | [diff] [blame] | 358 | register "uid" = "1" |
| 359 | register "desc" = ""Left Speaker Amp"" |
| 360 | register "name" = ""MAXL"" |
| 361 | device i2c 3a on end |
| 362 | end |
Duncan Laurie | f8e4eb8 | 2017-08-10 18:42:08 -0700 | [diff] [blame] | 363 | chip drivers/i2c/rt5663 |
Harsha Priya | ad12610 | 2018-05-02 14:39:29 -0700 | [diff] [blame] | 364 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH_WAKE(GPP_D9)" |
Duncan Laurie | f8e4eb8 | 2017-08-10 18:42:08 -0700 | [diff] [blame] | 365 | register "dc_offset_l_manual" = "0xffd160" |
| 366 | register "dc_offset_r_manual" = "0xffd1c0" |
| 367 | register "dc_offset_l_manual_mic" = "0xff8a10" |
| 368 | register "dc_offset_r_manual_mic" = "0xff8ab0" |
Duncan Laurie | 5492bfb5 | 2017-02-17 17:40:10 -0800 | [diff] [blame] | 369 | device i2c 13 on end |
| 370 | end |
Duncan Laurie | 2661a9f | 2017-03-02 10:15:23 -0800 | [diff] [blame] | 371 | chip drivers/i2c/generic |
| 372 | register "hid" = ""10EC5514"" |
| 373 | register "name" = ""RT54"" |
| 374 | register "desc" = ""Realtek RT5514"" |
Cheng-Yi Chiang | 09ab157 | 2017-11-01 15:01:34 +0800 | [diff] [blame] | 375 | register "property_count" = "3" |
Duncan Laurie | f10c8f9 | 2017-08-29 08:36:55 -0700 | [diff] [blame] | 376 | # Set the DMIC initial delay to 16ms to avoid pop noise |
| 377 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 378 | register "property_list[0].name" = ""realtek,dmic-init-delay"" |
| 379 | register "property_list[0].integer" = "16" |
Cheng-Yi Chiang | 09ab157 | 2017-11-01 15:01:34 +0800 | [diff] [blame] | 380 | # Set clock name for RT5514 to calibrate DSP clock. |
| 381 | register "property_list[1].type" = "ACPI_DP_TYPE_STRING" |
| 382 | register "property_list[1].name" = ""realtek,dsp-calib-clk-name"" |
| 383 | register "property_list[1].string" = ""ssp1_mclk"" |
| 384 | # Set clock rate for RT5514 to calibrate DSP clock. |
| 385 | register "property_list[2].type" = "ACPI_DP_TYPE_INTEGER" |
| 386 | register "property_list[2].name" = ""realtek,dsp-calib-clk-rate"" |
| 387 | register "property_list[2].integer" = "24000000" |
Duncan Laurie | 2661a9f | 2017-03-02 10:15:23 -0800 | [diff] [blame] | 388 | device i2c 57 on end |
| 389 | end |
Duncan Laurie | 5492bfb5 | 2017-02-17 17:40:10 -0800 | [diff] [blame] | 390 | end # I2C #4 |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 391 | device pci 1c.0 on |
| 392 | chip drivers/intel/wifi |
| 393 | register "wake" = "GPE0_PCI_EXP" |
| 394 | device pci 00.0 on end |
| 395 | end |
| 396 | end # PCI Express Port 1 |
| 397 | device pci 1c.1 off end # PCI Express Port 2 |
| 398 | device pci 1c.2 off end # PCI Express Port 3 |
| 399 | device pci 1c.3 off end # PCI Express Port 4 |
Duncan Laurie | 949e34c | 2017-01-21 19:11:37 -0800 | [diff] [blame] | 400 | device pci 1c.4 on end # PCI Express Port 5 |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 401 | device pci 1c.5 off end # PCI Express Port 6 |
| 402 | device pci 1c.6 off end # PCI Express Port 7 |
| 403 | device pci 1c.7 off end # PCI Express Port 8 |
| 404 | device pci 1d.0 off end # PCI Express Port 9 |
| 405 | device pci 1d.1 off end # PCI Express Port 10 |
| 406 | device pci 1d.2 off end # PCI Express Port 11 |
| 407 | device pci 1d.3 off end # PCI Express Port 12 |
| 408 | device pci 1e.0 on end # UART #0 |
| 409 | device pci 1e.1 off end # UART #1 |
Duncan Laurie | 2661a9f | 2017-03-02 10:15:23 -0800 | [diff] [blame] | 410 | device pci 1e.2 on |
| 411 | chip drivers/spi/acpi |
| 412 | register "hid" = "ACPI_DT_NAMESPACE_HID" |
| 413 | register "compat_string" = ""realtek,rt5514"" |
Duncan Laurie | 9692f31 | 2017-06-30 02:01:02 -0700 | [diff] [blame] | 414 | register "irq" = "ACPI_IRQ_EDGE_HIGH(GPP_F10_IRQ)" |
Duncan Laurie | 37da884 | 2017-09-27 03:45:53 -0700 | [diff] [blame] | 415 | register "speed" = "12 * MHz" |
Duncan Laurie | 2661a9f | 2017-03-02 10:15:23 -0800 | [diff] [blame] | 416 | device spi 0 on end |
| 417 | end |
| 418 | end # GSPI #0 |
Duncan Laurie | c5eab98 | 2017-05-16 19:06:04 -0700 | [diff] [blame] | 419 | device pci 1e.3 off end # GSPI #1 |
Duncan Laurie | 81485d2 | 2016-10-28 09:13:52 -0700 | [diff] [blame] | 420 | device pci 1e.4 on end # eMMC |
| 421 | device pci 1e.5 off end # SDIO |
| 422 | device pci 1e.6 off end # SDCard |
| 423 | device pci 1f.0 on |
| 424 | chip ec/google/chromeec |
| 425 | device pnp 0c09.0 on end |
| 426 | end |
| 427 | end # LPC Interface |
| 428 | device pci 1f.1 on end # P2SB |
| 429 | device pci 1f.2 on end # Power Management Controller |
| 430 | device pci 1f.3 on end # Intel HDA |
| 431 | device pci 1f.4 on end # SMBus |
| 432 | device pci 1f.5 on end # PCH SPI |
| 433 | device pci 1f.6 off end # GbE |
| 434 | end |
| 435 | end |