2 * linux/arch/arm/mach-omap/board-perseus2.c
4 * Modified from board-generic.c
6 * Original OMAP730 support by Jean Pihet <j-pihet@ti.com>
7 * Updated for 2.6 by Kevin Hilman <kjh@hilman.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
14 #include <linux/kernel.h>
15 #include <linux/init.h>
16 #include <linux/device.h>
18 #include <asm/hardware.h>
19 #include <asm/mach-types.h>
20 #include <asm/mach/arch.h>
21 #include <asm/mach/map.h>
23 #include <asm/arch/clocks.h>
24 #include <asm/arch/gpio.h>
25 #include <asm/arch/mux.h>
29 void omap_perseus2_init_irq(void)
34 static struct resource smc91x_resources[] = {
36 .start = OMAP730_FPGA_ETHR_START, /* Physical */
37 .end = OMAP730_FPGA_ETHR_START + SZ_4K,
38 .flags = IORESOURCE_MEM,
47 static struct platform_device smc91x_device = {
50 .num_resources = ARRAY_SIZE(smc91x_resources),
51 .resource = smc91x_resources,
54 static struct platform_device *devices[] __initdata = {
58 static void __init omap_perseus2_init(void)
60 (void) platform_add_devices(devices, ARRAY_SIZE(devices));
63 /* Only FPGA needs to be mapped here. All others are done with ioremap */
64 static struct map_desc omap_perseus2_io_desc[] __initdata = {
65 {OMAP730_FPGA_BASE, OMAP730_FPGA_START, OMAP730_FPGA_SIZE,
69 static void __init omap_perseus2_map_io(void)
72 iotable_init(omap_perseus2_io_desc,
73 ARRAY_SIZE(omap_perseus2_io_desc));
75 /* Early, board-dependent init */
78 * Hold GSM Reset until needed
80 omap_writew(omap_readw(OMAP730_DSP_M_CTL) & ~1, OMAP730_DSP_M_CTL);
83 * UARTs -> done automagically by 8250 driver
87 * CSx timings, GPIO Mux ... setup
90 /* Flash: CS0 timings setup */
91 omap_writel(0x0000fff3, OMAP730_FLASH_CFG_0);
92 omap_writel(0x00000088, OMAP730_FLASH_ACFG_0);
95 * Ethernet support trough the debug board
98 omap_writel(0x0000fff3, OMAP730_FLASH_CFG_1);
99 omap_writel(0x00000000, OMAP730_FLASH_ACFG_1);
102 * Configure MPU_EXT_NIRQ IO in IO_CONF9 register,
103 * It is used as the Ethernet controller interrupt
105 omap_writel(omap_readl(OMAP730_IO_CONF_9) & 0x1FFFFFFF, OMAP730_IO_CONF_9);
108 MACHINE_START(OMAP_PERSEUS2, "OMAP730 Perseus2")
109 MAINTAINER("Kevin Hilman <kjh@hilman.org>")
110 BOOT_MEM(0x10000000, 0xfff00000, 0xfef00000)
111 BOOT_PARAMS(0x10000100)
112 MAPIO(omap_perseus2_map_io)
113 INITIRQ(omap_perseus2_init_irq)
114 INITTIME(omap_init_time)
115 INIT_MACHINE(omap_perseus2_init)