]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: zynq: Simplify zynq configuration
authorMichal Simek <michal.simek@xilinx.com>
Fri, 20 May 2016 12:59:33 +0000 (14:59 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 24 May 2016 11:22:50 +0000 (13:22 +0200)
Extending Kconfig for adding new platform is a lot of work
for nothing. Setting SYS_CONFIG_NAME directly in Kconfig and
remove all dependencies on TARGET_ZYNQ_* options including SPL.
As a side-effect it also remove custom init folder for ps7_init_gpl.*
files. Folder is chosen based on device-tree file.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
23 files changed:
arch/arm/mach-zynq/Kconfig
board/xilinx/zynq/Makefile
board/xilinx/zynq/custom_hw_platform/.gitignore [deleted file]
board/xilinx/zynq/zynq-microzed/ps7_init_gpl.c [moved from board/xilinx/zynq/MicroZed_hw_platform/ps7_init_gpl.c with 100% similarity]
board/xilinx/zynq/zynq-microzed/ps7_init_gpl.h [moved from board/xilinx/zynq/MicroZed_hw_platform/ps7_init_gpl.h with 100% similarity]
board/xilinx/zynq/zynq-zc702/ps7_init_gpl.c [moved from board/xilinx/zynq/ZC702_hw_platform/ps7_init_gpl.c with 100% similarity]
board/xilinx/zynq/zynq-zc702/ps7_init_gpl.h [moved from board/xilinx/zynq/ZC702_hw_platform/ps7_init_gpl.h with 100% similarity]
board/xilinx/zynq/zynq-zc706/ps7_init_gpl.c [moved from board/xilinx/zynq/ZC706_hw_platform/ps7_init_gpl.c with 100% similarity]
board/xilinx/zynq/zynq-zc706/ps7_init_gpl.h [moved from board/xilinx/zynq/ZC706_hw_platform/ps7_init_gpl.h with 100% similarity]
board/xilinx/zynq/zynq-zed/ps7_init_gpl.c [moved from board/xilinx/zynq/zed_hw_platform/ps7_init_gpl.c with 100% similarity]
board/xilinx/zynq/zynq-zed/ps7_init_gpl.h [moved from board/xilinx/zynq/zed_hw_platform/ps7_init_gpl.h with 100% similarity]
board/xilinx/zynq/zynq-zybo/ps7_init_gpl.c [moved from board/xilinx/zynq/zybo_hw_platform/ps7_init_gpl.c with 100% similarity]
board/xilinx/zynq/zynq-zybo/ps7_init_gpl.h [moved from board/xilinx/zynq/zybo_hw_platform/ps7_init_gpl.h with 100% similarity]
configs/zynq_microzed_defconfig
configs/zynq_picozed_defconfig
configs/zynq_zc702_defconfig
configs/zynq_zc706_defconfig
configs/zynq_zc770_xm010_defconfig
configs/zynq_zc770_xm011_defconfig
configs/zynq_zc770_xm012_defconfig
configs/zynq_zc770_xm013_defconfig
configs/zynq_zed_defconfig
configs/zynq_zybo_defconfig

index d396a13b6f7c41d858a61ac0ffe16a669128b9d1..db3c5792939e837d9445de839e5e6867d75e50b3 100644 (file)
@@ -1,41 +1,5 @@
 if ARCH_ZYNQ
 
-config ZYNQ_CUSTOM_INIT
-       bool "Use custom ps7_init provided by Xilinx tool"
-       help
-         U-Boot includes ps7_init_gpl.[ch] for some Zynq board variants.
-         If you want to override them with customized ones
-         or ps7_init code for your board is missing, please say Y here
-         and add ones into board/xilinx/zynq/custom_hw_platform/ directory.
-
-choice
-       prompt "Xilinx Zynq board select"
-       default TARGET_ZYNQ_ZC702
-
-config TARGET_ZYNQ_ZED
-       bool "Zynq ZedBoard"
-
-config TARGET_ZYNQ_MICROZED
-       bool "Zynq MicroZed"
-
-config TARGET_ZYNQ_PICOZED
-       bool "Zynq PicoZed"
-
-config TARGET_ZYNQ_ZC702
-       bool "Zynq ZC702 Board"
-
-config TARGET_ZYNQ_ZC706
-       bool "Zynq ZC706 Board"
-
-config TARGET_ZYNQ_ZC770
-       bool "Zynq ZC770 Board"
-       select ZYNQ_CUSTOM_INIT
-
-config TARGET_ZYNQ_ZYBO
-       bool "Zynq Zybo Board"
-
-endchoice
-
 config SYS_BOARD
        default "zynq"
 
@@ -46,11 +10,11 @@ config SYS_SOC
        default "zynq"
 
 config SYS_CONFIG_NAME
-       default "zynq_zed" if TARGET_ZYNQ_ZED
-       default "zynq_microzed" if TARGET_ZYNQ_MICROZED
-       default "zynq_picozed" if TARGET_ZYNQ_PICOZED
-       default "zynq_zc70x" if TARGET_ZYNQ_ZC702 || TARGET_ZYNQ_ZC706
-       default "zynq_zc770" if TARGET_ZYNQ_ZC770
-       default "zynq_zybo" if TARGET_ZYNQ_ZYBO
+       string "Board configuration name"
+       default "zynq-common"
+       help
+         This option contains information about board configuration name.
+         Based on this option include/configs/<CONFIG_SYS_CONFIG_NAME>.h header
+         will be used for board configuration.
 
 endif
index eab93038cefee8ad9130148b5fe77aed72b65e0c..7de0212bc9f79a7571f0d11be0e451ab3cb02d88 100644 (file)
@@ -7,17 +7,7 @@
 
 obj-y  := board.o
 
-# Copied from Xilinx SDK 2014.4
-hw-platform-$(CONFIG_TARGET_ZYNQ_ZED)          := zed_hw_platform
-hw-platform-$(CONFIG_TARGET_ZYNQ_MICROZED)     := MicroZed_hw_platform
-hw-platform-$(CONFIG_TARGET_ZYNQ_ZC702)                := ZC702_hw_platform
-hw-platform-$(CONFIG_TARGET_ZYNQ_ZC706)                := ZC706_hw_platform
-hw-platform-$(CONFIG_TARGET_ZYNQ_ZYBO)         := zybo_hw_platform
-# If you want to use customized ps7_init_gpl.c/h,
-# enable CONFIG_ZYNQ_CUSTOM_INIT and put them into custom_hw_platform/.
-# This line must be placed at the bottom of the list because
-# it takes precedence over the default ones.
-hw-platform-$(CONFIG_ZYNQ_CUSTOM_INIT)         := custom_hw_platform
+hw-platform-y :=$(shell echo $(CONFIG_DEFAULT_DEVICE_TREE))
 
 init-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/ps7_init_gpl.c),\
        $(hw-platform-y)/ps7_init_gpl.o)
