blob: 75a8df3cca647a93b329dd4e9b2babf3bd244bda [file] [log] [blame]
Duncan Laurieef549a02015-09-01 09:47:55 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2015 Google Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
Duncan Laurieef549a02015-09-01 09:47:55 -070014 */
15
16Scope (\_SB)
17{
18 /*
19 * Chrome EC Keyboard Backlight interface
20 */
21 Device (KBLT)
22 {
23 Name (_HID, "GOOG0002")
24 Name (_UID, 1)
25
26 /* Read current backlight value */
27 Method (KBQC, 0, NotSerialized)
28 {
29 Return (\_SB.PCI0.LPCB.EC0.KBLV)
30 }
31
32 /* Write new backlight value */
33 Method (KBCM, 1, NotSerialized)
34 {
35 Store (Arg0, \_SB.PCI0.LPCB.EC0.KBLV)
36 }
37 }
38}