[coreboot-gerrit] Patch set updated for coreboot: soc/apollolake: Enable Wake from USB devices

Hannah Williams (hannah.williams@intel.com) gerrit at coreboot.org
Wed May 18 23:20:22 CEST 2016


Hannah Williams (hannah.williams at intel.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14893

-gerrit

commit 51feadc2afc3b472a4f55ce667c99aa7fe3031dc
Author: Hannah Williams <hannah.williams at intel.com>
Date:   Tue Apr 5 10:03:38 2016 -0700

    soc/apollolake: Enable Wake from USB devices
    
    Change-Id: Ib0b30a5779681488e80000a2570fc2fd4c69e908
    Signed-off-by: Hannah Williams <hannah.williams at intel.com>
---
 src/soc/intel/apollolake/acpi/southbridge.asl |  4 +++
 src/soc/intel/apollolake/acpi/xhci.asl        | 44 +++++++++++++++++++++++++++
 src/soc/intel/apollolake/include/soc/gpe.h    | 37 ++++++++++++++++++++++
 3 files changed, 85 insertions(+)

diff --git a/src/soc/intel/apollolake/acpi/southbridge.asl b/src/soc/intel/apollolake/acpi/southbridge.asl
index 0584439..9409d5e 100644
--- a/src/soc/intel/apollolake/acpi/southbridge.asl
+++ b/src/soc/intel/apollolake/acpi/southbridge.asl
@@ -15,6 +15,8 @@
  * GNU General Public License for more details.
  */
 
+#include <soc/gpe.h>
+
 /* LPSS device */
 #include "lpss.asl"
 
@@ -23,3 +25,5 @@
 
 /* GPIO controller */
 #include "gpio.asl"
+
+#include "xhci.asl"
diff --git a/src/soc/intel/apollolake/acpi/xhci.asl b/src/soc/intel/apollolake/acpi/xhci.asl
new file mode 100644
index 0000000..991f36c
--- /dev/null
+++ b/src/soc/intel/apollolake/acpi/xhci.asl
@@ -0,0 +1,44 @@
+/* This file is part of the coreboot project.
+ *
+ * Copyright (C) 2016 Intel Corporation.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+/* XHCI Controller 0:15.0 */
+
+{
+	Device(XHC1) {
+	Name(_ADR, 0x00150000)  // Device 21, Function 0
+
+	Name (_S3D, 3)  /* D3 supported in S3 */
+	Name (_S0W, 3)  /* D3 can wake device in S0 */
+	Name (_S3W, 3)  /* D3 can wake system from S3 */
+
+	Name (_PRW, Package() {GPE0A_XHCI_PME_STS, 3})  // Declare XHCI GPE status and enable bits are bit 13.
+
+	Method (_DSW, 3, NotSerialized)  // _DSW: Device Sleep Wake
+	{
+	//Do nothing
+		Return (Zero)
+	}
+
+	Method (_RMV, 0, NotSerialized)  // _RMV: Removal Status
+	{
+		Return (Zero)
+	}
+
+	Method(_STA, 0)
+	{
+		Return (0xF)
+	}
+
+	}// end of XHC1
+}
diff --git a/src/soc/intel/apollolake/include/soc/gpe.h b/src/soc/intel/apollolake/include/soc/gpe.h
new file mode 100644
index 0000000..8abbad8
--- /dev/null
+++ b/src/soc/intel/apollolake/include/soc/gpe.h
@@ -0,0 +1,37 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright 2016 Intel Corporation.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef _SOC_GPE_H_
+#define _SOC_GPE_H_
+
+/* bit position in GPE0a_STS register */
+#define GPE0A_PCIE_SCI_STS		0
+#define GPE0A_SWGPE_STS			2
+#define GPE0A_PCIE_WAKE0_STS		3
+#define GPE0A_PUNIT_SCI_STS		4
+#define GPE0A_PCIE_WAKE1_STS		6
+#define GPE0A_PCIE_WAKE2_STS		7
+#define GPE0A_PCIE_WAKE3_STS		8
+#define GPE0A_PCIE_GPE_STS		9
+#define GPE0A_BATLOW_STS		10
+#define GPE0A_CSE_PME_STS		11
+#define GPE0A_XDCI_PME_STS		12
+#define GPE0A_XHCI_PME_STS		13
+#define GPE0A_AVS_PME_STS		14
+#define GPE0A_GPIO_TIER1_SCI_STS	15
+#define GPE0A_SMB_WAK_STS		16
+#define GPE0A_SATA_PME_STS		17
+
+#endif



More information about the coreboot-gerrit mailing list