[coreboot] [commit] r6434 - trunk/src/mainboard/lenovo/x60/acpi
repository service
svn at coreboot.org
Mon Mar 7 10:00:51 CET 2011
Author: svens
Date: Mon Mar 7 10:00:50 2011
New Revision: 6434
URL: https://tracker.coreboot.org/trac/coreboot/changeset/6434
Log:
X60: add thermal zone 0
Signed-off-by: Sven Schnelle <svens at stackframe.org>
Acked-by: Stefan Reinauer <stefan.reinauer at coreboot.org>
Acked-by: Peter Stuge <peter at stuge.se>
Modified:
trunk/src/mainboard/lenovo/x60/acpi/ec.asl
trunk/src/mainboard/lenovo/x60/acpi/thermal.asl
Modified: trunk/src/mainboard/lenovo/x60/acpi/ec.asl
==============================================================================
--- trunk/src/mainboard/lenovo/x60/acpi/ec.asl Sun Mar 6 18:58:31 2011 (r6433)
+++ trunk/src/mainboard/lenovo/x60/acpi/ec.asl Mon Mar 7 10:00:50 2011 (r6434)
@@ -36,7 +36,9 @@
LEDS, 8, /* LED state */
Offset (0x3B),
, 1,
- KBLT, 1, /* Keyboard Light */
+ KBLT, 1, /* Keyboard Light */
+ Offset (0x78),
+ TMP0, 8, /* Thermal Zone 0 temperature */
Offset (0x81),
PAGE, 8 /* Information Page Selector */
}
Modified: trunk/src/mainboard/lenovo/x60/acpi/thermal.asl
==============================================================================
--- trunk/src/mainboard/lenovo/x60/acpi/thermal.asl Sun Mar 6 18:58:31 2011 (r6433)
+++ trunk/src/mainboard/lenovo/x60/acpi/thermal.asl Mon Mar 7 10:00:50 2011 (r6434)
@@ -0,0 +1,26 @@
+Scope(\_TZ)
+{
+ Method(C2K, 1, NotSerialized)
+ {
+ Multiply(Arg0, 10, Local0)
+ Add (Local0, 2732, Local0)
+ if (LLessEqual(Local0, 2732)) {
+ Return (3000)
+ }
+
+ if (LGreater(Local0, 4012)) {
+ Return (3000)
+ }
+ Return (Local0)
+ }
+
+ ThermalZone(THM0)
+ {
+ Method(_CRT, 0, NotSerialized) {
+ Return (C2K(127))
+ }
+ Method(_TMP) {
+ Return (C2K(\_SB.PCI0.LPCB.EC.TMP0))
+ }
+ }
+}
More information about the coreboot
mailing list