blob: dc7d89d82d0cc45e5f8c16fc2c6fe804d46135e8 [file] [log] [blame]
Ajay Bhargav26749582011-08-04 21:26:02 +05301/*
2 * (C) Copyright 2011
3 * eInfochips Ltd. <www.einfochips.com>
4 * Written-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
5 *
6 * Based on Aspenite:
7 * (C) Copyright 2010
8 * Marvell Semiconductor <www.marvell.com>
9 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
10 * Contributor: Mahavir Jain <mjain@marvell.com>
11 *
12 * See file CREDITS for list of people who contributed to this
13 * project.
14 *
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License as
17 * published by the Free Software Foundation; either version 2 of
18 * the License, or (at your option) any later version.
19 *
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, write to the Free Software
27 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
28 * MA 02110-1301 USA
29 */
30
31#include <common.h>
32#include <mvmfp.h>
33#include <asm/arch/mfp.h>
34#include <asm/arch/armada100.h>
35
36DECLARE_GLOBAL_DATA_PTR;
37
38int board_early_init_f(void)
39{
40 u32 mfp_cfg[] = {
41 /* I2C */
42 MFP105_CI2C_SDA,
43 MFP106_CI2C_SCL,
44
45 /* Enable Console on UART3 */
46 MFPO8_UART3_TXD,
47 MFPO9_UART3_RXD,
48 MFP_EOC /*End of configuration*/
49 };
50 /* configure MFP's */
51 mfp_config(mfp_cfg);
52 return 0;
53}
54
55int board_init(void)
56{
57 /* arch number of Board */
58 gd->bd->bi_arch_number = MACH_TYPE_SHEEVAD;
59 /* adress of boot parameters */
60 gd->bd->bi_boot_params = armd1_sdram_base(0) + 0x100;
61 return 0;
62}