Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[deliverable/linux.git] / arch / arm / mach-realview / core.h
CommitLineData
8ad68bbf
CM
1/*
2 * linux/arch/arm/mach-realview/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_REALVIEW_H
23#define __ASM_ARCH_REALVIEW_H
24
a62c80e5 25#include <linux/amba/bus.h>
fced80c7 26#include <linux/io.h>
a62c80e5 27
5b39d154 28#include <asm/setup.h>
01bbaf0b 29#include <asm/leds.h>
8ad68bbf 30
8ad68bbf
CM
31#define AMBA_DEVICE(name,busid,base,plat) \
32static struct amba_device name##_device = { \
33 .dev = { \
34 .coherent_dma_mask = ~0, \
1d559e29 35 .init_name = busid, \
8ad68bbf
CM
36 .platform_data = plat, \
37 }, \
38 .res = { \
39 .start = REALVIEW_##base##_BASE, \
0fc2a161 40 .end = (REALVIEW_##base##_BASE) + SZ_4K - 1, \
8ad68bbf
CM
41 .flags = IORESOURCE_MEM, \
42 }, \
43 .dma_mask = ~0, \
44 .irq = base##_IRQ, \
8ad68bbf
CM
45}
46
5b39d154
CM
47struct machine_desc;
48
8ad68bbf 49extern struct platform_device realview_flash_device;
6be62ba2 50extern struct platform_device realview_cf_device;
6b65cd74 51extern struct platform_device realview_i2c_device;
6ef297f8
LW
52extern struct mmci_platform_data realview_mmc0_plat_data;
53extern struct mmci_platform_data realview_mmc1_plat_data;
8ad68bbf 54extern struct clcd_board clcd_plat_data;
80192735
CM
55extern void __iomem *timer0_va_base;
56extern void __iomem *timer1_va_base;
57extern void __iomem *timer2_va_base;
58extern void __iomem *timer3_va_base;
8ad68bbf
CM
59
60extern void realview_leds_event(led_event_t ledevt);
8cc4c548 61extern void realview_timer_init(unsigned int timer_irq);
a44ddfd5 62extern int realview_flash_register(struct resource *res, u32 num);
0a381330 63extern int realview_eth_register(const char *name, struct resource *res);
7db21712 64extern int realview_usb_register(struct resource *res);
631e55f9 65extern void realview_init_early(void);
0744a3ee
RK
66extern void realview_fixup(struct tag *tags, char **from,
67 struct meminfo *meminfo);
5b39d154 68
8ad68bbf 69#endif
This page took 0.706726 seconds and 5 git commands to generate.