2 * linux/arch/arm/mach-omap/omap-perseus2.c
4 * Modified from omap-generic.c
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
11 #include <linux/kernel.h>
12 #include <linux/init.h>
13 #include <linux/device.h>
15 #include <asm/hardware.h>
16 #include <asm/mach/arch.h>
17 #include <asm/mach/map.h>
19 #include <asm/arch/clocks.h>
20 #include <asm/arch/gpio.h>
21 #include <asm/arch/mux.h>
23 #include <asm/arch/omap-perseus2.h>
27 void omap_perseus2_init_irq(void)
32 static struct resource smc91x_resources[] = {
34 .start = OMAP730_FPGA_ETHR_START, /* Physical */
35 .end = OMAP730_FPGA_ETHR_START + SZ_4K,
36 .flags = IORESOURCE_MEM,
45 static struct platform_device smc91x_device = {
48 .num_resources = ARRAY_SIZE(smc91x_resources),
49 .resource = smc91x_resources,
52 static struct platform_device *devices[] __initdata = {
56 static void __init omap_perseus2_init(void)
58 if (!machine_is_omap_perseus2())
61 (void) platform_add_devices(devices, ARRAY_SIZE(devices));
64 /* Only FPGA needs to be mapped here. All others are done with ioremap */
65 static struct map_desc omap_perseus2_io_desc[] __initdata = {
66 {OMAP730_FPGA_BASE, OMAP730_FPGA_START, OMAP730_FPGA_SIZE,
70 static void __init omap_perseus2_map_io(void)
73 iotable_init(omap_perseus2_io_desc,
74 ARRAY_SIZE(omap_perseus2_io_desc));
76 /* Early, board-dependent init */
79 * Hold GSM Reset until needed
84 * UARTs -> done automagically by 8250 driver
88 * CSx timings, GPIO Mux ... setup
91 /* Flash: CS0 timings setup */
92 *((volatile __u32 *) OMAP_FLASH_CFG_0) = 0x0000fff3;
93 *((volatile __u32 *) OMAP_FLASH_ACFG_0) = 0x00000088;
96 * Ethernet support trough the debug board
99 *((volatile __u32 *) OMAP_FLASH_CFG_1) = 0x0000fff3;
100 *((volatile __u32 *) OMAP_FLASH_ACFG_1) = 0x00000000;
103 * Configure MPU_EXT_NIRQ IO in IO_CONF9 register,
104 * It is used as the Ethernet controller interrupt
106 *((volatile __u32 *) PERSEUS2_IO_CONF_9) &= 0x1FFFFFFF;
109 MACHINE_START(OMAP_PERSEUS2, "OMAP730 Perseus2")
110 MAINTAINER("Kevin Hilman <k-hilman@ti.com>")
111 BOOT_MEM(0x10000000, 0xe0000000, 0xe0000000)
112 BOOT_PARAMS(0x10000100)
113 MAPIO(omap_perseus2_map_io)
114 INITIRQ(omap_perseus2_init_irq)
115 INIT_MACHINE(omap_perseus2_init)