diff options
Diffstat (limited to 'src/soc/amd/common/block/include')
-rw-r--r-- | src/soc/amd/common/block/include/amdblocks/pmlib.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/soc/amd/common/block/include/amdblocks/pmlib.h b/src/soc/amd/common/block/include/amdblocks/pmlib.h new file mode 100644 index 0000000000..c778664a49 --- /dev/null +++ b/src/soc/amd/common/block/include/amdblocks/pmlib.h @@ -0,0 +1,20 @@ +/* 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); + +#endif /* SOC_AMD_COMMON_BLOCK_PMLIB_H */ |