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:
@ -116,6 +116,20 @@ enum pkgcstate_limit {
|
||||
LIMIT_AUTO = 255,
|
||||
};
|
||||
|
||||
/* Bit values for use in LpmStateEnableMask. */
|
||||
enum lpm_state_mask {
|
||||
LPM_S0i2_0 = BIT(0),
|
||||
LPM_S0i2_1 = BIT(1),
|
||||
LPM_S0i2_2 = BIT(2),
|
||||
LPM_S0i3_0 = BIT(3),
|
||||
LPM_S0i3_1 = BIT(4),
|
||||
LPM_S0i3_2 = BIT(5),
|
||||
LPM_S0i3_3 = BIT(6),
|
||||
LPM_S0i3_4 = BIT(7),
|
||||
LPM_S0iX_ALL = LPM_S0i2_0 | LPM_S0i2_1 | LPM_S0i2_2
|
||||
| LPM_S0i3_0 | LPM_S0i3_1 | LPM_S0i3_2 | LPM_S0i3_3 | LPM_S0i3_4,
|
||||
};
|
||||
|
||||
struct soc_intel_alderlake_config {
|
||||
|
||||
/* Common struct containing soc config data required by common code */
|
||||
|
Reference in New Issue
Block a user