Barnali Sarkar | 2ed14f6 | 2016-11-29 16:51:08 +0530 | [diff] [blame] | 1 | chip soc/intel/skylake |
| 2 | |
Felix Singer | cc93db9 | 2023-10-23 16:26:20 +0200 | [diff] [blame] | 3 | register "SataPortsEnable" = "{ |
| 4 | [0] = 1, |
| 5 | [1] = 1, |
| 6 | [2] = 1, |
| 7 | }" |
Barnali Sarkar | 2ed14f6 | 2016-11-29 16:51:08 +0530 | [diff] [blame] | 8 | |
| 9 | # Enable deep Sx states |
Duncan Laurie | 1fe32d6 | 2017-04-10 21:02:13 -0700 | [diff] [blame] | 10 | register "deep_s5_enable_ac" = "1" |
| 11 | register "deep_s5_enable_dc" = "1" |
Barnali Sarkar | 2ed14f6 | 2016-11-29 16:51:08 +0530 | [diff] [blame] | 12 | |
Duncan Laurie | 4fa8a6f | 2017-03-14 16:37:55 -0700 | [diff] [blame] | 13 | # VR Settings Configuration for 4 Domains |
| 14 | #+----------------+-------+-------+-------+-------+ |
| 15 | #| Domain/Setting | SA | IA | GTUS | GTS | |
| 16 | #+----------------+-------+-------+-------+-------+ |
| 17 | #| Psi1Threshold | 20A | 20A | 20A | 20A | |
Wim Vervoorn | 57aa8e3 | 2019-12-06 11:30:33 +0100 | [diff] [blame] | 18 | #| Psi2Threshold | 5A | 5A | 5A | 5A | |
Duncan Laurie | 4fa8a6f | 2017-03-14 16:37:55 -0700 | [diff] [blame] | 19 | #| Psi3Threshold | 1A | 1A | 1A | 1A | |
| 20 | #| Psi3Enable | 1 | 1 | 1 | 1 | |
| 21 | #| Psi4Enable | 1 | 1 | 1 | 1 | |
| 22 | #| ImonSlope | 0 | 0 | 0 | 0 | |
| 23 | #| ImonOffset | 0 | 0 | 0 | 0 | |
Wim Vervoorn | 57aa8e3 | 2019-12-06 11:30:33 +0100 | [diff] [blame] | 24 | #| IccMax | Auto | Auto | Auto | Auto | |
| 25 | #| VrVoltageLimit*| 0 | 0 | 0 | 0 | |
Duncan Laurie | 4fa8a6f | 2017-03-14 16:37:55 -0700 | [diff] [blame] | 26 | #+----------------+-------+-------+-------+-------+ |
Wim Vervoorn | 57aa8e3 | 2019-12-06 11:30:33 +0100 | [diff] [blame] | 27 | #* VrVoltageLimit command not sent. |
| 28 | |
Barnali Sarkar | 2ed14f6 | 2016-11-29 16:51:08 +0530 | [diff] [blame] | 29 | register "domain_vr_config[VR_SYSTEM_AGENT]" = "{ |
Felix Singer | 21b5a9a | 2023-10-23 07:26:28 +0200 | [diff] [blame] | 30 | .vr_config_enable = 1, |
| 31 | .psi1threshold = VR_CFG_AMP(20), |
| 32 | .psi2threshold = VR_CFG_AMP(5), |
| 33 | .psi3threshold = VR_CFG_AMP(1), |
| 34 | .psi3enable = 1, |
| 35 | .psi4enable = 1, |
| 36 | .imon_slope = 0, |
| 37 | .imon_offset = 0, |
| 38 | .icc_max = 0, |
| 39 | .voltage_limit = 0 |
Barnali Sarkar | 2ed14f6 | 2016-11-29 16:51:08 +0530 | [diff] [blame] | 40 | }" |
| 41 | |
| 42 | register "domain_vr_config[VR_IA_CORE]" = "{ |
Felix Singer | 21b5a9a | 2023-10-23 07:26:28 +0200 | [diff] [blame] | 43 | .vr_config_enable = 1, |
| 44 | .psi1threshold = VR_CFG_AMP(20), |
| 45 | .psi2threshold = VR_CFG_AMP(5), |
| 46 | .psi3threshold = VR_CFG_AMP(1), |
| 47 | .psi3enable = 1, |
| 48 | .psi4enable = 1, |
| 49 | .imon_slope = 0, |
| 50 | .imon_offset = 0, |
| 51 | .icc_max = 0, |
| 52 | .voltage_limit = 0 |
Barnali Sarkar | 2ed14f6 | 2016-11-29 16:51:08 +0530 | [diff] [blame] | 53 | }" |
Barnali Sarkar | 2ed14f6 | 2016-11-29 16:51:08 +0530 | [diff] [blame] | 54 | |
| 55 | register "domain_vr_config[VR_GT_UNSLICED]" = "{ |
Felix Singer | 21b5a9a | 2023-10-23 07:26:28 +0200 | [diff] [blame] | 56 | .vr_config_enable = 1, |
| 57 | .psi1threshold = VR_CFG_AMP(20), |
| 58 | .psi2threshold = VR_CFG_AMP(5), |
| 59 | .psi3threshold = VR_CFG_AMP(1), |
| 60 | .psi3enable = 1, |
| 61 | .psi4enable = 1, |
| 62 | .imon_slope = 0, |
| 63 | .imon_offset = 0, |
| 64 | .icc_max = 0, |
| 65 | .voltage_limit = 0 |
Barnali Sarkar | 2ed14f6 | 2016-11-29 16:51:08 +0530 | [diff] [blame] | 66 | }" |
| 67 | |
| 68 | register "domain_vr_config[VR_GT_SLICED]" = "{ |
Felix Singer | 21b5a9a | 2023-10-23 07:26:28 +0200 | [diff] [blame] | 69 | .vr_config_enable = 1, |
| 70 | .psi1threshold = VR_CFG_AMP(20), |
| 71 | .psi2threshold = VR_CFG_AMP(5), |
| 72 | .psi3threshold = VR_CFG_AMP(1), |
| 73 | .psi3enable = 1, |
| 74 | .psi4enable = 1, |
| 75 | .imon_slope = 0, |
| 76 | .imon_offset = 0, |
| 77 | .icc_max = 0, |
| 78 | .voltage_limit = 0 |
Barnali Sarkar | 2ed14f6 | 2016-11-29 16:51:08 +0530 | [diff] [blame] | 79 | }" |
| 80 | |
Barnali Sarkar | 2ed14f6 | 2016-11-29 16:51:08 +0530 | [diff] [blame] | 81 | # Enable Root ports. |
| 82 | register "PcieRpEnable[2]" = "1" |
| 83 | register "PcieRpEnable[3]" = "1" |
| 84 | register "PcieRpEnable[4]" = "1" |
| 85 | register "PcieRpEnable[5]" = "1" |
| 86 | register "PcieRpEnable[8]" = "1" |
| 87 | |
| 88 | # Enable CLKREQ# |
| 89 | register "PcieRpClkReqSupport[2]" = "1" |
| 90 | register "PcieRpClkReqSupport[3]" = "1" |
| 91 | register "PcieRpClkReqSupport[4]" = "1" |
| 92 | register "PcieRpClkReqSupport[5]" = "1" |
| 93 | register "PcieRpClkReqSupport[8]" = "1" |
| 94 | |
Divya Chellap | e7fb7ce | 2017-12-19 20:16:50 +0530 | [diff] [blame] | 95 | # RP 3 uses SRCCLKREQ5# |
Barnali Sarkar | 2ed14f6 | 2016-11-29 16:51:08 +0530 | [diff] [blame] | 96 | register "PcieRpClkReqNumber[2]" = "5" |
| 97 | register "PcieRpClkReqNumber[3]" = "2" |
| 98 | register "PcieRpClkReqNumber[4]" = "3" |
| 99 | register "PcieRpClkReqNumber[5]" = "4" |
| 100 | register "PcieRpClkReqNumber[8]" = "1" |
| 101 | |
Alexander Goncharov | 893c3ae8 | 2023-02-04 15:20:37 +0400 | [diff] [blame] | 102 | # RP 3 uses CLK SRC 5# |
Divya Chellap | e7fb7ce | 2017-12-19 20:16:50 +0530 | [diff] [blame] | 103 | register "PcieRpClkSrcNumber[2]" = "5" |
Alexander Goncharov | 893c3ae8 | 2023-02-04 15:20:37 +0400 | [diff] [blame] | 104 | # RP 4 uses CLK SRC 2# |
Divya Chellap | e7fb7ce | 2017-12-19 20:16:50 +0530 | [diff] [blame] | 105 | register "PcieRpClkSrcNumber[3]" = "2" |
Alexander Goncharov | 893c3ae8 | 2023-02-04 15:20:37 +0400 | [diff] [blame] | 106 | # RP 5 uses CLK SRC 3# |
Divya Chellap | e7fb7ce | 2017-12-19 20:16:50 +0530 | [diff] [blame] | 107 | register "PcieRpClkSrcNumber[4]" = "3" |
Alexander Goncharov | 893c3ae8 | 2023-02-04 15:20:37 +0400 | [diff] [blame] | 108 | # RP 6 uses CLK SRC 4# |
Divya Chellap | e7fb7ce | 2017-12-19 20:16:50 +0530 | [diff] [blame] | 109 | register "PcieRpClkSrcNumber[5]" = "4" |
Alexander Goncharov | 893c3ae8 | 2023-02-04 15:20:37 +0400 | [diff] [blame] | 110 | # RP 9 uses CLK SRC 1# |
Divya Chellap | e7fb7ce | 2017-12-19 20:16:50 +0530 | [diff] [blame] | 111 | register "PcieRpClkSrcNumber[8]" = "1" |
Barnali Sarkar | 2ed14f6 | 2016-11-29 16:51:08 +0530 | [diff] [blame] | 112 | |
Barnali Sarkar | 2ed14f6 | 2016-11-29 16:51:08 +0530 | [diff] [blame] | 113 | |
Felix Singer | 21b5a9a | 2023-10-23 07:26:28 +0200 | [diff] [blame] | 114 | register "SerialIoDevMode" = "{ |
| 115 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 116 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 117 | [PchSerialIoIndexI2C2] = PchSerialIoDisabled, |
| 118 | [PchSerialIoIndexI2C3] = PchSerialIoDisabled, |
| 119 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
| 120 | [PchSerialIoIndexI2C5] = PchSerialIoDisabled, |
| 121 | [PchSerialIoIndexSpi0] = PchSerialIoDisabled, |
| 122 | [PchSerialIoIndexSpi1] = PchSerialIoDisabled, |
| 123 | [PchSerialIoIndexUart0] = PchSerialIoPci, |
| 124 | [PchSerialIoIndexUart1] = PchSerialIoDisabled, |
| 125 | [PchSerialIoIndexUart2] = PchSerialIoSkipInit, |
Barnali Sarkar | 2ed14f6 | 2016-11-29 16:51:08 +0530 | [diff] [blame] | 126 | }" |
| 127 | |
Barnali Sarkar | 2ed14f6 | 2016-11-29 16:51:08 +0530 | [diff] [blame] | 128 | # Use default SD card detect GPIO configuration |
Angel Pons | 6bd99f9 | 2021-02-20 00:16:47 +0100 | [diff] [blame] | 129 | register "sdcard_cd_gpio" = "GPP_G5" |
Barnali Sarkar | 2ed14f6 | 2016-11-29 16:51:08 +0530 | [diff] [blame] | 130 | |
Barnali Sarkar | 2ed14f6 | 2016-11-29 16:51:08 +0530 | [diff] [blame] | 131 | device domain 0 on |
Felix Singer | 6c83a71 | 2024-06-23 00:25:18 +0200 | [diff] [blame] | 132 | device ref south_xhci on |
| 133 | register "usb2_ports" = "{ |
| 134 | [0] = USB2_PORT_MAX(OC0), /* TYPE-A Port */ |
| 135 | [1] = USB2_PORT_MAX(OC2), /* TYPE-A Port */ |
| 136 | [2] = USB2_PORT_MAX(OC_SKIP), /* Bluetooth */ |
| 137 | [4] = USB2_PORT_MAX(OC1), /* Type-A Port */ |
| 138 | [5] = USB2_PORT_MAX(OC_SKIP), /* TYPE-A Port */ |
| 139 | [6] = USB2_PORT_MAX(OC2), /* TYPE-A Port */ |
| 140 | [7] = USB2_PORT_MAX(OC2), /* TYPE-A Port */ |
| 141 | [8] = USB2_PORT_MAX(OC_SKIP), /* TYPE-A Port */ |
| 142 | [9] = USB2_PORT_MAX(OC_SKIP), /* TYPE-A Port */ |
| 143 | [10] = USB2_PORT_MAX(OC_SKIP), /* TYPE-A Port */ |
| 144 | [11] = USB2_PORT_MAX(OC_SKIP), /* TYPE-A Port */ |
| 145 | }" |
| 146 | |
| 147 | register "usb3_ports" = "{ |
| 148 | [0] = USB3_PORT_DEFAULT(OC0), /* TYPE-A Port */ |
| 149 | [1] = USB3_PORT_DEFAULT(OC_SKIP), /* TYPE-A Port */ |
| 150 | [2] = USB3_PORT_DEFAULT(OC_SKIP), /* TYPE-A Port */ |
| 151 | [3] = USB3_PORT_DEFAULT(OC1), /* TYPE-A Port */ |
| 152 | [4] = USB3_PORT_DEFAULT(OC2), /* TYPE-A Port */ |
| 153 | [5] = USB3_PORT_DEFAULT(OC_SKIP), /* TYPE-A Port */ |
| 154 | }" |
| 155 | end |
Felix Singer | 2dff4f0 | 2023-11-16 01:17:31 +0100 | [diff] [blame] | 156 | device ref i2c2 off end |
| 157 | device ref i2c3 off end |
| 158 | device ref sata on end |
| 159 | device ref pcie_rp3 on end |
| 160 | device ref pcie_rp4 on end |
| 161 | device ref pcie_rp5 on end |
| 162 | device ref pcie_rp6 on end |
| 163 | device ref lpc_espi on |
Felix Singer | dcddc53f | 2024-06-23 03:39:24 +0200 | [diff] [blame^] | 164 | # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f |
| 165 | register "gen2_dec" = "0x000c0201" |
| 166 | |
Barnali Sarkar | 2ed14f6 | 2016-11-29 16:51:08 +0530 | [diff] [blame] | 167 | chip drivers/pc80/tpm |
| 168 | device pnp 0c31.0 on end |
| 169 | end |
Felix Singer | 2dff4f0 | 2023-11-16 01:17:31 +0100 | [diff] [blame] | 170 | end |
Barnali Sarkar | 2ed14f6 | 2016-11-29 16:51:08 +0530 | [diff] [blame] | 171 | end |
| 172 | end |