diff --git a/board/xilinx/zynq/custom_hw_platform/.gitignore b/board/xilinx/zynq/custom_hw_platform/.gitignore
deleted file mode 100644 (file)
index c455361..0000000
+++ /dev/null
@@ -1 +0,0 @@
-ps7_init_gpl.[ch]
index 7c66247d3eefe5d6b4a89a5c6f08a09d69ce8d78..d0b1ec9463b7aef7bc3ef60561d35df3bad12e8a 100644 (file)
@@ -1,6 +1,6 @@
 CONFIG_ARM=y
+CONFIG_SYS_CONFIG_NAME="zynq_microzed"
 CONFIG_ARCH_ZYNQ=y
-CONFIG_TARGET_ZYNQ_MICROZED=y
 CONFIG_DEFAULT_DEVICE_TREE="zynq-microzed"
 CONFIG_SPL=y
 CONFIG_FIT=y
index b46ab44b7848cfeb12031bd3b208f7719dcfc2ff..36244248667d9159d1aee779f3605431089614b6 100644 (file)
@@ -1,6 +1,6 @@
 CONFIG_ARM=y
+CONFIG_SYS_CONFIG_NAME="zynq_picozed"
 CONFIG_ARCH_ZYNQ=y
-CONFIG_TARGET_ZYNQ_PICOZED=y
 CONFIG_DEFAULT_DEVICE_TREE="zynq-picozed"
 CONFIG_SPL=y
 CONFIG_HUSH_PARSER=y
index 052679a1dc9c22569adea1fd35629727948c1259..e1b1fc93576cd5cf8e65720789395a752991e43b 100644 (file)
@@ -1,4 +1,5 @@
 CONFIG_ARM=y
