blob: 982ec5bf896bbb5db40f5378286b65060d4cb6a3 [file] [log] [blame]
Shawn Nematbakhsh37b7a662015-03-24 11:07:51 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 2015 The Chromium OS Authors. All rights reserved.
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.
Shawn Nematbakhsh37b7a662015-03-24 11:07:51 -070014 */
15
16/*
17 * EMEM data may be accessed through port 62/66 or through LPC at 900h.
18 */
19
20Offset (0x00),
21TIN0, 8, // Temperature 0
22TIN1, 8, // Temperature 1
23TIN2, 8, // Temperature 2
24TIN3, 8, // Temperature 3
25TIN4, 8, // Temperature 4
26TIN5, 8, // Temperature 5
27TIN6, 8, // Temperature 6
28TIN7, 8, // Temperature 7
29TIN8, 8, // Temperature 8
30TIN9, 8, // Temperature 9
31Offset (0x10),
32FAN0, 16, // Fan Speed 0
Nicolas Boichat07fe6182018-01-26 14:37:16 +080033Offset (0x24),
34BTVR, 8, // Battery structure version
Shawn Nematbakhsh37b7a662015-03-24 11:07:51 -070035Offset (0x30),
36LIDS, 1, // Lid Switch State
37PBTN, 1, // Power Button Pressed
38WPDI, 1, // Write Protect Disabled
39RECK, 1, // Keyboard Initiated Recovery
40RECD, 1, // Dedicated Recovery Mode
41Offset (0x40),
42BTVO, 32, // Battery Present Voltage
43BTPR, 32, // Battery Present Rate
44BTRA, 32, // Battery Remaining Capacity
45ACEX, 1, // AC Present
46BTEX, 1, // Battery Present
47BFDC, 1, // Battery Discharging
48BFCG, 1, // Battery Charging
49BFCR, 1, // Battery Level Critical
Nicolas Boichat07fe6182018-01-26 14:37:16 +080050Offset (0x4d),
51BTCN, 8, // Battery Count
52BTIX, 8, // Battery index
Shawn Nematbakhsh37b7a662015-03-24 11:07:51 -070053Offset (0x50),
54BTDA, 32, // Battery Design Capacity
55BTDV, 32, // Battery Design Voltage
56BTDF, 32, // Battery Last Full Charge Capacity
57BTCC, 32, // Battery Cycle Count
58BMFG, 64, // Battery Manufacturer String
59BMOD, 64, // Battery Model String
60BSER, 64, // Battery Serial String
61BTYP, 64, // Battery Type String
62Offset (0x80),
63ALS0, 16, // ALS reading 0 in lux