socfpga: add support for Terasic DE1-SoC board
Subsystems (3)
PATCH v2 1/1 socfpga: add support for Terasic DE1-SoC board
Add CycloneV based Terasic DE1-SoC board. The board boots from SD/MMC. Ethernet and USB host is supported.
Signed-off-by Anatolij Gustschin <[email protected]>
Cc Marek Vasut <[email protected]>
---
v2:
- drop custom raw partition configuration, use default instead
arch/arm/dts/Makefile | 1 + arch/arm/dts/socfpga_cyclone5_de1_soc.dts | 66 +++ arch/arm/mach-socfpga/Kconfig | 7 + board/terasic/de1-soc/MAINTAINERS | 5 + board/terasic/de1-soc/Makefile | 9 + board/terasic/de1-soc/qts/iocsr_config.h | 660 ++++++++++++++++++++++++++++++ board/terasic/de1-soc/qts/pinmux_config.h | 219 ++++++++++ board/terasic/de1-soc/qts/pll_config.h | 91 ++++ board/terasic/de1-soc/qts/sdram_config.h | 344 ++++++++++++++++ board/terasic/de1-soc/socfpga.c | 19 + configs/socfpga_de1_soc_defconfig | 50 +++ include/configs/socfpga_de1_soc.h | 57 +++ 12 files changed, 1528 insertions(+) create mode 100644 arch/arm/dts/socfpga_cyclone5_de1_soc.dts create mode 100644 board/terasic/de1-soc/MAINTAINERS create mode 100644 board/terasic/de1-soc/Makefile create mode 100644 board/terasic/de1-soc/qts/iocsr_config.h create mode 100644 board/terasic/de1-soc/qts/pinmux_config.h create mode 100644 board/terasic/de1-soc/qts/pll_config.h create mode 100644 board/terasic/de1-soc/qts/sdram_config.h create mode 100644 board/terasic/de1-soc/socfpga.c create mode 100644 configs/socfpga_de1_soc_defconfig create mode 100644 include/configs/socfpga_de1_soc.h
arch/arm/dts/Makefile +1 -0
@@ -128,6 +128,7 @@ dtb-$(CONFIG_ARCH_SOCFPGA) += \ socfpga_cyclone5_mcvevk.dtb \ socfpga_cyclone5_socdk.dtb \ socfpga_cyclone5_de0_nano_soc.dtb \ + socfpga_cyclone5_de1_soc.dtb \ socfpga_cyclone5_sockit.dtb \ socfpga_cyclone5_socrates.dtb \ socfpga_cyclone5_sr1500.dtb \
arch/arm/dts/socfpga_cyclone5_de1_soc.dts new file +66 -0
66 lines not on this page · raw message
arch/arm/mach-socfpga/Kconfig +7 -0
@@ -74,6 +74,10 @@ config TARGET_SOCFPGA_TERASIC_DE0_NANO bool "Terasic DE0-Nano-Atlas (Cyclone V)" select TARGET_SOCFPGA_CYCLONE5 +config TARGET_SOCFPGA_TERASIC_DE1_SOC + bool "Terasic DE1-SoC (Cyclone V)" + select TARGET_SOCFPGA_CYCLONE5 + config TARGET_SOCFPGA_TERASIC_SOCKIT bool "Terasic SoCkit (Cyclone V)" select TARGET_SOCFPGA_CYCLONE5
@@ -84,6 +88,7 @@ config SYS_BOARD default "arria5-socdk" if TARGET_SOCFPGA_ARRIA5_SOCDK default "cyclone5-socdk" if TARGET_SOCFPGA_CYCLONE5_SOCDK default "de0-nano-soc" if TARGET_SOCFPGA_TERASIC_DE0_NANO + default "de1-soc" if TARGET_SOCFPGA_TERASIC_DE1_SOC default "is1" if TARGET_SOCFPGA_IS1 default "mcvevk" if TARGET_SOCFPGA_DENX_MCVEVK default "sockit" if TARGET_SOCFPGA_TERASIC_SOCKIT
@@ -98,6 +103,7 @@ config SYS_VENDOR default "ebv" if TARGET_SOCFPGA_EBV_SOCRATES default "samtec" if TARGET_SOCFPGA_SAMTEC_VINING_FPGA default "terasic" if TARGET_SOCFPGA_TERASIC_DE0_NANO + default "terasic" if TARGET_SOCFPGA_TERASIC_DE1_SOC default "terasic" if TARGET_SOCFPGA_TERASIC_SOCKIT config SYS_SOC
@@ -107,6 +113,7 @@ config SYS_CONFIG_NAME default "socfpga_arria5_socdk" if TARGET_SOCFPGA_ARRIA5_SOCDK default "socfpga_cyclone5_socdk" if TARGET_SOCFPGA_CYCLONE5_SOCDK default "socfpga_de0_nano_soc" if TARGET_SOCFPGA_TERASIC_DE0_NANO + default "socfpga_de1_soc" if TARGET_SOCFPGA_TERASIC_DE1_SOC default "socfpga_is1" if TARGET_SOCFPGA_IS1 default "socfpga_mcvevk" if TARGET_SOCFPGA_DENX_MCVEVK default "socfpga_sockit" if TARGET_SOCFPGA_TERASIC_SOCKIT
board/terasic/de1-soc/MAINTAINERS new file +5 -0
@@ -0,0 +1,5 @@ +DE1-SoC BOARD +M: Anatolij Gustschin <[email protected]> +S: Maintained +F: include/configs/socfpga_de1_soc.h +F: configs/socfpga_de1_soc_defconfig
board/terasic/de1-soc/Makefile new file +9 -0
@@ -0,0 +1,9 @@ +# +# (C) Copyright 2001-2006 +# Wolfgang Denk, DENX Software Engineering, wd at denx.de. +# (C) Copyright 2010, Thomas Chou <[email protected]> +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y := socfpga.o
board/terasic/de1-soc/qts/iocsr_config.h new file +660 -0
660 lines not on this page · raw message
board/terasic/de1-soc/qts/pinmux_config.h new file +219 -0
219 lines not on this page · raw message
board/terasic/de1-soc/qts/pll_config.h new file +91 -0
91 lines not on this page · raw message
board/terasic/de1-soc/qts/sdram_config.h new file +344 -0
344 lines not on this page · raw message
board/terasic/de1-soc/socfpga.c new file +19 -0
@@ -0,0 +1,19 @@ +/* +* Copyright (C) 2012 Altera Corporation <www.altera.com> +* +* SPDX-License-Identifier: GPL-2.0+ +*/ +#include <common.h> +#include <spl.h> + +void board_boot_order (u32 *spl_boot_list) +{ + spl_boot_list[0 ] =spl_boot_device (); + +switch (spl_boot_list[0 ]) { +case BOOT_DEVICE_MMC1 : + spl_boot_list[0 ] =BOOT_DEVICE_MMC1 ; + spl_boot_list[1 ] =BOOT_DEVICE_UART ; +break ; + } +}
configs/socfpga_de1_soc_defconfig new file +50 -0
50 lines not on this page · raw message
include/configs/socfpga_de1_soc.h new file +57 -0
57 lines not on this page · raw message
Signature · 1 line
2.7.4
Marek Vasut
AppliedPATCH v2 1/1 socfpga: add support for Terasic DE1-SoC board
Quoted 7 lines · Anatolij Gustschin
Add CycloneV based Terasic DE1-SoC board. The board boots from SD/MMC. Ethernet and USB host is supported.
Signed-off-by Anatolij Gustschin <[email protected]>Cc Marek Vasut <[email protected]>---
Applied, thanks.
Signature · 2 lines
Best regards, Marek Vasut