mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 17:07:38 +00:00
d9434a17e5
Add common x86 ASL files, taken from coreboot. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
108 lines
1.7 KiB
Text
108 lines
1.7 KiB
Text
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2011 The ChromiumOS Authors. All rights reserved.
|
|
*/
|
|
|
|
#ifdef CONFIG_CHROMEOS
|
|
|
|
#define CONFIG_VBOOT_VBNV_OFFSET 0x26
|
|
|
|
#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:
|
|
CONFIG_VBOOT_VBNV_OFFSET,
|
|
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
|