Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 1 | chip soc/intel/alderlake |
| 2 | |
| 3 | device cpu_cluster 0 on |
| 4 | device lapic 0 on end |
| 5 | end |
| 6 | |
Subrata Banik | 9b4f221 | 2020-10-10 15:53:33 +0530 | [diff] [blame] | 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. |
| 11 | register "pmc_gpe0_dw0" = "GPP_B" |
| 12 | register "pmc_gpe0_dw1" = "GPP_D" |
| 13 | register "pmc_gpe0_dw2" = "GPP_E" |
| 14 | |
| 15 | # FSP configuration |
Subrata Banik | 9b4f221 | 2020-10-10 15:53:33 +0530 | [diff] [blame] | 16 | |
| 17 | register "usb2_ports[0]" = "USB2_PORT_MID(OC0)" # Type-C Port1 |
| 18 | register "usb2_ports[1]" = "USB2_PORT_MID(OC0)" # Type-C Port2 |
| 19 | register "usb2_ports[2]" = "USB2_PORT_MID(OC3)" # Type-C Port3 |
| 20 | register "usb2_ports[3]" = "USB2_PORT_MID(OC_SKIP)" # M.2 WWAN |
| 21 | register "usb2_ports[4]" = "USB2_PORT_MID(OC3)" # Type-C Port4 |
| 22 | register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" # FPS connector |
| 23 | register "usb2_ports[6]" = "USB2_PORT_MID(OC0)" # USB3/2 Type A port1 |
| 24 | register "usb2_ports[7]" = "USB2_PORT_MID(OC0)" # USB3/2 Type A port2 |
| 25 | register "usb2_ports[8]" = "USB2_PORT_MID(OC3)" # USB3/2 Type A port3 |
| 26 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # M.2 WLAN |
| 27 | |
| 28 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC3)" # USB3/2 Type A port1 |
| 29 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC0)" # USB3/2 Type A port2 |
| 30 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC0)" # USB3/2 Type A port3 |
| 31 | register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # M.2 WWAN |
| 32 | |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 33 | # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f |
| 34 | register "gen1_dec" = "0x00fc0801" |
| 35 | register "gen2_dec" = "0x000c0201" |
| 36 | # EC memory map range is 0x900-0x9ff |
| 37 | register "gen3_dec" = "0x00fc0901" |
| 38 | register "gen4_dec" = "0x000c0081" |
| 39 | |
Subrata Banik | 16e4106 | 2020-10-06 20:13:06 +0530 | [diff] [blame] | 40 | register "PrmrrSize" = "0" |
| 41 | |
| 42 | # Enable PCH PCIE RP 5 using CLK 2 |
| 43 | register "PcieRpEnable[4]" = "1" |
Subrata Banik | 604a104 | 2020-10-14 22:02:48 +0530 | [diff] [blame] | 44 | register "PcieClkSrcClkReq[2]" = "2" |
Subrata Banik | 16e4106 | 2020-10-06 20:13:06 +0530 | [diff] [blame] | 45 | register "PcieClkSrcUsage[2]" = "0x4" |
| 46 | register "PcieRpClkReqDetect[4]" = "1" |
| 47 | |
| 48 | # Enable PCH PCIE RP 6 using CLK 5 |
| 49 | register "PcieRpEnable[5]" = "1" |
| 50 | register "PcieClkSrcClkReq[5]" = "5" |
| 51 | register "PcieClkSrcUsage[5]" = "0x5" |
| 52 | register "PcieRpClkReqDetect[5]" = "1" |
| 53 | |
Subrata Banik | 840679d | 2020-11-27 00:46:18 +0530 | [diff] [blame^] | 54 | # Enable PCH PCIE RP 8 using free running CLK (0x80) |
| 55 | register "PcieRpEnable[7]" = "1" |
| 56 | register "PcieClkSrcClkReq[7]" = "7" |
| 57 | register "PcieClkSrcUsage[7]" = "0x80" |
| 58 | register "PcieRpClkReqDetect[7]" = "1" |
| 59 | |
Subrata Banik | 16e4106 | 2020-10-06 20:13:06 +0530 | [diff] [blame] | 60 | # Enable PCH PCIE RP 9 using CLK 1 |
| 61 | register "PcieRpEnable[8]" = "1" |
Subrata Banik | 604a104 | 2020-10-14 22:02:48 +0530 | [diff] [blame] | 62 | register "PcieClkSrcClkReq[1]" = "1" |
Subrata Banik | 16e4106 | 2020-10-06 20:13:06 +0530 | [diff] [blame] | 63 | register "PcieClkSrcUsage[1]" = "0x8" |
| 64 | register "PcieRpClkReqDetect[8]" = "1" |
| 65 | |
Subrata Banik | 6147314 | 2020-10-14 22:06:48 +0530 | [diff] [blame] | 66 | # Enable PCH PCIE RP 11 for optane |
| 67 | register "PcieRpEnable[10]" = "1" |
Subrata Banik | 3f561a8 | 2020-10-14 22:12:12 +0530 | [diff] [blame] | 68 | # Hybrid storage mode |
| 69 | register "HybridStorageMode" = "1" |
Subrata Banik | 6147314 | 2020-10-14 22:06:48 +0530 | [diff] [blame] | 70 | |
Subrata Banik | 16e4106 | 2020-10-06 20:13:06 +0530 | [diff] [blame] | 71 | # Enable CPU PCIE RP 1 using PEG CLK 0 |
| 72 | register "PcieClkSrcUsage[0]" = "0x40" |
| 73 | |
| 74 | # Enable PCU PCIE PEG Slot 1 and 2 |
| 75 | register "PcieClkSrcUsage[3]" = "0x41" |
| 76 | register "PcieClkSrcUsage[4]" = "0x42" |
| 77 | |
| 78 | # Mark LAN CLK pins as unused as GbE 0:0x1f.6 is disabled below |
| 79 | register "PcieClkSrcUsage[6]" = "0xff" |
| 80 | |
Subrata Banik | 9b4f221 | 2020-10-10 15:53:33 +0530 | [diff] [blame] | 81 | register "SataSalpSupport" = "1" |
| 82 | |
| 83 | register "SataPortsEnable" = "{ |
| 84 | [0] = 1, |
| 85 | [1] = 1, |
| 86 | [2] = 1, |
| 87 | [3] = 1, |
| 88 | }" |
| 89 | |
| 90 | register "SataPortsDevSlp" = "{ |
| 91 | [0] = 1, |
| 92 | [1] = 1, |
| 93 | [2] = 1, |
| 94 | [3] = 1, |
| 95 | }" |
| 96 | |
| 97 | # Enable EDP in PortA |
| 98 | register "DdiPortAConfig" = "1" |
Subrata Banik | 8ed53ec | 2020-11-21 19:50:56 +0530 | [diff] [blame] | 99 | # Enable HDMI in Port B |
| 100 | register "DdiPortBDdc" = "1" |
| 101 | register "DdiPortBHpd" = "1" |
Subrata Banik | 9b4f221 | 2020-10-10 15:53:33 +0530 | [diff] [blame] | 102 | |
| 103 | # TCSS USB3 |
| 104 | register "TcssAuxOri" = "0" |
| 105 | |
| 106 | register "s0ix_enable" = "1" |
| 107 | |
| 108 | register "SerialIoI2cMode" = "{ |
| 109 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 110 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 111 | [PchSerialIoIndexI2C2] = PchSerialIoPci, |
| 112 | [PchSerialIoIndexI2C3] = PchSerialIoPci, |
| 113 | [PchSerialIoIndexI2C4] = PchSerialIoDisabled, |
| 114 | [PchSerialIoIndexI2C5] = PchSerialIoPci, |
| 115 | }" |
| 116 | |
| 117 | register "SerialIoGSpiMode" = "{ |
| 118 | [PchSerialIoIndexGSPI0] = PchSerialIoPci, |
| 119 | [PchSerialIoIndexGSPI1] = PchSerialIoDisabled, |
| 120 | [PchSerialIoIndexGSPI2] = PchSerialIoDisabled, |
| 121 | [PchSerialIoIndexGSPI3] = PchSerialIoDisabled, |
| 122 | }" |
| 123 | |
| 124 | register "SerialIoGSpiCsMode" = "{ |
| 125 | [PchSerialIoIndexGSPI0] = 0, |
| 126 | [PchSerialIoIndexGSPI1] = 0, |
| 127 | [PchSerialIoIndexGSPI2] = 0, |
| 128 | [PchSerialIoIndexGSPI3] = 0, |
| 129 | }" |
| 130 | |
| 131 | register "SerialIoGSpiCsState" = "{ |
| 132 | [PchSerialIoIndexGSPI0] = 0, |
| 133 | [PchSerialIoIndexGSPI1] = 0, |
| 134 | [PchSerialIoIndexGSPI2] = 0, |
| 135 | [PchSerialIoIndexGSPI3] = 0, |
| 136 | }" |
| 137 | |
| 138 | register "SerialIoUartMode" = "{ |
| 139 | [PchSerialIoIndexUART0] = PchSerialIoSkipInit, |
| 140 | [PchSerialIoIndexUART1] = PchSerialIoDisabled, |
| 141 | [PchSerialIoIndexUART2] = PchSerialIoDisabled, |
| 142 | }" |
| 143 | |
| 144 | # HD Audio |
| 145 | register "PchHdaDspEnable" = "1" |
| 146 | register "PchHdaAudioLinkHdaEnable" = "0" |
| 147 | register "PchHdaAudioLinkDmicEnable[0]" = "1" |
| 148 | register "PchHdaAudioLinkDmicEnable[1]" = "1" |
| 149 | register "PchHdaAudioLinkSndwEnable[0]" = "1" |
| 150 | register "PchHdaAudioLinkSndwEnable[1]" = "1" |
| 151 | # iDisp-Link T-Mode 0: 2T, 2: 4T, 3: 8T, 4: 16T |
| 152 | register "PchHdaIDispLinkTmode" = "2" |
| 153 | # iDisp-Link Freq 4: 96MHz, 3: 48MHz. |
| 154 | register "PchHdaIDispLinkFrequency" = "4" |
| 155 | # Not disconnected/enumerable |
| 156 | register "PchHdaIDispCodecDisconnect" = "0" |
| 157 | |
| 158 | # Intel Common SoC Config |
| 159 | register "common_soc_config" = "{ |
| 160 | .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT, |
| 161 | .i2c[0] = { |
| 162 | .speed = I2C_SPEED_FAST, |
| 163 | }, |
| 164 | .i2c[1] = { |
| 165 | .speed = I2C_SPEED_FAST, |
| 166 | }, |
| 167 | .i2c[2] = { |
| 168 | .speed = I2C_SPEED_FAST, |
| 169 | }, |
| 170 | .i2c[3] = { |
| 171 | .speed = I2C_SPEED_FAST, |
| 172 | }, |
| 173 | .i2c[5] = { |
| 174 | .speed = I2C_SPEED_FAST, |
| 175 | }, |
| 176 | }" |
| 177 | |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 178 | device domain 0 on |
| 179 | device pci 00.0 on end # Host Bridge |
| 180 | device pci 02.0 on end # Graphics |
| 181 | device pci 04.0 on end # DPTF |
| 182 | device pci 05.0 on end # IPU |
| 183 | device pci 06.0 on end # PEG60 |
V Sowmya | 73caae9 | 2020-11-06 13:47:04 +0530 | [diff] [blame] | 184 | device pci 07.0 on end # TBT_PCIe0 |
| 185 | device pci 07.1 on end # TBT_PCIe1 |
| 186 | device pci 07.2 on end # TBT_PCIe2 |
| 187 | device pci 07.3 on end # TBT_PCIe3 |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 188 | device pci 08.0 off end # GNA |
| 189 | device pci 09.0 off end # NPK |
| 190 | device pci 0a.0 off end # Crash-log SRAM |
| 191 | device pci 0d.0 on end # USB xHCI |
V Sowmya | 73caae9 | 2020-11-06 13:47:04 +0530 | [diff] [blame] | 192 | device pci 0d.1 on end # USB xDCI (OTG) |
| 193 | device pci 0d.2 on end # TBT DMA0 |
| 194 | device pci 0d.3 on end # TBT DMA1 |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 195 | device pci 0e.0 off end # VMD |
| 196 | device pci 10.0 off end |
| 197 | device pci 10.1 off end |
| 198 | device pci 10.2 on end # CNVi: BT |
| 199 | device pci 10.6 off end # THC0 |
| 200 | device pci 10.7 off end # THC1 |
| 201 | device pci 11.0 off end |
| 202 | device pci 11.1 off end |
| 203 | device pci 11.2 off end |
| 204 | device pci 11.3 off end |
| 205 | device pci 11.4 off end |
| 206 | device pci 11.5 off end |
| 207 | device pci 12.0 off end # SensorHUB |
| 208 | device pci 12.5 off end |
| 209 | device pci 12.6 off end # GSPI2 |
| 210 | device pci 13.0 off end # GSPI3 |
| 211 | device pci 13.1 off end |
| 212 | device pci 14.0 on |
| 213 | chip drivers/usb/acpi |
| 214 | register "desc" = ""Root Hub"" |
| 215 | register "type" = "UPC_TYPE_HUB" |
| 216 | device usb 0.0 on |
| 217 | chip drivers/usb/acpi |
| 218 | register "desc" = ""Bluetooth"" |
| 219 | register "type" = "UPC_TYPE_INTERNAL" |
| 220 | device usb 2.9 on end |
| 221 | end |
| 222 | end |
| 223 | end |
| 224 | end # USB3.1 xHCI |
| 225 | device pci 14.1 off end # USB3.1 xDCI |
| 226 | device pci 14.2 off end # Shared RAM |
Furquan Shaikh | edac4ef | 2020-10-09 08:50:14 -0700 | [diff] [blame] | 227 | device pci 14.3 on |
| 228 | chip drivers/wifi/generic |
| 229 | register "wake" = "GPE0_PME_B0" |
| 230 | device generic 0 on end |
| 231 | end |
| 232 | end # CNVi: WiFi |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 233 | device pci 15.0 on end # I2C0 |
| 234 | device pci 15.1 on end # I2C1 |
| 235 | device pci 15.2 on end # I2C2 |
| 236 | device pci 15.3 on end # I2C3 |
| 237 | device pci 16.0 on end # HECI1 |
| 238 | device pci 16.1 off end # HECI2 |
| 239 | device pci 16.2 off end # CSME |
| 240 | device pci 16.3 off end # CSME |
| 241 | device pci 16.4 off end # HECI3 |
| 242 | device pci 16.5 off end # HECI4 |
| 243 | device pci 17.0 on end # SATA |
| 244 | device pci 19.0 off end # I2C4 |
| 245 | device pci 19.1 on end # I2C5 |
Subrata Banik | 9b4f221 | 2020-10-10 15:53:33 +0530 | [diff] [blame] | 246 | device pci 19.2 off end # UART2 |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 247 | device pci 1c.0 on end # RP1 |
Subrata Banik | 16e4106 | 2020-10-06 20:13:06 +0530 | [diff] [blame] | 248 | device pci 1c.1 off end # RP2 |
| 249 | device pci 1c.2 off end # RP3 |
| 250 | device pci 1c.3 off end # RP4 |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 251 | device pci 1c.4 on end # RP5 |
| 252 | device pci 1c.5 on end # RP6 |
Subrata Banik | 16e4106 | 2020-10-06 20:13:06 +0530 | [diff] [blame] | 253 | device pci 1c.6 off end # RP7 |
Subrata Banik | 840679d | 2020-11-27 00:46:18 +0530 | [diff] [blame^] | 254 | device pci 1c.7 on end # RP8 |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 255 | device pci 1d.0 on end # RP9 |
Subrata Banik | 16e4106 | 2020-10-06 20:13:06 +0530 | [diff] [blame] | 256 | device pci 1d.1 off end # RP10 |
Subrata Banik | 6147314 | 2020-10-14 22:06:48 +0530 | [diff] [blame] | 257 | device pci 1d.2 on end # RP11 |
Subrata Banik | 16e4106 | 2020-10-06 20:13:06 +0530 | [diff] [blame] | 258 | device pci 1d.3 off end # RP12 |
Subrata Banik | 9b4f221 | 2020-10-10 15:53:33 +0530 | [diff] [blame] | 259 | device pci 1e.0 on end # UART0 |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 260 | device pci 1e.1 off end # UART1 |
Subrata Banik | 9b4f221 | 2020-10-10 15:53:33 +0530 | [diff] [blame] | 261 | device pci 1e.2 on end # GSPI0 |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 262 | device pci 1e.3 off end # GSPI1 |
| 263 | device pci 1f.0 on end # eSPI |
| 264 | device pci 1f.1 on end # P2SB |
| 265 | device pci 1f.2 hidden end # PMC |
| 266 | device pci 1f.3 on |
| 267 | chip drivers/intel/soundwire |
| 268 | device generic 0 on |
Sridhar Siricilla | f2de1e7 | 2020-11-05 14:18:38 +0530 | [diff] [blame] | 269 | chip drivers/soundwire/alc711 |
| 270 | # SoundWire Link 0 ID 1 |
| 271 | register "desc" = ""Headset Codec"" |
| 272 | device generic 0.1 on end |
| 273 | end |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 274 | end |
| 275 | end |
| 276 | end # Intel Audio SNDW |
| 277 | device pci 1f.4 on end # SMBus |
| 278 | device pci 1f.5 on end # SPI |
| 279 | device pci 1f.6 off end # GbE |
| 280 | device pci 1f.7 off end # TH |
| 281 | end |
| 282 | end |