2009-05-29 05:16:05 +08:00
|
|
|
/*
|
|
|
|
* Board support file for OMAP4430 SDP.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2009 Texas Instruments
|
|
|
|
*
|
|
|
|
* Author: Santosh Shilimkar <santosh.shilimkar@ti.com>
|
|
|
|
*
|
|
|
|
* Based on mach-omap2/board-3430sdp.c
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
#include <linux/init.h>
|
|
|
|
#include <linux/platform_device.h>
|
|
|
|
#include <linux/io.h>
|
|
|
|
#include <linux/gpio.h>
|
|
|
|
|
|
|
|
#include <mach/hardware.h>
|
|
|
|
#include <asm/mach-types.h>
|
|
|
|
#include <asm/mach/arch.h>
|
|
|
|
#include <asm/mach/map.h>
|
|
|
|
|
2009-10-21 00:40:47 +08:00
|
|
|
#include <plat/board.h>
|
|
|
|
#include <plat/common.h>
|
|
|
|
#include <plat/control.h>
|
|
|
|
#include <plat/timer-gp.h>
|
2009-05-29 05:16:05 +08:00
|
|
|
#include <asm/hardware/gic.h>
|
|
|
|
|
|
|
|
static struct platform_device sdp4430_lcd_device = {
|
|
|
|
.name = "sdp4430_lcd",
|
|
|
|
.id = -1,
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct platform_device *sdp4430_devices[] __initdata = {
|
|
|
|
&sdp4430_lcd_device,
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct omap_uart_config sdp4430_uart_config __initdata = {
|
2009-07-28 21:27:22 +08:00
|
|
|
.enabled_uarts = (1 << 0) | (1 << 1) | (1 << 2) | (1 << 3),
|
2009-05-29 05:16:05 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
static struct omap_lcd_config sdp4430_lcd_config __initdata = {
|
|
|
|
.ctrl_name = "internal",
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct omap_board_config_kernel sdp4430_config[] __initdata = {
|
|
|
|
{ OMAP_TAG_LCD, &sdp4430_lcd_config },
|
|
|
|
};
|
|
|
|
|
|
|
|
static void __init gic_init_irq(void)
|
|
|
|
{
|
2009-10-20 06:25:26 +08:00
|
|
|
void __iomem *base;
|
|
|
|
|
|
|
|
/* Static mapping, never released */
|
|
|
|
base = ioremap(OMAP44XX_GIC_DIST_BASE, SZ_4K);
|
|
|
|
BUG_ON(!base);
|
|
|
|
gic_dist_init(0, base, 29);
|
|
|
|
|
|
|
|
/* Static mapping, never released */
|
|
|
|
gic_cpu_base_addr = ioremap(OMAP44XX_GIC_CPU_BASE, SZ_512);
|
|
|
|
BUG_ON(!gic_cpu_base_addr);
|
|
|
|
gic_cpu_init(0, gic_cpu_base_addr);
|
2009-05-29 05:16:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
static void __init omap_4430sdp_init_irq(void)
|
|
|
|
{
|
2009-10-23 05:48:14 +08:00
|
|
|
omap_board_config = sdp4430_config;
|
|
|
|
omap_board_config_size = ARRAY_SIZE(sdp4430_config);
|
2009-07-25 09:43:25 +08:00
|
|
|
omap2_init_common_hw(NULL, NULL);
|
2009-05-29 05:16:05 +08:00
|
|
|
#ifdef CONFIG_OMAP_32K_TIMER
|
|
|
|
omap2_gp_clockevent_set_gptimer(1);
|
|
|
|
#endif
|
|
|
|
gic_init_irq();
|
|
|
|
omap_gpio_init();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void __init omap_4430sdp_init(void)
|
|
|
|
{
|
|
|
|
platform_add_devices(sdp4430_devices, ARRAY_SIZE(sdp4430_devices));
|
|
|
|
omap_serial_init();
|
|
|
|
}
|
|
|
|
|
|
|
|
static void __init omap_4430sdp_map_io(void)
|
|
|
|
{
|
|
|
|
omap2_set_globals_443x();
|
|
|
|
omap2_map_common_io();
|
|
|
|
}
|
|
|
|
|
|
|
|
MACHINE_START(OMAP_4430SDP, "OMAP4430 4430SDP board")
|
|
|
|
/* Maintainer: Santosh Shilimkar - Texas Instruments Inc */
|
|
|
|
.phys_io = 0x48000000,
|
2009-10-20 08:25:55 +08:00
|
|
|
.io_pg_offst = ((0xfa000000) >> 18) & 0xfffc,
|
2009-05-29 05:16:05 +08:00
|
|
|
.boot_params = 0x80000100,
|
|
|
|
.map_io = omap_4430sdp_map_io,
|
|
|
|
.init_irq = omap_4430sdp_init_irq,
|
|
|
|
.init_machine = omap_4430sdp_init,
|
|
|
|
.timer = &omap_timer,
|
|
|
|
MACHINE_END
|