2 * linux/arch/arm/mach-omap/innovator1510.c
4 * Board specific inits for OMAP-1510 Innovator
6 * Copyright (C) 2001 RidgeRun, Inc.
7 * Author: Greg Lonnon <glonnon@ridgerun.com>
9 * Copyright (C) 2002 MontaVista Software, Inc.
11 * Separated FPGA interrupts from innovator1510.c and cleaned up for 2.6
12 * Copyright (C) 2004 Nokia Corporation by Tony Lindrgen <tony@atomide.com>
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License version 2 as
16 * published by the Free Software Foundation.
19 #include <linux/kernel.h>
20 #include <linux/init.h>
21 #include <linux/device.h>
23 #include <asm/hardware.h>
24 #include <asm/mach/arch.h>
25 #include <asm/mach/map.h>
27 #include <asm/arch/clocks.h>
28 #include <asm/arch/gpio.h>
29 #include <asm/arch/fpga.h>
33 extern int omap_gpio_init(void);
35 void innovator_init_irq(void)
42 static struct resource smc91x_resources[] = {
44 .start = OMAP1510P1_FPGA_ETHR_START, /* Physical */
45 .end = OMAP1510P1_FPGA_ETHR_START + 16,
46 .flags = IORESOURCE_MEM,
51 .flags = IORESOURCE_IRQ,
55 static struct platform_device smc91x_device = {
58 .num_resources = ARRAY_SIZE(smc91x_resources),
59 .resource = smc91x_resources,
62 static struct platform_device *devices[] __initdata = {
66 static void __init innovator_init(void)
68 if (!machine_is_innovator())
71 (void) platform_add_devices(devices, ARRAY_SIZE(devices));
74 /* Only FPGA needs to be mapped here. All others are done with ioremap */
75 static struct map_desc innovator_io_desc[] __initdata = {
76 { OMAP1510P1_FPGA_BASE, OMAP1510P1_FPGA_START, OMAP1510P1_FPGA_SIZE,
80 static void __init innovator_map_io(void)
83 iotable_init(innovator_io_desc, ARRAY_SIZE(innovator_io_desc));
85 /* Dump the Innovator FPGA rev early - useful info for support. */
86 printk("Innovator FPGA Rev %d.%d Board Rev %d\n",
87 fpga_read(OMAP1510P1_FPGA_REV_HIGH),
88 fpga_read(OMAP1510P1_FPGA_REV_LOW),
89 fpga_read(OMAP1510P1_FPGA_BOARD_REV));
92 MACHINE_START(INNOVATOR, "TI-Innovator/OMAP1510")
93 MAINTAINER("MontaVista Software, Inc.")
94 BOOT_MEM(0x10000000, 0xe0000000, 0xe0000000)
95 BOOT_PARAMS(0x10000100)
96 MAPIO(innovator_map_io)
97 INITIRQ(innovator_init_irq)
98 INIT_MACHINE(innovator_init)