From 27bb6ad046c40b2c85649e0da0648376aa8a966e Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Sat, 5 Apr 2014 19:02:28 -0500 Subject: hp/pavilion_m6_1035dx: Declare GPIO control block in ACPI Only the WLAN control pin and the lid switch input are declared, as those are the only pins whose function is known and tested. Change-Id: Ia5871882884ba9bb6d63418b34e33f92ead669eb Signed-off-by: Alexandru Gagniuc Reviewed-on: http://review.coreboot.org/5463 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan Reviewed-by: Aaron Durbin Reviewed-by: Paul Menzel --- src/mainboard/hp/pavilion_m6_1035dx/acpi/mainboard.asl | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/mainboard/hp/pavilion_m6_1035dx/acpi/mainboard.asl') diff --git a/src/mainboard/hp/pavilion_m6_1035dx/acpi/mainboard.asl b/src/mainboard/hp/pavilion_m6_1035dx/acpi/mainboard.asl index 0ddb038b21..5c8fc6758f 100644 --- a/src/mainboard/hp/pavilion_m6_1035dx/acpi/mainboard.asl +++ b/src/mainboard/hp/pavilion_m6_1035dx/acpi/mainboard.asl @@ -47,6 +47,17 @@ USBS, 1, } + /* GPIO control block -- hardcoded to 0xfed80100 by AGESA */ + OperationRegion (GPIO, SystemMemory, 0xfed80100, 0x100) + Field (GPIO, ByteAcc, NoLock, Preserve) { + Offset (0x39), + , 6, + GP57, 1, /* out: WLAN control (rf-kill) */ + Offset (0x76), + , 7, + GE22, 1, /* General event 22 - connected to lid switch */ + } + /* * Used by EC code on certain events * -- cgit v1.2.3