From 2809507ca7d4a428ee64b43a37dfe990c9966f12 Mon Sep 17 00:00:00 2001 From: Chris Wang Date: Thu, 23 Feb 2023 16:25:52 +0800 Subject: soc/amd/mendocino: Add STT support for dptc tablet mode Add stt settings for dptc tablet mode. BUG=b:257149501 BRANCH=None TEST=Check if the STT value matches the clamshell/tablet mode. Run the WebGL aquarium with 5000 fish and verify that there is no power drop peak. Change-Id: Ib4aad3af8761b20084717b15a462edf4704b83cc Signed-off-by: Chris Wang Reviewed-on: https://review.coreboot.org/c/coreboot/+/73205 Reviewed-by: Tim Van Patten Tested-by: build bot (Jenkins) Reviewed-by: Frank Wu --- src/soc/amd/mendocino/chip.h | 4 ++++ src/soc/amd/mendocino/root_complex.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'src/soc/amd/mendocino') diff --git a/src/soc/amd/mendocino/chip.h b/src/soc/amd/mendocino/chip.h index dc147f8b2e..42f27cb3a5 100644 --- a/src/soc/amd/mendocino/chip.h +++ b/src/soc/amd/mendocino/chip.h @@ -73,6 +73,10 @@ struct soc_amd_mendocino_config { uint32_t vrm_soc_current_limit_throttle_mA; /* tablet mode.*/ + uint16_t stt_m1_tablet; + uint16_t stt_m2_tablet; + uint16_t stt_c_apu_tablet; + uint16_t stt_alpha_apu_tablet; /* Thermal profile B*/ uint32_t fast_ppt_limit_mW_B; diff --git a/src/soc/amd/mendocino/root_complex.c b/src/soc/amd/mendocino/root_complex.c index dce9498aa1..6217246802 100644 --- a/src/soc/amd/mendocino/root_complex.c +++ b/src/soc/amd/mendocino/root_complex.c @@ -264,10 +264,10 @@ static void acipgen_dptci(void) config->vrm_maximum_current_limit_mA, config->vrm_soc_current_limit_mA, config->stt_min_limit, - config->stt_m1, - config->stt_m2, - config->stt_c_apu, - config->stt_alpha_apu, + config->stt_m1_tablet, + config->stt_m2_tablet, + config->stt_c_apu_tablet, + config->stt_alpha_apu_tablet, config->stt_skin_temp_apu); acpigen_write_alib_dptc_tablet((uint8_t *)&tablet_input, sizeof(tablet_input)); #endif -- cgit v1.2.3