[U-Boot] [PATCH v4 03/28] arm: socfpga: arria10: add board files for the Arria10 SoCDK
Marek Vasut
marex at denx.de
Mon Jan 23 04:42:55 CET 2017
On 01/10/2017 06:20 AM, Chee Tien Fong wrote:
> From: Tien Fong Chee <tien.fong.chee at intel.com>
>
> Add minimal support for the Arria10 SoCDK.
>
> Signed-off-by: Dinh Nguyen <dinguyen at opensource.altera.com>
> Signed-off-by: Tien Fong Chee <tien.fong.chee at intel.com>
> Cc: Marek Vasut <marex at denx.de>
> Cc: Dinh Nguyen <dinguyen at kernel.org>
> Cc: Chin Liang See <chin.liang.see at intel.com>
> Cc: Tien Fong <skywindctf at gmail.com>
> ---
> board/altera/arria10-socdk/Kconfig | 18 ++++++++++++++++++
> board/altera/arria10-socdk/Makefile | 7 +++++++
> board/altera/arria10-socdk/socfpga.c | 24 ++++++++++++++++++++++++
> 3 files changed, 49 insertions(+)
> create mode 100644 board/altera/arria10-socdk/Kconfig
> create mode 100644 board/altera/arria10-socdk/Makefile
> create mode 100644 board/altera/arria10-socdk/socfpga.c
>
> diff --git a/board/altera/arria10-socdk/Kconfig b/board/altera/arria10-socdk/Kconfig
> new file mode 100644
> index 0000000..b80cc6d
> --- /dev/null
> +++ b/board/altera/arria10-socdk/Kconfig
> @@ -0,0 +1,18 @@
> +if TARGET_SOCFPGA_ARRIA10
> +
> +config SYS_CPU
> + default "armv7"
> +
> +config SYS_BOARD
> + default "socfpga_arria10"
> +
> +config SYS_VENDOR
> + default "altera"
> +
> +config SYS_SOC
> + default "socfpga_arria10"
> +
> +config SYS_CONFIG_NAME
> + default "socfpga_arria10"
> +
> +endif
> diff --git a/board/altera/arria10-socdk/Makefile b/board/altera/arria10-socdk/Makefile
> new file mode 100644
> index 0000000..1d885ce
> --- /dev/null
> +++ b/board/altera/arria10-socdk/Makefile
> @@ -0,0 +1,7 @@
> +#
> +# Copyright (C) 2015 Altera Corporation <www.altera.com>
> +#
> +# SPDX-License-Identifier: GPL-2.0
> +#
> +
> +obj-y := socfpga.o
> diff --git a/board/altera/arria10-socdk/socfpga.c b/board/altera/arria10-socdk/socfpga.c
> new file mode 100644
> index 0000000..abedc22
> --- /dev/null
> +++ b/board/altera/arria10-socdk/socfpga.c
> @@ -0,0 +1,24 @@
> +/*
> + * Copyright (C) 2015 Altera Corporation <www.altera.com>
> + *
> + * SPDX-License-Identifier: GPL-2.0
> + */
> +
> +#include <common.h>
> +#include <asm/io.h>
> +
> +DECLARE_GLOBAL_DATA_PTR;
> +
> +void s_init(void)
> +{
> +}
> +
> +/*
> + * Miscellaneous platform dependent initialisations
> + */
> +int board_init(void)
> +{
> + /* Address of boot parameters for ATAG (if ATAG is used) */
> + gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
This stuff should already be done by arch/arm/mach-socfpga/board.c ,
you can drop most of this patch (Kconfig, this file can be empty).
> + return 0;
> +}
>
--
Best regards,
Marek Vasut
More information about the U-Boot
mailing list