mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / apple / macbook21 / smihandler.c
blobf4c8ad229f4f3237ee60a7af1035f0630be0da08
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <cpu/x86/smm.h>
4 #include <southbridge/intel/common/pmutil.h>
6 #define GPE_EC_SCI 12
8 int mainboard_smi_apmc(u8 data)
10 switch (data) {
11 case APM_CNT_ACPI_ENABLE:
12 /* route H8SCI to SCI */
13 gpi_route_interrupt(GPE_EC_SCI, GPI_IS_SCI);
14 break;
15 case APM_CNT_ACPI_DISABLE:
16 /* route H8SCI# to SMI */
17 gpi_route_interrupt(GPE_EC_SCI, GPI_IS_SMI);
18 break;
19 default:
20 break;
22 return 0;