Hannah Williams | 5e83e8b | 2018-02-09 18:35:17 -0800 | [diff] [blame] | 1 | chip soc/intel/apollolake |
| 2 | device cpu_cluster 0 on |
| 3 | device lapic 0 on end |
| 4 | end |
Shamile Khan | c5f354b | 2018-02-22 13:45:39 -0800 | [diff] [blame] | 5 | |
Furquan Shaikh | ade3bc5 | 2018-03-28 11:53:37 -0700 | [diff] [blame] | 6 | register "pcie_rp_clkreq_pin[2]" = "3" # wifi/bt |
Shamile Khan | 25c1781 | 2018-03-19 17:03:48 -0700 | [diff] [blame] | 7 | # Disable unused clkreq of PCIe root ports |
Furquan Shaikh | ade3bc5 | 2018-03-28 11:53:37 -0700 | [diff] [blame] | 8 | register "pcie_rp_clkreq_pin[0]" = "CLKREQ_DISABLED" |
Shamile Khan | 25c1781 | 2018-03-19 17:03:48 -0700 | [diff] [blame] | 9 | register "pcie_rp_clkreq_pin[1]" = "CLKREQ_DISABLED" |
Shamile Khan | 25c1781 | 2018-03-19 17:03:48 -0700 | [diff] [blame] | 10 | register "pcie_rp_clkreq_pin[3]" = "CLKREQ_DISABLED" |
| 11 | register "pcie_rp_clkreq_pin[4]" = "CLKREQ_DISABLED" |
| 12 | register "pcie_rp_clkreq_pin[5]" = "CLKREQ_DISABLED" |
| 13 | |
| 14 | # Set de-emphasis to disabled for PCIE WiFI (Thunderpeak) |
| 15 | # as it is required for detection |
Furquan Shaikh | ade3bc5 | 2018-03-28 11:53:37 -0700 | [diff] [blame] | 16 | register "pcie_rp_deemphasis_enable[2]" = "0" |
Shamile Khan | 25c1781 | 2018-03-19 17:03:48 -0700 | [diff] [blame] | 17 | # Set de-emphasis to default (enabled) for remaining ports |
Furquan Shaikh | ade3bc5 | 2018-03-28 11:53:37 -0700 | [diff] [blame] | 18 | register "pcie_rp_deemphasis_enable[0]" = "1" |
Shamile Khan | 25c1781 | 2018-03-19 17:03:48 -0700 | [diff] [blame] | 19 | register "pcie_rp_deemphasis_enable[1]" = "1" |
Shamile Khan | 25c1781 | 2018-03-19 17:03:48 -0700 | [diff] [blame] | 20 | register "pcie_rp_deemphasis_enable[3]" = "1" |
| 21 | register "pcie_rp_deemphasis_enable[4]" = "1" |
| 22 | register "pcie_rp_deemphasis_enable[5]" = "1" |
| 23 | |
Justin TerAvest | 3cb00ef | 2018-03-16 12:50:13 -0600 | [diff] [blame] | 24 | # GPIO for PERST_0 (WLAN_PE_RST) |
| 25 | register "prt0_gpio" = "GPIO_164" |
| 26 | |
Shamile Khan | c5f354b | 2018-02-22 13:45:39 -0800 | [diff] [blame] | 27 | # GPE configuration |
| 28 | # Note that GPE events called out in ASL code rely on this |
| 29 | # route, i.e., if this route changes then the affected GPE |
| 30 | # offset bits also need to be changed. This sets the PMC register |
| 31 | # GPE_CFG fields. |
Furquan Shaikh | 1313244 | 2018-06-07 15:27:14 -0700 | [diff] [blame] | 32 | # DW1 is used by: |
| 33 | # - GPIO_63 - H1_PCH_INT_ODL |
| 34 | # DW2 is used by: |
| 35 | # - GPIO_141 - EC_PCH_WAKE_ODL |
| 36 | # - GPIO_142 - TRACKPAD_INT2_1V8_ODL |
| 37 | # - GPIO_144 - PEN_EJECT_ODL |
| 38 | # DW3 is used by: |
| 39 | # - GPIO_117 - LTE_WAKE_ODL |
| 40 | # - GPIO_119 - WLAN_PCIE_WAKE_ODL |
| 41 | register "gpe0_dw1" = "PMC_GPE_NW_63_32" |
Shamile Khan | c5f354b | 2018-02-22 13:45:39 -0800 | [diff] [blame] | 42 | register "gpe0_dw2" = "PMC_GPE_N_95_64" |
Furquan Shaikh | 1313244 | 2018-06-07 15:27:14 -0700 | [diff] [blame] | 43 | register "gpe0_dw3" = "PMC_GPE_N_63_32" |
Shamile Khan | c5f354b | 2018-02-22 13:45:39 -0800 | [diff] [blame] | 44 | |
Sumeet R Pawnikar | 2adb50d | 2020-05-09 15:37:09 +0530 | [diff] [blame] | 45 | # PL1 override 10 W: Due to error in the energy calculation for |
Sumeet Pawnikar | 65d2d21 | 2018-03-23 23:30:43 +0530 | [diff] [blame] | 46 | # current VR solution. Experiments show that SoC TDP max (6W) can |
Sumeet Pawnikar | f5fd9a3 | 2018-08-03 12:17:34 +0530 | [diff] [blame] | 47 | # be reached when RAPL PL1 is set to 10W. |
Sumeet Pawnikar | 65d2d21 | 2018-03-23 23:30:43 +0530 | [diff] [blame] | 48 | # Set RAPL PL2 to 15W. |
Sumeet R Pawnikar | 2adb50d | 2020-05-09 15:37:09 +0530 | [diff] [blame] | 49 | register "power_limits_config" = "{ |
| 50 | .tdp_pl1_override = 10, |
| 51 | .tdp_pl2_override = 15, |
| 52 | }" |
Sumeet Pawnikar | 65d2d21 | 2018-03-23 23:30:43 +0530 | [diff] [blame] | 53 | |
Shamile Khan | c5f354b | 2018-02-22 13:45:39 -0800 | [diff] [blame] | 54 | # Minimum SLP S3 assertion width 28ms. |
| 55 | register "slp_s3_assertion_width_usecs" = "28000" |
| 56 | |
| 57 | # Enable lpss s0ix |
| 58 | register "lpss_s0ix_enable" = "1" |
| 59 | |
Sumeet Pawnikar | 7efdacd | 2018-03-23 22:47:45 +0530 | [diff] [blame] | 60 | # Enable DPTF |
| 61 | register "dptf_enable" = "1" |
| 62 | |
Shamile Khan | cb9f55e | 2018-03-12 16:54:53 -0700 | [diff] [blame] | 63 | # Enable Audio Clock and Power gating |
| 64 | register "hdaudio_clk_gate_enable" = "1" |
| 65 | register "hdaudio_pwr_gate_enable" = "1" |
| 66 | register "hdaudio_bios_config_lockdown" = "1" |
| 67 | |
Subrata Banik | c4986eb | 2018-05-09 14:55:09 +0530 | [diff] [blame] | 68 | # Intel Common SoC Config |
| 69 | #+-------------------+---------------------------+ |
| 70 | #| Field | Value | |
| 71 | #+-------------------+---------------------------+ |
| 72 | #| GSPI0 | cr50 TPM. Early init is | |
| 73 | #| | required to set up a BAR | |
| 74 | #| | for TPM communication | |
| 75 | #| | before memory is up | |
| 76 | #| I2C0 | Digitizer | |
| 77 | #| I2C5 | Audio | |
| 78 | #| I2C6 | Trackpad | |
| 79 | #| I2C7 | Touchscreen | |
| 80 | #+-------------------+---------------------------+ |
| 81 | register "common_soc_config" = "{ |
| 82 | .gspi[0] = { |
| 83 | .speed_mhz = 1, |
| 84 | .early_init = 1, |
| 85 | }, |
| 86 | .i2c[0] = { |
| 87 | .speed = I2C_SPEED_FAST, |
| 88 | .rise_time_ns = 152, |
| 89 | .fall_time_ns = 30, |
| 90 | }, |
| 91 | .i2c[5] = { |
| 92 | .speed = I2C_SPEED_FAST, |
| 93 | .rise_time_ns = 104, |
| 94 | .fall_time_ns = 52, |
| 95 | }, |
| 96 | .i2c[6] = { |
| 97 | .speed = I2C_SPEED_FAST, |
| 98 | .rise_time_ns = 114, |
| 99 | .fall_time_ns = 164, |
| 100 | .data_hold_time_ns = 350, |
| 101 | }, |
| 102 | .i2c[7] = { |
| 103 | .speed = I2C_SPEED_FAST, |
| 104 | .rise_time_ns = 76, |
| 105 | .fall_time_ns = 164, |
| 106 | }, |
Ravi Sarawadi | c293496 | 2018-02-27 13:57:01 -0800 | [diff] [blame] | 107 | }" |
| 108 | |
Shaunak Saha | ea5c0a1 | 2018-03-21 08:34:17 -0700 | [diff] [blame] | 109 | register "pnp_settings" = "PNP_PERF_POWER" |
| 110 | |
Shamile Khan | c5f354b | 2018-02-22 13:45:39 -0800 | [diff] [blame] | 111 | device domain 0 on |
| 112 | device pci 00.0 on end # - Host Bridge |
| 113 | device pci 00.1 on end # - DPTF |
Shaunak Saha | 55fe082 | 2018-04-23 16:25:44 -0700 | [diff] [blame] | 114 | device pci 00.2 off end # - NPK |
Matt DeVillier | 2c6a725 | 2020-04-21 01:20:29 -0500 | [diff] [blame] | 115 | device pci 02.0 on # - Gen |
| 116 | register "gfx" = "GMA_DEFAULT_PANEL(0)" |
| 117 | end |
Franklin He | 00cc4c9 | 2020-03-17 16:33:22 +1100 | [diff] [blame] | 118 | device pci 03.0 on end # - Gaussian Mixture Model (GMM) |
Furquan Shaikh | edac4ef | 2020-10-09 08:50:14 -0700 | [diff] [blame] | 119 | device pci 0c.0 on |
| 120 | chip drivers/wifi/generic |
| 121 | register "wake" = "GPE0A_CNVI_PME_STS" |
| 122 | device generic 0 on end |
| 123 | end |
| 124 | end # - CNVi |
Shamile Khan | c5f354b | 2018-02-22 13:45:39 -0800 | [diff] [blame] | 125 | device pci 0d.0 on end # - P2SB |
| 126 | device pci 0d.1 on end # - PMC |
| 127 | device pci 0d.2 on end # - Fast SPI |
| 128 | device pci 0d.3 on end # - Shared SRAM |
Shamile Khan | cb9f55e | 2018-03-12 16:54:53 -0700 | [diff] [blame] | 129 | device pci 0e.0 on |
| 130 | chip drivers/generic/max98357a |
Aamir Bohra | a1c82c5 | 2020-03-16 18:57:48 +0530 | [diff] [blame] | 131 | register "hid" = ""MX98357A"" |
Shamile Khan | cb9f55e | 2018-03-12 16:54:53 -0700 | [diff] [blame] | 132 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_91)" |
| 133 | register "sdmode_delay" = "5" |
| 134 | device generic 0 on end |
| 135 | end |
| 136 | end # - Audio |
Shamile Khan | c5f354b | 2018-02-22 13:45:39 -0800 | [diff] [blame] | 137 | device pci 0f.0 on end # - Heci1 |
| 138 | device pci 0f.1 on end # - Heci2 |
| 139 | device pci 0f.2 on end # - Heci3 |
| 140 | device pci 11.0 off end # - ISH |
| 141 | device pci 12.0 off end # - SATA |
Furquan Shaikh | ade3bc5 | 2018-03-28 11:53:37 -0700 | [diff] [blame] | 142 | device pci 13.0 on |
Furquan Shaikh | a266d1e | 2020-10-04 12:52:54 -0700 | [diff] [blame] | 143 | chip drivers/wifi/generic |
Furquan Shaikh | 1313244 | 2018-06-07 15:27:14 -0700 | [diff] [blame] | 144 | register "wake" = "GPE0_DW3_11" |
Furquan Shaikh | ade3bc5 | 2018-03-28 11:53:37 -0700 | [diff] [blame] | 145 | device pci 00.0 on end |
| 146 | end |
| 147 | end # - PCIe-A 0 Onboard M2 Slot(Wifi) |
Shamile Khan | c5f354b | 2018-02-22 13:45:39 -0800 | [diff] [blame] | 148 | device pci 13.1 off end # - PCIe-A 1 |
| 149 | device pci 13.2 off end # - PCIe-A 2 |
| 150 | device pci 13.3 off end # - PCIe-A 3 |
| 151 | device pci 14.0 off end # - PCIe-B 0 |
| 152 | device pci 14.1 off end # - PCIe-B 1 |
Karthikeyan Ramasubramanian | cd69259 | 2019-01-28 16:01:13 -0700 | [diff] [blame] | 153 | device pci 15.0 on |
| 154 | chip drivers/usb/acpi |
| 155 | register "desc" = ""Root Hub"" |
| 156 | register "type" = "UPC_TYPE_HUB" |
| 157 | device usb 0.0 on |
| 158 | chip drivers/usb/acpi |
Karthikeyan Ramasubramanian | 25fcdce | 2019-06-05 10:29:17 -0600 | [diff] [blame] | 159 | register "desc" = ""Left Type-C Port"" |
| 160 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 161 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
| 162 | device usb 2.0 on end |
| 163 | end |
| 164 | chip drivers/usb/acpi |
| 165 | register "desc" = ""Left Type-A Port"" |
| 166 | register "type" = "UPC_TYPE_A" |
| 167 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
| 168 | device usb 2.1 on end |
| 169 | end |
| 170 | chip drivers/usb/acpi |
Karthikeyan Ramasubramanian | cd69259 | 2019-01-28 16:01:13 -0700 | [diff] [blame] | 171 | register "desc" = ""Bluetooth"" |
| 172 | register "type" = "UPC_TYPE_INTERNAL" |
| 173 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPIO_109)" |
| 174 | device usb 2.2 on end |
| 175 | end |
Karthikeyan Ramasubramanian | 8a64b6f | 2019-01-31 11:26:50 -0700 | [diff] [blame] | 176 | chip drivers/usb/acpi |
Karthikeyan Ramasubramanian | 25fcdce | 2019-06-05 10:29:17 -0600 | [diff] [blame] | 177 | register "desc" = ""Right Type-A Port"" |
| 178 | register "type" = "UPC_TYPE_A" |
| 179 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 180 | device usb 2.3 on end |
| 181 | end |
| 182 | chip drivers/usb/acpi |
| 183 | register "desc" = ""Right Type-C Port"" |
| 184 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 185 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
| 186 | device usb 2.4 on end |
| 187 | end |
| 188 | chip drivers/usb/acpi |
| 189 | register "desc" = ""SDCard"" |
| 190 | register "type" = "UPC_TYPE_EXPRESSCARD" |
| 191 | device usb 2.5 on end |
| 192 | end |
| 193 | chip drivers/usb/acpi |
| 194 | register "desc" = ""User Facing Camera"" |
| 195 | register "type" = "UPC_TYPE_INTERNAL" |
| 196 | device usb 2.6 on end |
| 197 | end |
| 198 | chip drivers/usb/acpi |
| 199 | register "desc" = ""World Facing Camera"" |
| 200 | register "type" = "UPC_TYPE_INTERNAL" |
| 201 | device usb 2.7 on end |
| 202 | end |
| 203 | chip drivers/usb/acpi |
Karthikeyan Ramasubramanian | 8a64b6f | 2019-01-31 11:26:50 -0700 | [diff] [blame] | 204 | register "desc" = ""Bluetooth"" |
| 205 | register "type" = "UPC_TYPE_INTERNAL" |
| 206 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPIO_109)" |
Karthikeyan Ramasubramanian | 783be13 | 2019-02-13 10:02:10 -0700 | [diff] [blame] | 207 | device usb 2.8 on end |
Karthikeyan Ramasubramanian | 8a64b6f | 2019-01-31 11:26:50 -0700 | [diff] [blame] | 208 | end |
Karthikeyan Ramasubramanian | 25fcdce | 2019-06-05 10:29:17 -0600 | [diff] [blame] | 209 | chip drivers/usb/acpi |
| 210 | register "desc" = ""Left Type-C Port"" |
| 211 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 212 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
| 213 | device usb 3.0 on end |
| 214 | end |
| 215 | chip drivers/usb/acpi |
| 216 | register "desc" = ""Left Type-A Port"" |
| 217 | register "type" = "UPC_TYPE_USB3_A" |
| 218 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
| 219 | device usb 3.1 on end |
| 220 | end |
| 221 | chip drivers/usb/acpi |
| 222 | register "desc" = ""Right Type-A Port"" |
| 223 | register "type" = "UPC_TYPE_USB3_A" |
| 224 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 225 | device usb 3.3 on end |
| 226 | end |
| 227 | chip drivers/usb/acpi |
| 228 | register "desc" = ""Right Type-C Port"" |
| 229 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 230 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
| 231 | device usb 3.4 on end |
| 232 | end |
| 233 | chip drivers/usb/acpi |
| 234 | register "desc" = ""SDCard"" |
| 235 | register "type" = "UPC_TYPE_EXPRESSCARD" |
| 236 | device usb 3.5 on end |
| 237 | end |
Karthikeyan Ramasubramanian | cd69259 | 2019-01-28 16:01:13 -0700 | [diff] [blame] | 238 | end |
| 239 | end |
| 240 | end # - XHCI |
Jagadish Krishnamoorthy | 757a246 | 2018-05-17 17:08:51 -0700 | [diff] [blame] | 241 | device pci 15.1 on end # - XDCI |
Furquan Shaikh | 0be087d | 2018-06-24 23:00:13 -0700 | [diff] [blame] | 242 | device pci 16.0 on end # - I2C 0 |
Tony Huang | 6cd9e63 | 2019-04-17 21:13:15 +0800 | [diff] [blame] | 243 | device pci 16.1 off end # - I2C 1 |
Furquan Shaikh | 4b95fa2 | 2018-08-10 11:58:54 -0700 | [diff] [blame] | 244 | device pci 16.2 off end # - I2C 2 |
Furquan Shaikh | 7780651 | 2018-10-04 17:55:36 -0700 | [diff] [blame] | 245 | device pci 16.3 off end # - I2C 3 |
Furquan Shaikh | 0be087d | 2018-06-24 23:00:13 -0700 | [diff] [blame] | 246 | device pci 17.0 on end # - I2C 4 |
| 247 | device pci 17.1 on end # - I2C 5 |
| 248 | device pci 17.2 on end # - I2C 6 |
| 249 | device pci 17.3 off end # - I2C 7 |
Shamile Khan | c5f354b | 2018-02-22 13:45:39 -0800 | [diff] [blame] | 250 | device pci 18.0 on end # - UART 0 |
| 251 | device pci 18.1 off end # - UART 1 |
| 252 | device pci 18.2 on end # - UART 2 |
| 253 | device pci 18.3 off end # - UART 3 |
Ravi Sarawadi | c293496 | 2018-02-27 13:57:01 -0800 | [diff] [blame] | 254 | device pci 19.0 on |
| 255 | chip drivers/spi/acpi |
| 256 | register "hid" = "ACPI_DT_NAMESPACE_HID" |
| 257 | register "compat_string" = ""google,cr50"" |
| 258 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPIO_63_IRQ)" |
| 259 | device spi 0 on end |
| 260 | end |
| 261 | end # - GSPI 0 |
Shamile Khan | c5f354b | 2018-02-22 13:45:39 -0800 | [diff] [blame] | 262 | device pci 19.1 off end # - SPI 1 |
| 263 | device pci 19.2 on end # - SPI 2 |
| 264 | device pci 1a.0 on end # - PWM |
| 265 | device pci 1c.0 on end # - eMMC |
Sean Rhodes | 9088b68 | 2022-06-08 21:41:53 +0100 | [diff] [blame^] | 266 | device pci 1d.0 on end # - UFS |
Shamile Khan | c5f354b | 2018-02-22 13:45:39 -0800 | [diff] [blame] | 267 | device pci 1e.0 off end # - SDIO |
| 268 | device pci 1f.0 on |
| 269 | chip ec/google/chromeec |
| 270 | device pnp 0c09.0 on end |
| 271 | end |
| 272 | end # - ESPI |
| 273 | device pci 1f.1 on end # - SMBUS |
| 274 | end |
John Zhao | 1e6a889 | 2018-11-05 14:45:02 -0800 | [diff] [blame] | 275 | |
| 276 | # FSP provides UPD interface to execute IPC command. PMIC has |
| 277 | # I2C_Slave_Address (31:24): 0x5E, Register_Offset (23:16): 0x43, |
| 278 | # RegOrValue (15:8): 0x2 and RegAndValue (7:0) 0xF8. |
| 279 | # The register is defined as: D[7:3] RSVD, D[2:0] PWROKDELAY. |
| 280 | # uint8 RegOrValue, RegAndValue, PmicReadReg |
Subrata Banik | 8e6d5f2 | 2020-08-30 13:51:44 +0530 | [diff] [blame] | 281 | # RegOrValue = (UINT8)((PmicPmcIpcCtrl >> 8) & 0xff); |
| 282 | # RegAndValue = (UINT8)(PmicPmcIpcCtrl & 0xff); |
John Zhao | 1e6a889 | 2018-11-05 14:45:02 -0800 | [diff] [blame] | 283 | # PmicReadReg &= RegAndValue; |
| 284 | # PmicReadReg |= RegOrValue; |
| 285 | # PmicReadReg value will be programmed into PMIC D[2:0] PWROKDELAY field |
| 286 | # and D[7:3] RSVD will not be impacted. |
| 287 | |
| 288 | # Configure PmicPmcIpcCtrl for PMC to program PMIC PCH_PWROK delay |
| 289 | # from 100ms to 10ms. |
| 290 | # PWROKDELAY[2:0]: 000=2.5ms, 001=5.0ms, 010=10ms, 011=15ms, 100=20ms, |
| 291 | # 101=50ms, 110=75ms, 111=100ms (default) |
| 292 | register "PmicPmcIpcCtrl" = "0x5e4302f8" |
Seunghwan Kim | 6c22be6 | 2020-08-13 14:52:37 +0900 | [diff] [blame] | 293 | |
| 294 | # FSP UPD to modify the Integrated Filter (IF) value |
Marx Wang | 81ab88b | 2020-09-21 20:15:40 +0800 | [diff] [blame] | 295 | # Set it to default value: 0x12 |
| 296 | register "ModPhyIfValue" = "0x12" |
Hannah Williams | 5e83e8b | 2018-02-09 18:35:17 -0800 | [diff] [blame] | 297 | end |