blob: 05a995ea16d3782b35f74a4b736ab24205596892 [file] [log] [blame]
Catalin Marinas8ad68bb2005-10-31 14:25:02 +00001/*
Catalin Marinas8ad68bb2005-10-31 14:25:02 +00002 * 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 Kinga62c80e2006-01-07 13:52:45 +000023#include <linux/amba/bus.h>
Russell Kingfced80c2008-09-06 12:10:45 +010024#include <linux/io.h>
Russell Kinga62c80e2006-01-07 13:52:45 +000025
Catalin Marinas5b39d152009-11-04 12:19:04 +000026#include <asm/setup.h>
Catalin Marinas8ad68bb2005-10-31 14:25:02 +000027
Russell King91993402011-12-18 13:38:49 +000028#define APB_DEVICE(name, busid, base, plat) \
29static AMBA_APB_DEVICE(name, busid, 0, REALVIEW_##base##_BASE, base##_IRQ, plat)
30
31#define AHB_DEVICE(name, busid, base, plat) \
32static AMBA_AHB_DEVICE(name, busid, 0, REALVIEW_##base##_BASE, base##_IRQ, plat)
Catalin Marinas8ad68bb2005-10-31 14:25:02 +000033
Catalin Marinas5b39d152009-11-04 12:19:04 +000034struct machine_desc;
35
Catalin Marinas8ad68bb2005-10-31 14:25:02 +000036extern struct platform_device realview_flash_device;
Catalin Marinas6be62ba2009-02-12 15:59:21 +010037extern struct platform_device realview_cf_device;
Linus Walleije4ecf2b2014-02-27 14:29:22 +010038extern struct platform_device realview_leds_device;
Russell King6b65cd72006-12-10 21:21:32 +010039extern struct platform_device realview_i2c_device;
Linus Walleij6ef297f2009-09-22 14:29:36 +010040extern struct mmci_platform_data realview_mmc0_plat_data;
41extern struct mmci_platform_data realview_mmc1_plat_data;
Catalin Marinas8ad68bb2005-10-31 14:25:02 +000042extern struct clcd_board clcd_plat_data;
Catalin Marinas80192732008-04-18 22:43:11 +010043extern void __iomem *timer0_va_base;
44extern void __iomem *timer1_va_base;
45extern void __iomem *timer2_va_base;
46extern void __iomem *timer3_va_base;
Catalin Marinas8ad68bb2005-10-31 14:25:02 +000047
Catalin Marinas8cc4c542008-02-04 17:43:02 +010048extern void realview_timer_init(unsigned int timer_irq);
Catalin Marinasa44ddfd2008-04-18 22:43:10 +010049extern int realview_flash_register(struct resource *res, u32 num);
Catalin Marinas0a381332008-12-01 14:54:58 +000050extern int realview_eth_register(const char *name, struct resource *res);
Catalin Marinas7db21712009-02-12 16:00:21 +010051extern int realview_usb_register(struct resource *res);
Russell King631e55f2011-01-11 13:05:01 +000052extern void realview_init_early(void);
Laura Abbott1c2f87c2014-04-13 22:54:58 +010053extern void realview_fixup(struct tag *tags, char **from);
Catalin Marinas5b39d152009-11-04 12:19:04 +000054
Masahiro Yamada75305272015-11-15 10:39:53 +090055extern const struct smp_operations realview_smp_ops;
Marc Zyngier3695adc2011-09-08 13:15:22 +010056extern void realview_cpu_die(unsigned int cpu);
57
Catalin Marinas8ad68bb2005-10-31 14:25:02 +000058#endif