From dbbbb8f5c139e190e8b8cdf0564d34b07ceacd83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Sat, 3 Dec 2022 12:33:50 +0200 Subject: util/autoport: Drop lenovo mainboard_io_trap_handler() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See commit cfc93cbb660e ("mb/lenovo/{t60,x201,x60}/smihandler: Remove SMM reinitialization") Change-Id: I540c543be027410f387803e8194fb71012cc5063 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/70362 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- util/autoport/ec_lenovo.go | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'util/autoport/ec_lenovo.go') 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); -- cgit v1.2.3