19 #include <linux/kernel.h>
27 #include <linux/input.h>
30 #include <mach/hardware.h>
31 #include <mach/common.h>
33 #include <mach/irqs.h>
44 .virtual = 0xe0100000,
51 .virtual = 0xf0000000,
65 static struct resource uart0_resources[] = {
78 .name =
"serial8250-em",
81 .resource = uart0_resources,
84 static struct resource uart1_resources[] = {
97 .name =
"serial8250-em",
100 .resource = uart1_resources,
103 static struct resource uart2_resources[] = {
116 .name =
"serial8250-em",
119 .resource = uart2_resources,
122 static struct resource uart3_resources[] = {
135 .name =
"serial8250-em",
138 .resource = uart3_resources,
142 static struct resource sti_resources[] = {
158 .resource = sti_resources,
167 .number_of_pins = 32,
170 static struct resource gio0_resources[] = {
196 .resource = gio0_resources,
199 .platform_data = &gio0_config,
206 .number_of_pins = 32,
209 static struct resource gio1_resources[] = {
235 .resource = gio1_resources,
238 .platform_data = &gio1_config,
245 .number_of_pins = 32,
248 static struct resource gio2_resources[] = {
274 .resource = gio2_resources,
277 .platform_data = &gio2_config,
284 .number_of_pins = 32,
287 static struct resource gio3_resources[] = {
313 .resource = gio3_resources,
316 .platform_data = &gio3_config,
323 .number_of_pins = 31,
326 static struct resource gio4_resources[] = {
352 .resource = gio4_resources,
355 .platform_data = &gio4_config,
359 static struct resource pmu_resources[] = {
376 .resource = pmu_resources,
431 BUG_ON(!gic_dist_base || !gic_cpu_base);
434 gic_init(0, 29, gic_dist_base, gic_cpu_base);
438 static const struct of_dev_auxdata emev2_auxdata_lookup[]
__initconst = {
442 void __init emev2_add_standard_devices_dt(
void)
445 emev2_auxdata_lookup,
NULL);
448 static const struct of_device_id emev2_dt_irq_match[] = {
453 static const char *emev2_boards_compat_dt[] __initdata = {
458 void __init emev2_init_irq_dt(
void)
463 DT_MACHINE_START(EMEV2_DT,
"Generic Emma Mobile EV2 (Flattened Device Tree)")
467 .init_irq = emev2_init_irq_dt,
469 .init_machine = emev2_add_standard_devices_dt,
471 .dt_compat = emev2_boards_compat_dt,