ec/lenovo/h8: Rename LED to avoid conflicting with thinkpad-acpi

Change-Id: I9fd7f894d0e611f61e8702e4eacb12d7b81154d8
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/6789
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
Vladimir Serbinenko 2014-08-28 01:31:33 +02:00
parent ed74dcd7f0
commit 7096a0cb26
2 changed files with 15 additions and 15 deletions

View File

@ -70,7 +70,7 @@ Device(EC)
Return (ECMD) Return (ECMD)
} }
Method (LED, 1, NotSerialized) Method (TLED, 1, NotSerialized)
{ {
Store(Arg0, LEDS) Store(Arg0, LEDS)
} }

View File

@ -27,37 +27,37 @@ Scope (\_SI)
If (LEqual (Arg0, 0)) { If (LEqual (Arg0, 0)) {
/* Indicator off */ /* Indicator off */
/* power LED off */ /* power TLED off */
\_SB.PCI0.LPCB.EC.LED(0x00) \_SB.PCI0.LPCB.EC.TLED(0x00)
/* suspend LED off */ /* suspend TLED off */
\_SB.PCI0.LPCB.EC.LED(0x07) \_SB.PCI0.LPCB.EC.TLED(0x07)
} }
If (LEqual (Arg0, 1)) { If (LEqual (Arg0, 1)) {
/* working state */ /* working state */
/* power LED on */ /* power TLED on */
\_SB.PCI0.LPCB.EC.LED(0x80) \_SB.PCI0.LPCB.EC.TLED(0x80)
/* suspend LED off */ /* suspend TLED off */
\_SB.PCI0.LPCB.EC.LED(0x07) \_SB.PCI0.LPCB.EC.TLED(0x07)
} }
If (LEqual (Arg0, 2)) { If (LEqual (Arg0, 2)) {
/* waking state */ /* waking state */
/* power LED on */ /* power LED on */
\_SB.PCI0.LPCB.EC.LED(0x80) \_SB.PCI0.LPCB.EC.TLED(0x80)
/* suspend LED blinking */ /* suspend LED blinking */
\_SB.PCI0.LPCB.EC.LED(0xc7) \_SB.PCI0.LPCB.EC.TLED(0xc7)
} }
If (LEqual (Arg0, 3)) { If (LEqual (Arg0, 3)) {
/* sleep state */ /* sleep state */
/* power LED off */ /* power TLED off */
\_SB.PCI0.LPCB.EC.LED(0x00) \_SB.PCI0.LPCB.EC.TLED(0x00)
/* suspend LED on */ /* suspend TLED on */
\_SB.PCI0.LPCB.EC.LED(0x87) \_SB.PCI0.LPCB.EC.TLED(0x87)
} }
} }
} }