2 * linux/arch/arm/mach-ep93xx/micro9.c
4 * Copyright (C) 2006 Contec Steuerungstechnik & Automation GmbH
5 * Manfred Gruber <manfred.gruber@contec.at>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
12 #include <linux/init.h>
13 #include <linux/interrupt.h>
14 #include <linux/ioport.h>
15 #include <linux/kernel.h>
17 #include <linux/platform_device.h>
18 #include <linux/sched.h>
20 #include <linux/mtd/physmap.h>
22 #include <mach/hardware.h>
24 #include <asm/mach/arch.h>
25 #include <asm/mach-types.h>
27 static struct ep93xx_eth_data micro9_eth_data = {
31 static void __init micro9_init(void)
33 ep93xx_register_eth(µ9_eth_data, 1);
39 #ifdef CONFIG_MACH_MICRO9H
40 static struct physmap_flash_data micro9h_flash_data = {
44 static struct resource micro9h_flash_resource = {
47 .flags = IORESOURCE_MEM,
50 static struct platform_device micro9h_flash = {
51 .name = "physmap-flash",
54 .platform_data = µ9h_flash_data,
57 .resource = µ9h_flash_resource,
60 static void __init micro9h_init(void)
62 platform_device_register(µ9h_flash);
65 static void __init micro9h_init_machine(void)
67 ep93xx_init_devices();
72 MACHINE_START(MICRO9, "Contec Hypercontrol Micro9-H")
73 /* Maintainer: Manfred Gruber <manfred.gruber@contec.at> */
74 .phys_io = EP93XX_APB_PHYS_BASE,
75 .io_pg_offst = ((EP93XX_APB_VIRT_BASE) >> 18) & 0xfffc,
76 .boot_params = 0x00000100,
77 .map_io = ep93xx_map_io,
78 .init_irq = ep93xx_init_irq,
79 .timer = &ep93xx_timer,
80 .init_machine = micro9h_init_machine,
87 #ifdef CONFIG_MACH_MICRO9M
88 static void __init micro9m_init_machine(void)
90 ep93xx_init_devices();
94 MACHINE_START(MICRO9M, "Contec Hypercontrol Micro9-M")
95 /* Maintainer: Manfred Gruber <manfred.gruber@contec.at> */
96 .phys_io = EP93XX_APB_PHYS_BASE,
97 .io_pg_offst = ((EP93XX_APB_VIRT_BASE) >> 18) & 0xfffc,
98 .boot_params = 0x00000100,
99 .map_io = ep93xx_map_io,
100 .init_irq = ep93xx_init_irq,
101 .timer = &ep93xx_timer,
102 .init_machine = micro9m_init_machine,
109 #ifdef CONFIG_MACH_MICRO9L
110 static void __init micro9l_init_machine(void)
112 ep93xx_init_devices();
116 MACHINE_START(MICRO9L, "Contec Hypercontrol Micro9-L")
117 /* Maintainer: Manfred Gruber <manfred.gruber@contec.at> */
118 .phys_io = EP93XX_APB_PHYS_BASE,
119 .io_pg_offst = ((EP93XX_APB_VIRT_BASE) >> 18) & 0xfffc,
120 .boot_params = 0x00000100,
121 .map_io = ep93xx_map_io,
122 .init_irq = ep93xx_init_irq,
123 .timer = &ep93xx_timer,
124 .init_machine = micro9l_init_machine,