Boot Linux faster!

Check our new training course

Boot Linux faster!

Check our new training course
and Creative Commons CC-BY-SA
lecture and lab materials

Bootlin logo

Elixir Cross Referencer

/*
 * Copyright (c) 2017 Intel Corporation.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#ifndef _SOC_POWER_H_
#define _SOC_POWER_H_

#ifdef __cplusplus
extern "C" {
#endif

enum power_states {
	SYS_POWER_STATE_CPU_LPS,       /* CONSTLAT Task Activited */
	SYS_POWER_STATE_CPU_LPS_1,     /* LOWPWR Task Activated */
	SYS_POWER_STATE_CPU_LPS_2,     /* Not supported*/
	SYS_POWER_STATE_DEEP_SLEEP,    /* System Off */
	SYS_POWER_STATE_DEEP_SLEEP_1,  /* Not Supported */
	SYS_POWER_STATE_DEEP_SLEEP_2,  /* Not Supported */

	SYS_POWER_STATE_MAX		/* Do nothing */
};

/**
 * @brief Put processor into low power state
 */
void _sys_soc_set_power_state(enum power_states state);

/**
 * @brief Do any SoC or architecture specific post ops after low power states.
 */
void _sys_soc_power_state_post_ops(enum power_states state);

#ifdef __cplusplus
}
#endif

#endif /* _SOC_POWER_H_ */