Stefan Reinauer ([email protected]) just uploaded a new patch set to 
gerrit, which you can find at http://review.coreboot.org/2679

-gerrit

commit 2f5d21d2665051457835cb0c929478301fb1eecc
Author: Duncan Laurie <[email protected]>
Date:   Wed Dec 19 09:14:10 2012 -0800

    baskingridge: Report static temperature in _TMP
    
    The current code is attempting to convert from an invalid
    starting temperature.  Since we aren't sure where the temperature
    will come from yet just return a static value.
    
    This stops the kernel from going to S5 on boot because it
    thinks the temperature is too high.
    
    Change-Id: I433fa407e545458344af5842b353df5bc71bfdad
    Signed-off-by: Duncan Laurie <[email protected]>
---
 src/mainboard/intel/baskingridge/acpi/thermal.asl | 21 +--------------------
 1 file changed, 1 insertion(+), 20 deletions(-)

diff --git a/src/mainboard/intel/baskingridge/acpi/thermal.asl 
b/src/mainboard/intel/baskingridge/acpi/thermal.asl
index f8e9d97..39dabe3 100644
--- a/src/mainboard/intel/baskingridge/acpi/thermal.asl
+++ b/src/mainboard/intel/baskingridge/acpi/thermal.asl
@@ -63,26 +63,7 @@ Scope (\_TZ)
 
                Method (_TMP, 0, Serialized)
                {
-                       // Get CPU Temperature from PECI via SuperIO TMPIN3
-                       // FIXME: figure out how to read temp on this board.
-                       Store (30, Local0)
-
-                       // Check for invalid readings
-                       If (LOr (LEqual (Local0, 255), LEqual (Local0, 0))) {
-                               Return (CTOK (\F2ON))
-                       }
-
-                       // PECI raw value is an offset from Tj_max
-                       Subtract (255, Local0, Local1)
-
-                       // Handle values greater than Tj_max
-                       If (LGreaterEqual (Local1, \TMAX)) {
-                               Return (CTOK (\TMAX))
-                       }
-
-                       // Subtract from Tj_max to get temperature
-                       Subtract (\TMAX, Local1, Local0)
-                       Return (CTOK (Local0))
+                       Return (CTOK (50))
                }
 
                Method (_AC0) {

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to