Angel Pons | 210a008 | 2020-04-02 23:48:24 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Sven Schnelle | b188a93 | 2011-03-14 13:42:08 +0000 | [diff] [blame] | 2 | |
3 | |||||
4 | Scope (\_SI) | ||||
5 | { | ||||
6 | Method(_SST, 1, NotSerialized) | ||||
7 | { | ||||
Felix Singer | 95bfa03 | 2022-01-02 00:48:19 +0100 | [diff] [blame] | 8 | If (Arg0 == 0) { |
Sven Schnelle | b188a93 | 2011-03-14 13:42:08 +0000 | [diff] [blame] | 9 | /* Indicator off */ |
10 | |||||
Vladimir Serbinenko | 7096a0c | 2014-08-28 01:31:33 +0200 | [diff] [blame] | 11 | /* power TLED off */ |
12 | \_SB.PCI0.LPCB.EC.TLED(0x00) | ||||
13 | /* suspend TLED off */ | ||||
14 | \_SB.PCI0.LPCB.EC.TLED(0x07) | ||||
Evgeny Sorokin | d48d72c | 2024-02-10 03:32:41 +0300 | [diff] [blame^] | 15 | #if CONFIG(H8_HAS_LEDLOGO) |
16 | /* logo TLED off */ | ||||
17 | \_SB.PCI0.LPCB.EC.TLED(0x0a) | ||||
18 | #endif | ||||
Sven Schnelle | b188a93 | 2011-03-14 13:42:08 +0000 | [diff] [blame] | 19 | } |
20 | |||||
Felix Singer | 95bfa03 | 2022-01-02 00:48:19 +0100 | [diff] [blame] | 21 | If (Arg0 == 1) { |
Sven Schnelle | b188a93 | 2011-03-14 13:42:08 +0000 | [diff] [blame] | 22 | /* working state */ |
23 | |||||
Vladimir Serbinenko | 7096a0c | 2014-08-28 01:31:33 +0200 | [diff] [blame] | 24 | /* power TLED on */ |
25 | \_SB.PCI0.LPCB.EC.TLED(0x80) | ||||
26 | /* suspend TLED off */ | ||||
27 | \_SB.PCI0.LPCB.EC.TLED(0x07) | ||||
Evgeny Sorokin | d48d72c | 2024-02-10 03:32:41 +0300 | [diff] [blame^] | 28 | #if CONFIG(H8_HAS_LEDLOGO) |
29 | /* logo TLED on */ | ||||
30 | \_SB.PCI0.LPCB.EC.TLED(0x8a) | ||||
31 | #endif | ||||
Sven Schnelle | b188a93 | 2011-03-14 13:42:08 +0000 | [diff] [blame] | 32 | } |
33 | |||||
Felix Singer | 95bfa03 | 2022-01-02 00:48:19 +0100 | [diff] [blame] | 34 | If (Arg0 == 2) { |
Sven Schnelle | b188a93 | 2011-03-14 13:42:08 +0000 | [diff] [blame] | 35 | /* waking state */ |
36 | |||||
Paul Menzel | e4340b5 | 2014-08-15 15:58:36 +0200 | [diff] [blame] | 37 | /* power LED on */ |
Vladimir Serbinenko | 7096a0c | 2014-08-28 01:31:33 +0200 | [diff] [blame] | 38 | \_SB.PCI0.LPCB.EC.TLED(0x80) |
Sven Schnelle | b188a93 | 2011-03-14 13:42:08 +0000 | [diff] [blame] | 39 | /* suspend LED blinking */ |
Vladimir Serbinenko | 7096a0c | 2014-08-28 01:31:33 +0200 | [diff] [blame] | 40 | \_SB.PCI0.LPCB.EC.TLED(0xc7) |
Evgeny Sorokin | d48d72c | 2024-02-10 03:32:41 +0300 | [diff] [blame^] | 41 | #if CONFIG(H8_HAS_LEDLOGO) |
42 | /* logo TLED on */ | ||||
43 | \_SB.PCI0.LPCB.EC.TLED(0x8a) | ||||
44 | #endif | ||||
Sven Schnelle | b188a93 | 2011-03-14 13:42:08 +0000 | [diff] [blame] | 45 | } |
46 | |||||
Felix Singer | 95bfa03 | 2022-01-02 00:48:19 +0100 | [diff] [blame] | 47 | If (Arg0 == 3) { |
Sven Schnelle | b188a93 | 2011-03-14 13:42:08 +0000 | [diff] [blame] | 48 | /* sleep state */ |
49 | |||||
Nicola Corna | b1ffff7 | 2017-02-10 13:05:04 +0100 | [diff] [blame] | 50 | /* power TLED pulsing */ |
51 | \_SB.PCI0.LPCB.EC.TLED(0xa0) | ||||
Vladimir Serbinenko | 7096a0c | 2014-08-28 01:31:33 +0200 | [diff] [blame] | 52 | /* suspend TLED on */ |
53 | \_SB.PCI0.LPCB.EC.TLED(0x87) | ||||
Evgeny Sorokin | d48d72c | 2024-02-10 03:32:41 +0300 | [diff] [blame^] | 54 | #if CONFIG(H8_HAS_LEDLOGO) |
55 | /* logo TLED pulsing */ | ||||
56 | \_SB.PCI0.LPCB.EC.TLED(0xaa) | ||||
57 | #endif | ||||
Sven Schnelle | b188a93 | 2011-03-14 13:42:08 +0000 | [diff] [blame] | 58 | } |
Sven Schnelle | b188a93 | 2011-03-14 13:42:08 +0000 | [diff] [blame] | 59 | } |
60 | } |