mb/google/slippy/acpi: Replace Store(a,b) with ASL 2.0 syntax
Replace `Store (a, b)` with `b = a`. Change-Id: I950d776a712a104f2caed614886ce2527028ead7 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70681 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
1bb621c002
commit
a006259e6f
|
@ -15,16 +15,16 @@ Method(_PTS,1)
|
||||||
Method(_WAK,1)
|
Method(_WAK,1)
|
||||||
{
|
{
|
||||||
/* Update AC status */
|
/* Update AC status */
|
||||||
Store (\_SB.PCI0.LPCB.EC0.ACEX, Local0)
|
Local0 = \_SB.PCI0.LPCB.EC0.ACEX
|
||||||
if (Local0 != \PWRS) {
|
if (Local0 != \PWRS) {
|
||||||
Store (Local0, \PWRS)
|
\PWRS = Local0
|
||||||
Notify (\_SB.PCI0.LPCB.EC0.AC, 0x80)
|
Notify (\_SB.PCI0.LPCB.EC0.AC, 0x80)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Update LID status */
|
/* Update LID status */
|
||||||
Store (\_SB.PCI0.LPCB.EC0.LIDS, Local0)
|
Local0 = \_SB.PCI0.LPCB.EC0.LIDS
|
||||||
if (Local0 != \LIDS) {
|
if (Local0 != \LIDS) {
|
||||||
Store (Local0, \LIDS)
|
\LIDS = Local0
|
||||||
Notify (\_SB.PCI0.LPCB.EC0.LID0, 0x80)
|
Notify (\_SB.PCI0.LPCB.EC0.LID0, 0x80)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,7 @@ Scope (\_TZ)
|
||||||
Method (TCHK, 0, Serialized)
|
Method (TCHK, 0, Serialized)
|
||||||
{
|
{
|
||||||
// Get Temperature from TIN# set in NVS
|
// Get Temperature from TIN# set in NVS
|
||||||
Store (\_SB.PCI0.LPCB.EC0.TINS (TMPS), Local0)
|
Local0 = \_SB.PCI0.LPCB.EC0.TINS (TMPS)
|
||||||
|
|
||||||
// Check for sensor not calibrated
|
// Check for sensor not calibrated
|
||||||
If (Local0 == \_SB.PCI0.LPCB.EC0.TNCA) {
|
If (Local0 == \_SB.PCI0.LPCB.EC0.TNCA) {
|
||||||
|
@ -97,10 +97,10 @@ Scope (\_TZ)
|
||||||
Method (_TMP, 0, Serialized)
|
Method (_TMP, 0, Serialized)
|
||||||
{
|
{
|
||||||
// Get temperature from EC in deci-kelvin
|
// Get temperature from EC in deci-kelvin
|
||||||
Store (TCHK (), Local0)
|
Local0 = TCHK ()
|
||||||
|
|
||||||
// Critical temperature in deci-kelvin
|
// Critical temperature in deci-kelvin
|
||||||
Store (CTOK (\TCRT), Local1)
|
Local1 = CTOK (\TCRT)
|
||||||
|
|
||||||
If (Local0 >= Local1) {
|
If (Local0 >= Local1) {
|
||||||
Printf ("CRITICAL TEMPERATURE: %o", Local0)
|
Printf ("CRITICAL TEMPERATURE: %o", Local0)
|
||||||
|
@ -109,7 +109,7 @@ Scope (\_TZ)
|
||||||
Sleep (1000)
|
Sleep (1000)
|
||||||
|
|
||||||
// Re-read temperature from EC
|
// Re-read temperature from EC
|
||||||
Store (TCHK (), Local0)
|
Local0 = TCHK ()
|
||||||
|
|
||||||
Printf ("RE-READ TEMPERATURE: %o", Local0)
|
Printf ("RE-READ TEMPERATURE: %o", Local0)
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ Scope (\_SB.PCI0.I2C0)
|
||||||
|
|
||||||
Method (_DSW, 3, NotSerialized)
|
Method (_DSW, 3, NotSerialized)
|
||||||
{
|
{
|
||||||
Store (BOARD_TRACKPAD_WAKE_GPIO, Local0)
|
Local0 = BOARD_TRACKPAD_WAKE_GPIO
|
||||||
If (Arg0 == 1) {
|
If (Arg0 == 1) {
|
||||||
// Enable GPIO as wake source
|
// Enable GPIO as wake source
|
||||||
\_SB.PCI0.LPCB.GPIO.GWAK (Local0)
|
\_SB.PCI0.LPCB.GPIO.GWAK (Local0)
|
||||||
|
|
|
@ -37,7 +37,7 @@ Scope (\_SB.PCI0.I2C0)
|
||||||
|
|
||||||
Method (_DSW, 3, NotSerialized)
|
Method (_DSW, 3, NotSerialized)
|
||||||
{
|
{
|
||||||
Store (BOARD_TRACKPAD_WAKE_GPIO, Local0)
|
Local0 = BOARD_TRACKPAD_WAKE_GPIO
|
||||||
If (Arg0 == 1) {
|
If (Arg0 == 1) {
|
||||||
// Enable GPIO as wake source
|
// Enable GPIO as wake source
|
||||||
\_SB.PCI0.LPCB.GPIO.GWAK (Local0)
|
\_SB.PCI0.LPCB.GPIO.GWAK (Local0)
|
||||||
|
|
|
@ -37,7 +37,7 @@ Scope (\_SB.PCI0.I2C0)
|
||||||
|
|
||||||
Method (_DSW, 3, NotSerialized)
|
Method (_DSW, 3, NotSerialized)
|
||||||
{
|
{
|
||||||
Store (BOARD_TRACKPAD_WAKE_GPIO, Local0)
|
Local0 = BOARD_TRACKPAD_WAKE_GPIO
|
||||||
If (Arg0 == 1) {
|
If (Arg0 == 1) {
|
||||||
// Enable GPIO as wake source
|
// Enable GPIO as wake source
|
||||||
\_SB.PCI0.LPCB.GPIO.GWAK (Local0)
|
\_SB.PCI0.LPCB.GPIO.GWAK (Local0)
|
||||||
|
@ -79,7 +79,7 @@ Scope (\_SB.PCI0.I2C0)
|
||||||
|
|
||||||
Method (_DSW, 3, NotSerialized)
|
Method (_DSW, 3, NotSerialized)
|
||||||
{
|
{
|
||||||
Store (BOARD_TRACKPAD_WAKE_GPIO, Local0)
|
Local0 = BOARD_TRACKPAD_WAKE_GPIO
|
||||||
If (Arg0 == 1) {
|
If (Arg0 == 1) {
|
||||||
// Enable GPIO as wake source
|
// Enable GPIO as wake source
|
||||||
\_SB.PCI0.LPCB.GPIO.GWAK (Local0)
|
\_SB.PCI0.LPCB.GPIO.GWAK (Local0)
|
||||||
|
@ -119,7 +119,7 @@ Scope (\_SB.PCI0.I2C1)
|
||||||
|
|
||||||
Method (_DSW, 3, NotSerialized)
|
Method (_DSW, 3, NotSerialized)
|
||||||
{
|
{
|
||||||
Store (BOARD_TOUCHSCREEN_WAKE_GPIO, Local0)
|
Local0 = BOARD_TOUCHSCREEN_WAKE_GPIO
|
||||||
If (Arg0 == 1) {
|
If (Arg0 == 1) {
|
||||||
// Enable GPIO as wake source
|
// Enable GPIO as wake source
|
||||||
\_SB.PCI0.LPCB.GPIO.GWAK (Local0)
|
\_SB.PCI0.LPCB.GPIO.GWAK (Local0)
|
||||||
|
|
|
@ -37,7 +37,7 @@ Scope (\_SB.PCI0.I2C0)
|
||||||
|
|
||||||
Method (_DSW, 3, NotSerialized)
|
Method (_DSW, 3, NotSerialized)
|
||||||
{
|
{
|
||||||
Store (BOARD_TRACKPAD_WAKE_GPIO, Local0)
|
Local0 = BOARD_TRACKPAD_WAKE_GPIO
|
||||||
If (Arg0 == 1) {
|
If (Arg0 == 1) {
|
||||||
// Enable GPIO as wake source
|
// Enable GPIO as wake source
|
||||||
\_SB.PCI0.LPCB.GPIO.GWAK (Local0)
|
\_SB.PCI0.LPCB.GPIO.GWAK (Local0)
|
||||||
|
|
Loading…
Reference in New Issue