xref: /OK3568_Linux_fs/kernel/arch/arm/mach-prima2/common.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * This file contains common function prototypes to avoid externs in the c files.
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
6*4882a593Smuzhiyun  */
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun #ifndef __MACH_PRIMA2_COMMON_H__
9*4882a593Smuzhiyun #define __MACH_PRIMA2_COMMON_H__
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun #include <linux/init.h>
12*4882a593Smuzhiyun #include <linux/reboot.h>
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun #include <asm/mach/time.h>
15*4882a593Smuzhiyun #include <asm/exception.h>
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun extern volatile int prima2_pen_release;
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun extern const struct smp_operations sirfsoc_smp_ops;
20*4882a593Smuzhiyun extern void sirfsoc_secondary_startup(void);
21*4882a593Smuzhiyun extern void sirfsoc_cpu_die(unsigned int cpu);
22*4882a593Smuzhiyun 
23*4882a593Smuzhiyun extern void __init sirfsoc_of_irq_init(void);
24*4882a593Smuzhiyun extern asmlinkage void __exception_irq_entry sirfsoc_handle_irq(struct pt_regs *regs);
25*4882a593Smuzhiyun 
26*4882a593Smuzhiyun #ifdef CONFIG_SUSPEND
27*4882a593Smuzhiyun extern int sirfsoc_pm_init(void);
28*4882a593Smuzhiyun #else
sirfsoc_pm_init(void)29*4882a593Smuzhiyun static inline int sirfsoc_pm_init(void) { return 0; }
30*4882a593Smuzhiyun #endif
31*4882a593Smuzhiyun 
32*4882a593Smuzhiyun #endif
33