Debian Codegraph @

src/mainboard/google/jecht/smihandler.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <acpi/acpi.h>
4 #include <cpu/x86/smm.h>
5 #include <gpio.h>
6 #include <soc/pm.h>
7 #include <southbridge/intel/lynxpoint/lp_gpio.h>
8 #include <soc/iomap.h>
9 #include "onboard.h"
10
11 /* gpi_sts is GPIO 47:32 */
12 void mainboard_smi_gpi(u32 gpi_sts)
13 {
14 }
15
16 void mainboard_smi_sleep(u8 slp_typ)
17 {
18 /* Disable USB charging if required */
19 switch (slp_typ) {
20 case ACPI_S3:
21 set_power_led(LED_BLINK);
22
23 /* Enable DCP mode */
24 if (CONFIG(BOARD_GOOGLE_TIDUS)) {
25 gpio_set(GPIO_USB_CTL_1, 0);
26 }
27 break;
28 case ACPI_S5:
29 set_power_led(LED_OFF);
30 break;
31 }
32 }