23 #include <linux/device.h>
34 #include <asm/pgtable.h>
42 #include <mach/hardware.h>
44 #include <mach/irqs.h>
82 .virtual = PCIX_UNIT_BASE,
88 #ifdef CONFIG_DEBUG_LL
98 static struct map_desc realview_local_io_desc[] __initdata = {
117 static void __init realview_pbx_map_io(
void)
146 #define GPIO2_IRQ { IRQ_PBX_GPIO2 }
147 #define GPIO3_IRQ { IRQ_PBX_GPIO3 }
148 #define AACI_IRQ { IRQ_PBX_AACI }
149 #define MMCI0_IRQ { IRQ_PBX_MMCI0A, IRQ_PBX_MMCI0B }
150 #define KMI0_IRQ { IRQ_PBX_KMI0 }
151 #define KMI1_IRQ { IRQ_PBX_KMI1 }
152 #define PBX_SMC_IRQ { }
154 #define PBX_CLCD_IRQ { IRQ_PBX_CLCD }
155 #define DMAC_IRQ { IRQ_PBX_DMAC }
157 #define PBX_WATCHDOG_IRQ { IRQ_PBX_WATCHDOG }
158 #define PBX_GPIO0_IRQ { IRQ_PBX_GPIO0 }
159 #define GPIO1_IRQ { IRQ_PBX_GPIO1 }
160 #define PBX_RTC_IRQ { IRQ_PBX_RTC }
161 #define SCI_IRQ { IRQ_PBX_SCI }
162 #define PBX_UART0_IRQ { IRQ_PBX_UART0 }
163 #define PBX_UART1_IRQ { IRQ_PBX_UART1 }
164 #define PBX_UART2_IRQ { IRQ_PBX_UART2 }
165 #define PBX_UART3_IRQ { IRQ_PBX_UART3 }
166 #define PBX_SSP_IRQ { IRQ_PBX_SSP }
179 APB_DEVICE(gpio0,
"dev:gpio0", PBX_GPIO0, &gpio0_plat_data);
193 static struct amba_device *amba_devs[] __initdata = {
218 static struct resource realview_pbx_flash_resources[] = {
231 static struct resource realview_pbx_smsc911x_resources[] = {
244 static struct resource realview_pbx_isp1761_resources[] = {
257 static struct resource pmu_resources[] = {
284 .resource = pmu_resources,
300 #ifdef CONFIG_HAVE_ARM_TWD
309 pr_err(
"twd_local_timer_register failed %d\n", err);
312 #define realview_pbx_twd_init() do { } while(0)
315 static void __init realview_pbx_timer_init(
void)
327 static struct sys_timer realview_pbx_timer = {
328 .init = realview_pbx_timer_init,
331 static void realview_pbx_fixup(
struct tag *
tags,
char **
from,
334 #ifdef CONFIG_SPARSEMEM
339 meminfo->
bank[0].start = 0;
341 meminfo->
bank[1].start = 0x20000000;
343 meminfo->
bank[2].start = 0x80000000;
351 static void realview_pbx_restart(
char mode,
const char *
cmd)
366 static void __init realview_pbx_init(
void)
370 #ifdef CONFIG_CACHE_L2X0
381 l2x0_init(l2x0_base, 0x02520000, 0xc0000fff);
401 .atag_offset = 0x100,
403 .fixup = realview_pbx_fixup,
404 .map_io = realview_pbx_map_io,
407 .timer = &realview_pbx_timer,
409 .init_machine = realview_pbx_init,
410 #ifdef CONFIG_ZONE_DMA
413 .restart = realview_pbx_restart,