2020-09-22 18:44:47 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2011 The ChromiumOS Authors. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef CONFIG_CHROMEOS
|
|
|
|
|
2023-01-10 16:19:45 +00:00
|
|
|
#define CFG_VBOOT_VBNV_OFFSET 0x26
|
2020-09-22 18:44:47 +00:00
|
|
|
|
|
|
|
#include <asm/acpi/vbnv_layout.h>
|
|
|
|
|
|
|
|
/* GPIO package generated at run time. */
|
|
|
|
External (OIPG)
|
|
|
|
|
|
|
|
Device (CRHW)
|
|
|
|
{
|
|
|
|
Name(_HID, EISAID("GGL0001"))
|
|
|
|
|
|
|
|
Method(_STA, 0, Serialized)
|
|
|
|
{
|
|
|
|
Return (0xb)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method(CHSW, 0, Serialized)
|
|
|
|
{
|
|
|
|
Name (WSHC, Package() { VBT3 })
|
|
|
|
Return (WSHC)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method(FWID, 0, Serialized)
|
|
|
|
{
|
|
|
|
Name (DIW1, "")
|
|
|
|
ToString(VBT5, 63, DIW1)
|
|
|
|
Name (DIWF, Package() { DIW1 })
|
|
|
|
Return(DIWF)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method(FRID, 0, Serialized)
|
|
|
|
{
|
|
|
|
Name (DIR1, "")
|
|
|
|
ToString(VBT6, 63, DIR1)
|
|
|
|
Name (DIRF, Package() { DIR1 })
|
|
|
|
Return (DIRF)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method(HWID, 0, Serialized)
|
|
|
|
{
|
|
|
|
Name (DIW0, "")
|
|
|
|
ToString(VBT4, 255, DIW0)
|
|
|
|
Name (DIWH, Package() { DIW0 })
|
|
|
|
Return (DIWH)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method(BINF, 0, Serialized)
|
|
|
|
{
|
|
|
|
Name (FNIB, Package() { VBT0, VBT1, VBT2, VBT7, VBT8 })
|
|
|
|
Return (FNIB)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method(GPIO, 0, Serialized)
|
|
|
|
{
|
|
|
|
Return (OIPG)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Method(VBNV, 0, Serialized)
|
|
|
|
{
|
|
|
|
Name(VNBV, Package() {
|
|
|
|
// See src/vendorcode/google/chromeos/Kconfig
|
|
|
|
// for the definition of these:
|
2023-01-10 16:19:45 +00:00
|
|
|
CFG_VBOOT_VBNV_OFFSET,
|
2020-09-22 18:44:47 +00:00
|
|
|
VBOOT_VBNV_BLOCK_SIZE
|
|
|
|
})
|
|
|
|
Return(VNBV)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method(VDAT, 0, Serialized)
|
|
|
|
{
|
|
|
|
Name(TAD0,"")
|
|
|
|
ToBuffer(CHVD, TAD0)
|
|
|
|
Name (TADV, Package() { TAD0 })
|
|
|
|
Return (TADV)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method(FMAP, 0, Serialized)
|
|
|
|
{
|
|
|
|
Name(PAMF, Package() { VBT9 })
|
|
|
|
Return(PAMF)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method(MECK, 0, Serialized)
|
|
|
|
{
|
|
|
|
Name(HASH, Package() { MEHH })
|
|
|
|
Return(HASH)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method(MLST, 0, Serialized)
|
|
|
|
{
|
|
|
|
Name(TSLM, Package() { "CHSW", "FWID", "HWID", "FRID", "BINF",
|
|
|
|
"GPIO", "VBNV", "VDAT", "FMAP", "MECK"
|
|
|
|
})
|
|
|
|
Return (TSLM)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#include "ramoops.asl"
|
|
|
|
|
|
|
|
#endif
|