Stefan Reinauer | 2198c58 | 2012-06-07 15:38:44 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2011 The ChromiumOS 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. |
Stefan Reinauer | 2198c58 | 2012-06-07 15:38:44 -0700 | [diff] [blame] | 14 | */ |
| 15 | |
Philipp Deppenwiese | fea2429 | 2017-10-17 17:02:29 +0200 | [diff] [blame] | 16 | #include <security/vboot/vbnv_layout.h> |
Duncan Laurie | 3cbf8d9 | 2016-01-28 10:26:31 -0800 | [diff] [blame] | 17 | |
Aaron Durbin | b0f8151 | 2016-07-25 21:31:41 -0500 | [diff] [blame] | 18 | #if IS_ENABLED(CONFIG_CHROMEOS) |
| 19 | |
| 20 | /* GPIO package generated at run time. */ |
| 21 | External (OIPG) |
| 22 | |
Stefan Reinauer | 2198c58 | 2012-06-07 15:38:44 -0700 | [diff] [blame] | 23 | Device (CRHW) |
| 24 | { |
| 25 | Name(_HID, EISAID("GGL0001")) |
| 26 | |
| 27 | Method(_STA, 0, Serialized) |
| 28 | { |
| 29 | Return (0xb) |
| 30 | } |
| 31 | |
| 32 | Method(CHSW, 0, Serialized) |
| 33 | { |
| 34 | Name (WSHC, Package() { VBT3 }) |
| 35 | Return (WSHC) |
| 36 | } |
| 37 | |
| 38 | Method(FWID, 0, Serialized) |
| 39 | { |
| 40 | Name (DIW1, "") |
| 41 | ToString(VBT5, 63, DIW1) |
| 42 | Name (DIWF, Package() { DIW1 }) |
| 43 | Return(DIWF) |
| 44 | } |
| 45 | |
| 46 | Method(FRID, 0, Serialized) |
| 47 | { |
| 48 | Name (DIR1, "") |
| 49 | ToString(VBT6, 63, DIR1) |
| 50 | Name (DIRF, Package() { DIR1 }) |
| 51 | Return (DIRF) |
| 52 | } |
| 53 | |
| 54 | Method(HWID, 0, Serialized) |
| 55 | { |
| 56 | Name (DIW0, "") |
| 57 | ToString(VBT4, 255, DIW0) |
| 58 | Name (DIWH, Package() { DIW0 }) |
| 59 | Return (DIWH) |
| 60 | } |
| 61 | |
| 62 | Method(BINF, 0, Serialized) |
| 63 | { |
| 64 | Name (FNIB, Package() { VBT0, VBT1, VBT2, VBT7, VBT8 }) |
| 65 | Return (FNIB) |
| 66 | } |
| 67 | |
| 68 | Method(GPIO, 0, Serialized) |
| 69 | { |
| 70 | Return (OIPG) |
| 71 | |
| 72 | } |
| 73 | |
| 74 | Method(VBNV, 0, Serialized) |
| 75 | { |
| 76 | Name(VNBV, Package() { |
| 77 | // See src/vendorcode/google/chromeos/Kconfig |
| 78 | // for the definition of these: |
Furquan Shaikh | 2a12e2e | 2016-07-25 11:48:03 -0700 | [diff] [blame] | 79 | CONFIG_VBOOT_VBNV_OFFSET, |
| 80 | VBOOT_VBNV_BLOCK_SIZE |
Stefan Reinauer | 2198c58 | 2012-06-07 15:38:44 -0700 | [diff] [blame] | 81 | }) |
| 82 | Return(VNBV) |
| 83 | } |
| 84 | |
| 85 | Method(VDAT, 0, Serialized) |
| 86 | { |
| 87 | Name(TAD0,"") |
| 88 | ToBuffer(CHVD, TAD0) |
| 89 | Name (TADV, Package() { TAD0 }) |
| 90 | Return (TADV) |
| 91 | } |
| 92 | |
| 93 | Method(FMAP, 0, Serialized) |
| 94 | { |
| 95 | Name(PAMF, Package() { VBT9 }) |
| 96 | Return(PAMF) |
| 97 | } |
| 98 | |
| 99 | Method(MECK, 0, Serialized) |
| 100 | { |
| 101 | Name(HASH, Package() { MEHH }) |
| 102 | Return(HASH) |
| 103 | } |
| 104 | |
| 105 | Method(MLST, 0, Serialized) |
| 106 | { |
| 107 | Name(TSLM, Package() { "CHSW", "FWID", "HWID", "FRID", "BINF", |
| 108 | "GPIO", "VBNV", "VDAT", "FMAP", "MECK" |
| 109 | }) |
| 110 | Return (TSLM) |
| 111 | } |
| 112 | } |
Aaron Durbin | 06ece7d | 2014-02-14 00:30:04 -0600 | [diff] [blame] | 113 | |
| 114 | #include "ramoops.asl" |
Aaron Durbin | b0f8151 | 2016-07-25 21:31:41 -0500 | [diff] [blame] | 115 | #endif |