summaryrefslogtreecommitdiffstats
path: root/src/soc/amd/common/block/include/amdblocks/pmlib.h
blob: d9b80a29d1d2f5971549f3144349b2e2142c78a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef SOC_AMD_COMMON_BLOCK_PMLIB_H
#define SOC_AMD_COMMON_BLOCK_PMLIB_H

enum {
	MAINBOARD_POWER_STATE_OFF,
	MAINBOARD_POWER_STATE_ON,
	MAINBOARD_POWER_STATE_PREVIOUS,
};

/*
 * Configure power state to go into when power is reapplied.
 *
 * This function is invoked by SoC during the boot and configures the power state based on
 * selected config items.
 */
void pm_set_power_failure_state(void);

/* stash ACPI PM/GPE and GPIO wake state before FSP-M call */
void fill_chipset_state(void);

#endif /* SOC_AMD_COMMON_BLOCK_PMLIB_H */