[coreboot-gerrit] Patch set updated for coreboot: 18f70ae hp/pavilion_m6_1035dx: Declare GPIO control block in ACPI

Alexandru Gagniuc (mr.nuke.me@gmail.com) gerrit at coreboot.org
Sun Apr 6 02:29:59 CEST 2014


Alexandru Gagniuc (mr.nuke.me at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5463

-gerrit

commit 18f70aef719ff1dc2bdc7a870ea9c472c289249c
Author: Alexandru Gagniuc <mr.nuke.me at gmail.com>
Date:   Sat Apr 5 19:02:28 2014 -0500

    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 <mr.nuke.me at gmail.com>
---
 src/mainboard/hp/pavilion_m6_1035dx/acpi/mainboard.asl | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/mainboard/hp/pavilion_m6_1035dx/acpi/mainboard.asl b/src/mainboard/hp/pavilion_m6_1035dx/acpi/mainboard.asl
index 0ddb038..5c8fc67 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
 	 *



More information about the coreboot-gerrit mailing list