blob: a4f91a6de55e47cc21ae489c8ce5e9e36fc1b419 [file] [log] [blame]
Binghua Duan02c981c2011-07-08 17:40:12 +08001/*
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 Songf2a94192012-12-20 19:11:18 +080014#include <asm/exception.h>
Binghua Duan02c981c2011-07-08 17:40:12 +080015
Barry Song0d5983a2012-12-20 17:33:49 +080016extern void sirfsoc_prima2_timer_init(void);
Binghua Duan02c981c2011-07-08 17:40:12 +080017
18extern void __init sirfsoc_of_irq_init(void);
19extern void __init sirfsoc_of_clk_init(void);
Russell King125c4032011-11-05 10:23:27 +000020extern void sirfsoc_restart(char, const char *);
Barry Songf2a94192012-12-20 19:11:18 +080021extern asmlinkage void __exception_irq_entry sirfsoc_handle_irq(struct pt_regs *regs);
Binghua Duan02c981c2011-07-08 17:40:12 +080022
Barry Song31adb062011-07-08 02:40:13 -070023#ifndef CONFIG_DEBUG_LL
24static inline void sirfsoc_map_lluart(void) {}
25#else
26extern void __init sirfsoc_map_lluart(void);
27#endif
28
Shawn Guoa4b46742012-04-26 20:51:36 +080029#ifdef CONFIG_SUSPEND
30extern int sirfsoc_pm_init(void);
31#else
32static inline int sirfsoc_pm_init(void) { return 0; }
33#endif
34
Binghua Duan02c981c2011-07-08 17:40:12 +080035#endif