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:
parent
5243dd96de
commit
3d78cf360e
1 changed files with 4 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue