lenovo: Disable radio when suspending or turning off.

Without this some radios may remain operational. They may consume power but
the immediate demonstrable effect is wireless LED still being on.
Coreboot will reenable radios on resume or poweron.

Change-Id: I9fcb08880964b1594f779a246840bc3013a44afe
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/10190
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <edward.ocallaghan@koparo.com>
This commit is contained in:
Vladimir Serbinenko 2015-05-13 18:22:49 +02:00
parent 4b1f09694c
commit cbcf28fef0
11 changed files with 21 additions and 6 deletions

View file

@ -43,6 +43,10 @@ Device(EC)
EVNT, 8, /* write will trigger EC event */
Offset (0x3a),
AMUT, 1, /* Audio Mute */
, 3,
BTEB, 1,
WLEB, 1,
WWEB, 1,
Offset (0x3B),
, 1,
KBLT, 1, /* Keyboard Light */
@ -90,6 +94,13 @@ Device(EC)
Store(Arg0, AMUT)
}
Method (RADI, 1, NotSerialized)
{
Store(Arg0, WLEB)
Store(Arg0, WWEB)
Store(Arg0, BTEB)
}
Method (USBP, 1, NotSerialized)
{
Store(Arg0, USPW)

View file

@ -61,7 +61,7 @@ Method(_PIC, 1)
Method(_PTS,1)
{
\_SB.PCI0.LPCB.EC.RADI(0)
}
/* The _WAK method is called on system wakeup */

View file

@ -61,7 +61,7 @@ Method(_PIC, 1)
Method(_PTS,1)
{
\_SB.PCI0.LPCB.EC.RADI(0)
}
/* The _WAK method is called on system wakeup */

View file

@ -61,7 +61,7 @@ Method(_PIC, 1)
Method(_PTS,1)
{
\_SB.PCI0.LPCB.EC.RADI(0)
}
/* The _WAK method is called on system wakeup */

View file

@ -61,7 +61,7 @@ Method(_PIC, 1)
Method(_PTS,1)
{
\_SB.PCI0.LPCB.EC.RADI(0)
}
/* The _WAK method is called on system wakeup */

View file

@ -27,6 +27,7 @@ Method(_PTS,1)
{
\_SB.PCI0.LPCB.EC.MUTE(1)
\_SB.PCI0.LPCB.EC.USBP(0)
\_SB.PCI0.LPCB.EC.RADI(0)
}
/* The _WAK method is called on system wakeup */

View file

@ -69,6 +69,7 @@ Method(_PTS,1)
{
// Call a trap so SMI can prepare for Sleep as well.
// TRAP(0x55)
\_SB.PCI0.LPCB.EC.RADI(0)
}
/* The _WAK method is called on system wakeup */

View file

@ -61,6 +61,7 @@ Method(_PTS,1)
{
\_SB.PCI0.LPCB.EC.MUTE(1)
\_SB.PCI0.LPCB.EC.USBP(0)
\_SB.PCI0.LPCB.EC.RADI(0)
}
/* The _WAK method is called on system wakeup */

View file

@ -61,7 +61,7 @@ Method(_PIC, 1)
Method(_PTS,1)
{
\_SB.PCI0.LPCB.EC.RADI(0)
}
/* The _WAK method is called on system wakeup */

View file

@ -61,7 +61,7 @@ Method(_PIC, 1)
Method(_PTS,1)
{
\_SB.PCI0.LPCB.EC.RADI(0)
}
/* The _WAK method is called on system wakeup */

View file

@ -27,6 +27,7 @@ Method(_PTS,1)
{
\_SB.PCI0.LPCB.EC.MUTE(1)
\_SB.PCI0.LPCB.EC.USBP(0)
\_SB.PCI0.LPCB.EC.RADI(0)
}
/* The _WAK method is called on system wakeup */