Catalin Marinas | 8ad68bb | 2005-10-31 14:25:02 +0000 | [diff] [blame] | 1 | /* |
Catalin Marinas | 8ad68bb | 2005-10-31 14:25:02 +0000 | [diff] [blame] | 2 | * Copyright (C) 2004 ARM Limited |
| 3 | * Copyright (C) 2000 Deep Blue Solutions Ltd |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 18 | */ |
| 19 | |
| 20 | #ifndef __ASM_ARCH_REALVIEW_H |
| 21 | #define __ASM_ARCH_REALVIEW_H |
| 22 | |
Russell King | a62c80e | 2006-01-07 13:52:45 +0000 | [diff] [blame] | 23 | #include <linux/amba/bus.h> |
Russell King | fced80c | 2008-09-06 12:10:45 +0100 | [diff] [blame] | 24 | #include <linux/io.h> |
Russell King | a62c80e | 2006-01-07 13:52:45 +0000 | [diff] [blame] | 25 | |
Catalin Marinas | 5b39d15 | 2009-11-04 12:19:04 +0000 | [diff] [blame] | 26 | #include <asm/setup.h> |
Catalin Marinas | 8ad68bb | 2005-10-31 14:25:02 +0000 | [diff] [blame] | 27 | |
Russell King | 9199340 | 2011-12-18 13:38:49 +0000 | [diff] [blame] | 28 | #define APB_DEVICE(name, busid, base, plat) \ |
| 29 | static AMBA_APB_DEVICE(name, busid, 0, REALVIEW_##base##_BASE, base##_IRQ, plat) |
| 30 | |
| 31 | #define AHB_DEVICE(name, busid, base, plat) \ |
| 32 | static AMBA_AHB_DEVICE(name, busid, 0, REALVIEW_##base##_BASE, base##_IRQ, plat) |
Catalin Marinas | 8ad68bb | 2005-10-31 14:25:02 +0000 | [diff] [blame] | 33 | |
Catalin Marinas | 5b39d15 | 2009-11-04 12:19:04 +0000 | [diff] [blame] | 34 | struct machine_desc; |
| 35 | |
Catalin Marinas | 8ad68bb | 2005-10-31 14:25:02 +0000 | [diff] [blame] | 36 | extern struct platform_device realview_flash_device; |
Catalin Marinas | 6be62ba | 2009-02-12 15:59:21 +0100 | [diff] [blame] | 37 | extern struct platform_device realview_cf_device; |
Linus Walleij | e4ecf2b | 2014-02-27 14:29:22 +0100 | [diff] [blame] | 38 | extern struct platform_device realview_leds_device; |
Russell King | 6b65cd7 | 2006-12-10 21:21:32 +0100 | [diff] [blame] | 39 | extern struct platform_device realview_i2c_device; |
Linus Walleij | 6ef297f | 2009-09-22 14:29:36 +0100 | [diff] [blame] | 40 | extern struct mmci_platform_data realview_mmc0_plat_data; |
| 41 | extern struct mmci_platform_data realview_mmc1_plat_data; |
Catalin Marinas | 8ad68bb | 2005-10-31 14:25:02 +0000 | [diff] [blame] | 42 | extern struct clcd_board clcd_plat_data; |
Catalin Marinas | 8019273 | 2008-04-18 22:43:11 +0100 | [diff] [blame] | 43 | extern void __iomem *timer0_va_base; |
| 44 | extern void __iomem *timer1_va_base; |
| 45 | extern void __iomem *timer2_va_base; |
| 46 | extern void __iomem *timer3_va_base; |
Catalin Marinas | 8ad68bb | 2005-10-31 14:25:02 +0000 | [diff] [blame] | 47 | |
Catalin Marinas | 8cc4c54 | 2008-02-04 17:43:02 +0100 | [diff] [blame] | 48 | extern void realview_timer_init(unsigned int timer_irq); |
Catalin Marinas | a44ddfd | 2008-04-18 22:43:10 +0100 | [diff] [blame] | 49 | extern int realview_flash_register(struct resource *res, u32 num); |
Catalin Marinas | 0a38133 | 2008-12-01 14:54:58 +0000 | [diff] [blame] | 50 | extern int realview_eth_register(const char *name, struct resource *res); |
Catalin Marinas | 7db2171 | 2009-02-12 16:00:21 +0100 | [diff] [blame] | 51 | extern int realview_usb_register(struct resource *res); |
Russell King | 631e55f | 2011-01-11 13:05:01 +0000 | [diff] [blame] | 52 | extern void realview_init_early(void); |
Laura Abbott | 1c2f87c | 2014-04-13 22:54:58 +0100 | [diff] [blame] | 53 | extern void realview_fixup(struct tag *tags, char **from); |
Catalin Marinas | 5b39d15 | 2009-11-04 12:19:04 +0000 | [diff] [blame] | 54 | |
Masahiro Yamada | 7530527 | 2015-11-15 10:39:53 +0900 | [diff] [blame] | 55 | extern const struct smp_operations realview_smp_ops; |
Marc Zyngier | 3695adc | 2011-09-08 13:15:22 +0100 | [diff] [blame] | 56 | extern void realview_cpu_die(unsigned int cpu); |
| 57 | |
Catalin Marinas | 8ad68bb | 2005-10-31 14:25:02 +0000 | [diff] [blame] | 58 | #endif |