MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / arch / arm / mach-omap / board-h3.c
blobd573b0cdf4bb3335ec3638b1079e0a7a9342ddc7
1 /*
2 * linux/arch/arm/mach-omap/board-h3.c
4 * This file contains OMAP1710 H3 specific code.
6 * Copyright (C) 2004 Texas Instruments, Inc.
7 * Copyright (C) 2002 MontaVista Software, Inc.
8 * Copyright (C) 2001 RidgeRun, Inc.
9 * Author: RidgeRun, Inc.
10 * Greg Lonnon (glonnon@ridgerun.com) or info@ridgerun.com
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License version 2 as
14 * published by the Free Software Foundation.
17 #include <linux/config.h>
18 #include <linux/types.h>
19 #include <linux/init.h>
20 #include <linux/major.h>
21 #include <linux/kernel.h>
22 #include <linux/device.h>
23 #include <linux/errno.h>
25 #include <asm/setup.h>
26 #include <asm/page.h>
27 #include <asm/hardware.h>
28 #include <asm/mach/arch.h>
29 #include <asm/mach/map.h>
30 #include <asm/arch/irqs.h>
31 #include <asm/arch/gpio.h>
32 #include <asm/mach-types.h>
33 #include "common.h"
35 extern void __init omap_init_time(void);
37 void h3_init_irq(void)
39 omap_init_irq();
42 static struct resource smc91x_resources[] = {
43 [0] = {
44 .start = OMAP1710_ETHR_START, /* Physical */
45 .end = OMAP1710_ETHR_START + OMAP1710_ETHR_SIZE,
46 .flags = IORESOURCE_MEM,
48 [1] = {
49 .start = 0,
50 .end = 0,
51 .flags = IORESOURCE_IRQ,
55 static struct platform_device smc91x_device = {
56 .name = "smc91x",
57 .id = 0,
58 .num_resources = ARRAY_SIZE(smc91x_resources),
59 .resource = smc91x_resources,
62 static struct platform_device *devices[] __initdata = {
63 &smc91x_device,
66 static void __init h3_init(void)
68 (void) platform_add_devices(devices, ARRAY_SIZE(devices));
71 static struct map_desc h3_io_desc[] __initdata = {
72 { OMAP1710_ETHR_BASE, OMAP1710_ETHR_START, OMAP1710_ETHR_SIZE, MT_DEVICE },
73 { OMAP_NOR_FLASH_BASE, OMAP_NOR_FLASH_START, OMAP_NOR_FLASH_SIZE, MT_DEVICE },
76 static void __init h3_map_io(void)
78 omap_map_io();
79 iotable_init(h3_io_desc, ARRAY_SIZE(h3_io_desc));
82 MACHINE_START(OMAP_H3, "TI OMAP1710 H3 board")
83 MAINTAINER("Texas Instruments, Inc.")
84 BOOT_MEM(0x10000000, 0xfff00000, 0xfef00000)
85 BOOT_PARAMS(0x10000100)
86 MAPIO(h3_map_io)
87 INITIRQ(h3_init_irq)
88 INIT_MACHINE(h3_init)
89 INITTIME(omap_init_time)
90 MACHINE_END