blob: c1406d7489cf42e8bb20aabe30afb1400dfdca17 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Prafulla Wadaskarc291e2f2010-11-29 17:01:27 +05302/*
3 * (C) Copyright 2010
4 * Marvell Semiconductor <www.marvell.com>
5 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
6 * Contributor: Mahavir Jain <mjain@marvell.com>
Prafulla Wadaskarc291e2f2010-11-29 17:01:27 +05307 */
8
9#include <common.h>
Simon Glass691d7192020-05-10 11:40:02 -060010#include <init.h>
Prafulla Wadaskarc291e2f2010-11-29 17:01:27 +053011#include <mvmfp.h>
Simon Glassc62db352017-05-31 19:47:48 -060012#include <asm/mach-types.h>
Lei Wenab1b9552011-10-18 19:50:48 +053013#include <asm/arch/cpu.h>
Prafulla Wadaskarc291e2f2010-11-29 17:01:27 +053014#include <asm/arch/mfp.h>
15#include <asm/arch/armada100.h>
16
17DECLARE_GLOBAL_DATA_PTR;
18
19int board_early_init_f(void)
20{
21 u32 mfp_cfg[] = {
Lei Wen81a9ab22011-04-13 23:48:44 +053022 /* I2C */
23 MFP105_CI2C_SDA,
24 MFP106_CI2C_SCL,
25
Prafulla Wadaskarc291e2f2010-11-29 17:01:27 +053026 /* Enable Console on UART1 */
27 MFP107_UART1_RXD,
28 MFP108_UART1_TXD,
Lei Wen81a9ab22011-04-13 23:48:44 +053029
Prafulla Wadaskarc291e2f2010-11-29 17:01:27 +053030 MFP_EOC /*End of configureation*/
31 };
32 /* configure MFP's */
33 mfp_config(mfp_cfg);
34 return 0;
35}
36
37int board_init(void)
38{
39 /* arch number of Board */
40 gd->bd->bi_arch_number = MACH_TYPE_ASPENITE;
41 /* adress of boot parameters */
42 gd->bd->bi_boot_params = armd1_sdram_base(0) + 0x100;
43 return 0;
44}