staging:iio:adc:ad7606 move to info_mask_(shared_by_type/separate)
[linux/fpc-iii.git] / arch / arm / mach-versatile / core.h
blob5c1b87d1da6b5806807cad0cdf99e00cc982a2c0
1 /*
2 * linux/arch/arm/mach-versatile/core.h
4 * Copyright (C) 2004 ARM Limited
5 * Copyright (C) 2000 Deep Blue Solutions Ltd
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #ifndef __ASM_ARCH_VERSATILE_H
23 #define __ASM_ARCH_VERSATILE_H
25 #include <linux/amba/bus.h>
26 #include <linux/of_platform.h>
28 extern void __init versatile_init(void);
29 extern void __init versatile_init_early(void);
30 extern void __init versatile_init_irq(void);
31 extern void __init versatile_map_io(void);
32 extern void versatile_timer_init(void);
33 extern void versatile_restart(char, const char *);
34 extern unsigned int mmc_status(struct device *dev);
35 #ifdef CONFIG_OF
36 extern struct of_dev_auxdata versatile_auxdata_lookup[];
37 #endif
39 #define APB_DEVICE(name, busid, base, plat) \
40 static AMBA_APB_DEVICE(name, busid, 0, VERSATILE_##base##_BASE, base##_IRQ, plat)
42 #define AHB_DEVICE(name, busid, base, plat) \
43 static AMBA_AHB_DEVICE(name, busid, 0, VERSATILE_##base##_BASE, base##_IRQ, plat)
45 #endif