]>
Commit | Line | Data |
---|---|---|
02c981c0 BD |
1 | /* |
2 | * This file contains common function prototypes to avoid externs in the c files. | |
3 | * | |
4 | * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company. | |
5 | * | |
6 | * Licensed under GPLv2 or later. | |
7 | */ | |
8 | ||
9 | #ifndef __MACH_PRIMA2_COMMON_H__ | |
10 | #define __MACH_PRIMA2_COMMON_H__ | |
11 | ||
12 | #include <linux/init.h> | |
13 | #include <asm/mach/time.h> | |
f2a94192 | 14 | #include <asm/exception.h> |
02c981c0 | 15 | |
0d5983a6 | 16 | extern void sirfsoc_prima2_timer_init(void); |
02c981c0 BD |
17 | |
18 | extern void __init sirfsoc_of_irq_init(void); | |
19 | extern void __init sirfsoc_of_clk_init(void); | |
125c4033 | 20 | extern void sirfsoc_restart(char, const char *); |
f2a94192 | 21 | extern asmlinkage void __exception_irq_entry sirfsoc_handle_irq(struct pt_regs *regs); |
02c981c0 | 22 | |
31adb06f BS |
23 | #ifndef CONFIG_DEBUG_LL |
24 | static inline void sirfsoc_map_lluart(void) {} | |
25 | #else | |
26 | extern void __init sirfsoc_map_lluart(void); | |
27 | #endif | |
28 | ||
a4b4674e SG |
29 | #ifdef CONFIG_SUSPEND |
30 | extern int sirfsoc_pm_init(void); | |
31 | #else | |
32 | static inline int sirfsoc_pm_init(void) { return 0; } | |
33 | #endif | |
34 | ||
02c981c0 | 35 | #endif |