2 * linux/arch/arm/mach-omap/board-osk.c
4 * Board specific init for OMAP5912 OSK
6 * Written by Dirk Behme <dirk.behme@de.bosch.com>
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2 of the License, or (at your
11 * option) any later version.
13 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
14 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
15 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
16 * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
19 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
20 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 * You should have received a copy of the GNU General Public License along
25 * with this program; if not, write to the Free Software Foundation, Inc.,
26 * 675 Mass Ave, Cambridge, MA 02139, USA.
29 #include <linux/kernel.h>
30 #include <linux/init.h>
31 #include <linux/device.h>
33 #include <asm/hardware.h>
34 #include <asm/mach-types.h>
35 #include <asm/mach/arch.h>
36 #include <asm/mach/map.h>
38 #include <asm/arch/clocks.h>
39 #include <asm/arch/gpio.h>
40 #include <asm/arch/fpga.h>
44 static struct map_desc osk5912_io_desc[] __initdata = {
45 { OMAP_OSK_ETHR_BASE, OMAP_OSK_ETHR_START, OMAP_OSK_ETHR_SIZE,MT_DEVICE },
46 { OMAP_OSK_NOR_FLASH_BASE, OMAP_OSK_NOR_FLASH_START, OMAP_OSK_NOR_FLASH_SIZE,
50 static struct resource osk5912_smc91x_resources[] = {
52 .start = OMAP_OSK_ETHR_START, /* Physical */
53 .end = OMAP_OSK_ETHR_START + SZ_4K,
54 .flags = IORESOURCE_MEM,
57 .start = 0, /* Really GPIO 0 */
59 .flags = IORESOURCE_IRQ,
63 static struct platform_device osk5912_smc91x_device = {
66 .num_resources = ARRAY_SIZE(osk5912_smc91x_resources),
67 .resource = osk5912_smc91x_resources,
70 static struct platform_device *osk5912_devices[] __initdata = {
71 &osk5912_smc91x_device,
74 void osk_init_irq(void)
79 static void __init osk_init(void)
81 platform_add_devices(osk5912_devices, ARRAY_SIZE(osk5912_devices));
84 static void __init osk_map_io(void)
87 iotable_init(osk5912_io_desc, ARRAY_SIZE(osk5912_io_desc));
91 MACHINE_START(OMAP_OSK, "TI-OSK")
92 MAINTAINER("Dirk Behme <dirk.behme@de.bosch.com>")
93 BOOT_MEM(0x10000000, 0xfff00000, 0xfef00000)
94 BOOT_PARAMS(0x10000100)
97 INITTIME(omap_init_time)
98 INIT_MACHINE(osk_init)