1 // SPDX-License-Identifier: GPL-2.0+ 2 /* 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> 7 */ 8 9 #include <common.h> 10 #include <init.h> 11 #include <mvmfp.h> 12 #include <asm/global_data.h> 13 #include <asm/mach-types.h> 14 #include <asm/arch/cpu.h> 15 #include <asm/arch/mfp.h> 16 #include <asm/arch/armada100.h> 17 18 DECLARE_GLOBAL_DATA_PTR; 19 board_early_init_f(void)20int board_early_init_f(void) 21 { 22 u32 mfp_cfg[] = { 23 /* I2C */ 24 MFP105_CI2C_SDA, 25 MFP106_CI2C_SCL, 26 27 /* Enable Console on UART1 */ 28 MFP107_UART1_RXD, 29 MFP108_UART1_TXD, 30 31 MFP_EOC /*End of configureation*/ 32 }; 33 /* configure MFP's */ 34 mfp_config(mfp_cfg); 35 return 0; 36 } 37 board_init(void)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 } 46