2009-12-15 10:32:02 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2006-2008
|
|
|
|
* Texas Instruments, <www.ti.com>
|
|
|
|
* Nishanth Menon <x0nishan@ti.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2008-06-05 17:45:43 +00:00
|
|
|
#include <common.h>
|
|
|
|
#include <console.h>
|
|
|
|
#include <init.h>
|
|
|
|
#include <driver.h>
|
2011-09-22 17:02:57 +00:00
|
|
|
#include <io.h>
|
2008-06-05 17:45:43 +00:00
|
|
|
#include <ns16550.h>
|
2009-12-09 09:34:41 +00:00
|
|
|
#include <asm/armlinux.h>
|
2012-12-18 14:22:32 +00:00
|
|
|
#include <mach/omap3-silicon.h>
|
2012-12-18 14:22:34 +00:00
|
|
|
#include <mach/omap3-devices.h>
|
2009-10-22 12:21:25 +00:00
|
|
|
#include <mach/gpmc.h>
|
2011-07-19 07:58:32 +00:00
|
|
|
#include <errno.h>
|
2008-06-05 17:45:43 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief UART serial port initialization - remember to enable COM clocks in arch
|
|
|
|
*
|
|
|
|
* @return result of device registration
|
|
|
|
*/
|
|
|
|
static int sdp3430_console_init(void)
|
|
|
|
{
|
2013-08-15 07:02:17 +00:00
|
|
|
barebox_set_model("Texas Instruments SDP343x");
|
|
|
|
barebox_set_hostname("sdp343x");
|
|
|
|
|
2012-12-18 14:22:34 +00:00
|
|
|
omap3_add_uart3();
|
2011-07-28 07:39:46 +00:00
|
|
|
|
|
|
|
return 0;
|
2008-06-05 17:45:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
console_initcall(sdp3430_console_init);
|
|
|
|
|
2011-07-29 09:43:48 +00:00
|
|
|
static int sdp3430_mem_init(void)
|
2008-09-11 15:26:16 +00:00
|
|
|
{
|
2013-01-24 18:55:40 +00:00
|
|
|
omap_add_ram0(SZ_128M);
|
2011-07-29 09:43:48 +00:00
|
|
|
|
2008-09-11 15:26:16 +00:00
|
|
|
return 0;
|
|
|
|
}
|
2011-07-29 09:43:48 +00:00
|
|
|
mem_initcall(sdp3430_mem_init);
|
2008-09-11 15:26:16 +00:00
|
|
|
|
2008-06-05 17:45:43 +00:00
|
|
|
static int sdp3430_devices_init(void)
|
|
|
|
{
|
2012-01-11 14:57:18 +00:00
|
|
|
#ifdef CONFIG_OMAP_GPMC
|
2011-07-29 09:43:48 +00:00
|
|
|
/* WP is made high and WAIT1 active Low */
|
|
|
|
gpmc_generic_init(0x10);
|
|
|
|
#endif
|
2008-09-11 15:26:16 +00:00
|
|
|
|
2011-07-29 09:43:48 +00:00
|
|
|
return 0;
|
2008-06-05 17:45:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
device_initcall(sdp3430_devices_init);
|