diff options
author | Yang Zhang <yang.z.zhang@intel.com> | 2015-08-28 09:58:54 +0800 |
---|---|---|
committer | Yang Zhang <yang.z.zhang@intel.com> | 2015-09-01 12:44:00 +0800 |
commit | e44e3482bdb4d0ebde2d8b41830ac2cdb07948fb (patch) | |
tree | 66b09f592c55df2878107a468a91d21506104d3f /qemu/roms/u-boot/board/Marvell/aspenite | |
parent | 9ca8dbcc65cfc63d6f5ef3312a33184e1d726e00 (diff) |
Add qemu 2.4.0
Change-Id: Ic99cbad4b61f8b127b7dc74d04576c0bcbaaf4f5
Signed-off-by: Yang Zhang <yang.z.zhang@intel.com>
Diffstat (limited to 'qemu/roms/u-boot/board/Marvell/aspenite')
-rw-r--r-- | qemu/roms/u-boot/board/Marvell/aspenite/Makefile | 10 | ||||
-rw-r--r-- | qemu/roms/u-boot/board/Marvell/aspenite/aspenite.c | 43 |
2 files changed, 53 insertions, 0 deletions
diff --git a/qemu/roms/u-boot/board/Marvell/aspenite/Makefile b/qemu/roms/u-boot/board/Marvell/aspenite/Makefile new file mode 100644 index 000000000..726d0e43d --- /dev/null +++ b/qemu/roms/u-boot/board/Marvell/aspenite/Makefile @@ -0,0 +1,10 @@ +# +# (C) Copyright 2010 +# Marvell Semiconductor <www.marvell.com> +# Written-by: Prafulla Wadaskar <prafulla@marvell.com> +# Contributor: Mahavir Jain <mjain@marvell.com> +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y := aspenite.o diff --git a/qemu/roms/u-boot/board/Marvell/aspenite/aspenite.c b/qemu/roms/u-boot/board/Marvell/aspenite/aspenite.c new file mode 100644 index 000000000..24ee6791a --- /dev/null +++ b/qemu/roms/u-boot/board/Marvell/aspenite/aspenite.c @@ -0,0 +1,43 @@ +/* + * (C) Copyright 2010 + * Marvell Semiconductor <www.marvell.com> + * Written-by: Prafulla Wadaskar <prafulla@marvell.com> + * Contributor: Mahavir Jain <mjain@marvell.com> + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include <common.h> +#include <mvmfp.h> +#include <asm/arch/cpu.h> +#include <asm/arch/mfp.h> +#include <asm/arch/armada100.h> + +DECLARE_GLOBAL_DATA_PTR; + +int board_early_init_f(void) +{ + u32 mfp_cfg[] = { + /* I2C */ + MFP105_CI2C_SDA, + MFP106_CI2C_SCL, + + /* Enable Console on UART1 */ + MFP107_UART1_RXD, + MFP108_UART1_TXD, + + MFP_EOC /*End of configureation*/ + }; + /* configure MFP's */ + mfp_config(mfp_cfg); + return 0; +} + +int board_init(void) +{ + /* arch number of Board */ + gd->bd->bi_arch_number = MACH_TYPE_ASPENITE; + /* adress of boot parameters */ + gd->bd->bi_boot_params = armd1_sdram_base(0) + 0x100; + return 0; +} |