blob: d813b22ac0fe179b4a9059c206102c790d94498f [file] [log] [blame]
Stefan Reinauer2198c582012-06-07 15:38:44 -07001/*
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 Reinauer2198c582012-06-07 15:38:44 -070014 */
15
Philipp Deppenwiesefea24292017-10-17 17:02:29 +020016#include <security/vboot/vbnv_layout.h>
Duncan Laurie3cbf8d92016-01-28 10:26:31 -080017
Aaron Durbinb0f81512016-07-25 21:31:41 -050018#if IS_ENABLED(CONFIG_CHROMEOS)
19
20/* GPIO package generated at run time. */
21External (OIPG)
22
Stefan Reinauer2198c582012-06-07 15:38:44 -070023Device (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 Shaikh2a12e2e2016-07-25 11:48:03 -070079 CONFIG_VBOOT_VBNV_OFFSET,
80 VBOOT_VBNV_BLOCK_SIZE
Stefan Reinauer2198c582012-06-07 15:38:44 -070081 })
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 Durbin06ece7d2014-02-14 00:30:04 -0600113
114#include "ramoops.asl"
Aaron Durbinb0f81512016-07-25 21:31:41 -0500115#endif