]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - arch/arm/mach-versatile/core.h
ARM: amba: vexpress: get rid of private platform amba_device initializer
[mirror_ubuntu-artful-kernel.git] / arch / arm / mach-versatile / core.h
CommitLineData
1da177e4
LT
1/*
2 * linux/arch/arm/mach-versatile/core.h
3 *
4 * Copyright (C) 2004 ARM Limited
5 * Copyright (C) 2000 Deep Blue Solutions Ltd
6 *
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.
11 *
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.
16 *
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
20 */
21
22#ifndef __ASM_ARCH_VERSATILE_H
23#define __ASM_ARCH_VERSATILE_H
24
a62c80e5 25#include <linux/amba/bus.h>
3ba7222a 26#include <linux/of_platform.h>
1da177e4
LT
27
28extern void __init versatile_init(void);
ad3bb19c 29extern void __init versatile_init_early(void);
1da177e4
LT
30extern void __init versatile_init_irq(void);
31extern void __init versatile_map_io(void);
32extern struct sys_timer versatile_timer;
b56a7c6b 33extern void versatile_restart(char, const char *);
1da177e4 34extern unsigned int mmc_status(struct device *dev);
3ba7222a
GL
35#ifdef CONFIG_OF
36extern struct of_dev_auxdata versatile_auxdata_lookup[];
37#endif
1da177e4
LT
38
39#define AMBA_DEVICE(name,busid,base,plat) \
40static struct amba_device name##_device = { \
41 .dev = { \
42 .coherent_dma_mask = ~0, \
1d559e29 43 .init_name = busid, \
1da177e4
LT
44 .platform_data = plat, \
45 }, \
46 .res = { \
47 .start = VERSATILE_##base##_BASE, \
48 .end = (VERSATILE_##base##_BASE) + SZ_4K - 1,\
49 .flags = IORESOURCE_MEM, \
50 }, \
51 .dma_mask = ~0, \
52 .irq = base##_IRQ, \
1da177e4
LT
53}
54
55#endif