Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Prafulla Wadaskar | c291e2f | 2010-11-29 17:01:27 +0530 | [diff] [blame] | 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> |
Prafulla Wadaskar | c291e2f | 2010-11-29 17:01:27 +0530 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #include <common.h> |
| 10 | #include <mvmfp.h> |
Simon Glass | c62db35 | 2017-05-31 19:47:48 -0600 | [diff] [blame] | 11 | #include <asm/mach-types.h> |
Lei Wen | ab1b955 | 2011-10-18 19:50:48 +0530 | [diff] [blame] | 12 | #include <asm/arch/cpu.h> |
Prafulla Wadaskar | c291e2f | 2010-11-29 17:01:27 +0530 | [diff] [blame] | 13 | #include <asm/arch/mfp.h> |
| 14 | #include <asm/arch/armada100.h> |
| 15 | |
| 16 | DECLARE_GLOBAL_DATA_PTR; |
| 17 | |
| 18 | int board_early_init_f(void) |
| 19 | { |
| 20 | u32 mfp_cfg[] = { |
Lei Wen | 81a9ab2 | 2011-04-13 23:48:44 +0530 | [diff] [blame] | 21 | /* I2C */ |
| 22 | MFP105_CI2C_SDA, |
| 23 | MFP106_CI2C_SCL, |
| 24 | |
Prafulla Wadaskar | c291e2f | 2010-11-29 17:01:27 +0530 | [diff] [blame] | 25 | /* Enable Console on UART1 */ |
| 26 | MFP107_UART1_RXD, |
| 27 | MFP108_UART1_TXD, |
Lei Wen | 81a9ab2 | 2011-04-13 23:48:44 +0530 | [diff] [blame] | 28 | |
Prafulla Wadaskar | c291e2f | 2010-11-29 17:01:27 +0530 | [diff] [blame] | 29 | MFP_EOC /*End of configureation*/ |
| 30 | }; |
| 31 | /* configure MFP's */ |
| 32 | mfp_config(mfp_cfg); |
| 33 | return 0; |
| 34 | } |
| 35 | |
| 36 | int board_init(void) |
| 37 | { |
| 38 | /* arch number of Board */ |
| 39 | gd->bd->bi_arch_number = MACH_TYPE_ASPENITE; |
| 40 | /* adress of boot parameters */ |
| 41 | gd->bd->bi_boot_params = armd1_sdram_base(0) + 0x100; |
| 42 | return 0; |
| 43 | } |