Lance Zhao | 1bd0c0c | 2016-04-19 18:04:21 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 24 | External (NVSA) |
| 25 | |
| 26 | OperationRegion (GNVS, SystemMemory, NVSA, 0x1000) |
| 27 | Field (GNVS, ByteAcc, NoLock, Preserve) |
| 28 | { |
Shaunak Saha | d6463dd | 2016-05-25 11:34:43 -0700 | [diff] [blame] | 29 | /* Miscellaneous */ |
Lance Zhao | 1bd0c0c | 2016-04-19 18:04:21 -0700 | [diff] [blame] | 30 | Offset (0x00), |
Furquan Shaikh | 1f40ae2 | 2016-06-14 09:35:04 -0700 | [diff] [blame] | 31 | 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 Williams | 8ecd6f8 | 2016-06-08 17:39:37 -0700 | [diff] [blame] | 37 | PM1I, 64, // 0x09 - 0x10 - System Wake Source - PM1 Index |
| 38 | GPEI, 64, // 0x11 - 0x18 - GPE Wake Source |
Saurabh Satija | 3d0e287 | 2016-03-31 15:41:30 -0700 | [diff] [blame] | 39 | NHLA, 64, // 0x19 - 0x20 - NHLT Address |
| 40 | NHLL, 32, // 0x21 - 0x24 - NHLT Length |
Vaibhav Shankar | ef8deaf | 2016-08-23 17:56:17 -0700 | [diff] [blame] | 41 | PRT0, 32, // 0x25 - 0x28 - PERST_0 Address |
Lance Zhao | 1bd0c0c | 2016-04-19 18:04:21 -0700 | [diff] [blame] | 42 | |
| 43 | /* ChromeOS stuff (0x100 -> 0xfff, size 0xeff) */ |
| 44 | Offset (0x100), |
| 45 | #include <vendorcode/google/chromeos/acpi/gnvs.asl> |
| 46 | } |