summaryrefslogtreecommitdiff
path: root/src/mainboard/google/brox/variants/jubilant/smihandler.c
blob: 9f848eae4f8c5d5829fdb4d90b40b47903e7c82e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* SPDX-License-Identifier: GPL-2.0-only */

#include <acpi/acpi.h>
#include <baseboard/variants.h>
#include <delay.h>

#include "gpio.h"

#define WWAN_FCPO_L	GPP_F21
#define WWAN_RSL_L	GPP_H23
#define WWAN_TOFF	15

void variant_smi_sleep(u8 slp_typ)
{
	if (slp_typ == ACPI_S5) {
		/* WWAN RW101R-GL power off sequence */
		gpio_set(WWAN_RSL_L, 0);
		mdelay(WWAN_TOFF);
		gpio_set(WWAN_FCPO_L, 0);
	}
}