blob: 80544499ee06bf1a907b79771ce1cce98c5e93db [file] [log] [blame]
Angel Pons210a0082020-04-02 23:48:24 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Sven Schnelleb188a932011-03-14 13:42:08 +00002
3
4Scope (\_SI)
5{
6 Method(_SST, 1, NotSerialized)
7 {
Felix Singer95bfa032022-01-02 00:48:19 +01008 If (Arg0 == 0) {
Sven Schnelleb188a932011-03-14 13:42:08 +00009 /* Indicator off */
10
Vladimir Serbinenko7096a0c2014-08-28 01:31:33 +020011 /* power TLED off */
12 \_SB.PCI0.LPCB.EC.TLED(0x00)
13 /* suspend TLED off */
14 \_SB.PCI0.LPCB.EC.TLED(0x07)
Evgeny Sorokind48d72c2024-02-10 03:32:41 +030015#if CONFIG(H8_HAS_LEDLOGO)
16 /* logo TLED off */
17 \_SB.PCI0.LPCB.EC.TLED(0x0a)
18#endif
Sven Schnelleb188a932011-03-14 13:42:08 +000019 }
20
Felix Singer95bfa032022-01-02 00:48:19 +010021 If (Arg0 == 1) {
Sven Schnelleb188a932011-03-14 13:42:08 +000022 /* working state */
23
Vladimir Serbinenko7096a0c2014-08-28 01:31:33 +020024 /* power TLED on */
25 \_SB.PCI0.LPCB.EC.TLED(0x80)
26 /* suspend TLED off */
27 \_SB.PCI0.LPCB.EC.TLED(0x07)
Evgeny Sorokind48d72c2024-02-10 03:32:41 +030028#if CONFIG(H8_HAS_LEDLOGO)
29 /* logo TLED on */
30 \_SB.PCI0.LPCB.EC.TLED(0x8a)
31#endif
Sven Schnelleb188a932011-03-14 13:42:08 +000032 }
33
Felix Singer95bfa032022-01-02 00:48:19 +010034 If (Arg0 == 2) {
Sven Schnelleb188a932011-03-14 13:42:08 +000035 /* waking state */
36
Paul Menzele4340b52014-08-15 15:58:36 +020037 /* power LED on */
Vladimir Serbinenko7096a0c2014-08-28 01:31:33 +020038 \_SB.PCI0.LPCB.EC.TLED(0x80)
Sven Schnelleb188a932011-03-14 13:42:08 +000039 /* suspend LED blinking */
Vladimir Serbinenko7096a0c2014-08-28 01:31:33 +020040 \_SB.PCI0.LPCB.EC.TLED(0xc7)
Evgeny Sorokind48d72c2024-02-10 03:32:41 +030041#if CONFIG(H8_HAS_LEDLOGO)
42 /* logo TLED on */
43 \_SB.PCI0.LPCB.EC.TLED(0x8a)
44#endif
Sven Schnelleb188a932011-03-14 13:42:08 +000045 }
46
Felix Singer95bfa032022-01-02 00:48:19 +010047 If (Arg0 == 3) {
Sven Schnelleb188a932011-03-14 13:42:08 +000048 /* sleep state */
49
Nicola Cornab1ffff72017-02-10 13:05:04 +010050 /* power TLED pulsing */
51 \_SB.PCI0.LPCB.EC.TLED(0xa0)
Vladimir Serbinenko7096a0c2014-08-28 01:31:33 +020052 /* suspend TLED on */
53 \_SB.PCI0.LPCB.EC.TLED(0x87)
Evgeny Sorokind48d72c2024-02-10 03:32:41 +030054#if CONFIG(H8_HAS_LEDLOGO)
55 /* logo TLED pulsing */
56 \_SB.PCI0.LPCB.EC.TLED(0xaa)
57#endif
Sven Schnelleb188a932011-03-14 13:42:08 +000058 }
Sven Schnelleb188a932011-03-14 13:42:08 +000059 }
60}