+CONFIG_SYS_CONFIG_NAME="zynq_zc70x"
 CONFIG_ARCH_ZYNQ=y
 CONFIG_DEFAULT_DEVICE_TREE="zynq-zc702"
 CONFIG_SPL=y
index 3539f0547f5bbfeee7ed9bfc7f1e5a6b6af8439b..63d32d90ddd0a08fe7576efdfe87a6b4e56a4be2 100644 (file)
@@ -1,6 +1,6 @@
 CONFIG_ARM=y
+CONFIG_SYS_CONFIG_NAME="zynq_zc70x"
 CONFIG_ARCH_ZYNQ=y
-CONFIG_TARGET_ZYNQ_ZC706=y
 CONFIG_DEFAULT_DEVICE_TREE="zynq-zc706"
 CONFIG_SPL=y
 CONFIG_FIT=y
index 6a4726cb9a3616a9a53969b91c972aaadd853b29..6ccbb8ce68dcafa0de7330004624e16cb63b3321 100644 (file)
@@ -1,6 +1,6 @@
 CONFIG_ARM=y
+CONFIG_SYS_CONFIG_NAME="zynq_zc770"
 CONFIG_ARCH_ZYNQ=y
-CONFIG_TARGET_ZYNQ_ZC770=y
 CONFIG_DEFAULT_DEVICE_TREE="zynq-zc770-xm010"
 CONFIG_SPL=y
 CONFIG_FIT=y
index 46dd6bee191cd7b9c74119ab9b71212ec8425aa7..e6c646be6e6a4991150cfa8af413bc6ea51ee532 100644 (file)
@@ -1,6 +1,6 @@
 CONFIG_ARM=y
+CONFIG_SYS_CONFIG_NAME="zynq_zc770"
 CONFIG_ARCH_ZYNQ=y
-CONFIG_TARGET_ZYNQ_ZC770=y
 CONFIG_DEFAULT_DEVICE_TREE="zynq-zc770-xm011"
 CONFIG_SPL=y
 CONFIG_FIT=y
index 12f0e2ca3bb80cde3b2f04e0f067e2082dfe6d02..a8cfeb8988b3aae75b1c0da5b1d1cd665a25c791 100644 (file)
@@ -1,6 +1,6 @@
 CONFIG_ARM=y
+CONFIG_SYS_CONFIG_NAME="zynq_zc770"
 CONFIG_ARCH_ZYNQ=y
-CONFIG_TARGET_ZYNQ_ZC770=y
 CONFIG_DEFAULT_DEVICE_TREE="zynq-zc770-xm012"
 CONFIG_SPL=y
 CONFIG_FIT=y
index 8c7efe53208c546923a808120dd331bc503afbaf..f2d00cad65f379080aa3f3bacbf48502971674ce 100644 (file)
@@ -1,6 +1,6 @@
 CONFIG_ARM=y
+CONFIG_SYS_CONFIG_NAME="zynq_zc770"
 CONFIG_ARCH_ZYNQ=y
-CONFIG_TARGET_ZYNQ_ZC770=y
 CONFIG_DEFAULT_DEVICE_TREE="zynq-zc770-xm013"
 CONFIG_SPL=y
 CONFIG_FIT=y
index 7976e07c3b9e4209e5e30c792cd896f11daf277e..7783eeb0f6c7626602cf030d4729422a7a435006 100644 (file)
@@ -1,6 +1,6 @@
 CONFIG_ARM=y
+CONFIG_SYS_CONFIG_NAME="zynq_zed"
 CONFIG_ARCH_ZYNQ=y
-CONFIG_TARGET_ZYNQ_ZED=y
 CONFIG_DEFAULT_DEVICE_TREE="zynq-zed"
 CONFIG_SPL=y
 CONFIG_FIT=y
index cd222c5a7b072b32428b91e3569d8b5443c2ce27..9236c5e8274573ef6b0147edc54955681bc6b5af 100644 (file)
@@ -1,6 +1,6 @@
 CONFIG_ARM=y
+CONFIG_SYS_CONFIG_NAME="zynq_zybo"
 CONFIG_ARCH_ZYNQ=y
-CONFIG_TARGET_ZYNQ_ZYBO=y
 CONFIG_DEFAULT_DEVICE_TREE="zynq-zybo"
 CONFIG_SPL=y
 CONFIG_FIT=y