xref: /OK3568_Linux_fs/kernel/arch/arm/mach-mvebu/pmsu.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * Power Management Service Unit (PMSU) support for Armada 370/XP platforms.
3*4882a593Smuzhiyun  *
4*4882a593Smuzhiyun  * Copyright (C) 2012 Marvell
5*4882a593Smuzhiyun  *
6*4882a593Smuzhiyun  * This file is licensed under the terms of the GNU General Public
7*4882a593Smuzhiyun  * License version 2.  This program is licensed "as is" without any
8*4882a593Smuzhiyun  * warranty of any kind, whether express or implied.
9*4882a593Smuzhiyun  */
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun #ifndef __MACH_MVEBU_PMSU_H
12*4882a593Smuzhiyun #define __MACH_MVEBU_PMSU_H
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun int armada_xp_boot_cpu(unsigned int cpu_id, void *phys_addr);
15*4882a593Smuzhiyun int mvebu_setup_boot_addr_wa(unsigned int crypto_eng_target,
16*4882a593Smuzhiyun                              unsigned int crypto_eng_attribute,
17*4882a593Smuzhiyun                              phys_addr_t resume_addr_reg);
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun void mvebu_v7_pmsu_idle_exit(void);
20*4882a593Smuzhiyun void armada_370_xp_cpu_resume(void);
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun int armada_370_xp_pmsu_idle_enter(unsigned long deepidle);
23*4882a593Smuzhiyun int armada_38x_do_cpu_suspend(unsigned long deepidle);
24*4882a593Smuzhiyun #endif	/* __MACH_370_XP_PMSU_H */
25