diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/autoport/ec_lenovo.go | 19 |
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); |