diff options
author | Patrick Rudolph <siro@das-labor.org> | 2017-05-19 10:11:50 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-05-27 16:58:42 +0200 |
commit | 8953d4a13739607ba8cf83d90b473a1ef06f3ae5 (patch) | |
tree | 7505360ca026f95e73125ed97150922ba0839c44 /src/mainboard/lenovo/x230 | |
parent | dd82edc388fe070fe35f862cf6ceeb86a62e1259 (diff) | |
download | coreboot-8953d4a13739607ba8cf83d90b473a1ef06f3ae5.tar.xz |
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 <siro@das-labor.org>
Reviewed-on: https://review.coreboot.org/19790
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/mainboard/lenovo/x230')
-rw-r--r-- | src/mainboard/lenovo/x230/smihandler.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/mainboard/lenovo/x230/smihandler.c b/src/mainboard/lenovo/x230/smihandler.c index eb9255610c..09dcbf29d4 100644 --- a/src/mainboard/lenovo/x230/smihandler.c +++ b/src/mainboard/lenovo/x230/smihandler.c @@ -25,25 +25,6 @@ #define GPE_EC_SCI 1 #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); |