blob: 609a5a4a7e292ef66c134c84aa86a188a201c98d [file] [log] [blame]
Santosh Shilimkar46ba0ab2009-05-28 14:16:05 -07001/*
2 * Board support file for OMAP4430 SDP.
3 *
4 * Copyright (C) 2009 Texas Instruments
5 *
6 * Author: Santosh Shilimkar <santosh.shilimkar@ti.com>
7 *
8 * Based on mach-omap2/board-3430sdp.c
9 *
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.
13 */
14
15#include <linux/kernel.h>
16#include <linux/init.h>
17#include <linux/platform_device.h>
18#include <linux/io.h>
19#include <linux/gpio.h>
20
21#include <mach/hardware.h>
22#include <asm/mach-types.h>
23#include <asm/mach/arch.h>
24#include <asm/mach/map.h>
25
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>
31
32static struct platform_device sdp4430_lcd_device = {
33 .name = "sdp4430_lcd",
34 .id = -1,
35};
36
37static struct platform_device *sdp4430_devices[] __initdata = {
38 &sdp4430_lcd_device,
39};
40
41static struct omap_uart_config sdp4430_uart_config __initdata = {
Syed Rafiuddin085b54d2009-07-28 18:57:22 +053042 .enabled_uarts = (1 << 0) | (1 << 1) | (1 << 2) | (1 << 3),
Santosh Shilimkar46ba0ab2009-05-28 14:16:05 -070043};
44
45static struct omap_lcd_config sdp4430_lcd_config __initdata = {
46 .ctrl_name = "internal",
47};
48
49static struct omap_board_config_kernel sdp4430_config[] __initdata = {
Santosh Shilimkar46ba0ab2009-05-28 14:16:05 -070050 { OMAP_TAG_LCD, &sdp4430_lcd_config },
51};
52
53static void __init gic_init_irq(void)
54{
Tony Lindgren94113262009-08-28 10:50:33 -070055 gic_dist_init(0, OMAP2_IO_ADDRESS(OMAP44XX_GIC_DIST_BASE), 29);
56 gic_cpu_init(0, OMAP2_IO_ADDRESS(OMAP44XX_GIC_CPU_BASE));
Santosh Shilimkar46ba0ab2009-05-28 14:16:05 -070057}
58
59static void __init omap_4430sdp_init_irq(void)
60{
Santosh Shilimkar5b7815b2009-10-22 14:48:14 -070061 omap_board_config = sdp4430_config;
62 omap_board_config_size = ARRAY_SIZE(sdp4430_config);
Jean Pihet58cda882009-07-24 19:43:25 -060063 omap2_init_common_hw(NULL, NULL);
Santosh Shilimkar46ba0ab2009-05-28 14:16:05 -070064#ifdef CONFIG_OMAP_32K_TIMER
65 omap2_gp_clockevent_set_gptimer(1);
66#endif
67 gic_init_irq();
68 omap_gpio_init();
69}
70
71
72static void __init omap_4430sdp_init(void)
73{
74 platform_add_devices(sdp4430_devices, ARRAY_SIZE(sdp4430_devices));
Santosh Shilimkar46ba0ab2009-05-28 14:16:05 -070075 omap_serial_init();
76}
77
78static void __init omap_4430sdp_map_io(void)
79{
80 omap2_set_globals_443x();
81 omap2_map_common_io();
82}
83
84MACHINE_START(OMAP_4430SDP, "OMAP4430 4430SDP board")
85 /* Maintainer: Santosh Shilimkar - Texas Instruments Inc */
86 .phys_io = 0x48000000,
87 .io_pg_offst = ((0xd8000000) >> 18) & 0xfffc,
88 .boot_params = 0x80000100,
89 .map_io = omap_4430sdp_map_io,
90 .init_irq = omap_4430sdp_init_irq,
91 .init_machine = omap_4430sdp_init,
92 .timer = &omap_timer,
93MACHINE_END