2 * This file is part of the coreboot project.
4 * Copyright (c) 2011 Sven Schnelle <svens@stackframe.org>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; version 2 of
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
23 Name (_HID, EISAID("PNP0C09"))
29 OperationRegion(ERAM, EmbeddedControl, 0x00, 0x100)
30 Field (ERAM, ByteAcc, NoLock, Preserve)
33 PAGE, 8, /* Information Page Selector */
40 B0PR, 1, /* Battery 0 present */
41 B0CH, 1, /* Battery 0 charging */
42 B0DI, 1, /* Battery 0 discharging */
51 Method(_LID, 0, NotSerialized)
57 Method(_Q52, 0, NotSerialized)
62 Method(_Q53, 0, NotSerialized)
68 Field (ERAM, ByteAcc, NoLock, Preserve)
71 BARC, 16, /* Battery remaining capacity */
72 BAFC, 16, /* Battery full charge capacity */
74 BAPR, 16, /* Battery present rate */
75 BAVO, 16, /* Battery Voltage */
79 Field (ERAM, ByteAcc, NoLock, Preserve)
82 BADC, 16, /* Design Capacity */
83 BADV, 16, /* Design voltage */
88 Field (ERAM, ByteAcc, NoLock, Preserve)
91 BANA, 128, /* Battery name */
95 Field (ERAM, ByteAcc, NoLock, Preserve)
98 BATY, 128, /* Battery type */
102 Field (ERAM, ByteAcc, NoLock, Preserve)
105 BAOE, 128, /* Battery OEM info */
110 Name (ECMD, ResourceTemplate()
112 IO (Decode16, 0x62, 0x62, 1, 1)
113 IO (Decode16, 0x66, 0x66, 1, 1)
117 Method (_INI, 0, NotSerialized)
121 /* Decrease brightness. */
122 Method(_Q1D, 0, NotSerialized)
124 \_SB.PCI0.GFX0.DECB()
126 /* Increase brightness. */
127 Method(_Q1C, 0, NotSerialized)
129 \_SB.PCI0.GFX0.INCB()
132 #include "battery.asl"
134 #include "thermal.asl"