1 /* SPDX-License-Identifier: BSD-3-Clause
2  *
3  * Copyright(c) 2018 Intel Corporation. All rights reserved.
4  *
5  * Author: Lech Betlej <lech.betlej@linux.intel.com>
6  */
7 
8 #ifndef __CAVS_LIB_POWER_DOWN_H__
9 #define __CAVS_LIB_POWER_DOWN_H__
10 
11 #include <stdbool.h>
12 #include <stdint.h>
13 
14 /**
15  * Power down procedure.
16  * Locks its code in L1 cache and shuts down memories.
17  * @param  disable_lpsram        flag if LPSRAM is to be disabled (whole)
18  * @param  hpsram_pwrgating_mask pointer to memory segments power gating mask
19  * (each bit corresponds to one ebb)
20  * @return                       nothing returned - this function never quits
21  */
22 void power_down(bool disable_lpsram, uint32_t *hpsram_pwrgating_mask);
23 
24 #endif /* __CAVS_LIB_POWER_DOWN_H__ */
25