2 * linux/arch/arm/mach-omap/innovator1610.c
4 * This file contains Innovator-specific code.
6 * Copyright (C) 2002 MontaVista Software, Inc.
8 * Copyright (C) 2001 RidgeRun, Inc.
9 * Author: Greg Lonnon <glonnon@ridgerun.com>
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
16 #include <linux/config.h>
17 #include <linux/types.h>
18 #include <linux/init.h>
19 #include <linux/major.h>
20 #include <linux/kernel.h>
21 #include <linux/device.h>
22 #include <linux/errno.h>
24 #include <asm/setup.h>
26 #include <asm/hardware.h>
27 #include <asm/mach/arch.h>
28 #include <asm/mach/map.h>
29 #include <asm/arch/irqs.h>
34 innovator_init_irq(void)
39 static struct resource smc91x_resources[] = {
41 .start = OMAP1610_ETHR_START, /* Physical */
42 .end = OMAP1610_ETHR_START + SZ_4K,
43 .flags = IORESOURCE_MEM,
46 .start = 0, /* Really GPIO 0 */
48 .flags = IORESOURCE_IRQ,
52 static struct platform_device smc91x_device = {
55 .num_resources = ARRAY_SIZE(smc91x_resources),
56 .resource = smc91x_resources,
59 static struct platform_device *devices[] __initdata = {
63 static void __init innovator_init(void)
65 if (!machine_is_innovator())
68 (void) platform_add_devices(devices, ARRAY_SIZE(devices));
71 static struct map_desc innovator_io_desc[] __initdata = {
72 { OMAP1610_ETHR_BASE, OMAP1610_ETHR_START, OMAP1610_ETHR_SIZE,MT_DEVICE },
73 { OMAP1610_NOR_FLASH_BASE, OMAP1610_NOR_FLASH_START, OMAP1610_NOR_FLASH_SIZE,
77 static void __init innovator_map_io(void)
80 iotable_init(innovator_io_desc, ARRAY_SIZE(innovator_io_desc));
83 MACHINE_START(INNOVATOR, "TI-Innovator/OMAP1610")
84 MAINTAINER("MontaVista Software, Inc.")
85 BOOT_MEM(0x10000000, 0xe0000000, 0xe0000000)
86 BOOT_PARAMS(0x10000100)
87 MAPIO(innovator_map_io)
88 INITIRQ(innovator_init_irq)
89 INIT_MACHINE(innovator_init)