Add the power button description on juno board, notify power button with 0x80 value, the OS will detect the power button is pressed, how to deal with the event which depends on OS's policy. Usually the acpid deamon will call the specific script to let OS shutdown.
Signed-off-by: Yi Li yi.li@linaro.org --- ArmPlatformPkg/ArmJunoPkg/AcpiTables/juno/dsdt.asl | 13 +++++++++++++ 1 file changed, 13 insertions(+)
diff --git a/ArmPlatformPkg/ArmJunoPkg/AcpiTables/juno/dsdt.asl b/ArmPlatformPkg/ArmJunoPkg/AcpiTables/juno/dsdt.asl index bdee349..5bfd521 100644 --- a/ArmPlatformPkg/ArmJunoPkg/AcpiTables/juno/dsdt.asl +++ b/ArmPlatformPkg/ArmJunoPkg/AcpiTables/juno/dsdt.asl @@ -58,6 +58,19 @@ DefinitionBlock ( } }
+ //Power button device description + Device (PWRB) + { + Name (_HID, EISAID("PNP0C0C")) + Name (_ADR, 0) + Name (_UID, 0) + + Method (_STA, 0x0, Notserialized) + { + Return (0x0F) + } + } + // apb_pclk Device (CLK0) { Name (_HID, "LNRO0008")