24 #include <linux/device.h>
34 #include <mach/hardware.h>
37 #include <asm/pgtable.h>
47 #include <mach/irqs.h>
98 #ifdef CONFIG_DEBUG_LL
108 static void __init realview_pb1176_map_io(
void)
134 #define GPIO2_IRQ { IRQ_PB1176_GPIO2 }
135 #define GPIO3_IRQ { IRQ_PB1176_GPIO3 }
136 #define AACI_IRQ { IRQ_PB1176_AACI }
137 #define MMCI0_IRQ { IRQ_PB1176_MMCI0A, IRQ_PB1176_MMCI0B }
138 #define KMI0_IRQ { IRQ_PB1176_KMI0 }
139 #define KMI1_IRQ { IRQ_PB1176_KMI1 }
140 #define PB1176_SMC_IRQ { }
142 #define PB1176_CLCD_IRQ { IRQ_DC1176_CLCD }
144 #define PB1176_WATCHDOG_IRQ { IRQ_DC1176_WATCHDOG }
145 #define PB1176_GPIO0_IRQ { IRQ_DC1176_GPIO0 }
146 #define GPIO1_IRQ { IRQ_PB1176_GPIO1 }
147 #define PB1176_RTC_IRQ { IRQ_DC1176_RTC }
148 #define SCI_IRQ { IRQ_PB1176_SCI }
149 #define PB1176_UART0_IRQ { IRQ_DC1176_UART0 }
150 #define PB1176_UART1_IRQ { IRQ_DC1176_UART1 }
151 #define PB1176_UART2_IRQ { IRQ_DC1176_UART2 }
152 #define PB1176_UART3_IRQ { IRQ_DC1176_UART3 }
153 #define PB1176_UART4_IRQ { IRQ_PB1176_UART4 }
154 #define PB1176_SSP_IRQ { IRQ_DC1176_SSP }
167 APB_DEVICE(gpio0,
"dev:gpio0", PB1176_GPIO0, &gpio0_plat_data);
179 static struct amba_device *amba_devs[] __initdata = {
204 static struct resource realview_pb1176_flash_resources[] = {
210 #ifdef CONFIG_REALVIEW_PB1176_SECURE_FLASH
220 .probe_type =
"map_rom",
225 static struct resource pb1176_rom_resources[] = {
239 .name =
"physmap-flash",
241 .num_resources =
ARRAY_SIZE(pb1176_rom_resources),
242 .resource = pb1176_rom_resources,
244 .platform_data = &pb1176_rom_pdata,
248 static struct resource realview_pb1176_smsc911x_resources[] = {
261 static struct resource realview_pb1176_isp1761_resources[] = {
274 static struct resource pmu_resource = {
284 .resource = &pmu_resource,
287 static struct resource char_lcd_resources[] = {
301 .name =
"arm-charlcd",
303 .num_resources =
ARRAY_SIZE(char_lcd_resources),
304 .resource = char_lcd_resources,
321 static void __init realview_pb1176_timer_init(
void)
332 static struct sys_timer realview_pb1176_timer = {
333 .init = realview_pb1176_timer_init,
336 static void realview_pb1176_restart(
char mode,
const char *
cmd)
345 static void realview_pb1176_fixup(
struct tag *
tags,
char **
from,
351 meminfo->
bank[0].start = 0;
356 static void __init realview_pb1176_init(
void)
360 #ifdef CONFIG_CACHE_L2X0
382 .atag_offset = 0x100,
383 .fixup = realview_pb1176_fixup,
384 .map_io = realview_pb1176_map_io,
387 .timer = &realview_pb1176_timer,
389 .init_machine = realview_pb1176_init,
390 #ifdef CONFIG_ZONE_DMA
393 .restart = realview_pb1176_restart,