blob: 809b77b642f1c836fa89ca45a28820627fc41135 [file] [log] [blame]
Dirk Behme220faba2009-01-28 21:39:57 +01001/*
2 * Maintainer : Steve Sakoman <steve@sakoman.com>
3 *
4 * Derived from Beagle Board, 3430 SDP, and OMAP3EVM code by
5 * Richard Woodruff <r-woodruff2@ti.com>
6 * Syed Mohammed Khasim <khasim@ti.com>
7 * Sunil Kumar <sunilsaini05@gmail.com>
8 * Shashi Ranjan <shashiranjanmca05@gmail.com>
9 *
10 * (C) Copyright 2004-2008
11 * Texas Instruments, <www.ti.com>
12 *
13 * See file CREDITS for list of people who contributed to this
14 * project.
15 *
16 * This program is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU General Public License as
18 * published by the Free Software Foundation; either version 2 of
19 * the License, or (at your option) any later version.
20 *
21 * This program is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
25 *
26 * You should have received a copy of the GNU General Public License
27 * along with this program; if not, write to the Free Software
28 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
29 * MA 02111-1307 USA
30 */
31#include <common.h>
32#include <asm/io.h>
33#include <asm/arch/mux.h>
34#include <asm/arch/sys_proto.h>
35#include <asm/mach-types.h>
36#include "overo.h"
37
Tom Rix558bb832009-04-01 22:02:20 -050038/*
Dirk Behme220faba2009-01-28 21:39:57 +010039 * Routine: board_init
40 * Description: Early hardware init.
Tom Rix558bb832009-04-01 22:02:20 -050041 */
Dirk Behme220faba2009-01-28 21:39:57 +010042int board_init(void)
43{
44 DECLARE_GLOBAL_DATA_PTR;
45
46 gpmc_init(); /* in SRAM or SDRAM, finish GPMC */
47 /* board id for Linux */
48 gd->bd->bi_arch_number = MACH_TYPE_OVERO;
49 /* boot param addr */
50 gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 + 0x100);
51
52 return 0;
53}
54
Tom Rix558bb832009-04-01 22:02:20 -050055/*
Dirk Behme220faba2009-01-28 21:39:57 +010056 * Routine: misc_init_r
57 * Description: Configure board specific parts
Tom Rix558bb832009-04-01 22:02:20 -050058 */
Dirk Behme220faba2009-01-28 21:39:57 +010059int misc_init_r(void)
60{
Dirk Behme220faba2009-01-28 21:39:57 +010061 power_init_r();
62
Dirk Behme12dbcf62009-03-12 19:30:50 +010063 dieid_num_r();
64
Dirk Behme220faba2009-01-28 21:39:57 +010065 return 0;
66}
67
Tom Rix558bb832009-04-01 22:02:20 -050068/*
Dirk Behme220faba2009-01-28 21:39:57 +010069 * Routine: set_muxconf_regs
70 * Description: Setting up the configuration Mux registers specific to the
71 * hardware. Many pins need to be moved from protect to primary
72 * mode.
Tom Rix558bb832009-04-01 22:02:20 -050073 */
Dirk Behme220faba2009-01-28 21:39:57 +010074void set_muxconf_regs(void)
75{
76 MUX_OVERO();
77}