blob: 657c834b67d8a8db3a9480d56b5a77ce2c8425c7 [file] [log] [blame]
Lance Zhao1bd0c0c2016-04-19 18:04:21 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2016 Intel Corp.
5 * (Written by Alexandru Gagniuc <alexandrux.gagniuc@intel.com> for Intel Corp.)
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 */
17
18/*
19 * NOTE: The layout of the GNVS structure below must match the layout in
20 * soc/intel/apollolake/include/soc/nvs.h !!!
21 *
22 */
23
24External (NVSA)
25
26OperationRegion (GNVS, SystemMemory, NVSA, 0x1000)
27Field (GNVS, ByteAcc, NoLock, Preserve)
28{
Shaunak Sahad6463dd2016-05-25 11:34:43 -070029 /* Miscellaneous */
Lance Zhao1bd0c0c2016-04-19 18:04:21 -070030 Offset (0x00),
Furquan Shaikh1f40ae22016-06-14 09:35:04 -070031 PCNT, 8, // 0x00 - Processor Count
32 PPCM, 8, // 0x01 - Max PPC State
33 LIDS, 8, // 0x02 - LID State
34 PWRS, 8, // 0x03 - AC Power State
35 DPTE, 8, // 0x04 - Enable DPTF
36 CBMC, 32, // 0x05 - 0x08 - Coreboot Memory Console
Hannah Williams8ecd6f82016-06-08 17:39:37 -070037 PM1I, 64, // 0x09 - 0x10 - System Wake Source - PM1 Index
38 GPEI, 64, // 0x11 - 0x18 - GPE Wake Source
Saurabh Satija3d0e2872016-03-31 15:41:30 -070039 NHLA, 64, // 0x19 - 0x20 - NHLT Address
40 NHLL, 32, // 0x21 - 0x24 - NHLT Length
Vaibhav Shankaref8deaf2016-08-23 17:56:17 -070041 PRT0, 32, // 0x25 - 0x28 - PERST_0 Address
Lance Zhao1bd0c0c2016-04-19 18:04:21 -070042
43 /* ChromeOS stuff (0x100 -> 0xfff, size 0xeff) */
44 Offset (0x100),
45 #include <vendorcode/google/chromeos/acpi/gnvs.asl>
46}