2 * Board support file for OMAP4430 SDP.
4 * Copyright (C) 2009 Texas Instruments
6 * Author: Santosh Shilimkar <santosh.shilimkar@ti.com>
8 * Based on mach-omap2/board-3430sdp.c
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
15 #include <linux/kernel.h>
16 #include <linux/init.h>
17 #include <linux/platform_device.h>
19 #include <linux/gpio.h>
20 #include <linux/usb/otg.h>
22 #include <mach/hardware.h>
23 #include <asm/mach-types.h>
24 #include <asm/mach/arch.h>
25 #include <asm/mach/map.h>
27 #include <plat/board.h>
28 #include <plat/common.h>
29 #include <plat/control.h>
30 #include <plat/timer-gp.h>
32 #include <asm/hardware/gic.h>
34 static struct platform_device sdp4430_lcd_device = {
35 .name = "sdp4430_lcd",
39 static struct platform_device *sdp4430_devices[] __initdata = {
43 static struct omap_lcd_config sdp4430_lcd_config __initdata = {
44 .ctrl_name = "internal",
47 static struct omap_board_config_kernel sdp4430_config[] __initdata = {
48 { OMAP_TAG_LCD, &sdp4430_lcd_config },
51 static void __init gic_init_irq(void)
55 /* Static mapping, never released */
56 base = ioremap(OMAP44XX_GIC_DIST_BASE, SZ_4K);
58 gic_dist_init(0, base, 29);
60 /* Static mapping, never released */
61 gic_cpu_base_addr = ioremap(OMAP44XX_GIC_CPU_BASE, SZ_512);
62 BUG_ON(!gic_cpu_base_addr);
63 gic_cpu_init(0, gic_cpu_base_addr);
66 static void __init omap_4430sdp_init_irq(void)
68 omap_board_config = sdp4430_config;
69 omap_board_config_size = ARRAY_SIZE(sdp4430_config);
70 omap2_init_common_hw(NULL, NULL);
71 #ifdef CONFIG_OMAP_32K_TIMER
72 omap2_gp_clockevent_set_gptimer(1);
78 static struct omap_musb_board_data musb_board_data = {
79 .interface_type = MUSB_INTERFACE_UTMI,
80 .mode = MUSB_PERIPHERAL,
84 static void __init omap_4430sdp_init(void)
86 platform_add_devices(sdp4430_devices, ARRAY_SIZE(sdp4430_devices));
88 /* OMAP4 SDP uses internal transceiver so register nop transceiver */
89 usb_nop_xceiv_register();
90 /* FIXME: allow multi-omap to boot until musb is updated for omap4 */
91 if (!cpu_is_omap44xx())
92 usb_musb_init(&musb_board_data);
95 static void __init omap_4430sdp_map_io(void)
97 omap2_set_globals_443x();
98 omap44xx_map_common_io();
101 MACHINE_START(OMAP_4430SDP, "OMAP4430 4430SDP board")
102 /* Maintainer: Santosh Shilimkar - Texas Instruments Inc */
103 .phys_io = 0x48000000,
104 .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc,
105 .boot_params = 0x80000100,
106 .map_io = omap_4430sdp_map_io,
107 .init_irq = omap_4430sdp_init_irq,
108 .init_machine = omap_4430sdp_init,
109 .timer = &omap_timer,