xref: /openbmc/linux/arch/arm/mach-versatile/spc.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1*d7445676SArnd Bergmann /* SPDX-License-Identifier: GPL-2.0-only */
2*d7445676SArnd Bergmann /*
3*d7445676SArnd Bergmann  *
4*d7445676SArnd Bergmann  * Copyright (C) 2012 ARM Limited
5*d7445676SArnd Bergmann  */
6*d7445676SArnd Bergmann 
7*d7445676SArnd Bergmann 
8*d7445676SArnd Bergmann #ifndef __SPC_H_
9*d7445676SArnd Bergmann #define __SPC_H_
10*d7445676SArnd Bergmann 
11*d7445676SArnd Bergmann int __init ve_spc_init(void __iomem *base, u32 a15_clusid, int irq);
12*d7445676SArnd Bergmann void ve_spc_global_wakeup_irq(bool set);
13*d7445676SArnd Bergmann void ve_spc_cpu_wakeup_irq(u32 cluster, u32 cpu, bool set);
14*d7445676SArnd Bergmann void ve_spc_set_resume_addr(u32 cluster, u32 cpu, u32 addr);
15*d7445676SArnd Bergmann void ve_spc_powerdown(u32 cluster, bool enable);
16*d7445676SArnd Bergmann int ve_spc_cpu_in_wfi(u32 cpu, u32 cluster);
17*d7445676SArnd Bergmann 
18*d7445676SArnd Bergmann #endif
19