Catalin Marinas | 8ad68bb | 2005-10-31 14:25:02 +0000 | [diff] [blame] | 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 | |
Russell King | a62c80e | 2006-01-07 13:52:45 +0000 | [diff] [blame] | 25 | #include <linux/amba/bus.h> |
Russell King | fced80c | 2008-09-06 12:10:45 +0100 | [diff] [blame] | 26 | #include <linux/io.h> |
Russell King | a62c80e | 2006-01-07 13:52:45 +0000 | [diff] [blame] | 27 | |
Russell King | 01bbaf0 | 2005-11-07 10:30:16 +0000 | [diff] [blame] | 28 | #include <asm/leds.h> |
Catalin Marinas | 8ad68bb | 2005-10-31 14:25:02 +0000 | [diff] [blame] | 29 | |
Catalin Marinas | 8ad68bb | 2005-10-31 14:25:02 +0000 | [diff] [blame] | 30 | #define AMBA_DEVICE(name,busid,base,plat) \ |
| 31 | static struct amba_device name##_device = { \ |
| 32 | .dev = { \ |
| 33 | .coherent_dma_mask = ~0, \ |
Kay Sievers | 1d559e2 | 2009-01-06 10:44:43 -0800 | [diff] [blame] | 34 | .init_name = busid, \ |
Catalin Marinas | 8ad68bb | 2005-10-31 14:25:02 +0000 | [diff] [blame] | 35 | .platform_data = plat, \ |
| 36 | }, \ |
| 37 | .res = { \ |
| 38 | .start = REALVIEW_##base##_BASE, \ |
Catalin Marinas | 0fc2a16 | 2008-02-04 17:36:59 +0100 | [diff] [blame] | 39 | .end = (REALVIEW_##base##_BASE) + SZ_4K - 1, \ |
Catalin Marinas | 8ad68bb | 2005-10-31 14:25:02 +0000 | [diff] [blame] | 40 | .flags = IORESOURCE_MEM, \ |
| 41 | }, \ |
| 42 | .dma_mask = ~0, \ |
| 43 | .irq = base##_IRQ, \ |
| 44 | /* .dma = base##_DMA,*/ \ |
| 45 | } |
| 46 | |
Catalin Marinas | 8ad68bb | 2005-10-31 14:25:02 +0000 | [diff] [blame] | 47 | extern struct platform_device realview_flash_device; |
Russell King | 6b65cd7 | 2006-12-10 21:21:32 +0100 | [diff] [blame] | 48 | extern struct platform_device realview_i2c_device; |
Catalin Marinas | 8ad68bb | 2005-10-31 14:25:02 +0000 | [diff] [blame] | 49 | extern struct mmc_platform_data realview_mmc0_plat_data; |
| 50 | extern struct mmc_platform_data realview_mmc1_plat_data; |
Catalin Marinas | 8ad68bb | 2005-10-31 14:25:02 +0000 | [diff] [blame] | 51 | extern struct clcd_board clcd_plat_data; |
Catalin Marinas | c4057f5 | 2008-02-04 17:41:01 +0100 | [diff] [blame] | 52 | extern void __iomem *gic_cpu_base_addr; |
Catalin Marinas | 39e823e | 2008-02-04 17:45:03 +0100 | [diff] [blame] | 53 | #ifdef CONFIG_LOCAL_TIMERS |
Catalin Marinas | ebac654 | 2008-12-01 14:54:57 +0000 | [diff] [blame] | 54 | extern void __iomem *twd_base; |
Catalin Marinas | 39e823e | 2008-02-04 17:45:03 +0100 | [diff] [blame] | 55 | #endif |
Catalin Marinas | 8019273 | 2008-04-18 22:43:11 +0100 | [diff] [blame] | 56 | extern void __iomem *timer0_va_base; |
| 57 | extern void __iomem *timer1_va_base; |
| 58 | extern void __iomem *timer2_va_base; |
| 59 | extern void __iomem *timer3_va_base; |
Catalin Marinas | 8ad68bb | 2005-10-31 14:25:02 +0000 | [diff] [blame] | 60 | |
| 61 | extern void realview_leds_event(led_event_t ledevt); |
Catalin Marinas | 8cc4c54 | 2008-02-04 17:43:02 +0100 | [diff] [blame] | 62 | extern void realview_timer_init(unsigned int timer_irq); |
Catalin Marinas | a44ddfd | 2008-04-18 22:43:10 +0100 | [diff] [blame] | 63 | extern int realview_flash_register(struct resource *res, u32 num); |
Catalin Marinas | 0a38133 | 2008-12-01 14:54:58 +0000 | [diff] [blame] | 64 | extern int realview_eth_register(const char *name, struct resource *res); |
Catalin Marinas | 8ad68bb | 2005-10-31 14:25:02 +0000 | [diff] [blame] | 65 | |
| 66 | #endif |