1/* SPDX-License-Identifier: GPL-2.0-only */ 2 3 4Scope (\_SI) 5{ 6 Method(_SST, 1, NotSerialized) 7 { 8 If (Arg0 == 0) { 9 /* Indicator off */ 10 11 /* power TLED off */ 12 \_SB.PCI0.LPCB.EC.TLED(0x00) 13 /* suspend TLED off */ 14 \_SB.PCI0.LPCB.EC.TLED(0x07) 15#if CONFIG(H8_HAS_LEDLOGO) 16 /* logo TLED off */ 17 \_SB.PCI0.LPCB.EC.TLED(0x0a) 18#endif 19 } 20 21 If (Arg0 == 1) { 22 /* working state */ 23 24 /* power TLED on */ 25 \_SB.PCI0.LPCB.EC.TLED(0x80) 26 /* suspend TLED off */ 27 \_SB.PCI0.LPCB.EC.TLED(0x07) 28#if CONFIG(H8_HAS_LEDLOGO) 29 /* logo TLED on */ 30 \_SB.PCI0.LPCB.EC.TLED(0x8a) 31#endif 32 } 33 34 If (Arg0 == 2) { 35 /* waking state */ 36 37 /* power LED on */ 38 \_SB.PCI0.LPCB.EC.TLED(0x80) 39 /* suspend LED blinking */ 40 \_SB.PCI0.LPCB.EC.TLED(0xc7) 41#if CONFIG(H8_HAS_LEDLOGO) 42 /* logo TLED on */ 43 \_SB.PCI0.LPCB.EC.TLED(0x8a) 44#endif 45 } 46 47 If (Arg0 == 3) { 48 /* sleep state */ 49 50 /* power TLED pulsing */ 51 \_SB.PCI0.LPCB.EC.TLED(0xa0) 52 /* suspend TLED on */ 53 \_SB.PCI0.LPCB.EC.TLED(0x87) 54#if CONFIG(H8_HAS_LEDLOGO) 55 /* logo TLED pulsing */ 56 \_SB.PCI0.LPCB.EC.TLED(0xaa) 57#endif 58 } 59 } 60} 61