Alexandru Gagniuc (mr.nuke.me@gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5502
-gerrit
commit 3def662acf448aa425d1a1ffa976549a74d048a5 Author: Alexandru Gagniuc mr.nuke.me@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@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);