]>
Commit | Line | Data |
---|---|---|
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 RK |
25 | #include <linux/amba/bus.h> |
26 | ||
01bbaf0b | 27 | #include <asm/leds.h> |
8ad68bbf CM |
28 | #include <asm/io.h> |
29 | ||
8ad68bbf CM |
30 | #define AMBA_DEVICE(name,busid,base,plat) \ |
31 | static struct amba_device name##_device = { \ | |
32 | .dev = { \ | |
33 | .coherent_dma_mask = ~0, \ | |
34 | .bus_id = busid, \ | |
35 | .platform_data = plat, \ | |
36 | }, \ | |
37 | .res = { \ | |
38 | .start = REALVIEW_##base##_BASE, \ | |
0fc2a161 | 39 | .end = (REALVIEW_##base##_BASE) + SZ_4K - 1, \ |
8ad68bbf CM |
40 | .flags = IORESOURCE_MEM, \ |
41 | }, \ | |
42 | .dma_mask = ~0, \ | |
43 | .irq = base##_IRQ, \ | |
44 | /* .dma = base##_DMA,*/ \ | |
45 | } | |
46 | ||
8ad68bbf | 47 | extern struct platform_device realview_flash_device; |
6b65cd74 | 48 | extern struct platform_device realview_i2c_device; |
8ad68bbf CM |
49 | extern struct mmc_platform_data realview_mmc0_plat_data; |
50 | extern struct mmc_platform_data realview_mmc1_plat_data; | |
51 | extern struct clk realview_clcd_clk; | |
52 | extern struct clcd_board clcd_plat_data; | |
c4057f52 | 53 | extern void __iomem *gic_cpu_base_addr; |
39e823e3 CM |
54 | #ifdef CONFIG_LOCAL_TIMERS |
55 | extern void __iomem *twd_base_addr; | |
56 | extern unsigned int twd_size; | |
57 | #endif | |
8ad68bbf CM |
58 | |
59 | extern void realview_leds_event(led_event_t ledevt); | |
8cc4c548 | 60 | extern void realview_timer_init(unsigned int timer_irq); |
8ad68bbf CM |
61 | |
62 | #endif |