summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2015-05-13 18:22:49 +0200
committerVladimir Serbinenko <phcoder@gmail.com>2015-05-14 15:08:52 +0200
commitcbcf28fef073742ad09689861c0ca279885484bb (patch)
treeb1d3687639ec8559bee2b74c008bc4bcea0bd524 /src
parent4b1f09694cddd27ba320552671ae84c9c7830f3b (diff)
downloadcoreboot-cbcf28fef073742ad09689861c0ca279885484bb.tar.xz
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>
Diffstat (limited to 'src')
-rw-r--r--src/ec/lenovo/h8/acpi/ec.asl11
-rw-r--r--src/mainboard/lenovo/t420s/acpi/platform.asl2
-rw-r--r--src/mainboard/lenovo/t430s/acpi/platform.asl2
-rw-r--r--src/mainboard/lenovo/t520/acpi/platform.asl2
-rw-r--r--src/mainboard/lenovo/t530/acpi/platform.asl2
-rw-r--r--src/mainboard/lenovo/t60/acpi/platform.asl1
-rw-r--r--src/mainboard/lenovo/x200/acpi/platform.asl1
-rw-r--r--src/mainboard/lenovo/x201/acpi/platform.asl1
-rw-r--r--src/mainboard/lenovo/x220/acpi/platform.asl2
-rw-r--r--src/mainboard/lenovo/x230/acpi/platform.asl2
-rw-r--r--src/mainboard/lenovo/x60/acpi/platform.asl1
11 files changed, 21 insertions, 6 deletions
diff --git a/src/ec/lenovo/h8/acpi/ec.asl b/src/ec/lenovo/h8/acpi/ec.asl
index 8db9221ce3..b7f8741e2b 100644
--- a/src/ec/lenovo/h8/acpi/ec.asl
+++ b/src/ec/lenovo/h8/acpi/ec.asl
@@ -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)
diff --git a/src/mainboard/lenovo/t420s/acpi/platform.asl b/src/mainboard/lenovo/t420s/acpi/platform.asl
index f937dc552a..c59e26a830 100644
--- a/src/mainboard/lenovo/t420s/acpi/platform.asl
+++ b/src/mainboard/lenovo/t420s/acpi/platform.asl
@@ -61,7 +61,7 @@ Method(_PIC, 1)
Method(_PTS,1)
{
-
+ \_SB.PCI0.LPCB.EC.RADI(0)
}
/* The _WAK method is called on system wakeup */
diff --git a/src/mainboard/lenovo/t430s/acpi/platform.asl b/src/mainboard/lenovo/t430s/acpi/platform.asl
index f937dc552a..c59e26a830 100644
--- a/src/mainboard/lenovo/t430s/acpi/platform.asl
+++ b/src/mainboard/lenovo/t430s/acpi/platform.asl
@@ -61,7 +61,7 @@ Method(_PIC, 1)
Method(_PTS,1)
{
-
+ \_SB.PCI0.LPCB.EC.RADI(0)
}
/* The _WAK method is called on system wakeup */
diff --git a/src/mainboard/lenovo/t520/acpi/platform.asl b/src/mainboard/lenovo/t520/acpi/platform.asl
index f937dc552a..c59e26a830 100644
--- a/src/mainboard/lenovo/t520/acpi/platform.asl
+++ b/src/mainboard/lenovo/t520/acpi/platform.asl
@@ -61,7 +61,7 @@ Method(_PIC, 1)
Method(_PTS,1)
{
-
+ \_SB.PCI0.LPCB.EC.RADI(0)
}
/* The _WAK method is called on system wakeup */
diff --git a/src/mainboard/lenovo/t530/acpi/platform.asl b/src/mainboard/lenovo/t530/acpi/platform.asl
index 72b9dbfa44..3ce4a5e2db 100644
--- a/src/mainboard/lenovo/t530/acpi/platform.asl
+++ b/src/mainboard/lenovo/t530/acpi/platform.asl
@@ -61,7 +61,7 @@ Method(_PIC, 1)
Method(_PTS,1)
{
-
+ \_SB.PCI0.LPCB.EC.RADI(0)
}
/* The _WAK method is called on system wakeup */
diff --git a/src/mainboard/lenovo/t60/acpi/platform.asl b/src/mainboard/lenovo/t60/acpi/platform.asl
index 59df530754..8b507761c3 100644
--- a/src/mainboard/lenovo/t60/acpi/platform.asl
+++ b/src/mainboard/lenovo/t60/acpi/platform.asl
@@ -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 */
diff --git a/src/mainboard/lenovo/x200/acpi/platform.asl b/src/mainboard/lenovo/x200/acpi/platform.asl
index 2aa556f580..d8f7a2142e 100644
--- a/src/mainboard/lenovo/x200/acpi/platform.asl
+++ b/src/mainboard/lenovo/x200/acpi/platform.asl
@@ -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 */
diff --git a/src/mainboard/lenovo/x201/acpi/platform.asl b/src/mainboard/lenovo/x201/acpi/platform.asl
index 137011794c..720e627baa 100644
--- a/src/mainboard/lenovo/x201/acpi/platform.asl
+++ b/src/mainboard/lenovo/x201/acpi/platform.asl
@@ -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 */
diff --git a/src/mainboard/lenovo/x220/acpi/platform.asl b/src/mainboard/lenovo/x220/acpi/platform.asl
index 72b9dbfa44..3ce4a5e2db 100644
--- a/src/mainboard/lenovo/x220/acpi/platform.asl
+++ b/src/mainboard/lenovo/x220/acpi/platform.asl
@@ -61,7 +61,7 @@ Method(_PIC, 1)
Method(_PTS,1)
{
-
+ \_SB.PCI0.LPCB.EC.RADI(0)
}
/* The _WAK method is called on system wakeup */
diff --git a/src/mainboard/lenovo/x230/acpi/platform.asl b/src/mainboard/lenovo/x230/acpi/platform.asl
index 72b9dbfa44..3ce4a5e2db 100644
--- a/src/mainboard/lenovo/x230/acpi/platform.asl
+++ b/src/mainboard/lenovo/x230/acpi/platform.asl
@@ -61,7 +61,7 @@ Method(_PIC, 1)
Method(_PTS,1)
{
-
+ \_SB.PCI0.LPCB.EC.RADI(0)
}
/* The _WAK method is called on system wakeup */
diff --git a/src/mainboard/lenovo/x60/acpi/platform.asl b/src/mainboard/lenovo/x60/acpi/platform.asl
index 59df530754..8b507761c3 100644
--- a/src/mainboard/lenovo/x60/acpi/platform.asl
+++ b/src/mainboard/lenovo/x60/acpi/platform.asl
@@ -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 */