blob: 1f9389c0a7abeeddb0ecf3a3903a43a2c14cf76c [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Prafulla Wadaskarf22f8d62010-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 Wadaskarf22f8d62010-11-29 17:01:27 +05307 */
8
9#include <common.h>
Simon Glass97589732020-05-10 11:40:02 -060010#include <init.h>
Prafulla Wadaskarf22f8d62010-11-29 17:01:27 +053011#include <mvmfp.h>
Simon Glass3ba929a2020-10-30 21:38:53 -060012#include <asm/global_data.h>
Simon Glass0ffb9d62017-05-31 19:47:48 -060013#include <asm/mach-types.h>
Lei Wen35b130c2011-10-18 19:50:48 +053014#include <asm/arch/cpu.h>
Prafulla Wadaskarf22f8d62010-11-29 17:01:27 +053015#include <asm/arch/mfp.h>
16#include <asm/arch/armada100.h>
17
18DECLARE_GLOBAL_DATA_PTR;
19
20int board_early_init_f(void)
21{
22 u32 mfp_cfg[] = {
Lei Wend455ca62011-04-13 23:48:44 +053023 /* I2C */
24 MFP105_CI2C_SDA,
25 MFP106_CI2C_SCL,
26
Prafulla Wadaskarf22f8d62010-11-29 17:01:27 +053027 /* Enable Console on UART1 */
28 MFP107_UART1_RXD,
29 MFP108_UART1_TXD,
Lei Wend455ca62011-04-13 23:48:44 +053030
Prafulla Wadaskarf22f8d62010-11-29 17:01:27 +053031 MFP_EOC /*End of configureation*/
32 };
33 /* configure MFP's */
34 mfp_config(mfp_cfg);
35 return 0;
36}
37
38int board_init(void)
39{
40 /* arch number of Board */
41 gd->bd->bi_arch_number = MACH_TYPE_ASPENITE;
42 /* adress of boot parameters */
43 gd->bd->bi_boot_params = armd1_sdram_base(0) + 0x100;
44 return 0;
45}