MiceLin | 87af90e | 2020-07-24 11:27:39 +0800 | [diff] [blame] | 1 | chip soc/intel/tigerlake |
| 2 | |
Nick Chen | 955ce24 | 2020-09-30 17:16:36 +0800 | [diff] [blame] | 3 | register "power_limits_config[POWER_LIMITS_U_2_CORE]" = "{ |
| 4 | .tdp_pl1_override = 15, |
| 5 | .tdp_pl2_override = 51, |
| 6 | }" |
| 7 | register "power_limits_config[POWER_LIMITS_U_4_CORE]" = "{ |
| 8 | .tdp_pl1_override = 15, |
| 9 | .tdp_pl2_override = 51, |
| 10 | }" |
| 11 | |
| 12 | register "tcc_offset" = "5" # TCC of 95 |
Brandon Breitenstein | 1df3b70 | 2020-08-10 15:02:41 -0700 | [diff] [blame] | 13 | register "TcssAuxOri" = "1" |
nick_xr_chen | 5200063 | 2020-09-10 18:53:31 +0800 | [diff] [blame] | 14 | register "DdiPort1Hpd" = "0" |
| 15 | register "DdiPort2Hpd" = "0" |
Brandon Breitenstein | 1df3b70 | 2020-08-10 15:02:41 -0700 | [diff] [blame] | 16 | register "IomTypeCPortPadCfg[0]" = "0x090E000A" |
| 17 | register "IomTypeCPortPadCfg[1]" = "0x090E000D" |
nick_xr_chen | 44097e2 | 2020-08-20 16:43:55 +0800 | [diff] [blame] | 18 | #+-------------------+---------------------------+ |
| 19 | #| Field | Value | |
| 20 | #+-------------------+---------------------------+ |
| 21 | #| chipset_lockdown | CHIPSET_LOCKDOWN_COREBOOT | |
| 22 | #| GSPI0 | cr50 TPM. Early init is | |
| 23 | #| | required to set up a BAR | |
| 24 | #| | for TPM communication | |
| 25 | #| | before memory is up | |
| 26 | #| GSPI1 | Fingerprint MCU | |
| 27 | #| I2C0 | Audio | |
| 28 | #| I2C1 | Touchscreen | |
| 29 | #| I2C2 | WLAN, SAR0 | |
| 30 | #| I2C3 | Camera, SAR1 | |
| 31 | #| I2C5 | Trackpad | |
| 32 | #+-------------------+---------------------------+ |
| 33 | register "common_soc_config" = "{ |
| 34 | .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT, |
| 35 | .gspi[0] = { |
| 36 | .speed_mhz = 1, |
| 37 | .early_init = 1, |
| 38 | }, |
| 39 | .i2c[0] = { |
| 40 | .speed = I2C_SPEED_FAST, |
| 41 | }, |
| 42 | .i2c[1] = { |
| 43 | .speed = I2C_SPEED_FAST, |
| 44 | }, |
| 45 | .i2c[2] = { |
| 46 | .speed = I2C_SPEED_FAST, |
| 47 | }, |
| 48 | .i2c[3] = { |
| 49 | .speed = I2C_SPEED_FAST, |
| 50 | }, |
| 51 | .i2c[5] = { |
| 52 | .speed = I2C_SPEED_FAST, |
| 53 | .speed_config[0] = { |
| 54 | .speed = I2C_SPEED_FAST, |
| 55 | .scl_lcnt = 163, |
| 56 | .scl_hcnt = 75, |
| 57 | .sda_hold = 36, |
| 58 | }, |
| 59 | }, |
| 60 | }" |
Nick Chen | 1856eff | 2020-11-23 15:40:57 +0800 | [diff] [blame] | 61 | |
| 62 | #Disable Type-A Port A1 |
| 63 | register "usb2_ports[1]" = "USB2_PORT_EMPTY" |
| 64 | |
| 65 | #Disable M.2 WWAN |
| 66 | register "usb2_ports[2]" = "USB2_PORT_EMPTY" |
| 67 | |
| 68 | #improve the USB2 Port1 eye diagram |
| 69 | register "usb2_ports[3]" = "USB2_PORT_SHORT(OC_SKIP)" |
| 70 | |
| 71 | #lower camera driving |
nick_xr_chen | d8279fd | 2020-09-22 10:56:43 +0800 | [diff] [blame] | 72 | register "usb2_ports[4]" = "{ |
| 73 | .enable = 1, |
Nick Chen | 1856eff | 2020-11-23 15:40:57 +0800 | [diff] [blame] | 74 | .tx_bias = 0, |
| 75 | .tx_emp_enable = 0, |
| 76 | .pre_emp_bias = 0, |
nick_xr_chen | d8279fd | 2020-09-22 10:56:43 +0800 | [diff] [blame] | 77 | .pre_emp_bit = 0, |
| 78 | }" |
| 79 | |
MiceLin | 87af90e | 2020-07-24 11:27:39 +0800 | [diff] [blame] | 80 | device domain 0 on |
Nick Chen | 955ce24 | 2020-09-30 17:16:36 +0800 | [diff] [blame] | 81 | device ref dptf on |
| 82 | # DPTF Policy for Eldrid board |
| 83 | chip drivers/intel/dptf |
| 84 | |
| 85 | ## Disable Active Policy from baseboard |
| 86 | register "policies.active" = "{[0] = {.target=DPTF_NONE}}" |
| 87 | |
| 88 | ## Passive Policy |
| 89 | register "policies.passive[0]" = "DPTF_PASSIVE(CPU,CPU,95,5000)" |
| 90 | register "policies.passive[1]" = "DPTF_PASSIVE(CPU,TEMP_SENSOR_2,60,6000)" |
| 91 | |
| 92 | ## Critical Policy |
| 93 | register "policies.critical[0]" = "DPTF_CRITICAL(CPU,100,SHUTDOWN)" |
| 94 | register "policies.critical[1]" = "DPTF_CRITICAL(TEMP_SENSOR_2,80,SHUTDOWN)" |
| 95 | |
| 96 | ## Power Limits Control |
| 97 | # 3-15W PL1 in 200mW increments, avg over 28-32s interval |
| 98 | # PL2 is fixed at 51W, avg over 28-32s interval |
| 99 | register "controls.power_limits" = "{ |
| 100 | .pl1 = {.min_power = 3000, |
| 101 | .max_power = 15000, |
| 102 | .time_window_min = 28 * MSECS_PER_SEC, |
| 103 | .time_window_max = 32 * MSECS_PER_SEC, |
| 104 | .granularity = 200,}, |
| 105 | .pl2 = {.min_power = 15000, |
| 106 | .max_power = 51000, |
| 107 | .time_window_min = 28 * MSECS_PER_SEC, |
| 108 | .time_window_max = 32 * MSECS_PER_SEC, |
| 109 | .granularity = 1000,}}" |
| 110 | |
| 111 | device generic 0 on end |
| 112 | end |
| 113 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 114 | device ref i2c0 on |
nick_xr_chen | 44097e2 | 2020-08-20 16:43:55 +0800 | [diff] [blame] | 115 | chip drivers/i2c/generic |
| 116 | register "hid" = ""10EC5682"" |
| 117 | register "name" = ""RT58"" |
| 118 | register "desc" = ""Headset Codec"" |
| 119 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_F8)" |
| 120 | # Set the jd_src to RT5668_JD1 for jack detection |
| 121 | register "property_count" = "1" |
| 122 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 123 | register "property_list[0].name" = ""realtek,jd-src"" |
| 124 | register "property_list[0].integer" = "1" |
| 125 | device i2c 1a on end |
| 126 | end |
| 127 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 128 | device ref i2c1 on |
nick_xr_chen | 44097e2 | 2020-08-20 16:43:55 +0800 | [diff] [blame] | 129 | chip drivers/i2c/hid |
| 130 | register "generic.hid" = ""GDIX0000"" |
| 131 | register "generic.desc" = ""Goodix Touchscreen"" |
Karthikeyan Ramasubramanian | 029e736 | 2020-11-10 13:41:31 -0700 | [diff] [blame] | 132 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)" |
nick_xr_chen | 44097e2 | 2020-08-20 16:43:55 +0800 | [diff] [blame] | 133 | register "generic.probed" = "1" |
| 134 | register "generic.reset_gpio" = |
| 135 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C10)" |
Nick Chen | b7a55fd | 2020-11-12 18:18:33 +0800 | [diff] [blame] | 136 | register "generic.reset_delay_ms" = "30" |
nick_xr_chen | 44097e2 | 2020-08-20 16:43:55 +0800 | [diff] [blame] | 137 | register "generic.reset_off_delay_ms" = "3" |
| 138 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A8)" |
| 139 | register "generic.enable_delay_ms" = "12" |
| 140 | register "generic.stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_E3)" |
| 141 | register "generic.stop_off_delay_ms" = "1" |
| 142 | register "generic.has_power_resource" = "1" |
| 143 | register "hid_desc_reg_offset" = "0x01" |
| 144 | device i2c 14 on end |
| 145 | end |
| 146 | chip drivers/i2c/hid |
| 147 | register "generic.hid" = ""ELAN90FC"" |
| 148 | register "generic.desc" = ""ELAN Touchscreen"" |
Karthikeyan Ramasubramanian | 029e736 | 2020-11-10 13:41:31 -0700 | [diff] [blame] | 149 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E7_IRQ)" |
nick_xr_chen | 44097e2 | 2020-08-20 16:43:55 +0800 | [diff] [blame] | 150 | register "generic.probed" = "1" |
| 151 | register "generic.reset_gpio" = |
| 152 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C10)" |
| 153 | register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A8)" |
| 154 | register "generic.reset_delay_ms" = "20" |
| 155 | register "generic.has_power_resource" = "1" |
| 156 | register "generic.disable_gpio_export_in_crs" = "1" |
| 157 | register "hid_desc_reg_offset" = "0x01" |
| 158 | device i2c 10 on end |
| 159 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 160 | end |
| 161 | device ref i2c5 on |
nick_xr_chen | 44097e2 | 2020-08-20 16:43:55 +0800 | [diff] [blame] | 162 | chip drivers/i2c/generic |
| 163 | register "hid" = ""ELAN0000"" |
| 164 | register "desc" = ""ELAN Touchpad"" |
| 165 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_E15_IRQ)" |
| 166 | register "wake" = "GPE0_DW2_15" |
| 167 | register "probed" = "1" |
| 168 | device i2c 15 on end |
| 169 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 170 | end |
Scott Chao | c97a1c0 | 2020-11-26 13:06:03 +0800 | [diff] [blame^] | 171 | device ref pch_espi on |
| 172 | chip ec/google/chromeec |
| 173 | use conn0 as mux_conn[0] |
| 174 | use conn1 as mux_conn[1] |
| 175 | device pnp 0c09.0 on end |
| 176 | end |
| 177 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 178 | device ref hda on |
nick_xr_chen | 44097e2 | 2020-08-20 16:43:55 +0800 | [diff] [blame] | 179 | chip drivers/generic/max98357a |
| 180 | register "hid" = ""MX98357A"" |
| 181 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A10)" |
| 182 | register "sdmode_delay" = "5" |
| 183 | device generic 0 on end |
| 184 | end |
| 185 | end |
Duncan Laurie | b0e169a | 2020-07-29 16:33:10 -0700 | [diff] [blame] | 186 | device ref pmc hidden |
nick_xr_chen | 44097e2 | 2020-08-20 16:43:55 +0800 | [diff] [blame] | 187 | # The pmc_mux chip driver is a placeholder for the |
| 188 | # PMC.MUX device in the ACPI hierarchy. |
| 189 | chip drivers/intel/pmc_mux |
| 190 | device generic 0 on |
| 191 | chip drivers/intel/pmc_mux/conn |
| 192 | register "usb2_port_number" = "9" |
| 193 | register "usb3_port_number" = "1" |
| 194 | # SBU & HSL follow CC |
Scott Chao | c97a1c0 | 2020-11-26 13:06:03 +0800 | [diff] [blame^] | 195 | device generic 0 alias conn0 on end |
nick_xr_chen | 44097e2 | 2020-08-20 16:43:55 +0800 | [diff] [blame] | 196 | end |
| 197 | chip drivers/intel/pmc_mux/conn |
| 198 | register "usb2_port_number" = "4" |
| 199 | register "usb3_port_number" = "2" |
| 200 | # SBU is fixed, HSL follows CC |
| 201 | register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" |
Scott Chao | c97a1c0 | 2020-11-26 13:06:03 +0800 | [diff] [blame^] | 202 | device generic 1 alias conn1 on end |
nick_xr_chen | 44097e2 | 2020-08-20 16:43:55 +0800 | [diff] [blame] | 203 | end |
| 204 | end |
| 205 | end |
| 206 | end # PMC |
Duncan Laurie | f78ade3 | 2020-10-27 11:06:02 -0700 | [diff] [blame] | 207 | device ref north_xhci on |
| 208 | chip drivers/usb/acpi |
| 209 | device ref tcss_root_hub on |
| 210 | chip drivers/usb/acpi |
| 211 | register "desc" = ""USB3 Type-C Port C0 (MLB)"" |
| 212 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 213 | register "group" = "ACPI_PLD_GROUP(3, 2)" |
| 214 | device ref tcss_usb3_port1 on end |
| 215 | end |
| 216 | chip drivers/usb/acpi |
| 217 | register "desc" = ""USB3 Type-C Port C1 (DB)"" |
| 218 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 219 | register "group" = "ACPI_PLD_GROUP(2, 2)" |
| 220 | device ref tcss_usb3_port2 on |
| 221 | probe DB_USB USB3_ACTIVE |
| 222 | end |
| 223 | end |
| 224 | end |
| 225 | end |
| 226 | end |
| 227 | device ref south_xhci on |
| 228 | chip drivers/usb/acpi |
| 229 | device ref xhci_root_hub on |
| 230 | chip drivers/usb/acpi |
| 231 | register "desc" = ""USB2 Type-A Port A0 (MLB)"" |
| 232 | register "type" = "UPC_TYPE_A" |
| 233 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
| 234 | device ref usb2_port1 on end |
| 235 | end |
| 236 | chip drivers/usb/acpi |
| 237 | register "desc" = ""USB2 Type-C Port C1 (DB)"" |
| 238 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 239 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
| 240 | device ref usb2_port4 on |
| 241 | probe DB_USB USB3_ACTIVE |
| 242 | end |
| 243 | end |
| 244 | chip drivers/usb/acpi |
| 245 | register "desc" = ""USB2 Camera"" |
| 246 | register "type" = "UPC_TYPE_INTERNAL" |
Ricardo Ribalda | 2b13ca5 | 2020-10-29 15:00:26 +0100 | [diff] [blame] | 247 | # The Linux Kernel does not allow an inverted BOTH_EDGE irq |
| 248 | # So we need to use GpioIO() instead of GpioInt() |
| 249 | # https://www.kernel.org/doc/Documentation/acpi/gpio-properties.txt |
| 250 | register "privacy_gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_D4)" |
Duncan Laurie | f78ade3 | 2020-10-27 11:06:02 -0700 | [diff] [blame] | 251 | device ref usb2_port5 on end |
| 252 | end |
| 253 | chip drivers/usb/acpi |
| 254 | register "desc" = ""USB2 Type-C Port C0 (MLB)"" |
| 255 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 256 | register "group" = "ACPI_PLD_GROUP(3, 1)" |
| 257 | device ref usb2_port9 on end |
| 258 | end |
| 259 | chip drivers/usb/acpi |
| 260 | register "desc" = ""USB2 Bluetooth"" |
| 261 | register "type" = "UPC_TYPE_INTERNAL" |
| 262 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A13)" |
| 263 | device ref usb2_port10 on end |
| 264 | end |
| 265 | chip drivers/usb/acpi |
| 266 | register "desc" = ""USB3 Type-A Port A0 (MLB)"" |
| 267 | register "type" = "UPC_TYPE_USB3_A" |
| 268 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
| 269 | device ref usb3_port1 on end |
| 270 | end |
| 271 | end |
| 272 | end |
| 273 | end |
MiceLin | 87af90e | 2020-07-24 11:27:39 +0800 | [diff] [blame] | 274 | end |
MiceLin | 87af90e | 2020-07-24 11:27:39 +0800 | [diff] [blame] | 275 | end |