soc/intel/alderlake: Fix incorrect reporting of S0ix

If S0ix is not enabled, then it should not be reported that it
is supported.

TEST=boot linux on starlabs/starlite_adl, check s2idle isn't
listed under `/sys/power/mem_sleep`.

Change-Id: Ia31fbfd0b9795990b0ca98220bb002bf2c3857b2
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86089
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
This commit is contained in:
Sean Rhodes 2025-01-21 15:53:28 +00:00
commit 3d78cf360e

View file

@ -323,6 +323,10 @@ enum adl_cpu_type get_adl_cpu_type(void)
uint8_t get_supported_lpm_mask(void)
{
const config_t *conf = config_of_soc();
if (!conf->s0ix_enable)
return 0;
enum adl_cpu_type type = get_adl_cpu_type();
switch (type) {
case ADL_M: /* fallthrough */