summaryrefslogtreecommitdiff
path: root/src/mainboard/google/brya/mainboard.asl
blob: 8ca694d1528c29e96324e837913eba7362ecb4a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* SPDX-License-Identifier: GPL-2.0-only */

#include <baseboard/gpio.h>

#if CONFIG(HAVE_SLP_S0_GATE)
/*
 * S0ix Entry/Exit Notifications
 * Called from \_SB.PEPD._DSM
 */
Method (MS0X, 1, Serialized)
{
	If (Arg0 == 1) {
		/*
		 * On S0ix entry, clear the SLP_S0_GATE pin, so that the rest of
		 * the platform can transition to its low power state as well.
		 */
		\_SB.PCI0.CTXS(GPIO_SLP_S0_GATE);
	} Else {
		/*
		 * On S0ix exit, set the SLP_S0_GATE pin, so that the rest of
		 * the platform will resume from its low power state.
		 */
		\_SB.PCI0.STXS(GPIO_SLP_S0_GATE);
	}
}
#endif