1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <cpu/x86/smm.h>
4 #include <device/pci_ops.h>
5 #include <southbridge/intel/common/pmutil.h>
6 #include <northbridge/intel/ironlake/ironlake.h>
7 #include <ec/acpi/ec.h>
9 void mainboard_smi_gpi(u32 gpi_sts
)
13 int mainboard_smi_apmc(u8 data
)
17 case APM_CNT_ACPI_ENABLE
:
18 tmp
= pci_read_config8(PCI_DEV(0, 0x1f, 0), 0xbb);
21 pci_write_config8(PCI_DEV(0, 0x1f, 0), 0xbb, tmp
);
23 case APM_CNT_ACPI_DISABLE
:
24 tmp
= pci_read_config8(PCI_DEV(0, 0x1f, 0), 0xbb);
27 pci_write_config8(PCI_DEV(0, 0x1f, 0), 0xbb, tmp
);