1 /* SPDX-License-Identifier: GPL-2.0-only */
4 #include <console/console.h>
5 #include <cpu/x86/smm.h>
7 #include <ec/google/chromeec/ec.h>
8 #include <southbridge/intel/lynxpoint/lp_gpio.h>
12 /* gpi_sts is GPIO 47:32 */
13 void mainboard_smi_gpi(u32 gpi_sts
)
17 void mainboard_smi_sleep(u8 slp_typ
)
19 /* Disable USB charging if required */
22 set_power_led(LED_BLINK
);
25 if (CONFIG(BOARD_GOOGLE_TIDUS
)) {
26 set_gpio(GPIO_USB_CTL_1
, 0);
30 set_power_led(LED_OFF
);
35 int mainboard_smi_apmc(u8 apmc
)
38 case APM_CNT_ACPI_ENABLE
:
40 case APM_CNT_ACPI_DISABLE
: