From 807664786460a0d94ced0caa37e6373351a147a6 Mon Sep 17 00:00:00 2001 From: Tim Van Patten Date: Mon, 29 Aug 2022 12:32:49 -0600 Subject: [PATCH] amdblocks/alib.h: Add DPTC parameter IDs Add additional DPTC parameter IDs that are necessary when throttling the SOC due to low/no battery. These additional parameters are used in later CLs. BRANCH=none BUG=b:217911928 TEST=Build zork TEST=Build nipperkin TEST=Build skyrim Signed-off-by: Tim Van Patten Change-Id: I9e944d7c620414ec92d08a3d1173ba281d593ffc Reviewed-on: https://review.coreboot.org/c/coreboot/+/67182 Reviewed-by: Martin Roth Reviewed-by: Felix Held Tested-by: build bot (Jenkins) Reviewed-by: Raul Rangel --- src/soc/amd/common/block/include/amdblocks/alib.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/soc/amd/common/block/include/amdblocks/alib.h b/src/soc/amd/common/block/include/amdblocks/alib.h index 61608d5679..8899c78eaa 100644 --- a/src/soc/amd/common/block/include/amdblocks/alib.h +++ b/src/soc/amd/common/block/include/amdblocks/alib.h @@ -14,6 +14,12 @@ enum alib_dptc_parameter_ids { ALIB_DPTC_SUSTAINED_POWER_LIMIT_ID = 0x5, ALIB_DPTC_FAST_PPT_LIMIT_ID = 0x6, ALIB_DPTC_SLOW_PPT_LIMIT_ID = 0x7, + ALIB_DPTC_SLOW_PPT_TIME_CONSTANT_ID = 0x8, + ALIB_DPTC_PROCHOT_L_DEASSERTION_RAMP_TIME_ID = 0x9, + ALIB_DPTC_VRM_CURRENT_LIMIT_ID = 0xb, + ALIB_DPTC_VRM_MAXIMUM_CURRENT_LIMIT = 0xc, + /* Picasso: SetVrmSocCurrentLimit (0xe) is not implemented in alib. */ + ALIB_DPTC_VRM_SOC_CURRENT_LIMIT_ID = 0xe, }; struct alib_dptc_param {