ec/starlabs/merlin: Always store EC values
The EC values will be changed when entering S3, S4 or S5, so move the function that stores the current settings outside of logic that restricts it to S4 or S5. This means the state isn't lost when entering S3. Signed-off-by: Sean Rhodes <sean@starlabs.systems> Change-Id: Ia007a8ad9c08a309489e9f64f1ed311858bfcd10 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62741 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
parent
52a1898d44
commit
fbb46c5438
|
@ -2,8 +2,7 @@
|
||||||
|
|
||||||
Method (RPTS, 1, Serialized)
|
Method (RPTS, 1, Serialized)
|
||||||
{
|
{
|
||||||
If ((Arg0 == 0x04) || (Arg0 == 0x05))
|
|
||||||
{
|
|
||||||
/* Store current EC settings in CMOS */
|
/* Store current EC settings in CMOS */
|
||||||
Switch (ToInteger (\_SB.PCI0.LPCB.EC.ECRD (RefOf (\_SB.PCI0.LPCB.EC.TPLE))))
|
Switch (ToInteger (\_SB.PCI0.LPCB.EC.ECRD (RefOf (\_SB.PCI0.LPCB.EC.TPLE))))
|
||||||
{
|
{
|
||||||
|
@ -64,7 +63,6 @@ Method (RPTS, 1, Serialized)
|
||||||
\_SB.PCI0.LPCB.KLBC = 0x03
|
\_SB.PCI0.LPCB.KLBC = 0x03
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Disable ACPI support.
|
* Disable ACPI support.
|
||||||
|
|
Loading…
Reference in New Issue