summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2022-12-03 12:33:50 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2022-12-07 04:51:05 +0000
commitdbbbb8f5c139e190e8b8cdf0564d34b07ceacd83 (patch)
tree1522b3cab5b8d82ddf3e8c54fe5c11a6b7ff854d
parenta0720431b4c0685634fd1ccc45938e9b3cc40544 (diff)
util/autoport: Drop lenovo mainboard_io_trap_handler()
See commit cfc93cbb660e ("mb/lenovo/{t60,x201,x60}/smihandler: Remove SMM reinitialization") Change-Id: I540c543be027410f387803e8194fb71012cc5063 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70362 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r--util/autoport/ec_lenovo.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/util/autoport/ec_lenovo.go b/util/autoport/ec_lenovo.go
index 763ac2600c..9a02ac3cbd 100644
--- a/util/autoport/ec_lenovo.go
+++ b/util/autoport/ec_lenovo.go
@@ -86,25 +86,6 @@ Method(_PTS,1)
fmt.Fprintf(smi, "#define GPE_EC_WAKE %d\n", wakeGPE)
smi.WriteString(`
-static void mainboard_smm_init(void)
-{
- printk(BIOS_DEBUG, "initializing SMI\n");
- /* Enable 0x1600/0x1600 register pair */
- ec_set_bit(0x00, 0x05);
-}
-
-int mainboard_io_trap_handler(int smif)
-{
- static int smm_initialized;
-
- if (!smm_initialized) {
- mainboard_smm_init();
- smm_initialized = 1;
- }
-
- return 0;
-}
-
static void mainboard_smi_handle_ec_sci(void)
{
u8 status = inb(EC_SC);