mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / lattepanda / mu / smihandler.c
blob1de3bb7743e16ba21f12174ea3712a1dff45bceb
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <acpi/acpi.h>
4 #include <arch/io.h>
5 #include <cpu/x86/smm.h>
6 #include <intelblocks/smihandler.h>
7 #include <superio/ite/common/ite.h>
8 #include <superio/ite/it8613e/it8613e.h>
10 #define it8613e_index (0x2e)
11 #define EC_DEV PNP_DEV(it8613e_index, IT8613E_EC)
13 void mainboard_smi_sleep(u8 slp_typ)
15 printk(BIOS_DEBUG, "SMI: sleep S%d\n", slp_typ);
17 switch (slp_typ) {
18 case ACPI_S3:
19 case ACPI_S4:
20 case ACPI_S5:
21 /* 5VSB_CTRL# Enabled */
22 ite_reg_write(EC_DEV, 0xfa, 2);
23 break;
24 default:
25 break;