southbridge/hudson: Compile refactored SMI setup utilities in SMM
commit599d668cdd8438820d9ca8f54826163662b2a6f0
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Fri, 18 Apr 2014 04:33:50 +0000 (17 23:33 -0500)
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>
Fri, 18 Apr 2014 19:58:39 +0000 (18 21:58 +0200)
tree451bc1fdf8c75df6b7aca379f9d940f227c8e27c
parent2ad6ee97638e24db67a02fdb2431fe6a56d7c24d
southbridge/hudson: Compile refactored SMI setup utilities in SMM

Refactor hudson_enable_gevent_smi() to allow configuring the interrupt
mode and trigger level. Move the utilities which are useful in SMM to
a separate file that is included in both ramstage and SMM. This is
useful for SMI handlers which need to enable or disable GEVENT SMIs
on-the-fly. A follow-up patch makes use of this infrastructure.

Change-Id: Ifa4c300c00c178b18d7280690cfc4b8367c669b8
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-on: http://review.coreboot.org/170
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@gmail.com>
src/mainboard/hp/pavilion_m6_1035dx/mainboard.c
src/southbridge/amd/agesa/hudson/Makefile.inc
src/southbridge/amd/agesa/hudson/smi.c
src/southbridge/amd/agesa/hudson/smi.h
src/southbridge/amd/agesa/hudson/smi_util.c [new file with mode: 0644]