Skip to contentSkip to conversation

arm: socfpga: Add support for Terasic SoCkit board

PATCH New Marek Vasut 1 participant 1 message Sep 2, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: socfpga: Add support for Terasic SoCkit board

Add support for Terasic SoCkit, which is CycloneV based board. The board can boot either from SD/MMC or QSPI. Ethernet is also supported.

---
 arch/arm/dts/Makefile                    |   1 +
 arch/arm/dts/socfpga_cyclone5_sockit.dts |  92 +++++
 arch/arm/mach-socfpga/Kconfig            |   7 +
 board/terasic/sockit/MAINTAINERS         |   5 +
 board/terasic/sockit/Makefile            |   9 +
 board/terasic/sockit/qts/iocsr_config.h  | 660 +++++++++++++++++++++++++++++++
 board/terasic/sockit/qts/pinmux_config.h | 219 ++++++++++
 board/terasic/sockit/qts/pll_config.h    |  85 ++++
 board/terasic/sockit/qts/sdram_config.h  | 341 ++++++++++++++++
 board/terasic/sockit/socfpga.c           |  85 ++++
 configs/socfpga_sockit_defconfig         |  26 ++
 include/configs/socfpga_sockit.h         |  92 +++++
 12 files changed, 1622 insertions(+)
 create mode 100644 arch/arm/dts/socfpga_cyclone5_sockit.dts
 create mode 100644 board/terasic/sockit/MAINTAINERS
 create mode 100644 board/terasic/sockit/Makefile
 create mode 100644 board/terasic/sockit/qts/iocsr_config.h
 create mode 100644 board/terasic/sockit/qts/pinmux_config.h
 create mode 100644 board/terasic/sockit/qts/pll_config.h
 create mode 100644 board/terasic/sockit/qts/sdram_config.h
 create mode 100644 board/terasic/sockit/socfpga.c
 create mode 100644 configs/socfpga_sockit_defconfig
 create mode 100644 include/configs/socfpga_sockit.h
arch/arm/dts/Makefile +1 -0
index c97f39d..082a318 100644
@@ -58,6 +58,7 @@ dtb-$(CONFIG_AM33XX) += am335x-boneblack.dtb am335x-evm.dtb
 dtb-$(CONFIG_ARCH_SOCFPGA) +=				\
 	socfpga_arria5_socdk.dtb			\
 	socfpga_cyclone5_socdk.dtb			\
+	socfpga_cyclone5_sockit.dtb			\
 	socfpga_cyclone5_socrates.dtb
 dtb-$(CONFIG_TARGET_DRA7XX_EVM) += dra72-evm.dtb
 dtb-$(CONFIG_TARGET_STV0991) += stv0991.dtb
arch/arm/dts/socfpga_cyclone5_sockit.dts new file +92 -0

92 lines not on this page · raw message

arch/arm/mach-socfpga/Kconfig +7 -0
index 690e362..7520757 100644
@@ -18,15 +18,21 @@ config TARGET_SOCFPGA_CYCLONE5_SOCDK
 	bool "Altera SOCFPGA SoCDK (Cyclone V)"
 	select TARGET_SOCFPGA_CYCLONE5
 
+config TARGET_SOCFPGA_TERASIC_SOCKIT
+	bool "Terasic SoCkit (Cyclone V)"
+	select TARGET_SOCFPGA_CYCLONE5
+
 endchoice
 
 config SYS_BOARD
 	default "arria5-socdk" if TARGET_SOCFPGA_ARRIA5_SOCDK
 	default "cyclone5-socdk" if TARGET_SOCFPGA_CYCLONE5_SOCDK
+	default "sockit" if TARGET_SOCFPGA_TERASIC_SOCKIT
 
 config SYS_VENDOR
 	default "altera" if TARGET_SOCFPGA_ARRIA5_SOCDK
 	default "altera" if TARGET_SOCFPGA_CYCLONE5_SOCDK
+	default "terasic" if TARGET_SOCFPGA_TERASIC_SOCKIT
 
 config SYS_SOC
 	default "socfpga"
@@ -34,5 +40,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
 	default "socfpga_arria5" if TARGET_SOCFPGA_ARRIA5_SOCDK
 	default "socfpga_cyclone5" if TARGET_SOCFPGA_CYCLONE5_SOCDK
+	default "socfpga_sockit" if TARGET_SOCFPGA_TERASIC_SOCKIT
 
 endif
board/terasic/sockit/MAINTAINERS new file +5 -0
new file mode 100644
index 0000000..792f184
@@ -0,0 +1,5 @@
+SOCKIT BOARD
+M:	Marek Vasut <[email protected]>
+S:	Maintained
+F:	include/configs/socfpga_sockit.h
+F:	configs/socfpga_sockit_defconfig
board/terasic/sockit/Makefile new file +9 -0
new file mode 100644
index 0000000..86f9b78
@@ -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/sockit/qts/iocsr_config.h new file +660 -0

660 lines not on this page · raw message

board/terasic/sockit/qts/pinmux_config.h new file +219 -0

219 lines not on this page · raw message

board/terasic/sockit/qts/pll_config.h new file +85 -0

85 lines not on this page · raw message

board/terasic/sockit/qts/sdram_config.h new file +341 -0

341 lines not on this page · raw message

board/terasic/sockit/socfpga.c new file +85 -0

85 lines not on this page · raw message

configs/socfpga_sockit_defconfig new file +26 -0
new file mode 100644
index 0000000..01723c5
@@ -0,0 +1,26 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SOCFPGA=y
+CONFIG_TARGET_SOCFPGA_CYCLONE5=y
+CONFIG_TARGET_SOCFPGA_TERASIC_SOCKIT=y
+CONFIG_DEFAULT_DEVICE_TREE="socfpga_cyclone5_sockit"
+CONFIG_SPL=y
+# CONFIG_CMD_IMLS is not set
+# CONFIG_CMD_FLASH is not set
+CONFIG_OF_CONTROL=y
+CONFIG_SPI_FLASH=y
+CONFIG_SPI_FLASH_USE_4K_SECTORS=n
+CONFIG_DM_ETH=y
+CONFIG_NETDEVICES=y
+CONFIG_ETH_DESIGNWARE=y
+CONFIG_DM_GPIO=y
+CONFIG_DWAPB_GPIO=y
+CONFIG_SPL_DM=y
+CONFIG_SPL_MMC_SUPPORT=y
+CONFIG_DM_SEQ_ALIAS=y
+CONFIG_SPL_SIMPLE_BUS=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPL_SPI_SUPPORT=y
+CONFIG_SPL_STACK_R=y
+CONFIG_SPL_STACK_R_ADDR=0x00800000
+CONFIG_SYS_MALLOC_F_LEN=0x2000
include/configs/socfpga_sockit.h new file +92 -0

92 lines not on this page · raw message

Signature · 1 line
2.1.4