mb/google/brya/var/omnigul: Modify NVMe and UFS Storage support
[coreboot.git] / src / mainboard / google / jecht / smihandler.c
bloba4feeb496a1d96dae2cc08c1d6a90b1d8f8fc7b6
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <acpi/acpi.h>
4 #include <console/console.h>
5 #include <cpu/x86/smm.h>
6 #include <soc/pm.h>
7 #include <ec/google/chromeec/ec.h>
8 #include <southbridge/intel/lynxpoint/lp_gpio.h>
9 #include <soc/iomap.h>
10 #include "onboard.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 */
20 switch (slp_typ) {
21 case ACPI_S3:
22 set_power_led(LED_BLINK);
24 /* Enable DCP mode */
25 if (CONFIG(BOARD_GOOGLE_TIDUS)) {
26 set_gpio(GPIO_USB_CTL_1, 0);
28 break;
29 case ACPI_S5:
30 set_power_led(LED_OFF);
31 break;
35 int mainboard_smi_apmc(u8 apmc)
37 switch (apmc) {
38 case APM_CNT_ACPI_ENABLE:
39 break;
40 case APM_CNT_ACPI_DISABLE:
41 break;
43 return 0;