blob: 9c75f124e3cf466942d45da141f3bbe1cc83baa8 [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>
14
Stephen Warren6bb27d72012-11-08 12:40:59 -070015extern void sirfsoc_timer_init(void);
Binghua Duan02c981c2011-07-08 17:40:12 +080016
17extern void __init sirfsoc_of_irq_init(void);
18extern void __init sirfsoc_of_clk_init(void);
Russell King125c4032011-11-05 10:23:27 +000019extern void sirfsoc_restart(char, const char *);
Binghua Duan02c981c2011-07-08 17:40:12 +080020
Barry Song31adb062011-07-08 02:40:13 -070021#ifndef CONFIG_DEBUG_LL
22static inline void sirfsoc_map_lluart(void) {}
23#else
24extern void __init sirfsoc_map_lluart(void);
25#endif
26
Shawn Guoa4b46742012-04-26 20:51:36 +080027#ifdef CONFIG_SUSPEND
28extern int sirfsoc_pm_init(void);
29#else
30static inline int sirfsoc_pm_init(void) { return 0; }
31#endif
32
Binghua Duan02c981c2011-07-08 17:40:12 +080033#endif