Stanley Wu | c56df92 | 2023-07-12 19:44:53 +0800 | [diff] [blame] | 1 | fw_config |
| 2 | field AUDIO_CODEC_SOURCE 41 43 |
| 3 | option AUDIO_CODEC_ALC5682I_VS 0 |
| 4 | option AUDIO_CODEC_ALC5682_VD 1 |
| 5 | end |
| 6 | end |
| 7 | |
| 8 | |
kevin3.yang | 67528fb | 2023-04-19 14:31:00 +0800 | [diff] [blame] | 9 | chip soc/intel/jasperlake |
| 10 | |
| 11 | # Intel Common SoC Config |
| 12 | #+-------------------+---------------------------+ |
| 13 | #| Field | Value | |
| 14 | #+-------------------+---------------------------+ |
| 15 | #| GSPI0 | cr50 TPM. Early init is | |
| 16 | #| | required to set up a BAR | |
| 17 | #| | for TPM communication | |
| 18 | #| | before memory is up | |
kevin3.yang | 67528fb | 2023-04-19 14:31:00 +0800 | [diff] [blame] | 19 | #| I2C4 | Audio | |
| 20 | #+-------------------+---------------------------+ |
| 21 | register "common_soc_config" = "{ |
| 22 | .gspi[0] = { |
| 23 | .speed_mhz = 1, |
| 24 | .early_init = 1, |
| 25 | }, |
kevin3.yang | 67528fb | 2023-04-19 14:31:00 +0800 | [diff] [blame] | 26 | .i2c[4] = { |
Kevin Yang | 739f935 | 2023-04-21 13:50:52 +0800 | [diff] [blame] | 27 | .speed_config[0] = { |
| 28 | .speed = I2C_SPEED_FAST, |
| 29 | .scl_lcnt = 190, |
| 30 | .scl_hcnt = 100, |
| 31 | .sda_hold = 40, |
| 32 | } |
kevin3.yang | 67528fb | 2023-04-19 14:31:00 +0800 | [diff] [blame] | 33 | }, |
| 34 | }" |
| 35 | |
Stanley Wu | 4c68d84 | 2023-08-01 11:41:37 +0800 | [diff] [blame] | 36 | # Power limit config |
| 37 | register "power_limits_config[JSL_N4500_6W_CORE]" = "{ |
| 38 | .tdp_pl1_override = 6, |
| 39 | .tdp_pl2_override = 20, |
| 40 | .tdp_pl4 = 60, |
| 41 | }" |
| 42 | |
| 43 | register "power_limits_config[JSL_N5100_6W_CORE]" = "{ |
| 44 | .tdp_pl1_override = 6, |
| 45 | .tdp_pl2_override = 20, |
| 46 | .tdp_pl4 = 60, |
| 47 | }" |
| 48 | |
Kevin Yang | 739f935 | 2023-04-21 13:50:52 +0800 | [diff] [blame] | 49 | # Enable Root Port 3 (index 2) for LAN |
| 50 | # External PCIe port 7 is mapped to PCIe Root Port 3 |
| 51 | register "PcieRpEnable[2]" = "1" |
| 52 | register "PcieClkSrcUsage[4]" = "2" |
| 53 | |
| 54 | # Enable Root Port 7 (index 6) for WLAN |
| 55 | # External PCIe port 3 is mapped to PCIe Root Port 7 |
| 56 | register "PcieRpEnable[6]" = "1" |
| 57 | register "PcieClkSrcUsage[3]" = "6" |
| 58 | |
| 59 | # Disable PCIe Root Port 8 |
| 60 | register "PcieRpEnable[7]" = "0" |
| 61 | |
| 62 | # Audio related configurations |
| 63 | register "PchHdaAudioLinkDmicEnable[0]" = "0" |
| 64 | register "PchHdaAudioLinkDmicEnable[1]" = "0" |
| 65 | |
| 66 | # Disable SD card |
| 67 | register "sdcard_cd_gpio" = "0" |
| 68 | register "SdCardPowerEnableActiveHigh" = "0" |
| 69 | |
| 70 | # Disable eDP on port A |
| 71 | register "DdiPortAConfig" = "0" |
| 72 | |
| 73 | # Enable HPD and DDC for DDI port A |
| 74 | register "DdiPortAHpd" = "1" |
| 75 | register "DdiPortADdc" = "1" |
| 76 | |
Kevin Yang | 9366f6f | 2023-05-03 08:38:39 +0800 | [diff] [blame] | 77 | # Does not support external vnn power rail |
| 78 | register "disable_external_bypass_vr" = "1" |
| 79 | |
Kevin Yang | 739f935 | 2023-04-21 13:50:52 +0800 | [diff] [blame] | 80 | # USB Port Configuration |
| 81 | register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port A0 |
| 82 | register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port A1 |
| 83 | register "usb2_ports[3]" = "USB2_PORT_MID(OC_SKIP)" # Type-C Port C1 |
| 84 | |
Joey Peng | b6b3c62 | 2023-09-28 14:26:38 +0800 | [diff] [blame^] | 85 | #Bitmap for Wake Enable on USB attach/detach |
| 86 | register "usb2_wake_enable_bitmap" = "USB_PORT_WAKE_ENABLE(1) | \ |
| 87 | USB_PORT_WAKE_ENABLE(2) | \ |
| 88 | USB_PORT_WAKE_ENABLE(3) | \ |
| 89 | USB_PORT_WAKE_ENABLE(4)" |
| 90 | register "usb3_wake_enable_bitmap" = "USB_PORT_WAKE_ENABLE(1) | \ |
| 91 | USB_PORT_WAKE_ENABLE(2) | \ |
| 92 | USB_PORT_WAKE_ENABLE(3) | \ |
| 93 | USB_PORT_WAKE_ENABLE(4)" |
| 94 | |
kevin3.yang | 67528fb | 2023-04-19 14:31:00 +0800 | [diff] [blame] | 95 | device domain 0 on |
Kevin Yang | 739f935 | 2023-04-21 13:50:52 +0800 | [diff] [blame] | 96 | device pci 04.0 on |
| 97 | chip drivers/intel/dptf |
| 98 | ## Passive Policy |
| 99 | register "policies.passive" = "{ |
Stanley Wu | 456e500 | 2023-08-09 18:13:12 +0800 | [diff] [blame] | 100 | [0] = DPTF_PASSIVE(CPU, CPU, 95, 10000), |
| 101 | [1] = DPTF_PASSIVE(CPU, TEMP_SENSOR_0, 90, 60000), |
| 102 | [2] = DPTF_PASSIVE(CPU, TEMP_SENSOR_1, 90, 60000), |
| 103 | [3] = DPTF_PASSIVE(CPU, TEMP_SENSOR_2, 90, 15000) |
Kevin Yang | 739f935 | 2023-04-21 13:50:52 +0800 | [diff] [blame] | 104 | }" |
| 105 | |
| 106 | ## Critical Policy |
| 107 | register "policies.critical" = "{ |
| 108 | [0] = DPTF_CRITICAL(CPU, 105, SHUTDOWN), |
Stanley Wu | 456e500 | 2023-08-09 18:13:12 +0800 | [diff] [blame] | 109 | [1] = DPTF_CRITICAL(TEMP_SENSOR_0, 100, SHUTDOWN), |
| 110 | [2] = DPTF_CRITICAL(TEMP_SENSOR_1, 100, SHUTDOWN), |
| 111 | [3] = DPTF_CRITICAL(TEMP_SENSOR_2, 100, SHUTDOWN) |
Kevin Yang | 739f935 | 2023-04-21 13:50:52 +0800 | [diff] [blame] | 112 | }" |
| 113 | |
| 114 | register "controls.power_limits" = "{ |
| 115 | .pl1 = { |
| 116 | .min_power = 3000, |
| 117 | .max_power = 6000, |
| 118 | .time_window_min = 1 * MSECS_PER_SEC, |
| 119 | .time_window_max = 1 * MSECS_PER_SEC, |
| 120 | .granularity = 100, |
| 121 | }, |
| 122 | .pl2 = { |
| 123 | .min_power = 20000, |
| 124 | .max_power = 20000, |
| 125 | .time_window_min = 1 * MSECS_PER_SEC, |
| 126 | .time_window_max = 1 * MSECS_PER_SEC, |
| 127 | .granularity = 1000, |
| 128 | } |
| 129 | }" |
| 130 | |
| 131 | register "options.tsr[0].desc" = ""Memory"" |
| 132 | register "options.tsr[1].desc" = ""Power"" |
| 133 | register "options.tsr[2].desc" = ""Chassis"" |
| 134 | |
| 135 | ## Charger Performance Control (Control, mA) |
| 136 | register "controls.charger_perf" = "{ |
| 137 | [0] = { 255, 3000 }, |
| 138 | [1] = { 24, 1500 }, |
| 139 | [2] = { 16, 1000 }, |
| 140 | [3] = { 8, 500 } |
| 141 | }" |
| 142 | |
| 143 | device generic 0 on end |
| 144 | end |
| 145 | end # SA Thermal device |
| 146 | device pci 14.0 on |
| 147 | chip drivers/usb/acpi |
Kevin Yang | 739f935 | 2023-04-21 13:50:52 +0800 | [diff] [blame] | 148 | device usb 0.0 on |
| 149 | chip drivers/usb/acpi |
| 150 | register "desc" = ""USB2 Type-C Port C0"" |
| 151 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 152 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
| 153 | device usb 2.0 on end |
| 154 | end |
| 155 | chip drivers/usb/acpi |
| 156 | register "desc" = ""USB2 Type-A Port A0"" |
| 157 | register "type" = "UPC_TYPE_A" |
Reka Norman | 03e5cc5 | 2023-09-15 14:50:14 +1000 | [diff] [blame] | 158 | register "group" = "ACPI_PLD_GROUP(1, 3)" |
Kevin Yang | 739f935 | 2023-04-21 13:50:52 +0800 | [diff] [blame] | 159 | device usb 2.1 on end |
| 160 | end |
| 161 | chip drivers/usb/acpi |
| 162 | register "desc" = ""USB2 Type-A Port A1"" |
| 163 | register "type" = "UPC_TYPE_A" |
Reka Norman | 03e5cc5 | 2023-09-15 14:50:14 +1000 | [diff] [blame] | 164 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
Kevin Yang | 739f935 | 2023-04-21 13:50:52 +0800 | [diff] [blame] | 165 | device usb 2.2 on end |
| 166 | end |
| 167 | chip drivers/usb/acpi |
| 168 | register "desc" = ""USB2 Type-C Port C1"" |
| 169 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Reka Norman | 03e5cc5 | 2023-09-15 14:50:14 +1000 | [diff] [blame] | 170 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
Kevin Yang | 739f935 | 2023-04-21 13:50:52 +0800 | [diff] [blame] | 171 | device usb 2.3 on end |
| 172 | end |
| 173 | chip drivers/usb/acpi |
| 174 | register "desc" = ""USB3 Type-C Port C0"" |
| 175 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
| 176 | register "group" = "ACPI_PLD_GROUP(1, 1)" |
| 177 | device usb 3.0 on end |
| 178 | end |
| 179 | chip drivers/usb/acpi |
| 180 | register "desc" = ""USB3 Type-C Port C1"" |
| 181 | register "type" = "UPC_TYPE_C_USB2_SS_SWITCH" |
Reka Norman | 03e5cc5 | 2023-09-15 14:50:14 +1000 | [diff] [blame] | 182 | register "group" = "ACPI_PLD_GROUP(2, 1)" |
| 183 | device usb 3.1 on end |
Kevin Yang | 739f935 | 2023-04-21 13:50:52 +0800 | [diff] [blame] | 184 | end |
| 185 | chip drivers/usb/acpi |
| 186 | register "desc" = ""USB3 Type-A Port A0"" |
| 187 | register "type" = "UPC_TYPE_USB3_A" |
| 188 | register "group" = "ACPI_PLD_GROUP(1, 3)" |
| 189 | device usb 3.2 on end |
| 190 | end |
| 191 | chip drivers/usb/acpi |
| 192 | register "desc" = ""USB3 Type-A Port A1"" |
| 193 | register "type" = "UPC_TYPE_USB3_A" |
Reka Norman | 03e5cc5 | 2023-09-15 14:50:14 +1000 | [diff] [blame] | 194 | register "group" = "ACPI_PLD_GROUP(1, 2)" |
Kevin Yang | 739f935 | 2023-04-21 13:50:52 +0800 | [diff] [blame] | 195 | device usb 3.3 on end |
| 196 | end |
| 197 | end |
| 198 | end |
| 199 | end # USB xHCI |
| 200 | device pci 15.0 off end # I2C 0 |
| 201 | device pci 15.1 off end # I2C 1 |
| 202 | device pci 15.2 off end # I2C 2 |
| 203 | device pci 15.3 off end # I2C 3 |
| 204 | device pci 19.0 on |
| 205 | chip drivers/i2c/generic |
Kevin Yang | cacdb85 | 2023-06-13 15:11:10 +0800 | [diff] [blame] | 206 | register "hid" = ""10EC5682"" |
Kevin Yang | 739f935 | 2023-04-21 13:50:52 +0800 | [diff] [blame] | 207 | register "name" = ""RT58"" |
| 208 | register "desc" = ""Realtek RT5682"" |
| 209 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)" |
| 210 | register "property_count" = "1" |
| 211 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 212 | register "property_list[0].name" = ""realtek,jd-src"" |
| 213 | register "property_list[0].integer" = "1" |
Stanley Wu | c56df92 | 2023-07-12 19:44:53 +0800 | [diff] [blame] | 214 | device i2c 1a on |
| 215 | probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682_VD |
| 216 | end |
| 217 | end |
| 218 | chip drivers/i2c/generic |
| 219 | register "hid" = ""RTL5682"" |
| 220 | register "name" = ""RT58"" |
| 221 | register "desc" = ""Realtek RT5682"" |
| 222 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)" |
| 223 | register "property_count" = "1" |
| 224 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 225 | register "property_list[0].name" = ""realtek,jd-src"" |
| 226 | register "property_list[0].integer" = "1" |
| 227 | device i2c 1a on |
| 228 | probe AUDIO_CODEC_SOURCE AUDIO_CODEC_ALC5682I_VS |
| 229 | end |
Kevin Yang | 739f935 | 2023-04-21 13:50:52 +0800 | [diff] [blame] | 230 | end |
| 231 | end # I2C 4 |
| 232 | device pci 1c.2 on |
| 233 | chip drivers/net |
Stanley Wu | 00e92f4 | 2023-08-23 15:21:07 +0800 | [diff] [blame] | 234 | register "customized_leds" = "0x07af" |
Kevin Yang | 739f935 | 2023-04-21 13:50:52 +0800 | [diff] [blame] | 235 | register "wake" = "GPE0_DW0_03" # GPP_B3 |
| 236 | register "stop_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D4)" |
| 237 | register "device_index" = "0" |
| 238 | device pci 00.0 on end |
| 239 | end |
| 240 | end # PCI Express Root Port 3 - RTL8111H LAN |
| 241 | device pci 1c.6 on |
| 242 | chip drivers/wifi/generic |
| 243 | register "wake" = "GPE0_DW2_03" |
| 244 | device pci 00.0 on end |
| 245 | end |
| 246 | end # PCI Express Root Port 7 - WLAN |
| 247 | device pci 1c.7 off end # PCI Express Root Port 8 |
| 248 | device pci 1f.3 on end # Intel HDA |
kevin3.yang | 67528fb | 2023-04-19 14:31:00 +0800 | [diff] [blame] | 249 | end |
| 250 | end |