From ac138976dfc15f3f6551bec806391700d909f3af Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Sat, 5 Apr 2014 19:26:56 -0500 Subject: hp/pavilion_m6_1035dx: Add ACPI support for lid switch This is sufficient to at least allow linux to recognize the lid switch and read its state correctly. Change-Id: Id5bd92466c72559f263c7ca8d23cbc741377a762 Signed-off-by: Alexandru Gagniuc Reviewed-on: http://review.coreboot.org/5464 Reviewed-by: Edward O'Callaghan Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Paul Menzel --- src/mainboard/hp/pavilion_m6_1035dx/acpi/mainboard.asl | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/mainboard/hp') diff --git a/src/mainboard/hp/pavilion_m6_1035dx/acpi/mainboard.asl b/src/mainboard/hp/pavilion_m6_1035dx/acpi/mainboard.asl index 5c8fc6758f..47d7872bff 100644 --- a/src/mainboard/hp/pavilion_m6_1035dx/acpi/mainboard.asl +++ b/src/mainboard/hp/pavilion_m6_1035dx/acpi/mainboard.asl @@ -71,3 +71,15 @@ Store("Received PNOT call (probably from EC)", Debug) /* TODO: Implement this */ } + +Scope (\_SB) { + Device (LID0) + { + Name(_HID, EisaId("PNP0C0D")) + Method(_LID, 0) + { + Store (GE22, \LIDS) + Return (\LIDS) + } + } +} -- cgit v1.2.3