| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #ifndef SOC_AMD_COMMON_BLOCK_PMLIB_H |
| 4 | #define SOC_AMD_COMMON_BLOCK_PMLIB_H |
| 5 | |
| 6 | enum { |
| 7 | MAINBOARD_POWER_STATE_OFF, |
| 8 | MAINBOARD_POWER_STATE_ON, |
| 9 | MAINBOARD_POWER_STATE_PREVIOUS, |
| 10 | }; |
| 11 | |
| 12 | /* |
| 13 | * Configure power state to go into when power is reapplied. |
| 14 | * |
| 15 | * This function is invoked by SoC during the boot and configures the power state based on |
| 16 | * selected config items. |
| 17 | */ |
| 18 | void pm_set_power_failure_state(void); |
| 19 | |
| 20 | /* stash ACPI PM/GPE and GPIO wake state before FSP-M call */ |
| 21 | void fill_chipset_state(void); |
| 22 | |
| 23 | #endif /* SOC_AMD_COMMON_BLOCK_PMLIB_H */ |