diff --git a/src/soc/amd/common/block/include/amdblocks/alib.h b/src/soc/amd/common/block/include/amdblocks/alib.h index e11b1ae95b..5e929248fd 100644 --- a/src/soc/amd/common/block/include/amdblocks/alib.h +++ b/src/soc/amd/common/block/include/amdblocks/alib.h @@ -16,6 +16,11 @@ enum alib_dptc_parameter_ids { ALIB_DPTC_SLOW_PPT_LIMIT_ID = 0x7, }; +struct alib_dptc_param { + uint8_t id; + uint32_t value; +} __packed; + #endif /* !__ACPI__ */ #endif /* AMD_COMMON_ALIB_H */ diff --git a/src/soc/amd/picasso/root_complex.c b/src/soc/amd/picasso/root_complex.c index c0b444fa36..979da3ec25 100644 --- a/src/soc/amd/picasso/root_complex.c +++ b/src/soc/amd/picasso/root_complex.c @@ -20,14 +20,9 @@ #define DPTC_TOTAL_UPDATE_PARAMS 4 -struct dptc_param { - uint8_t id; - uint32_t value; -} __packed; - struct dptc_input { uint16_t size; - struct dptc_param params[DPTC_TOTAL_UPDATE_PARAMS]; + struct alib_dptc_param params[DPTC_TOTAL_UPDATE_PARAMS]; } __packed; #define DPTC_INPUTS(_thermctllmit, _sustained, _fast, _slow) \