soc/intel/alderlake: Set LpmStateEnableMask UPD
Use the get_supported_lpm_states() function to set the respective FSP UPD. TEST=with patchtrain on brya0, /sys/kernel/debug/pmc_core/substate_requirements shows only the substates that are applicable to the design (S0i2.0, S0i3.0). Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Change-Id: I5bb8b3671e78c5f2706db2d3a21b25cf90a14275 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56458 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
@ -188,3 +188,18 @@ enum adl_cpu_type get_adl_cpu_type(void)
|
||||
|
||||
return ADL_UNKNOWN;
|
||||
}
|
||||
|
||||
uint8_t get_supported_lpm_mask(void)
|
||||
{
|
||||
enum adl_cpu_type type = get_adl_cpu_type();
|
||||
switch (type) {
|
||||
case ADL_M: /* fallthrough */
|
||||
case ADL_P:
|
||||
return LPM_S0i2_0 | LPM_S0i3_0;
|
||||
case ADL_S:
|
||||
return LPM_S0i2_0 | LPM_S0i2_1;
|
||||
default:
|
||||
printk(BIOS_ERR, "Unknown ADL CPU type: %d\n", type);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user