mb/google/jecht/acpi: Replace Store(a,b) with ASL 2.0 syntax
Replace `Store (a, b)` with `b = a`. Change-Id: If6c37cc2ce51780e0bae007d884d8f77b20847fb Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70642 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
This commit is contained in:
parent
c64c9cd5fa
commit
69b48d8231
|
@ -14,7 +14,7 @@ Scope (\_SB.PCI0.RP01)
|
||||||
|
|
||||||
Method (_DSW, 3, NotSerialized)
|
Method (_DSW, 3, NotSerialized)
|
||||||
{
|
{
|
||||||
Store (JECHT_NIC_WAKE_GPIO, Local0)
|
Local0 = JECHT_NIC_WAKE_GPIO
|
||||||
|
|
||||||
If (Arg0 == 1) {
|
If (Arg0 == 1) {
|
||||||
// Enable GPIO as wake source
|
// Enable GPIO as wake source
|
||||||
|
@ -36,7 +36,7 @@ Scope (\_SB.PCI0.RP02)
|
||||||
|
|
||||||
Method (_DSW, 3, NotSerialized)
|
Method (_DSW, 3, NotSerialized)
|
||||||
{
|
{
|
||||||
Store (JECHT_WLAN_WAKE_GPIO, Local0)
|
Local0 = JECHT_WLAN_WAKE_GPIO
|
||||||
|
|
||||||
If (Arg0 == 1) {
|
If (Arg0 == 1) {
|
||||||
// Enable GPIO as wake source
|
// Enable GPIO as wake source
|
||||||
|
|
|
@ -53,15 +53,15 @@ Scope (\_TZ)
|
||||||
// Start fan at state 4 = lowest temp state
|
// Start fan at state 4 = lowest temp state
|
||||||
Method (_INI)
|
Method (_INI)
|
||||||
{
|
{
|
||||||
Store (4, \FLVL)
|
\FLVL = 4
|
||||||
Store (FAN4_PWM, \_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN4_PWM
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (TCHK, 0, Serialized)
|
Method (TCHK, 0, Serialized)
|
||||||
{
|
{
|
||||||
// Get CPU Temperature from PECI via SuperIO TMPIN3
|
// Get CPU Temperature from PECI via SuperIO TMPIN3
|
||||||
Store (\_SB.PCI0.LPCB.SIO.ENVC.TIN3, Local0)
|
Local0 = \_SB.PCI0.LPCB.SIO.ENVC.TIN3
|
||||||
|
|
||||||
// Check for "no reading available
|
// Check for "no reading available
|
||||||
If (Local0 == 0x80) {
|
If (Local0 == 0x80) {
|
||||||
|
@ -89,10 +89,10 @@ Scope (\_TZ)
|
||||||
Method (_TMP, 0, Serialized)
|
Method (_TMP, 0, Serialized)
|
||||||
{
|
{
|
||||||
// Get temperature from SuperIO in deci-kelvin
|
// Get temperature from SuperIO in deci-kelvin
|
||||||
Store (TCHK (), Local0)
|
Local0 = TCHK ()
|
||||||
|
|
||||||
// Critical temperature in deci-kelvin
|
// Critical temperature in deci-kelvin
|
||||||
Store (CTOK (\TMAX), Local1)
|
Local1 = CTOK (\TMAX)
|
||||||
|
|
||||||
If (Local0 >= Local1) {
|
If (Local0 >= Local1) {
|
||||||
Printf ("CRITICAL TEMPERATURE: %o", Local0)
|
Printf ("CRITICAL TEMPERATURE: %o", Local0)
|
||||||
|
@ -101,7 +101,7 @@ Scope (\_TZ)
|
||||||
Sleep (1000)
|
Sleep (1000)
|
||||||
|
|
||||||
// Re-read temperature from SuperIO
|
// Re-read temperature from SuperIO
|
||||||
Store (TCHK (), Local0)
|
Local0 = TCHK ()
|
||||||
|
|
||||||
Printf ("RE-READ TEMPERATURE: %o", Local0)
|
Printf ("RE-READ TEMPERATURE: %o", Local0)
|
||||||
}
|
}
|
||||||
|
@ -166,17 +166,15 @@ Scope (\_TZ)
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
If (! _STA ()) {
|
If (! _STA ()) {
|
||||||
Store (0, \FLVL)
|
\FLVL = 0
|
||||||
Store (FAN0_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN0_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (_STA ()) {
|
If (_STA ()) {
|
||||||
Store (1, \FLVL)
|
\FLVL = 1
|
||||||
Store (FAN1_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN1_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -193,17 +191,15 @@ Scope (\_TZ)
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
If (! _STA ()) {
|
If (! _STA ()) {
|
||||||
Store (1, \FLVL)
|
\FLVL = 1
|
||||||
Store (FAN1_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN1_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (_STA ()) {
|
If (_STA ()) {
|
||||||
Store (2, \FLVL)
|
\FLVL = 2
|
||||||
Store (FAN2_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN2_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -220,17 +216,15 @@ Scope (\_TZ)
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
If (! _STA ()) {
|
If (! _STA ()) {
|
||||||
Store (2, \FLVL)
|
\FLVL = 2
|
||||||
Store (FAN2_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN2_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (_STA ()) {
|
If (_STA ()) {
|
||||||
Store (3, \FLVL)
|
\FLVL = 3
|
||||||
Store (FAN3_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN3_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -247,17 +241,15 @@ Scope (\_TZ)
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
If (! _STA ()) {
|
If (! _STA ()) {
|
||||||
Store (3, \FLVL)
|
\FLVL = 3
|
||||||
Store (FAN3_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN3_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (_STA ()) {
|
If (_STA ()) {
|
||||||
Store (4, \FLVL)
|
\FLVL = 4
|
||||||
Store (FAN4_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN4_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -274,17 +266,15 @@ Scope (\_TZ)
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
If (! _STA ()) {
|
If (! _STA ()) {
|
||||||
Store (4, \FLVL)
|
\FLVL = 4
|
||||||
Store (FAN4_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN4_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (_STA ()) {
|
If (_STA ()) {
|
||||||
Store (4, \FLVL)
|
\FLVL = 4
|
||||||
Store (FAN4_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN4_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,15 +53,15 @@ Scope (\_TZ)
|
||||||
// Start fan at state 4 = lowest temp state
|
// Start fan at state 4 = lowest temp state
|
||||||
Method (_INI)
|
Method (_INI)
|
||||||
{
|
{
|
||||||
Store (4, \FLVL)
|
\FLVL = 4
|
||||||
Store (FAN4_PWM, \_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN4_PWM
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (TCHK, 0, Serialized)
|
Method (TCHK, 0, Serialized)
|
||||||
{
|
{
|
||||||
// Get CPU Temperature from PECI via SuperIO TMPIN3
|
// Get CPU Temperature from PECI via SuperIO TMPIN3
|
||||||
Store (\_SB.PCI0.LPCB.SIO.ENVC.TIN3, Local0)
|
Local0 = \_SB.PCI0.LPCB.SIO.ENVC.TIN3
|
||||||
|
|
||||||
// Check for "no reading available
|
// Check for "no reading available
|
||||||
If (Local0 == 0x80) {
|
If (Local0 == 0x80) {
|
||||||
|
@ -89,10 +89,10 @@ Scope (\_TZ)
|
||||||
Method (_TMP, 0, Serialized)
|
Method (_TMP, 0, Serialized)
|
||||||
{
|
{
|
||||||
// Get temperature from SuperIO in deci-kelvin
|
// Get temperature from SuperIO in deci-kelvin
|
||||||
Store (TCHK (), Local0)
|
Local0 = TCHK ()
|
||||||
|
|
||||||
// Critical temperature in deci-kelvin
|
// Critical temperature in deci-kelvin
|
||||||
Store (CTOK (\TMAX), Local1)
|
Local1 = CTOK (\TMAX)
|
||||||
|
|
||||||
If (Local0 >= Local1) {
|
If (Local0 >= Local1) {
|
||||||
Printf ("CRITICAL TEMPERATURE: %o", Local0)
|
Printf ("CRITICAL TEMPERATURE: %o", Local0)
|
||||||
|
@ -101,7 +101,7 @@ Scope (\_TZ)
|
||||||
Sleep (1000)
|
Sleep (1000)
|
||||||
|
|
||||||
// Re-read temperature from SuperIO
|
// Re-read temperature from SuperIO
|
||||||
Store (TCHK (), Local0)
|
Local0 = TCHK ()
|
||||||
|
|
||||||
Printf ("RE-READ TEMPERATURE: %o", Local0)
|
Printf ("RE-READ TEMPERATURE: %o", Local0)
|
||||||
}
|
}
|
||||||
|
@ -166,17 +166,15 @@ Scope (\_TZ)
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
If (! _STA ()) {
|
If (! _STA ()) {
|
||||||
Store (0, \FLVL)
|
\FLVL = 0
|
||||||
Store (FAN0_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN0_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (_STA ()) {
|
If (_STA ()) {
|
||||||
Store (1, \FLVL)
|
\FLVL = 1
|
||||||
Store (FAN1_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN1_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -193,17 +191,15 @@ Scope (\_TZ)
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
If (! _STA ()) {
|
If (! _STA ()) {
|
||||||
Store (1, \FLVL)
|
\FLVL = 1
|
||||||
Store (FAN1_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN1_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (_STA ()) {
|
If (_STA ()) {
|
||||||
Store (2, \FLVL)
|
\FLVL = 2
|
||||||
Store (FAN2_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN2_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -220,17 +216,15 @@ Scope (\_TZ)
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
If (! _STA ()) {
|
If (! _STA ()) {
|
||||||
Store (2, \FLVL)
|
\FLVL = 2
|
||||||
Store (FAN2_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN2_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (_STA ()) {
|
If (_STA ()) {
|
||||||
Store (3, \FLVL)
|
\FLVL = 3
|
||||||
Store (FAN3_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN3_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -247,17 +241,15 @@ Scope (\_TZ)
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
If (! _STA ()) {
|
If (! _STA ()) {
|
||||||
Store (3, \FLVL)
|
\FLVL = 3
|
||||||
Store (FAN3_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN3_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (_STA ()) {
|
If (_STA ()) {
|
||||||
Store (4, \FLVL)
|
\FLVL = 4
|
||||||
Store (FAN4_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN4_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -274,17 +266,15 @@ Scope (\_TZ)
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
If (! _STA ()) {
|
If (! _STA ()) {
|
||||||
Store (4, \FLVL)
|
\FLVL = 4
|
||||||
Store (FAN4_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN4_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (_STA ()) {
|
If (_STA ()) {
|
||||||
Store (4, \FLVL)
|
\FLVL = 4
|
||||||
Store (FAN4_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN4_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,15 +53,15 @@ Scope (\_TZ)
|
||||||
// Start fan at state 4 = lowest temp state
|
// Start fan at state 4 = lowest temp state
|
||||||
Method (_INI)
|
Method (_INI)
|
||||||
{
|
{
|
||||||
Store (4, \FLVL)
|
\FLVL = 4
|
||||||
Store (FAN4_PWM, \_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN4_PWM
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (TCHK, 0, Serialized)
|
Method (TCHK, 0, Serialized)
|
||||||
{
|
{
|
||||||
// Get CPU Temperature from PECI via SuperIO TMPIN3
|
// Get CPU Temperature from PECI via SuperIO TMPIN3
|
||||||
Store (\_SB.PCI0.LPCB.SIO.ENVC.TIN3, Local0)
|
Local0 = \_SB.PCI0.LPCB.SIO.ENVC.TIN3
|
||||||
|
|
||||||
// Check for "no reading available
|
// Check for "no reading available
|
||||||
If (Local0 == 0x80) {
|
If (Local0 == 0x80) {
|
||||||
|
@ -89,10 +89,10 @@ Scope (\_TZ)
|
||||||
Method (_TMP, 0, Serialized)
|
Method (_TMP, 0, Serialized)
|
||||||
{
|
{
|
||||||
// Get temperature from SuperIO in deci-kelvin
|
// Get temperature from SuperIO in deci-kelvin
|
||||||
Store (TCHK (), Local0)
|
Local0 = TCHK ()
|
||||||
|
|
||||||
// Critical temperature in deci-kelvin
|
// Critical temperature in deci-kelvin
|
||||||
Store (CTOK (\TMAX), Local1)
|
Local1 = CTOK (\TMAX)
|
||||||
|
|
||||||
If (Local0 >= Local1) {
|
If (Local0 >= Local1) {
|
||||||
Printf ("CRITICAL TEMPERATURE: %o", Local0)
|
Printf ("CRITICAL TEMPERATURE: %o", Local0)
|
||||||
|
@ -101,7 +101,7 @@ Scope (\_TZ)
|
||||||
Sleep (1000)
|
Sleep (1000)
|
||||||
|
|
||||||
// Re-read temperature from SuperIO
|
// Re-read temperature from SuperIO
|
||||||
Store (TCHK (), Local0)
|
Local0 = TCHK ()
|
||||||
|
|
||||||
Printf ("RE-READ TEMPERATURE: %o", Local0)
|
Printf ("RE-READ TEMPERATURE: %o", Local0)
|
||||||
}
|
}
|
||||||
|
@ -166,17 +166,15 @@ Scope (\_TZ)
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
If (! _STA ()) {
|
If (! _STA ()) {
|
||||||
Store (0, \FLVL)
|
\FLVL = 0
|
||||||
Store (FAN0_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN0_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (_STA ()) {
|
If (_STA ()) {
|
||||||
Store (1, \FLVL)
|
\FLVL = 1
|
||||||
Store (FAN1_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN1_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -193,17 +191,15 @@ Scope (\_TZ)
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
If (! _STA ()) {
|
If (! _STA ()) {
|
||||||
Store (1, \FLVL)
|
\FLVL = 1
|
||||||
Store (FAN1_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN1_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (_STA ()) {
|
If (_STA ()) {
|
||||||
Store (2, \FLVL)
|
\FLVL = 2
|
||||||
Store (FAN2_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN2_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -220,17 +216,15 @@ Scope (\_TZ)
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
If (! _STA ()) {
|
If (! _STA ()) {
|
||||||
Store (2, \FLVL)
|
\FLVL = 2
|
||||||
Store (FAN2_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN2_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (_STA ()) {
|
If (_STA ()) {
|
||||||
Store (3, \FLVL)
|
\FLVL = 3
|
||||||
Store (FAN3_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN3_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -247,17 +241,15 @@ Scope (\_TZ)
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
If (! _STA ()) {
|
If (! _STA ()) {
|
||||||
Store (3, \FLVL)
|
\FLVL = 3
|
||||||
Store (FAN3_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN3_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (_STA ()) {
|
If (_STA ()) {
|
||||||
Store (4, \FLVL)
|
\FLVL = 4
|
||||||
Store (FAN4_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN4_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -274,17 +266,15 @@ Scope (\_TZ)
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
If (! _STA ()) {
|
If (! _STA ()) {
|
||||||
Store (4, \FLVL)
|
\FLVL = 4
|
||||||
Store (FAN4_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN4_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (_STA ()) {
|
If (_STA ()) {
|
||||||
Store (4, \FLVL)
|
\FLVL = 4
|
||||||
Store (FAN4_PWM,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN4_PWM
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,71 +49,71 @@ Scope (\_TZ)
|
||||||
|
|
||||||
// Thermal Table 0
|
// Thermal Table 0
|
||||||
Method (TTB0, 0) {
|
Method (TTB0, 0) {
|
||||||
Store (FAN0_0_THRESHOLD_ON, F0ON)
|
F0ON = FAN0_0_THRESHOLD_ON
|
||||||
Store (FAN0_0_THRESHOLD_OFF, F0OF)
|
F0OF = FAN0_0_THRESHOLD_OFF
|
||||||
Store (FAN0_0_PWM, F0PW)
|
F0PW = FAN0_0_PWM
|
||||||
Store (FAN1_0_THRESHOLD_ON, F1ON)
|
F1ON = FAN1_0_THRESHOLD_ON
|
||||||
Store (FAN1_0_THRESHOLD_OFF, F1OF)
|
F1OF = FAN1_0_THRESHOLD_OFF
|
||||||
Store (FAN1_0_PWM, F1PW)
|
F1PW = FAN1_0_PWM
|
||||||
Store (FAN2_0_THRESHOLD_ON, F2ON)
|
F2ON = FAN2_0_THRESHOLD_ON
|
||||||
Store (FAN2_0_THRESHOLD_OFF, F2OF)
|
F2OF = FAN2_0_THRESHOLD_OFF
|
||||||
Store (FAN2_0_PWM, F2PW)
|
F2PW = FAN2_0_PWM
|
||||||
Store (FAN3_0_THRESHOLD_ON, F3ON)
|
F3ON = FAN3_0_THRESHOLD_ON
|
||||||
Store (FAN3_0_THRESHOLD_OFF, F3OF)
|
F3OF = FAN3_0_THRESHOLD_OFF
|
||||||
Store (FAN3_0_PWM, F3PW)
|
F3PW = FAN3_0_PWM
|
||||||
Store (FAN4_0_PWM, F4PW)
|
F4PW = FAN4_0_PWM
|
||||||
Store (0, THTB)
|
THTB = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Thermal Table 1
|
// Thermal Table 1
|
||||||
Method (TTB1, 0) {
|
Method (TTB1, 0) {
|
||||||
Store (FAN0_1_THRESHOLD_ON, F0ON)
|
F0ON = FAN0_1_THRESHOLD_ON
|
||||||
Store (FAN0_1_THRESHOLD_OFF, F0OF)
|
F0OF = FAN0_1_THRESHOLD_OFF
|
||||||
Store (FAN0_1_PWM, F0PW)
|
F0PW = FAN0_1_PWM
|
||||||
Store (FAN1_1_THRESHOLD_ON, F1ON)
|
F1ON = FAN1_1_THRESHOLD_ON
|
||||||
Store (FAN1_1_THRESHOLD_OFF, F1OF)
|
F1OF = FAN1_1_THRESHOLD_OFF
|
||||||
Store (FAN1_1_PWM, F1PW)
|
F1PW = FAN1_1_PWM
|
||||||
Store (FAN2_1_THRESHOLD_ON, F2ON)
|
F2ON = FAN2_1_THRESHOLD_ON
|
||||||
Store (FAN2_1_THRESHOLD_OFF, F2OF)
|
F2OF = FAN2_1_THRESHOLD_OFF
|
||||||
Store (FAN2_1_PWM, F2PW)
|
F2PW = FAN2_1_PWM
|
||||||
Store (FAN3_1_THRESHOLD_ON, F3ON)
|
F3ON = FAN3_1_THRESHOLD_ON
|
||||||
Store (FAN3_1_THRESHOLD_OFF, F3OF)
|
F3OF = FAN3_1_THRESHOLD_OFF
|
||||||
Store (FAN3_1_PWM, F3PW)
|
F3PW = FAN3_1_PWM
|
||||||
Store (FAN4_1_PWM, F4PW)
|
F4PW = FAN4_1_PWM
|
||||||
Store (1, THTB)
|
THTB = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Thermal Table 2
|
// Thermal Table 2
|
||||||
Method (TTB2, 0) {
|
Method (TTB2, 0) {
|
||||||
Store (FAN0_2_THRESHOLD_ON, F0ON)
|
F0ON = FAN0_2_THRESHOLD_ON
|
||||||
Store (FAN0_2_THRESHOLD_OFF, F0OF)
|
F0OF = FAN0_2_THRESHOLD_OFF
|
||||||
Store (FAN0_2_PWM, F0PW)
|
F0PW = FAN0_2_PWM
|
||||||
Store (FAN1_2_THRESHOLD_ON, F1ON)
|
F1ON = FAN1_2_THRESHOLD_ON
|
||||||
Store (FAN1_2_THRESHOLD_OFF, F1OF)
|
F1OF = FAN1_2_THRESHOLD_OFF
|
||||||
Store (FAN1_2_PWM, F1PW)
|
F1PW = FAN1_2_PWM
|
||||||
Store (FAN2_2_THRESHOLD_ON, F2ON)
|
F2ON = FAN2_2_THRESHOLD_ON
|
||||||
Store (FAN2_2_THRESHOLD_OFF, F2OF)
|
F2OF = FAN2_2_THRESHOLD_OFF
|
||||||
Store (FAN2_2_PWM, F2PW)
|
F2PW = FAN2_2_PWM
|
||||||
Store (FAN3_2_THRESHOLD_ON, F3ON)
|
F3ON = FAN3_2_THRESHOLD_ON
|
||||||
Store (FAN3_2_THRESHOLD_OFF, F3OF)
|
F3OF = FAN3_2_THRESHOLD_OFF
|
||||||
Store (FAN3_2_PWM, F3PW)
|
F3PW = FAN3_2_PWM
|
||||||
Store (FAN4_2_PWM, F4PW)
|
F4PW = FAN4_2_PWM
|
||||||
Store (2, THTB)
|
THTB = 2
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update Thermal Table
|
// Update Thermal Table
|
||||||
Method (UPTB, 0) {
|
Method (UPTB, 0) {
|
||||||
// Get System Temperature via SuperIO TMPIN2
|
// Get System Temperature via SuperIO TMPIN2
|
||||||
Store (\_SB.PCI0.LPCB.SIO.ENVC.TIN2, Local0)
|
Local0 = \_SB.PCI0.LPCB.SIO.ENVC.TIN2
|
||||||
|
|
||||||
// Check for "no reading available
|
// Check for "no reading available
|
||||||
If (Local0 == 0x80) {
|
If (Local0 == 0x80) {
|
||||||
Store (THERMAL_POLICY_0_THRESHOLD_ON, Local0)
|
Local0 = THERMAL_POLICY_0_THRESHOLD_ON
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for invalid readings
|
// Check for invalid readings
|
||||||
If (Local0 == 255 || Local0 == 0) {
|
If (Local0 == 255 || Local0 == 0) {
|
||||||
Store (THERMAL_POLICY_0_THRESHOLD_ON, Local0)
|
Local0 = THERMAL_POLICY_0_THRESHOLD_ON
|
||||||
}
|
}
|
||||||
|
|
||||||
If (THTB == 2) {
|
If (THTB == 2) {
|
||||||
|
@ -158,8 +158,8 @@ Scope (\_TZ)
|
||||||
// Start fan at state 4 = lowest temp state
|
// Start fan at state 4 = lowest temp state
|
||||||
Method (_INI)
|
Method (_INI)
|
||||||
{
|
{
|
||||||
Store (4, \FLVL)
|
\FLVL = 4
|
||||||
Store (FAN4_2_PWM, \_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = FAN4_2_PWM
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ Scope (\_TZ)
|
||||||
UPTB ()
|
UPTB ()
|
||||||
|
|
||||||
// Get CPU Temperature from PECI via SuperIO TMPIN3
|
// Get CPU Temperature from PECI via SuperIO TMPIN3
|
||||||
Store (\_SB.PCI0.LPCB.SIO.ENVC.TIN3, Local0)
|
Local0 = \_SB.PCI0.LPCB.SIO.ENVC.TIN3
|
||||||
|
|
||||||
// Check for "no reading available
|
// Check for "no reading available
|
||||||
If (Local0 == 0x80) {
|
If (Local0 == 0x80) {
|
||||||
|
@ -197,10 +197,10 @@ Scope (\_TZ)
|
||||||
Method (_TMP, 0, Serialized)
|
Method (_TMP, 0, Serialized)
|
||||||
{
|
{
|
||||||
// Get temperature from SuperIO in deci-kelvin
|
// Get temperature from SuperIO in deci-kelvin
|
||||||
Store (TCHK (), Local0)
|
Local0 = TCHK ()
|
||||||
|
|
||||||
// Critical temperature in deci-kelvin
|
// Critical temperature in deci-kelvin
|
||||||
Store (CTOK (\TMAX), Local1)
|
Local1 = CTOK (\TMAX)
|
||||||
|
|
||||||
If (Local0 >= Local1) {
|
If (Local0 >= Local1) {
|
||||||
Printf ("CRITICAL TEMPERATURE: %o", Local0)
|
Printf ("CRITICAL TEMPERATURE: %o", Local0)
|
||||||
|
@ -209,7 +209,7 @@ Scope (\_TZ)
|
||||||
Sleep (1000)
|
Sleep (1000)
|
||||||
|
|
||||||
// Re-read temperature from SuperIO
|
// Re-read temperature from SuperIO
|
||||||
Store (TCHK (), Local0)
|
Local0 = TCHK ()
|
||||||
|
|
||||||
Printf ("RE-READ TEMPERATURE: %o", Local0)
|
Printf ("RE-READ TEMPERATURE: %o", Local0)
|
||||||
}
|
}
|
||||||
|
@ -274,17 +274,15 @@ Scope (\_TZ)
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
If (! _STA ()) {
|
If (! _STA ()) {
|
||||||
Store (0, \FLVL)
|
\FLVL = 0
|
||||||
Store (F0PW,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = F0PW
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (_STA ()) {
|
If (_STA ()) {
|
||||||
Store (1, \FLVL)
|
\FLVL = 1
|
||||||
Store (F1PW,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = F1PW
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -301,17 +299,15 @@ Scope (\_TZ)
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
If (! _STA ()) {
|
If (! _STA ()) {
|
||||||
Store (1, \FLVL)
|
\FLVL = 1
|
||||||
Store (F1PW,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = F1PW
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (_STA ()) {
|
If (_STA ()) {
|
||||||
Store (2, \FLVL)
|
\FLVL = 2
|
||||||
Store (F2PW,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = F2PW
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -328,17 +324,15 @@ Scope (\_TZ)
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
If (! _STA ()) {
|
If (! _STA ()) {
|
||||||
Store (2, \FLVL)
|
\FLVL = 2
|
||||||
Store (F2PW,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = F2PW
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (_STA ()) {
|
If (_STA ()) {
|
||||||
Store (3, \FLVL)
|
\FLVL = 3
|
||||||
Store (F3PW,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = F3PW
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -355,17 +349,15 @@ Scope (\_TZ)
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
If (! _STA ()) {
|
If (! _STA ()) {
|
||||||
Store (3, \FLVL)
|
\FLVL = 3
|
||||||
Store (F3PW,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = F3PW
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (_STA ()) {
|
If (_STA ()) {
|
||||||
Store (4, \FLVL)
|
\FLVL = 4
|
||||||
Store (F4PW,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = F4PW
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -382,17 +374,15 @@ Scope (\_TZ)
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
If (! _STA ()) {
|
If (! _STA ()) {
|
||||||
Store (4, \FLVL)
|
\FLVL = 4
|
||||||
Store (F4PW,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = F4PW
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (_STA ()) {
|
If (_STA ()) {
|
||||||
Store (4, \FLVL)
|
\FLVL = 4
|
||||||
Store (F4PW,
|
\_SB.PCI0.LPCB.SIO.ENVC.F2PS = F4PW
|
||||||
\_SB.PCI0.LPCB.SIO.ENVC.F2PS)
|
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue