[coreboot-gerrit] New patch to review for coreboot: 05d636a southbridge/hudson: Pass GEVENT SMIs to mainboard_smi_gpi()
Alexandru Gagniuc (mr.nuke.me@gmail.com)
gerrit at coreboot.org
Mon Apr 14 22:07:22 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/5502
-gerrit
commit 05d636a76d5c85e7486068c85c5b45e1c912e02b
Author: Alexandru Gagniuc <mr.nuke.me at gmail.com>
Date: Mon Apr 14 14:38:19 2014 -0500
southbridge/hudson: Pass GEVENT SMIs to mainboard_smi_gpi()
Change-Id: Ifc368974a7a0dc0756431654fb89668e3846801a
Signed-off-by: Alexandru Gagniuc <mr.nuke.me at gmail.com>
---
src/southbridge/amd/agesa/hudson/smihandler.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/southbridge/amd/agesa/hudson/smihandler.c b/src/southbridge/amd/agesa/hudson/smihandler.c
index 7525e09..b8bfaee 100644
--- a/src/southbridge/amd/agesa/hudson/smihandler.c
+++ b/src/southbridge/amd/agesa/hudson/smihandler.c
@@ -37,6 +37,14 @@ static void process_smi_sci(void)
static void process_gpe_smi(void)
{
const uint32_t status = smi_read32(0x80);
+ const uint32_t gevent_mask = (1 << 24) - 1;
+
+ /* Bits [24:27] indicate USB SMIs, others reserved */
+ if (status & gevent_mask) {
+ /* A GEVENT SMI occured */
+ if (mainboard_smi_gpi)
+ mainboard_smi_gpi(status & gevent_mask);
+ }
/* Clear events to prevent re-entering SMI if event isn't handled */
smi_write32(0x80, status);
More information about the coreboot-gerrit
mailing list