Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 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> |
Barry Song | f2a9419 | 2012-12-20 19:11:18 +0800 | [diff] [blame^] | 14 | #include <asm/exception.h> |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 15 | |
Barry Song | 0d5983a | 2012-12-20 17:33:49 +0800 | [diff] [blame] | 16 | extern void sirfsoc_prima2_timer_init(void); |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 17 | |
| 18 | extern void __init sirfsoc_of_irq_init(void); |
| 19 | extern void __init sirfsoc_of_clk_init(void); |
Russell King | 125c403 | 2011-11-05 10:23:27 +0000 | [diff] [blame] | 20 | extern void sirfsoc_restart(char, const char *); |
Barry Song | f2a9419 | 2012-12-20 19:11:18 +0800 | [diff] [blame^] | 21 | extern asmlinkage void __exception_irq_entry sirfsoc_handle_irq(struct pt_regs *regs); |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 22 | |
Barry Song | 31adb06 | 2011-07-08 02:40:13 -0700 | [diff] [blame] | 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 | |
Shawn Guo | a4b4674 | 2012-04-26 20:51:36 +0800 | [diff] [blame] | 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 | |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 35 | #endif |