summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLu, ShifeiX A <shifeix.a.lu@intel.com>2017-01-18 09:07:38 +0800
committerzwei4 <david.wei@intel.com>2017-01-18 15:13:43 +0800
commite41944471b4428c6059eeef2127a63fc529abb16 (patch)
tree4cf8c473a60abc498d7911ab80912a6bb5b02670
parente5c39438b5d83cf3a91841544a554da87ac0dbc1 (diff)
downloadedk2-platforms-e41944471b4428c6059eeef2127a63fc529abb16.tar.xz
Vlv2DeviceRefCodePkg: Fixed thermal issue.
Fixed System auto shutdown when it reached minus 20 degree. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lushifex <shifeix.a.lu@intel.com> Reviewed-by: zwei4 <david.wei@intel.com>
-rw-r--r--Vlv2DeviceRefCodePkg/AcpiTablesPCAT/THERMAL.ASL9
1 files changed, 7 insertions, 2 deletions
diff --git a/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/THERMAL.ASL b/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/THERMAL.ASL
index e63f5bc69d..fecc040089 100644
--- a/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/THERMAL.ASL
+++ b/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/THERMAL.ASL
@@ -5,7 +5,7 @@
;* Family of Customer Reference Boards. *;
;* *;
;* *;
-;* Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved *;
+;* Copyright (c) 1999 - 2017, Intel Corporation. All rights reserved *;
;
; This program and the accompanying materials are licensed and made available under
; the terms and conditions of the BSD License that accompanies this distribution.
@@ -69,7 +69,12 @@ Scope(\_TZ)
{
Store(DTS1,Local0)
}
- Return(Add(2732,Multiply(Local0,10)))
+ If (LEqual(And(Local0, 0x80), 0)) {
+ Return(Add(2732,Multiply(Local0,10)))
+ } else {
+ Add(Subtract(255, Local0), 1, Local0)
+ Return(Subtract(2732,Multiply(Local0,10)))
+ }
//
// Else return a static value if both EC and DTS are unavailable.
//