diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2021-01-08 13:58:10 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2021-01-24 21:06:22 +0000 |
commit | 0be419947eca04967a9f36d1f843026534cc3569 (patch) | |
tree | db00cd29fbb45cc450b2dbb6092fa37ef9f0704d /src/mainboard/google/butterfly/mainboard_smi.c | |
parent | 37eb24be1585a76b293999df43e9a83af7d7ba09 (diff) |
arch/x86: Use wildcard for mb/smihandler.c
Change-Id: I306f8cd74af62c0cd30f445d20c47f774f122481
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49247
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/butterfly/mainboard_smi.c')
-rw-r--r-- | src/mainboard/google/butterfly/mainboard_smi.c | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/mainboard/google/butterfly/mainboard_smi.c b/src/mainboard/google/butterfly/mainboard_smi.c deleted file mode 100644 index 1f45055b0e..0000000000 --- a/src/mainboard/google/butterfly/mainboard_smi.c +++ /dev/null @@ -1,54 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#include <acpi/acpi_gnvs.h> -#include <console/console.h> -#include <cpu/x86/smm.h> -#include <soc/nvs.h> -#include <southbridge/intel/bd82x6x/pch.h> -#include <southbridge/intel/bd82x6x/me.h> -#include <northbridge/intel/sandybridge/sandybridge.h> -#include <cpu/intel/model_206ax/model_206ax.h> - -/* Include EC functions */ -#include <ec/quanta/ene_kb3940q/ec.h> -#include "ec.h" - -void mainboard_smi_gpi(u32 gpi_sts) -{ - printk(BIOS_DEBUG, "warn: unknown mainboard_smi_gpi: %x\n", gpi_sts); -} - -void mainboard_smi_sleep(u8 slp_typ) -{ - printk(BIOS_DEBUG, "mainboard_smi_sleep: %x\n", slp_typ); - - /* Tell the EC to Enable USB power for S3 if requested */ - if (gnvs->s3u0 != 0 || gnvs->s3u1 != 0) - ec_mem_write(EC_EC_PSW, ec_mem_read(EC_EC_PSW) | EC_PSW_USB); - - /* Disable wake on USB, LAN & RTC */ - /* Enable Wake from Keyboard */ - if ((slp_typ == 4) || (slp_typ == 5)) { - printk(BIOS_DEBUG, "Disabling wake on RTC\n"); - ec_mem_write(EC_EC_PSW, EC_PSW_IKB); - } -} - -int mainboard_smi_apmc(u8 apmc) -{ - printk(BIOS_DEBUG, "mainboard_smi_apmc: %x\n", apmc); - switch (apmc) { - case APM_CNT_ACPI_ENABLE: - printk(BIOS_DEBUG, "APMC: ACPI_EN\n"); - /* Clear all pending events and enable SCI */ - ec_write_cmd(EC_CMD_ENABLE_ACPI_MODE); - break; - - case APM_CNT_ACPI_DISABLE: - printk(BIOS_DEBUG, "APMC: ACPI_DIS\n"); - /* Clear all pending events and tell the EC that ACPI is disabled */ - ec_write_cmd(EC_CMD_DISABLE_ACPI_MODE); - break; - } - return 0; -} |