]> git.sur5r.net Git - u-boot/commitdiff
ARM64: zynqmp: Select SYS_CONFIG_NAME via Kconfig
authorMichal Simek <michal.simek@xilinx.com>
Fri, 18 Mar 2016 17:21:36 +0000 (18:21 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 4 Apr 2016 18:28:38 +0000 (20:28 +0200)
This option enable adding new platform suport just by adding defconfig
and DTS file which will target generic configuration for SoC.
Make no sense to extend Kconfig just create a pointer between DTS and
configuration file.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/cpu/armv8/zynqmp/Kconfig
configs/xilinx_zynqmp_ep_defconfig

index 9a19dfa77f797490af946863d29970404ce509a8..6c71d7840eb5428778660cb29633f91823dd3180 100644 (file)
@@ -1,13 +1,5 @@
 if ARCH_ZYNQMP
 
-choice
-       prompt "Xilinx ZynqMP board select"
-
-config TARGET_ZYNQMP_EP
-       bool "ZynqMP EP Board"
-
-endchoice
-
 config SYS_BOARD
        default "zynqmp"
 
@@ -18,7 +10,12 @@ config SYS_SOC
        default "zynqmp"
 
 config SYS_CONFIG_NAME
-       default "xilinx_zynqmp_ep" if TARGET_ZYNQMP_EP
+       string "Board configuration name"
+       default "xilinx_zynqmp"
+       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.
 
 config ZYNQMP_USB
        bool "Configure ZynqMP USB"
index 33f29afab88c1a14ac36fbda55e9cfc7178439a8..a1f3580f8d01949875a5298d13732ed4fde6ea10 100644 (file)
@@ -1,4 +1,5 @@
 CONFIG_ARM=y
+CONFIG_SYS_CONFIG_NAME="xilinx_zynqmp_ep"
 CONFIG_ARCH_ZYNQMP=y
 CONFIG_ZYNQMP_USB=y
 CONFIG_SYS_TEXT_BASE=0x8000000