From 8953d4a13739607ba8cf83d90b473a1ef06f3ae5 Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Fri, 19 May 2017 10:11:50 +0200 Subject: mb/lenovo/*/smihandler: Get rid of mainboard_io_trap_handler Get rid of mainboard_io_trap_handler. The only purpose is to enable tp-smapi, but is already done on all boards in h8_enable, as of devicetree setting config0. Change-Id: I33fd829a7e34aefa8f76ca6020cc8e802f7aab17 Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/19790 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans Reviewed-by: Paul Menzel --- src/mainboard/lenovo/l520/smihandler.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/mainboard/lenovo/l520') diff --git a/src/mainboard/lenovo/l520/smihandler.c b/src/mainboard/lenovo/l520/smihandler.c index 1e463baf40..d2f7cb3e1d 100644 --- a/src/mainboard/lenovo/l520/smihandler.c +++ b/src/mainboard/lenovo/l520/smihandler.c @@ -26,25 +26,6 @@ /* FIXME: check this */ #define GPE_EC_WAKE 13 -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