Tim Crawford | 8093b77c | 2024-05-29 16:31:17 -0600 | [diff] [blame^] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
Jeremy Soller | 8065c6d | 2021-11-01 14:07:07 -0600 | [diff] [blame] | 3 | chip soc/intel/tigerlake |
| 4 | register "common_soc_config" = "{ |
| 5 | // Touchpad I2C bus |
| 6 | .i2c[0] = { |
| 7 | .speed = I2C_SPEED_FAST, |
| 8 | .rise_time_ns = 80, |
| 9 | .fall_time_ns = 110, |
| 10 | }, |
| 11 | }" |
| 12 | |
| 13 | # ACPI (soc/intel/tigerlake/acpi.c) |
| 14 | # Enable Enhanced Intel SpeedStep |
| 15 | register "eist_enable" = "1" |
| 16 | |
| 17 | # CPU (soc/intel/tigerlake/cpu.c) |
| 18 | # Power limits |
| 19 | register "power_limits_config[POWER_LIMITS_H_8_CORE]" = "{ |
| 20 | .tdp_pl1_override = 45, |
| 21 | .tdp_pl2_override = 109, |
| 22 | }" |
| 23 | register "power_limits_config[POWER_LIMITS_H_6_CORE]" = "{ |
| 24 | .tdp_pl1_override = 45, |
| 25 | .tdp_pl2_override = 109, |
| 26 | }" |
| 27 | |
| 28 | # FSP Memory (soc/intel/tigerlake/romstage/fsp_params.c) |
| 29 | # Enable C6 DRAM |
| 30 | register "enable_c6dram" = "1" |
| 31 | |
| 32 | # FSP Silicon (soc/intel/tigerlake/fsp_params.c) |
| 33 | # Acoustic settings |
| 34 | register "AcousticNoiseMitigation" = "1" |
| 35 | register "SlowSlewRate" = "SLEW_FAST_8" |
| 36 | register "FastPkgCRampDisable" = "1" |
| 37 | |
| 38 | # FIVR configuration |
| 39 | # Read EXT_RAIL_CONFIG to determine bitmaps |
| 40 | # sudo devmem2 0xfe0011b8 |
| 41 | # 0x0 |
| 42 | # Read EXT_V1P05_VR_CONFIG |
| 43 | # sudo devmem2 0xfe0011c0 |
| 44 | # 0x1a42000 |
| 45 | # Read EXT_VNN_VR_CONFIG0 |
| 46 | # sudo devmem2 0xfe0011c4 |
| 47 | # 0x1a42000 |
| 48 | # TODO: v1p05 voltage and vnn icc max? |
| 49 | register "ext_fivr_settings" = "{ |
| 50 | .configure_ext_fivr = 1, |
| 51 | .v1p05_enable_bitmap = 0, |
| 52 | .vnn_enable_bitmap = 0, |
| 53 | .v1p05_supported_voltage_bitmap = 0, |
| 54 | .vnn_supported_voltage_bitmap = 0, |
| 55 | .v1p05_icc_max_ma = 500, |
| 56 | .vnn_sx_voltage_mv = 1050, |
| 57 | }" |
| 58 | |
| 59 | # Disable S0ix substates |
| 60 | register "LpmStateDisableMask" = " |
| 61 | LPM_S0i2_1 | |
| 62 | LPM_S0i2_2 | |
| 63 | LPM_S0i3_1 | |
| 64 | LPM_S0i3_2 | |
| 65 | LPM_S0i3_3 | |
| 66 | LPM_S0i3_4 |
| 67 | " |
| 68 | |
| 69 | # Thermal |
| 70 | # rdmsr --bitfield 31:24 --decimal 0x1A2 |
| 71 | register "tcc_offset" = "8" |
| 72 | |
Jeremy Soller | 8065c6d | 2021-11-01 14:07:07 -0600 | [diff] [blame] | 73 | # PM Util (soc/intel/tigerlake/pmutil.c) |
| 74 | # GPE configuration |
| 75 | register "pmc_gpe0_dw0" = "PMC_GPP_R" |
| 76 | register "pmc_gpe0_dw1" = "PMC_GPP_B" |
| 77 | register "pmc_gpe0_dw2" = "PMC_GPP_D" |
| 78 | |
| 79 | # Actual device tree |
Arthur Heymans | 69cd729 | 2022-11-07 13:52:11 +0100 | [diff] [blame] | 80 | device cpu_cluster 0 on end |
Jeremy Soller | 8065c6d | 2021-11-01 14:07:07 -0600 | [diff] [blame] | 81 | |
| 82 | device domain 0 on |
| 83 | #From CPU EDS(575683) |
| 84 | device ref system_agent on end |
| 85 | device ref igpu on |
| 86 | # DDIA is eDP |
Angel Pons | da4e1d7 | 2022-05-04 17:08:11 +0200 | [diff] [blame] | 87 | register "DdiPortAConfig" = "DDI_PORT_CFG_EDP" |
Jeremy Soller | 8065c6d | 2021-11-01 14:07:07 -0600 | [diff] [blame] | 88 | register "DdiPortAHpd" = "1" |
| 89 | register "DdiPortADdc" = "0" |
| 90 | |
Tim Crawford | 8fdfa30 | 2022-09-13 14:56:28 -0600 | [diff] [blame] | 91 | register "gfx" = "GMA_DEFAULT_PANEL(0)" |
Jeremy Soller | 8065c6d | 2021-11-01 14:07:07 -0600 | [diff] [blame] | 92 | end |
Felix Singer | 2aa1ff4 | 2021-12-05 03:13:37 +0100 | [diff] [blame] | 93 | device ref dptf on end |
Jeremy Soller | 8065c6d | 2021-11-01 14:07:07 -0600 | [diff] [blame] | 94 | device ref gna on end |
| 95 | device ref north_xhci on |
| 96 | # TODO: No TBT, but needed for USB 2.0 on Type-C port? |
| 97 | register "TcssXhciEn" = "1" |
| 98 | end |
| 99 | |
| 100 | # From PCH EDS(615985) |
| 101 | device ref shared_ram on end |
| 102 | device ref cnvi_wifi on |
Tim Crawford | 6bafaf4 | 2023-08-07 13:57:02 -0600 | [diff] [blame] | 103 | register "CnviBtCore" = true |
| 104 | register "CnviBtAudioOffload" = true |
Jeremy Soller | 8065c6d | 2021-11-01 14:07:07 -0600 | [diff] [blame] | 105 | chip drivers/wifi/generic |
| 106 | register "wake" = "GPE0_PME_B0" |
| 107 | device generic 0 on end |
| 108 | end |
| 109 | end |
| 110 | device ref i2c0 on |
| 111 | # Touchpad I2C bus |
| 112 | register "SerialIoI2cMode[PchSerialIoIndexI2C0]" = "PchSerialIoPci" |
| 113 | chip drivers/i2c/hid |
| 114 | register "generic.hid" = ""ELAN0412"" |
| 115 | register "generic.desc" = ""ELAN Touchpad"" |
| 116 | register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_R12)" |
Tim Crawford | 57fecef | 2022-07-24 17:09:16 -0600 | [diff] [blame] | 117 | register "generic.detect" = "1" |
Jeremy Soller | 8065c6d | 2021-11-01 14:07:07 -0600 | [diff] [blame] | 118 | register "hid_desc_reg_offset" = "0x01" |
| 119 | device i2c 15 on end |
| 120 | end |
Tim Crawford | 8e3787e | 2022-09-29 12:11:34 -0600 | [diff] [blame] | 121 | chip drivers/i2c/hid |
| 122 | register "generic.hid" = ""SYNA1202"" |
| 123 | register "generic.desc" = ""Synaptics Touchpad"" |
| 124 | register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_R12)" |
| 125 | register "generic.detect" = "1" |
| 126 | register "hid_desc_reg_offset" = "0x20" |
| 127 | device i2c 2c on end |
| 128 | end |
Jeremy Soller | 8065c6d | 2021-11-01 14:07:07 -0600 | [diff] [blame] | 129 | end |
Subrata Banik | ad50b40 | 2022-01-03 19:12:55 +0000 | [diff] [blame] | 130 | device ref heci1 on end |
Jeremy Soller | 8065c6d | 2021-11-01 14:07:07 -0600 | [diff] [blame] | 131 | device ref uart2 on |
| 132 | # Debug console |
| 133 | register "SerialIoUartMode[PchSerialIoIndexUART2]" = "PchSerialIoSkipInit" |
| 134 | end |
| 135 | device ref pch_espi on |
| 136 | register "gen1_dec" = "0x00040069" # EC PM channel |
| 137 | register "gen2_dec" = "0x00fc0E01" # AP/EC command |
| 138 | register "gen3_dec" = "0x00fc0F01" # AP/EC debug |
| 139 | chip drivers/pc80/tpm |
| 140 | device pnp 0c31.0 on end |
| 141 | end |
| 142 | end |
| 143 | device ref p2sb on end |
| 144 | device ref pmc hidden end |
| 145 | device ref hda on |
| 146 | register "PchHdaAudioLinkHdaEnable" = "1" |
| 147 | end |
Felix Singer | 715b787 | 2021-12-05 02:40:26 +0100 | [diff] [blame] | 148 | device ref smbus on end |
Jeremy Soller | 8065c6d | 2021-11-01 14:07:07 -0600 | [diff] [blame] | 149 | device ref fast_spi on end |
| 150 | end |
| 151 | end |