Debian Codegraph @

src/mainboard/apple/macbook21/smihandler.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <cpu/x86/smm.h>
4 #include <southbridge/intel/common/pmutil.h>
5
6 #define GPE_EC_SCI 12
7
8 int mainboard_smi_apmc(u8 data)
9 {
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;
21 }
22 return 0;
23 }