summaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo/t60/acpi
diff options
context:
space:
mode:
authorSven Schnelle <svens@stackframe.org>2011-06-23 19:12:25 +0200
committerSven Schnelle <svens@stackframe.org>2011-07-07 15:47:29 +0200
commit61cd5bfae493607a434df91fc582ab1ffd36b3cc (patch)
tree4d4f59269631e1af71409b0b3d5b8d53f6eaa9aa /src/mainboard/lenovo/t60/acpi
parenta78d57296861e98bc5f5875c3ee0ef813403c860 (diff)
T60: handle EC events in SMM if ACPI is disabled
Change-Id: I6f9e90015cafef3da896453ef8e3588434ae3554 Signed-off-by: Sven Schnelle <svens@stackframe.org> Reviewed-on: http://review.coreboot.org/89 Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/mainboard/lenovo/t60/acpi')
-rw-r--r--src/mainboard/lenovo/t60/acpi/video.asl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainboard/lenovo/t60/acpi/video.asl b/src/mainboard/lenovo/t60/acpi/video.asl
index c2f9dfb459..9a458e90f6 100644
--- a/src/mainboard/lenovo/t60/acpi/video.asl
+++ b/src/mainboard/lenovo/t60/acpi/video.asl
@@ -19,6 +19,8 @@
* MA 02110-1301 USA
*/
+#include "smi.h"
+
Device (DSPC)
{
Name (_ADR, 0x00020001)
@@ -31,6 +33,7 @@ Device (DSPC)
Method(BRTD, 0, NotSerialized)
{
+ Trap(SMI_BRIGHTNESS_DOWN)
Store(BRTC, Local0)
if (LGreater (Local0, 15))
{
@@ -41,6 +44,7 @@ Device (DSPC)
Method(BRTU, 0, NotSerialized)
{
+ Trap(SMI_BRIGHTNESS_UP)
Store (BRTC, Local0)
if (LLess(Local0, 0xff))
{