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. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | */ |
| 19 | |
| 20 | Device (CRHW) |
| 21 | { |
| 22 | Name(_HID, EISAID("GGL0001")) |
| 23 | |
| 24 | Method(_STA, 0, Serialized) |
| 25 | { |
| 26 | Return (0xb) |
| 27 | } |
| 28 | |
| 29 | Method(CHSW, 0, Serialized) |
| 30 | { |
| 31 | Name (WSHC, Package() { VBT3 }) |
| 32 | Return (WSHC) |
| 33 | } |
| 34 | |
| 35 | Method(FWID, 0, Serialized) |
| 36 | { |
| 37 | Name (DIW1, "") |
| 38 | ToString(VBT5, 63, DIW1) |
| 39 | Name (DIWF, Package() { DIW1 }) |
| 40 | Return(DIWF) |
| 41 | } |
| 42 | |
| 43 | Method(FRID, 0, Serialized) |
| 44 | { |
| 45 | Name (DIR1, "") |
| 46 | ToString(VBT6, 63, DIR1) |
| 47 | Name (DIRF, Package() { DIR1 }) |
| 48 | Return (DIRF) |
| 49 | } |
| 50 | |
| 51 | Method(HWID, 0, Serialized) |
| 52 | { |
| 53 | Name (DIW0, "") |
| 54 | ToString(VBT4, 255, DIW0) |
| 55 | Name (DIWH, Package() { DIW0 }) |
| 56 | Return (DIWH) |
| 57 | } |
| 58 | |
| 59 | Method(BINF, 0, Serialized) |
| 60 | { |
| 61 | Name (FNIB, Package() { VBT0, VBT1, VBT2, VBT7, VBT8 }) |
| 62 | Return (FNIB) |
| 63 | } |
| 64 | |
| 65 | Method(GPIO, 0, Serialized) |
| 66 | { |
| 67 | Return (OIPG) |
| 68 | |
| 69 | } |
| 70 | |
| 71 | Method(VBNV, 0, Serialized) |
| 72 | { |
| 73 | Name(VNBV, Package() { |
| 74 | // See src/vendorcode/google/chromeos/Kconfig |
| 75 | // for the definition of these: |
| 76 | CONFIG_VBNV_OFFSET, |
| 77 | CONFIG_VBNV_SIZE |
| 78 | }) |
| 79 | Return(VNBV) |
| 80 | } |
| 81 | |
| 82 | Method(VDAT, 0, Serialized) |
| 83 | { |
| 84 | Name(TAD0,"") |
| 85 | ToBuffer(CHVD, TAD0) |
| 86 | Name (TADV, Package() { TAD0 }) |
| 87 | Return (TADV) |
| 88 | } |
| 89 | |
| 90 | Method(FMAP, 0, Serialized) |
| 91 | { |
| 92 | Name(PAMF, Package() { VBT9 }) |
| 93 | Return(PAMF) |
| 94 | } |
| 95 | |
| 96 | Method(MECK, 0, Serialized) |
| 97 | { |
| 98 | Name(HASH, Package() { MEHH }) |
| 99 | Return(HASH) |
| 100 | } |
| 101 | |
| 102 | Method(MLST, 0, Serialized) |
| 103 | { |
| 104 | Name(TSLM, Package() { "CHSW", "FWID", "HWID", "FRID", "BINF", |
| 105 | "GPIO", "VBNV", "VDAT", "FMAP", "MECK" |
| 106 | }) |
| 107 | Return (TSLM) |
| 108 | } |
| 109 | } |