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>
21 #include <mach/hardware.h>
22 #include <asm/mach-types.h>
23 #include <asm/mach/arch.h>
24 #include <asm/mach/map.h>
26 #include <mach/board.h>
27 #include <mach/common.h>
28 #include <mach/control.h>
29 #include <mach/timer-gp.h>
30 #include <asm/hardware/gic.h>
32 static struct platform_device sdp4430_lcd_device
= {
33 .name
= "sdp4430_lcd",
37 static struct platform_device
*sdp4430_devices
[] __initdata
= {
41 static struct omap_uart_config sdp4430_uart_config __initdata
= {
42 .enabled_uarts
= (1 << 0) | (1 << 1) | (1 << 2),
45 static struct omap_lcd_config sdp4430_lcd_config __initdata
= {
46 .ctrl_name
= "internal",
49 static struct omap_board_config_kernel sdp4430_config
[] __initdata
= {
50 { OMAP_TAG_UART
, &sdp4430_uart_config
},
51 { OMAP_TAG_LCD
, &sdp4430_lcd_config
},
54 static void __init
gic_init_irq(void)
56 gic_dist_init(0, IO_ADDRESS(OMAP44XX_GIC_DIST_BASE
), 29);
57 gic_cpu_init(0, IO_ADDRESS(OMAP44XX_GIC_CPU_BASE
));
60 static void __init
omap_4430sdp_init_irq(void)
62 omap2_init_common_hw(NULL
);
63 #ifdef CONFIG_OMAP_32K_TIMER
64 omap2_gp_clockevent_set_gptimer(1);
71 static void __init
omap_4430sdp_init(void)
73 platform_add_devices(sdp4430_devices
, ARRAY_SIZE(sdp4430_devices
));
74 omap_board_config
= sdp4430_config
;
75 omap_board_config_size
= ARRAY_SIZE(sdp4430_config
);
79 static void __init
omap_4430sdp_map_io(void)
81 omap2_set_globals_443x();
82 omap2_map_common_io();
85 MACHINE_START(OMAP_4430SDP
, "OMAP4430 4430SDP board")
86 /* Maintainer: Santosh Shilimkar - Texas Instruments Inc */
87 .phys_io
= 0x48000000,
88 .io_pg_offst
= ((0xd8000000) >> 18) & 0xfffc,
89 .boot_params
= 0x80000100,
90 .map_io
= omap_4430sdp_map_io
,
91 .init_irq
= omap_4430sdp_init_irq
,
92 .init_machine
= omap_4430sdp_init
,