blob: 683e60776a85b7a29d5022bec2c87c4c0be7f933 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
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
Russell Kinga62c80e2006-01-07 13:52:45 +000025#include <linux/amba/bus.h>
Grant Likely3ba72222011-07-26 03:19:06 -060026#include <linux/of_platform.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070027
28extern void __init versatile_init(void);
Russell Kingad3bb192011-01-11 12:55:38 +000029extern void __init versatile_init_early(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070030extern void __init versatile_init_irq(void);
31extern void __init versatile_map_io(void);
32extern struct sys_timer versatile_timer;
Russell Kingb56a7c62011-11-03 11:43:08 +000033extern void versatile_restart(char, const char *);
Linus Torvalds1da177e2005-04-16 15:20:36 -070034extern unsigned int mmc_status(struct device *dev);
Grant Likely3ba72222011-07-26 03:19:06 -060035#ifdef CONFIG_OF
36extern struct of_dev_auxdata versatile_auxdata_lookup[];
37#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070038
Russell King8f5088b2011-12-18 12:21:09 +000039#define APB_DEVICE(name, busid, base, plat) \
40static AMBA_APB_DEVICE(name, busid, 0, VERSATILE_##base##_BASE, base##_IRQ, plat)
41
42#define AHB_DEVICE(name, busid, base, plat) \
43static AMBA_AHB_DEVICE(name, busid, 0, VERSATILE_##base##_BASE, base##_IRQ, plat)
Linus Torvalds1da177e2005-04-16 15:20:36 -070044
45#endif