blob: 653c1b5abb1978f6a2b3aff1f6b6c8c61e34f525 [file] [log] [blame]
Enric Balletbo i Serra1a832dc2010-10-14 16:57:39 -04001/*
2 * (C) Copyright 2010
3 * ISEE 2007 SL, <www.iseebcn.com>
4 *
5 * See file CREDITS for list of people who contributed to this
6 * project.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 * MA 02111-1307 USA
22 */
23#include <common.h>
24#include <twl4030.h>
25#include <asm/io.h>
26#include <asm/arch/mem.h>
Enric Balletbo i Serraac657c42010-11-04 15:34:37 -040027#include <asm/arch/mmc_host_def.h>
Enric Balletbo i Serra1a832dc2010-10-14 16:57:39 -040028#include <asm/arch/mux.h>
29#include <asm/arch/sys_proto.h>
30#include <asm/mach-types.h>
31#include "igep0030.h"
32
John Rigby29565322010-12-20 18:27:51 -070033DECLARE_GLOBAL_DATA_PTR;
34
Enric Balletbo i Serra1a832dc2010-10-14 16:57:39 -040035/*
36 * Routine: board_init
37 * Description: Early hardware init.
38 */
39int board_init(void)
40{
Enric Balletbo i Serra1a832dc2010-10-14 16:57:39 -040041 gpmc_init(); /* in SRAM or SDRAM, finish GPMC */
Enric Balletbo i Serra1a832dc2010-10-14 16:57:39 -040042 /* boot param addr */
43 gd->bd->bi_boot_params = (OMAP34XX_SDRC_CS0 + 0x100);
44
45 return 0;
46}
47
Enric Balletbo i Serraac657c42010-11-04 15:34:37 -040048#ifdef CONFIG_GENERIC_MMC
49int board_mmc_init(bd_t *bis)
50{
Jonathan Solnitbbbc1ae2012-02-24 11:30:18 +000051 omap_mmc_init(0, 0, 0);
Enric Balletbo i Serraac657c42010-11-04 15:34:37 -040052 return 0;
53}
54#endif
55
Enric Balletbo i Serra1a832dc2010-10-14 16:57:39 -040056/*
57 * Routine: misc_init_r
58 * Description: Configure board specific parts
59 */
60int misc_init_r(void)
61{
62 twl4030_power_init();
63
64 dieid_num_r();
65
66 return 0;
67}
68
69/*
70 * Routine: set_muxconf_regs
71 * Description: Setting up the configuration Mux registers specific to the
72 * hardware. Many pins need to be moved from protect to primary
73 * mode.
74 */
75void set_muxconf_regs(void)
76{
77 MUX_DEFAULT();
78}