Christian Walter | b646e28 | 2020-01-09 15:42:42 +0100 | [diff] [blame] | 1 | chip soc/intel/cannonlake |
Angel Pons | 0515aa1 | 2021-10-15 14:22:30 +0200 | [diff] [blame] | 2 | # FSP configuration |
| 3 | |
| 4 | register "SataMode" = "0" # AHCI |
| 5 | register "SataSalpSupport" = "0" |
| 6 | register "satapwroptimize" = "1" |
| 7 | register "SataPortsDevSlp[1]" = "1" # PCH_M2_SATA_DEVSLP1 |
| 8 | |
| 9 | register "SataPortsEnable[0]" = "1" |
| 10 | register "SataPortsEnable[1]" = "1" # depends on SATAXPCIE1 |
| 11 | register "SataPortsEnable[2]" = "0" # Not used for SATA |
| 12 | register "SataPortsEnable[3]" = "0" # Not used for SATA |
| 13 | register "SataPortsEnable[4]" = "1" |
| 14 | register "SataPortsEnable[5]" = "1" |
| 15 | register "SataPortsEnable[6]" = "1" |
| 16 | register "SataPortsEnable[7]" = "1" |
| 17 | |
| 18 | register "SataPortsHotPlug[0]" = "1" |
| 19 | register "SataPortsHotPlug[1]" = "1" |
| 20 | register "SataPortsHotPlug[2]" = "0" |
| 21 | register "SataPortsHotPlug[3]" = "0" |
| 22 | register "SataPortsHotPlug[4]" = "1" |
| 23 | register "SataPortsHotPlug[5]" = "1" |
| 24 | register "SataPortsHotPlug[6]" = "1" |
| 25 | register "SataPortsHotPlug[7]" = "1" |
| 26 | |
| 27 | register "PchHdaDspEnable" = "0" |
| 28 | register "PchHdaAudioLinkHda" = "1" |
| 29 | |
Angel Pons | 047835a | 2021-10-15 15:39:32 +0200 | [diff] [blame] | 30 | register "PcieClkSrcUsage[0]" = "20" # PCIe Slot1 |
| 31 | register "PcieClkSrcUsage[1]" = "0x40" # PCIe Slot2 |
| 32 | register "PcieClkSrcUsage[2]" = "0x42" # PCIe Slot4 |
| 33 | register "PcieClkSrcUsage[3]" = "0x41" # PCIe Slot6 |
| 34 | register "PcieClkSrcUsage[4]" = "8" # RP9 M2 Slot M x4 |
| 35 | register "PcieClkSrcUsage[5]" = "15" # RP16 M2 Slot E x1 |
| 36 | register "PcieClkSrcUsage[6]" = "14" # BMC |
| 37 | register "PcieClkSrcUsage[7]" = "4" # PHY 3 |
| 38 | register "PcieClkSrcUsage[8]" = "PCIE_CLK_RP0" # PCIe Slot3 |
| 39 | register "PcieClkSrcUsage[9]" = "5" # PHY 4 |
| 40 | register "PcieClkSrcUsage[10]" = "6" # PHY 2 |
| 41 | register "PcieClkSrcUsage[11]" = "7" # PHY 1 |
| 42 | register "PcieClkSrcUsage[12]" = "13" # PHY 0 |
| 43 | register "PcieClkSrcUsage[13]" = "0x42" # PB |
Angel Pons | 1bfabb0 | 2021-10-15 15:11:38 +0200 | [diff] [blame] | 44 | register "PcieClkSrcUsage[14]" = "PCIE_CLK_NOTUSED" |
| 45 | register "PcieClkSrcUsage[15]" = "PCIE_CLK_NOTUSED" |
Angel Pons | 0515aa1 | 2021-10-15 14:22:30 +0200 | [diff] [blame] | 46 | |
Angel Pons | 047835a | 2021-10-15 15:39:32 +0200 | [diff] [blame] | 47 | # Only enable CLKREQ# for M.2 slots |
| 48 | register "PcieClkSrcClkReq[0]" = "PCIE_CLK_NOTUSED" |
| 49 | register "PcieClkSrcClkReq[1]" = "PCIE_CLK_NOTUSED" |
| 50 | register "PcieClkSrcClkReq[2]" = "PCIE_CLK_NOTUSED" |
| 51 | register "PcieClkSrcClkReq[3]" = "PCIE_CLK_NOTUSED" |
| 52 | register "PcieClkSrcClkReq[4]" = "4" # M2_M_CLK_REQ_n |
| 53 | register "PcieClkSrcClkReq[5]" = "5" # M2_E_CLK_REQ_n |
| 54 | register "PcieClkSrcClkReq[6]" = "PCIE_CLK_NOTUSED" |
| 55 | register "PcieClkSrcClkReq[7]" = "PCIE_CLK_NOTUSED" |
| 56 | register "PcieClkSrcClkReq[8]" = "PCIE_CLK_NOTUSED" |
| 57 | register "PcieClkSrcClkReq[9]" = "PCIE_CLK_NOTUSED" |
| 58 | register "PcieClkSrcClkReq[10]" = "PCIE_CLK_NOTUSED" |
| 59 | register "PcieClkSrcClkReq[11]" = "PCIE_CLK_NOTUSED" |
| 60 | register "PcieClkSrcClkReq[12]" = "PCIE_CLK_NOTUSED" |
| 61 | register "PcieClkSrcClkReq[13]" = "PCIE_CLK_NOTUSED" |
Angel Pons | 0515aa1 | 2021-10-15 14:22:30 +0200 | [diff] [blame] | 62 | |
| 63 | # USB OC5-7: not connected |
| 64 | register "usb2_ports" = "{ |
| 65 | |
| 66 | #define HERMES_USB2_CONFIG(pin) { \ |
| 67 | .enable = 1, \ |
| 68 | .ocpin = (pin), \ |
| 69 | .tx_bias = USB2_BIAS_0MV, \ |
| 70 | .tx_emp_enable = USB2_DE_EMP_ON_PRE_EMP_ON, \ |
| 71 | .pre_emp_bias = USB2_BIAS_28P15MV, \ |
| 72 | .pre_emp_bit = USB2_FULL_BIT_PRE_EMP, \ |
| 73 | } |
| 74 | [0] = HERMES_USB2_CONFIG(OC0), /* USB3 rear panel 1 */ |
| 75 | [1] = HERMES_USB2_CONFIG(OC0), |
| 76 | [2] = HERMES_USB2_CONFIG(OC1), /* USB3 rear panel 2 */ |
| 77 | [3] = HERMES_USB2_CONFIG(OC1), |
| 78 | [4] = HERMES_USB2_CONFIG(OC2), /* USB3 internal header CN_USB3_HDR */ |
| 79 | [5] = HERMES_USB2_CONFIG(OC2), |
| 80 | [6] = HERMES_USB2_CONFIG(OC3), /* USB2 internal header USB2_HDR1 */ |
| 81 | [7] = HERMES_USB2_CONFIG(OC3), |
| 82 | [8] = HERMES_USB2_CONFIG(OC4), /* USB2 internal header USB2_HDR1 */ |
| 83 | [9] = HERMES_USB2_CONFIG(OC4), |
| 84 | [10] = HERMES_USB2_CONFIG(OC_SKIP), /* BMC */ |
| 85 | [11] = USB2_PORT_EMPTY, |
| 86 | [12] = HERMES_USB2_CONFIG(OC_SKIP), /* piggy-back */ |
| 87 | [13] = HERMES_USB2_CONFIG(OC_SKIP), /* M.2 key E */ |
| 88 | }" |
| 89 | |
| 90 | # USB Config 2.0/3.0 |
| 91 | # Enumeration starts at 0 |
| 92 | # USB 3.0 |
| 93 | # USB OC0: RP1 |
| 94 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" |
| 95 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC0)" |
| 96 | |
| 97 | # USB OC1: RP2 |
| 98 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC1)" |
| 99 | register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC1)" |
| 100 | |
| 101 | # USB OC2: Internal Header CN_USB3_HDR |
| 102 | register "usb3_ports[4]" = "USB3_PORT_DEFAULT(OC2)" |
| 103 | register "usb3_ports[5]" = "USB3_PORT_DEFAULT(OC2)" |
| 104 | |
| 105 | # Thermal |
| 106 | register "tcc_offset" = "1" # TCC of 99C |
| 107 | |
| 108 | # Disable S0ix |
| 109 | register "s0ix_enable" = "0" |
| 110 | |
| 111 | # Enable Turbo |
| 112 | register "eist_enable" = "1" |
| 113 | |
| 114 | register "common_soc_config" = "{ |
| 115 | .gspi[0] = { |
| 116 | .speed_mhz = 1, |
| 117 | .early_init = 1, |
| 118 | }, |
| 119 | }" |
| 120 | |
| 121 | # VR Power Delivery Design |
| 122 | register "VrPowerDeliveryDesign" = "0x12" |
| 123 | |
| 124 | register "SerialIoDevMode" = "{ |
| 125 | [PchSerialIoIndexI2C0] = PchSerialIoDisabled, |
| 126 | [PchSerialIoIndexI2C1] = PchSerialIoDisabled, |
| 127 | [PchSerialIoIndexI2C2] = PchSerialIoDisabled, |
| 128 | [PchSerialIoIndexI2C3] = PchSerialIoDisabled, |
| 129 | [PchSerialIoIndexI2C4] = PchSerialIoDisabled, |
| 130 | [PchSerialIoIndexI2C5] = PchSerialIoDisabled, |
| 131 | [PchSerialIoIndexSPI0] = PchSerialIoPci, |
| 132 | [PchSerialIoIndexSPI1] = PchSerialIoDisabled, |
| 133 | [PchSerialIoIndexUART0] = PchSerialIoPci, |
| 134 | [PchSerialIoIndexUART1] = PchSerialIoPci, |
| 135 | [PchSerialIoIndexUART2] = PchSerialIoPci, |
| 136 | }" |
| 137 | |
| 138 | register "DisableHeciRetry" = "1" |
| 139 | |
Christian Walter | b646e28 | 2020-01-09 15:42:42 +0100 | [diff] [blame] | 140 | device cpu_cluster 0 on |
| 141 | device lapic 0 on end |
| 142 | end |
| 143 | |
| 144 | device domain 0 on |
| 145 | device pci 00.0 on end # Host Bridge |
| 146 | device pci 01.0 on # PEG x8 / Slot 2 |
| 147 | smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthOther" "SLOT2" "SlotDataBusWidth8X" |
| 148 | end |
| 149 | device pci 01.1 on # PEG x4 or x8 / Slot 6 |
| 150 | smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthOther" "SLOT6" "SlotDataBusWidth4X" |
| 151 | end |
| 152 | device pci 01.2 on # PEG x4 or disabled / Slot 4 |
| 153 | smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthOther" "SLOT4" "SlotDataBusWidth4X" |
| 154 | end |
Angel Pons | 0515aa1 | 2021-10-15 14:22:30 +0200 | [diff] [blame] | 155 | device pci 02.0 on end # Integrated Graphics Device |
Christian Walter | b646e28 | 2020-01-09 15:42:42 +0100 | [diff] [blame] | 156 | device pci 04.0 on end # SA Thermal device |
Christian Walter | b646e28 | 2020-01-09 15:42:42 +0100 | [diff] [blame] | 157 | device pci 08.0 on end # Gaussian Mixture |
| 158 | device pci 12.0 on end # Thermal Subsystem |
| 159 | device pci 14.0 on end # USB xHCI |
Patrick Rudolph | ae758fa | 2020-06-18 11:34:19 +0200 | [diff] [blame] | 160 | device pci 14.1 off end # USB xDCI (OTG) |
Christian Walter | b646e28 | 2020-01-09 15:42:42 +0100 | [diff] [blame] | 161 | device pci 14.2 on end # RAM controller |
Angel Pons | 0515aa1 | 2021-10-15 14:22:30 +0200 | [diff] [blame] | 162 | device pci 14.3 on |
| 163 | chip drivers/wifi/generic |
| 164 | register "wake" = "PME_B0_EN_BIT" |
| 165 | device generic 0 on end |
| 166 | end |
| 167 | end # CNVi wifi |
Christian Walter | b646e28 | 2020-01-09 15:42:42 +0100 | [diff] [blame] | 168 | device pci 14.5 off end # SDCard |
Michael Niewöhner | 50a1072 | 2020-11-04 00:19:28 +0100 | [diff] [blame] | 169 | device pci 16.0 on end # Management Engine Interface 1 |
Felix Singer | 250a7ac | 2020-07-26 21:19:21 +0200 | [diff] [blame] | 170 | device pci 16.1 on end # Management Engine Interface 2 |
Felix Singer | d9e4594 | 2020-08-19 14:13:15 +0200 | [diff] [blame] | 171 | device pci 16.4 off end # Management Engine Interface 3 |
Christian Walter | b646e28 | 2020-01-09 15:42:42 +0100 | [diff] [blame] | 172 | device pci 17.0 on end # SATA |
Angel Pons | 0515aa1 | 2021-10-15 14:22:30 +0200 | [diff] [blame] | 173 | # This device does not have any function on CNP-H, but it needs |
| 174 | # to be here so that the resource allocator is aware of UART 2. |
| 175 | device pci 19.0 hidden end |
| 176 | chip soc/intel/common/block/uart |
| 177 | device pci 19.2 hidden |
| 178 | register "devid" = "PCI_DEVICE_ID_INTEL_CNP_H_UART2" |
| 179 | end # UART #2, in ACPI mode |
| 180 | end |
| 181 | device pci 1b.4 on # PCIe root port 21 (Slot 1) |
| 182 | smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthOther" "SLOT1" "SlotDataBusWidth4X" |
| 183 | register "PcieRpEnable[20]" = "1" |
| 184 | register "PcieRpLtrEnable[20]" = "1" |
| 185 | register "PcieRpSlotImplemented[20]" = "1" |
| 186 | register "PcieRpMaxPayload[20]" = "RpMaxPayload_256" |
| 187 | register "PcieRpAdvancedErrorReporting[20]" = "1" |
| 188 | register "PcieRpAspm[20]" = "AspmDisabled" |
| 189 | end |
| 190 | device pci 1c.0 on # PCIe root port 1 (Slot 3) |
| 191 | smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthOther" "SLOT3" "SlotDataBusWidth4X" |
| 192 | register "PcieRpEnable[0]" = "1" |
| 193 | register "PcieRpLtrEnable[0]" = "1" |
| 194 | register "PcieRpSlotImplemented[0]" = "1" |
| 195 | register "PcieRpMaxPayload[0]" = "RpMaxPayload_256" |
| 196 | register "PcieRpAdvancedErrorReporting[0]" = "1" |
| 197 | register "PcieRpAspm[0]" = "AspmDisabled" |
| 198 | end |
| 199 | device pci 1c.4 on # PCIe root port 5 (PHY 3) |
| 200 | register "PcieRpEnable[4]" = "1" |
Angel Pons | 9c30a294 | 2021-10-15 15:42:14 +0200 | [diff] [blame] | 201 | register "PcieRpLtrEnable[4]" = "1" |
Angel Pons | 0515aa1 | 2021-10-15 14:22:30 +0200 | [diff] [blame] | 202 | end |
| 203 | device pci 1c.5 on # PCIe root port 6 (PHY 4) |
| 204 | register "PcieRpEnable[5]" = "1" |
Angel Pons | 9c30a294 | 2021-10-15 15:42:14 +0200 | [diff] [blame] | 205 | register "PcieRpLtrEnable[5]" = "1" |
Angel Pons | 0515aa1 | 2021-10-15 14:22:30 +0200 | [diff] [blame] | 206 | end |
| 207 | device pci 1c.6 on # PCIe root port 7 (PHY 2) |
| 208 | register "PcieRpEnable[6]" = "1" |
Angel Pons | 9c30a294 | 2021-10-15 15:42:14 +0200 | [diff] [blame] | 209 | register "PcieRpLtrEnable[6]" = "1" |
Angel Pons | 0515aa1 | 2021-10-15 14:22:30 +0200 | [diff] [blame] | 210 | end |
| 211 | device pci 1c.7 on # PCIe root port 8 (PHY 1) |
| 212 | register "PcieRpEnable[7]" = "1" |
Angel Pons | 9c30a294 | 2021-10-15 15:42:14 +0200 | [diff] [blame] | 213 | register "PcieRpLtrEnable[7]" = "1" |
Angel Pons | 0515aa1 | 2021-10-15 14:22:30 +0200 | [diff] [blame] | 214 | end |
| 215 | device pci 1d.0 on # PCIe root port 9 (M2 M) |
| 216 | smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthOther" "M2 M" "SlotDataBusWidth4X" |
| 217 | register "PcieRpEnable[8]" = "1" |
Angel Pons | 9c30a294 | 2021-10-15 15:42:14 +0200 | [diff] [blame] | 218 | register "PcieRpLtrEnable[8]" = "1" |
Angel Pons | 0515aa1 | 2021-10-15 14:22:30 +0200 | [diff] [blame] | 219 | register "PcieRpSlotImplemented[8]" = "1" |
| 220 | end |
| 221 | device pci 1d.5 on # PCIe root port 14 (PHY 0) |
| 222 | register "PcieRpEnable[13]" = "1" |
Angel Pons | 9c30a294 | 2021-10-15 15:42:14 +0200 | [diff] [blame] | 223 | register "PcieRpLtrEnable[13]" = "1" |
Angel Pons | 0515aa1 | 2021-10-15 14:22:30 +0200 | [diff] [blame] | 224 | end |
| 225 | device pci 1d.6 on # PCIe root port 15 (BMC) |
| 226 | device pci 00.0 on # Aspeed PCI Bridge |
Christian Walter | b646e28 | 2020-01-09 15:42:42 +0100 | [diff] [blame] | 227 | device pci 00.0 on end # Aspeed 2500 VGA |
| 228 | end |
Angel Pons | 0515aa1 | 2021-10-15 14:22:30 +0200 | [diff] [blame] | 229 | register "PcieRpEnable[14]" = "1" |
Angel Pons | 9c30a294 | 2021-10-15 15:42:14 +0200 | [diff] [blame] | 230 | register "PcieRpLtrEnable[14]" = "1" |
Nico Huber | 119ace0 | 2019-10-02 16:02:06 +0200 | [diff] [blame] | 231 | register "PcieRpSlotImplemented[14]" = "1" |
Felix Singer | 2b9035e | 2020-08-18 23:12:55 +0200 | [diff] [blame] | 232 | end |
Angel Pons | 0515aa1 | 2021-10-15 14:22:30 +0200 | [diff] [blame] | 233 | device pci 1d.7 on # PCIe root port 16 (M.2 E/CNVi) |
| 234 | # Disabled when CNVi is present |
| 235 | register "PcieRpEnable[15]" = "1" |
Angel Pons | 9c30a294 | 2021-10-15 15:42:14 +0200 | [diff] [blame] | 236 | register "PcieRpLtrEnable[15]" = "1" |
Angel Pons | 0515aa1 | 2021-10-15 14:22:30 +0200 | [diff] [blame] | 237 | register "PcieRpSlotImplemented[15]" = "1" |
| 238 | end |
| 239 | device pci 1e.0 on end # UART #0 |
| 240 | device pci 1e.1 on end # UART #1 |
| 241 | device pci 1e.2 off end # GSPI #0 |
| 242 | device pci 1e.3 off end # GSPI #1 |
Elyes HAOUAS | bda27cd | 2020-06-27 07:17:16 +0200 | [diff] [blame] | 243 | device pci 1f.0 on # LPC Interface |
Christian Walter | b646e28 | 2020-01-09 15:42:42 +0100 | [diff] [blame] | 244 | chip drivers/pc80/tpm |
| 245 | device pnp 0c31.0 on end |
| 246 | end |
| 247 | # AST2500, but not enabled to decode LPC cycles |
| 248 | end |
Patrick Rudolph | 63df43d | 2021-09-11 08:17:39 +0200 | [diff] [blame] | 249 | device pci 1f.1 on end # P2SB |
| 250 | device pci 1f.2 hidden end # Power Management Controller |
| 251 | device pci 1f.3 on end # Intel HDA |
| 252 | device pci 1f.4 on end # SMBus |
| 253 | device pci 1f.5 on end # PCH SPI |
Christian Walter | b646e28 | 2020-01-09 15:42:42 +0100 | [diff] [blame] | 254 | end |
Christian Walter | b646e28 | 2020-01-09 15:42:42 +0100 | [diff] [blame] | 255 | end |