Debian Codegraph @

src/mainboard/google/brox/variants/lotso/smihandler.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <acpi/acpi.h>
4 #include <baseboard/variants.h>
5 #include <delay.h>
6
7 #include "gpio.h"
8
9 #define TOUCH_RESET GPP_F17
10 #define TOUCH_ENABLE GPP_F7
11
12
13 #define GOODIX_RESET_OFF_DELAY 5
14
15 void variant_smi_sleep(u8 slp_typ)
16 {
17 if (slp_typ == ACPI_S5) {
18 /* TOUCHSCREEN_RST# */
19 gpio_set(TOUCH_RESET, 0);
20 mdelay(GOODIX_RESET_OFF_DELAY);
21 /* EN_PP3300_DX_TOUCHSCREEN */
22 gpio_set(TOUCH_ENABLE, 0);
23 }
24 }