[U-Boot] [PATCH] ni: Add NIZYNQ platform

Wilson Lee wilson.lee at ni.com
Wed Nov 8 02:54:04 UTC 2017


Initial platform creation for NIZYNQ.

Signed-off-by: Joe Hershberger <joe.hershberger at ni.com>
Signed-off-by: Keng Soon Cheah <keng.soon.cheah at ni.com>
Signed-off-by: Wilson Lee <wilson.lee at ni.com>
Cc: Chen Yee Chew <chen.yee.chew at ni.com>
Cc: Albert Aribaud <albert.u.boot at aribaud.net>
---
 arch/arm/Kconfig  | 15 +++++++++++++++
 arch/arm/Makefile |  4 +++-
 board/ni/Kconfig  | 13 +++++++++++++
 3 files changed, 31 insertions(+), 1 deletion(-)
 create mode 100644 board/ni/Kconfig

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 83b7aa5..ae34821 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -767,6 +767,20 @@ config ARCH_ZYNQMP
 	select DM_USB if USB
 	imply FAT_WRITE
 
+config NIZYNQ
+	bool "National Instruments zynq Platform"
+	select CPU_V7
+	select SUPPORT_SPL
+	select OF_CONTROL
+	select SPL_OF_CONTROL if SPL
+	select DM
+	select DM_ETH
+	select DM_GPIO
+	select SPL_DM if SPL
+	select DM_MMC
+	select DM_SERIAL
+	select SPL_SEPARATE_BSS if SPL
+
 config TEGRA
 	bool "NVIDIA Tegra"
 	imply FAT_WRITE
@@ -1258,6 +1272,7 @@ source "board/hisilicon/hikey/Kconfig"
 source "board/hisilicon/poplar/Kconfig"
 source "board/imx31_phycore/Kconfig"
 source "board/isee/igep003x/Kconfig"
+source "board/ni/Kconfig"
 source "board/olimex/mx23_olinuxino/Kconfig"
 source "board/phytec/pcm051/Kconfig"
 source "board/ppcag/bg0900/Kconfig"
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 0e0ae77..fbc271a 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -74,7 +74,9 @@ machine-$(CONFIG_ARCH_ROCKCHIP)		+= rockchip
 machine-$(CONFIG_STM32)			+= stm32
 machine-$(CONFIG_TEGRA)			+= tegra
 machine-$(CONFIG_ARCH_UNIPHIER)		+= uniphier
-machine-$(CONFIG_ARCH_ZYNQ)		+= zynq
+ifneq (,$(findstring y,$(CONFIG_ZYNQ)$(CONFIG_NIZYNQ)))
+machine-y				+= zynq
+endif
 
 machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
 
diff --git a/board/ni/Kconfig b/board/ni/Kconfig
new file mode 100644
index 0000000..382a544
--- /dev/null
+++ b/board/ni/Kconfig
@@ -0,0 +1,13 @@
+if NIZYNQ
+choice
+	prompt "NI Zynq board select"
+
+endchoice
+
+config SYS_VENDOR
+	default "ni"
+
+config SYS_SOC
+	default "zynq"
+
+endif
-- 
2.7.4



More information about the U-Boot mailing list