coreboot-kgpe-d16/src/ec/apple/acpi/ac.asl
Evgeny Zinoviev ab5eb89a6f ec/apple: Add ACPI code for Apple MacBooks
- Move ACPI code for Apple MacBooks to a separate directory to avoid
  its duplication in mainboards
- Add AC and lid implementations for newer generations
- Rewrite old code using the new ASL syntax

Tested on MBA 5,2, MBP 8,1 and MBP 10,1.

Change-Id: I3d4585aac8e3ebbfed6ce4d4e39fbc33ac983069
Signed-off-by: Evgeny Zinoviev <me@ch1p.io>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33102
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
2021-02-05 09:39:31 +00:00

28 lines
392 B
Text

/* SPDX-License-Identifier: GPL-2.0-only */
Scope(\_SB.PCI0.LPCB.EC)
{
Field(ERAM, ByteAcc, NoLock, Preserve)
{
Offset(HPAC_OFFSET),
, 1,
HPAC, 1, /* AC status */
}
Device(AC)
{
Name(_HID, "ACPI0003")
Name(_UID, 0x00)
Name(_PCL, Package() { \_SB } )
Method(_PSR, 0, NotSerialized)
{
Return(HPAC)
}
Method(_STA, 0, NotSerialized)
{
Return(0x0f)
}
}
}