From 9fc310d7e2730466cc7fcc84999502a2d4d08bab Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Thu, 6 Feb 2014 10:35:51 -0600 Subject: [PATCH] rambi: remove handling of APM_CNT_FINALIZE Rambi doesn't need to do anything in the finalization step. Remove the case in the switch statement. BUG=chrome-os-partner:24624 BRANCH=baytrail TEST=Built and booted. Suspend/Resumed. Change-Id: Idf493d3dc5d06a0277050152c2245efa9b92c32e Signed-off-by: Aaron Durbin Reviewed-on: https://chromium-review.googlesource.com/185203 Reviewed-by: Duncan Laurie --- src/mainboard/google/rambi/mainboard_smi.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/mainboard/google/rambi/mainboard_smi.c b/src/mainboard/google/rambi/mainboard_smi.c index 09a858039d..f2bb7e97ad 100644 --- a/src/mainboard/google/rambi/mainboard_smi.c +++ b/src/mainboard/google/rambi/mainboard_smi.c @@ -126,21 +126,9 @@ void mainboard_smi_sleep(uint8_t slp_typ) while (google_chromeec_get_event() != 0); } -#define APMC_FINALIZE 0xcb - -static int mainboard_finalized = 0; - int mainboard_smi_apmc(uint8_t apmc) { switch (apmc) { - case APMC_FINALIZE: - if (mainboard_finalized) { - printk(BIOS_DEBUG, "SMI#: Already finalized\n"); - return 0; - } - - mainboard_finalized = 1; - break; case APM_CNT_ACPI_ENABLE: google_chromeec_set_smi_mask(0); /* Clear all pending events */