1 /* SPDX-License-Identifier: GPL-2.0-only */
4 // 0x80 - hardware backlight toggle
5 // 0x81 - backlight toggle
6 // 0x82 - backlight down
8 // 0x84 - backlight color change
10 Name (_HID, "17761776")
13 Method (RSET, 0, Serialized) {
19 Method (INIT, 0, Serialized) {
22 If (^^PCI0.LPCB.EC0.ECOK) {
23 // Set flags to use software control
24 ^^PCI0.LPCB.EC0.ECOS = 2
31 Method (FINI, 0, Serialized) {
34 If (^^PCI0.LPCB.EC0.ECOK) {
35 // Set flags to use hardware control
36 ^^PCI0.LPCB.EC0.ECOS = 1
44 Method (GAPL, 0, Serialized) {
45 If (^^PCI0.LPCB.EC0.ECOK) {
46 If (^^PCI0.LPCB.EC0.AIRP & 0x40) {
54 Method (SAPL, 1, Serialized) {
55 If (^^PCI0.LPCB.EC0.ECOK) {
57 ^^PCI0.LPCB.EC0.AIRP |= 0x40
59 ^^PCI0.LPCB.EC0.AIRP &= 0xBF
65 Method (GKBL, 0, Serialized) {
67 If (^^PCI0.LPCB.EC0.ECOK) {
68 ^^PCI0.LPCB.EC0.FDAT = 1
69 ^^PCI0.LPCB.EC0.FCMD = 0xCA
70 Local0 = ^^PCI0.LPCB.EC0.FBUF
71 ^^PCI0.LPCB.EC0.FCMD = 0
77 Method (SKBL, 1, Serialized) {
78 If (^^PCI0.LPCB.EC0.ECOK) {
79 ^^PCI0.LPCB.EC0.FDAT = 0
80 ^^PCI0.LPCB.EC0.FBUF = Arg0
81 ^^PCI0.LPCB.EC0.FCMD = 0xCA