blob: c5b7e9469bcf4a1ad7aeab8936e864ac7407c76e [file] [log] [blame]
Barnali Sarkar2ed14f62016-11-29 16:51:08 +05301chip soc/intel/skylake
2
Felix Singercc93db92023-10-23 16:26:20 +02003 register "SataPortsEnable" = "{
4 [0] = 1,
5 [1] = 1,
6 [2] = 1,
7 }"
Barnali Sarkar2ed14f62016-11-29 16:51:08 +05308
9 # Enable deep Sx states
Duncan Laurie1fe32d62017-04-10 21:02:13 -070010 register "deep_s5_enable_ac" = "1"
11 register "deep_s5_enable_dc" = "1"
Barnali Sarkar2ed14f62016-11-29 16:51:08 +053012
13 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
Barnali Sarkar2ed14f62016-11-29 16:51:08 +053014 register "gen2_dec" = "0x000c0201"
15
Duncan Laurie4fa8a6f2017-03-14 16:37:55 -070016 # VR Settings Configuration for 4 Domains
17 #+----------------+-------+-------+-------+-------+
18 #| Domain/Setting | SA | IA | GTUS | GTS |
19 #+----------------+-------+-------+-------+-------+
20 #| Psi1Threshold | 20A | 20A | 20A | 20A |
Wim Vervoorn57aa8e32019-12-06 11:30:33 +010021 #| Psi2Threshold | 5A | 5A | 5A | 5A |
Duncan Laurie4fa8a6f2017-03-14 16:37:55 -070022 #| Psi3Threshold | 1A | 1A | 1A | 1A |
23 #| Psi3Enable | 1 | 1 | 1 | 1 |
24 #| Psi4Enable | 1 | 1 | 1 | 1 |
25 #| ImonSlope | 0 | 0 | 0 | 0 |
26 #| ImonOffset | 0 | 0 | 0 | 0 |
Wim Vervoorn57aa8e32019-12-06 11:30:33 +010027 #| IccMax | Auto | Auto | Auto | Auto |
28 #| VrVoltageLimit*| 0 | 0 | 0 | 0 |
Duncan Laurie4fa8a6f2017-03-14 16:37:55 -070029 #+----------------+-------+-------+-------+-------+
Wim Vervoorn57aa8e32019-12-06 11:30:33 +010030 #* VrVoltageLimit command not sent.
31
Barnali Sarkar2ed14f62016-11-29 16:51:08 +053032 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
Felix Singer21b5a9a2023-10-23 07:26:28 +020033 .vr_config_enable = 1,
34 .psi1threshold = VR_CFG_AMP(20),
35 .psi2threshold = VR_CFG_AMP(5),
36 .psi3threshold = VR_CFG_AMP(1),
37 .psi3enable = 1,
38 .psi4enable = 1,
39 .imon_slope = 0,
40 .imon_offset = 0,
41 .icc_max = 0,
42 .voltage_limit = 0
Barnali Sarkar2ed14f62016-11-29 16:51:08 +053043 }"
44
45 register "domain_vr_config[VR_IA_CORE]" = "{
Felix Singer21b5a9a2023-10-23 07:26:28 +020046 .vr_config_enable = 1,
47 .psi1threshold = VR_CFG_AMP(20),
48 .psi2threshold = VR_CFG_AMP(5),
49 .psi3threshold = VR_CFG_AMP(1),
50 .psi3enable = 1,
51 .psi4enable = 1,
52 .imon_slope = 0,
53 .imon_offset = 0,
54 .icc_max = 0,
55 .voltage_limit = 0
Barnali Sarkar2ed14f62016-11-29 16:51:08 +053056 }"
Barnali Sarkar2ed14f62016-11-29 16:51:08 +053057
58 register "domain_vr_config[VR_GT_UNSLICED]" = "{
Felix Singer21b5a9a2023-10-23 07:26:28 +020059 .vr_config_enable = 1,
60 .psi1threshold = VR_CFG_AMP(20),
61 .psi2threshold = VR_CFG_AMP(5),
62 .psi3threshold = VR_CFG_AMP(1),
63 .psi3enable = 1,
64 .psi4enable = 1,
65 .imon_slope = 0,
66 .imon_offset = 0,
67 .icc_max = 0,
68 .voltage_limit = 0
Barnali Sarkar2ed14f62016-11-29 16:51:08 +053069 }"
70
71 register "domain_vr_config[VR_GT_SLICED]" = "{
Felix Singer21b5a9a2023-10-23 07:26:28 +020072 .vr_config_enable = 1,
73 .psi1threshold = VR_CFG_AMP(20),
74 .psi2threshold = VR_CFG_AMP(5),
75 .psi3threshold = VR_CFG_AMP(1),
76 .psi3enable = 1,
77 .psi4enable = 1,
78 .imon_slope = 0,
79 .imon_offset = 0,
80 .icc_max = 0,
81 .voltage_limit = 0
Barnali Sarkar2ed14f62016-11-29 16:51:08 +053082 }"
83
Barnali Sarkar2ed14f62016-11-29 16:51:08 +053084 # Enable Root ports.
85 register "PcieRpEnable[2]" = "1"
86 register "PcieRpEnable[3]" = "1"
87 register "PcieRpEnable[4]" = "1"
88 register "PcieRpEnable[5]" = "1"
89 register "PcieRpEnable[8]" = "1"
90
91 # Enable CLKREQ#
92 register "PcieRpClkReqSupport[2]" = "1"
93 register "PcieRpClkReqSupport[3]" = "1"
94 register "PcieRpClkReqSupport[4]" = "1"
95 register "PcieRpClkReqSupport[5]" = "1"
96 register "PcieRpClkReqSupport[8]" = "1"
97
Divya Chellape7fb7ce2017-12-19 20:16:50 +053098 # RP 3 uses SRCCLKREQ5#
Barnali Sarkar2ed14f62016-11-29 16:51:08 +053099 register "PcieRpClkReqNumber[2]" = "5"
100 register "PcieRpClkReqNumber[3]" = "2"
101 register "PcieRpClkReqNumber[4]" = "3"
102 register "PcieRpClkReqNumber[5]" = "4"
103 register "PcieRpClkReqNumber[8]" = "1"
104
Alexander Goncharov893c3ae82023-02-04 15:20:37 +0400105 # RP 3 uses CLK SRC 5#
Divya Chellape7fb7ce2017-12-19 20:16:50 +0530106 register "PcieRpClkSrcNumber[2]" = "5"
Alexander Goncharov893c3ae82023-02-04 15:20:37 +0400107 # RP 4 uses CLK SRC 2#
Divya Chellape7fb7ce2017-12-19 20:16:50 +0530108 register "PcieRpClkSrcNumber[3]" = "2"
Alexander Goncharov893c3ae82023-02-04 15:20:37 +0400109 # RP 5 uses CLK SRC 3#
Divya Chellape7fb7ce2017-12-19 20:16:50 +0530110 register "PcieRpClkSrcNumber[4]" = "3"
Alexander Goncharov893c3ae82023-02-04 15:20:37 +0400111 # RP 6 uses CLK SRC 4#
Divya Chellape7fb7ce2017-12-19 20:16:50 +0530112 register "PcieRpClkSrcNumber[5]" = "4"
Alexander Goncharov893c3ae82023-02-04 15:20:37 +0400113 # RP 9 uses CLK SRC 1#
Divya Chellape7fb7ce2017-12-19 20:16:50 +0530114 register "PcieRpClkSrcNumber[8]" = "1"
Barnali Sarkar2ed14f62016-11-29 16:51:08 +0530115
Felix Singercc93db92023-10-23 16:26:20 +0200116 register "usb2_ports" = "{
117 [0] = USB2_PORT_MAX(OC0), /* TYPE-A Port */
118 [1] = USB2_PORT_MAX(OC2), /* TYPE-A Port */
119 [2] = USB2_PORT_MAX(OC_SKIP), /* Bluetooth */
120 [4] = USB2_PORT_MAX(OC1), /* Type-A Port */
121 [5] = USB2_PORT_MAX(OC_SKIP), /* TYPE-A Port */
122 [6] = USB2_PORT_MAX(OC2), /* TYPE-A Port */
123 [7] = USB2_PORT_MAX(OC2), /* TYPE-A Port */
124 [8] = USB2_PORT_MAX(OC_SKIP), /* TYPE-A Port */
125 [9] = USB2_PORT_MAX(OC_SKIP), /* TYPE-A Port */
126 [10] = USB2_PORT_MAX(OC_SKIP), /* TYPE-A Port */
127 [11] = USB2_PORT_MAX(OC_SKIP), /* TYPE-A Port */
128 }"
Barnali Sarkar2ed14f62016-11-29 16:51:08 +0530129
Felix Singercc93db92023-10-23 16:26:20 +0200130 register "usb3_ports" = "{
131 [0] = USB3_PORT_DEFAULT(OC0), /* TYPE-A Port */
132 [1] = USB3_PORT_DEFAULT(OC_SKIP), /* TYPE-A Port */
133 [2] = USB3_PORT_DEFAULT(OC_SKIP), /* TYPE-A Port */
134 [3] = USB3_PORT_DEFAULT(OC1), /* TYPE-A Port */
135 [4] = USB3_PORT_DEFAULT(OC2), /* TYPE-A Port */
136 [5] = USB3_PORT_DEFAULT(OC_SKIP), /* TYPE-A Port */
137 }"
Barnali Sarkar2ed14f62016-11-29 16:51:08 +0530138
Felix Singer21b5a9a2023-10-23 07:26:28 +0200139 register "SerialIoDevMode" = "{
140 [PchSerialIoIndexI2C0] = PchSerialIoPci,
141 [PchSerialIoIndexI2C1] = PchSerialIoPci,
142 [PchSerialIoIndexI2C2] = PchSerialIoDisabled,
143 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
144 [PchSerialIoIndexI2C4] = PchSerialIoPci,
145 [PchSerialIoIndexI2C5] = PchSerialIoDisabled,
146 [PchSerialIoIndexSpi0] = PchSerialIoDisabled,
147 [PchSerialIoIndexSpi1] = PchSerialIoDisabled,
148 [PchSerialIoIndexUart0] = PchSerialIoPci,
149 [PchSerialIoIndexUart1] = PchSerialIoDisabled,
150 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
Barnali Sarkar2ed14f62016-11-29 16:51:08 +0530151 }"
152
Barnali Sarkar2ed14f62016-11-29 16:51:08 +0530153 # Use default SD card detect GPIO configuration
Angel Pons6bd99f92021-02-20 00:16:47 +0100154 register "sdcard_cd_gpio" = "GPP_G5"
Barnali Sarkar2ed14f62016-11-29 16:51:08 +0530155
Arthur Heymans69cd7292022-11-07 13:52:11 +0100156 device cpu_cluster 0 on end
Barnali Sarkar2ed14f62016-11-29 16:51:08 +0530157 device domain 0 on
Felix Singer2dff4f02023-11-16 01:17:31 +0100158 device ref i2c2 off end
159 device ref i2c3 off end
160 device ref sata on end
161 device ref pcie_rp3 on end
162 device ref pcie_rp4 on end
163 device ref pcie_rp5 on end
164 device ref pcie_rp6 on end
165 device ref lpc_espi on
Barnali Sarkar2ed14f62016-11-29 16:51:08 +0530166 chip drivers/pc80/tpm
167 device pnp 0c31.0 on end
168 end
Felix Singer2dff4f02023-11-16 01:17:31 +0100169 end
Barnali Sarkar2ed14f62016-11-29 16:51:08 +0530170 end
171end