]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - arch/arm/mach-prima2/common.h
ARM: PRIMA2: irq: make prima2 irq can work even we enable GIC for Marco
[mirror_ubuntu-zesty-kernel.git] / arch / arm / mach-prima2 / common.h
CommitLineData
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 16extern void sirfsoc_prima2_timer_init(void);
02c981c0
BD
17
18extern void __init sirfsoc_of_irq_init(void);
19extern void __init sirfsoc_of_clk_init(void);
125c4033 20extern void sirfsoc_restart(char, const char *);
f2a94192 21extern asmlinkage void __exception_irq_entry sirfsoc_handle_irq(struct pt_regs *regs);
02c981c0 22
31adb06f
BS
23#ifndef CONFIG_DEBUG_LL
24static inline void sirfsoc_map_lluart(void) {}
25#else
26extern void __init sirfsoc_map_lluart(void);
27#endif
28
a4b4674e
SG
29#ifdef CONFIG_SUSPEND
30extern int sirfsoc_pm_init(void);
31#else
32static inline int sirfsoc_pm_init(void) { return 0; }
33#endif
34
02c981c0 35#endif