Each platform is now specifying list of supported power states as a Kconfig options. Some of the specified states could be disabled in runtime. As result there is no need for the removed interface. Signed-off-by: Piotr Zięcik <piotr.ziecik@nordicsemi.no>
36 lines
592 B
C
36 lines
592 B
C
/*
|
|
* Copyright (c) 2017 Intel Corporation.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef _SOC_POWER_H_
|
|
#define _SOC_POWER_H_
|
|
|
|
#include <stdbool.h>
|
|
#include <power.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
* Power state map:
|
|
* SYS_POWER_STATE_DEEP_SLEEP: System OFF
|
|
*/
|
|
|
|
/**
|
|
* @brief Put processor into low power state
|
|
*/
|
|
void sys_set_power_state(enum power_states state);
|
|
|
|
/**
|
|
* @brief Do any SoC or architecture specific post ops after low power states.
|
|
*/
|
|
void sys_power_state_post_ops(enum power_states state);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _SOC_POWER_H_ */
|