Prafulla Wadaskar | f22f8d6 | 2010-11-29 17:01:27 +0530 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2010 |
| 3 | * Marvell Semiconductor <www.marvell.com> |
| 4 | * Written-by: Prafulla Wadaskar <prafulla@marvell.com> |
| 5 | * Contributor: Mahavir Jain <mjain@marvell.com> |
| 6 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
Prafulla Wadaskar | f22f8d6 | 2010-11-29 17:01:27 +0530 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #include <common.h> |
| 11 | #include <mvmfp.h> |
Simon Glass | 0ffb9d6 | 2017-05-31 19:47:48 -0600 | [diff] [blame] | 12 | #include <asm/mach-types.h> |
Lei Wen | 35b130c | 2011-10-18 19:50:48 +0530 | [diff] [blame] | 13 | #include <asm/arch/cpu.h> |
Prafulla Wadaskar | f22f8d6 | 2010-11-29 17:01:27 +0530 | [diff] [blame] | 14 | #include <asm/arch/mfp.h> |
| 15 | #include <asm/arch/armada100.h> |
| 16 | |
| 17 | DECLARE_GLOBAL_DATA_PTR; |
| 18 | |
| 19 | int board_early_init_f(void) |
| 20 | { |
| 21 | u32 mfp_cfg[] = { |
Lei Wen | d455ca6 | 2011-04-13 23:48:44 +0530 | [diff] [blame] | 22 | /* I2C */ |
| 23 | MFP105_CI2C_SDA, |
| 24 | MFP106_CI2C_SCL, |
| 25 | |
Prafulla Wadaskar | f22f8d6 | 2010-11-29 17:01:27 +0530 | [diff] [blame] | 26 | /* Enable Console on UART1 */ |
| 27 | MFP107_UART1_RXD, |
| 28 | MFP108_UART1_TXD, |
Lei Wen | d455ca6 | 2011-04-13 23:48:44 +0530 | [diff] [blame] | 29 | |
Prafulla Wadaskar | f22f8d6 | 2010-11-29 17:01:27 +0530 | [diff] [blame] | 30 | MFP_EOC /*End of configureation*/ |
| 31 | }; |
| 32 | /* configure MFP's */ |
| 33 | mfp_config(mfp_cfg); |
| 34 | return 0; |
| 35 | } |
| 36 | |
| 37 | int 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 | } |