aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/hp/pavilion_m6_1035dx/buildOpts.c
diff options
context:
space:
mode:
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-04-19 13:36:49 -0500
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-04-21 21:32:43 +0200
commit7efd5fda490dba79a30aeb83d966349eaf59baea (patch)
treecc79c65275babd6bfbacc9d781270291430d5cad /src/mainboard/hp/pavilion_m6_1035dx/buildOpts.c
parent44f2fab89a099b055e3ad7dc5cfe2fbeb82467e6 (diff)
hp/pavilion_m6_1035dx: Map USB and PWRB PME sources to GPE 11
Hudson ASL files assume the USB power event notifications are mapped to GPE 0xb. Since that GPE is not used on this board, map these events to GPE11. This GPE is already handled in ACPI via Method(_L0B). We adjust this method to also notify the XHCI controller at PCI 10:0. Change-Id: If33dd4bb5830820227f7c8b34594886cfae37282 Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-on: http://review.coreboot.org/5554 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Aaron Durbin <adurbin@gmail.com>
Diffstat (limited to 'src/mainboard/hp/pavilion_m6_1035dx/buildOpts.c')
-rw-r--r--src/mainboard/hp/pavilion_m6_1035dx/buildOpts.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/mainboard/hp/pavilion_m6_1035dx/buildOpts.c b/src/mainboard/hp/pavilion_m6_1035dx/buildOpts.c
index cf9ac4fab4..8b48476037 100644
--- a/src/mainboard/hp/pavilion_m6_1035dx/buildOpts.c
+++ b/src/mainboard/hp/pavilion_m6_1035dx/buildOpts.c
@@ -374,11 +374,22 @@ GPIO_CONTROL pavilion_m6_1035dx_gpio[] = {
#define BLDCFG_FCH_GPIO_CONTROL_LIST (&pavilion_m6_1035dx_gpio[0])
+/* These definitions could be moved to a common Hudson header, should we decide
+ * to provide our own, saner SCI mapping function
+ */
#define GEVENT_PIN(gpe) ((gpe) + 0x40)
+#define SCI_MAP_OHCI_12_0 0x58
+#define SCI_MAP_OHCI_13_0 0x59
+#define SCI_MAP_XHCI_10_0 0x78
+#define SCI_MAP_PWRBTN 0x73
SCI_MAP_CONTROL m6_1035dx_sci_map[] = {
{GEVENT_PIN( EC_SCI_GEVENT ), EC_SCI_GPE},
- {GEVENT_PIN( EC_LID_GEVENT ), EC_LID_GPE}, /* EC_SMI - GPE23 */
+ {GEVENT_PIN( EC_LID_GEVENT ), EC_LID_GPE},
+ {SCI_MAP_OHCI_12_0, PME_GPE},
+ {SCI_MAP_OHCI_13_0, PME_GPE},
+ {SCI_MAP_XHCI_10_0, PME_GPE},
+ {SCI_MAP_PWRBTN, PME_GPE},
};
#define BLDCFG_FCH_SCI_MAP_LIST (&m6_1035dx_sci_map[0])