zynq: kconfig: move board select menu and common settings
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Sat, 30 Aug 2014 22:10:55 +0000 (07:10 +0900)
committerTom Rini <trini@ti.com>
Sun, 31 Aug 2014 01:19:32 +0000 (21:19 -0400)
Becuase the board select menu in arch/arm/Kconfig is too big,
move the Zynq board select menu to zynq/Kconfig.

Consolidate also common settings (CONFIG_SYS_CPU="armv7" and
CONFIG_SYS_SOC="zynq").

Refactor board/xilinx/zynq/MAINTAINERS too.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Tested-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/Kconfig
arch/arm/cpu/armv7/zynq/Kconfig [new file with mode: 0644]
board/xilinx/zynq/Kconfig [deleted file]
board/xilinx/zynq/MAINTAINERS
configs/zynq_microzed_defconfig
configs/zynq_zc70x_defconfig
configs/zynq_zc770_xm010_defconfig
configs/zynq_zc770_xm012_defconfig
configs/zynq_zc770_xm013_defconfig
configs/zynq_zed_defconfig
include/configs/zynq-common.h

index 71757e783c5e54053f69648905a36ff39b83606b..cac9143f214db3451e4f690d97571206cabf3320 100644 (file)
@@ -668,17 +668,8 @@ config TARGET_U8500_HREF
 config TARGET_VF610TWR
        bool "Support vf610twr"
 
-config TARGET_ZYNQ_MICROZED
-       bool "Support zynq_microzed"
-
-config TARGET_ZYNQ_ZC70X
-       bool "Support zynq_zc70x"
-
-config TARGET_ZYNQ_ZC770
-       bool "Support zynq_zc770"
-
-config TARGET_ZYNQ_ZED
-       bool "Support zynq_zed"
+config ZYNQ
+       bool "Xilinx Zynq Platform"
 
 config TARGET_MEDCOM_WIDE
        bool "Support medcom-wide"
@@ -784,6 +775,7 @@ config TARGET_JORNADA
 
 endchoice
 
+source "arch/arm/cpu/armv7/zynq/Kconfig"
 source "board/8dtech/eco5pk/Kconfig"
 source "board/aristainetos/Kconfig"
 source "board/Barix/ipam390/Kconfig"
@@ -1012,7 +1004,6 @@ source "board/vpac270/Kconfig"
 source "board/wandboard/Kconfig"
 source "board/woodburn/Kconfig"
 source "board/xaeniax/Kconfig"
-source "board/xilinx/zynq/Kconfig"
 source "board/zipitz2/Kconfig"
 
 endmenu
diff --git a/arch/arm/cpu/armv7/zynq/Kconfig b/arch/arm/cpu/armv7/zynq/Kconfig
new file mode 100644 (file)
index 0000000..6b88f18
--- /dev/null
@@ -0,0 +1,43 @@
+if ZYNQ
+
+choice
+       prompt "Xilinx Zynq board select"
+
+config TARGET_ZYNQ_ZED
+       bool "Zynq ZedBoard"
+
+config TARGET_ZYNQ_MICROZED
+       bool "Zynq MicroZed"
+
+config TARGET_ZYNQ_ZC70X
+       bool "Zynq ZC702/ZC706 Board"
+
+config TARGET_ZYNQ_ZC770
+       bool "Zynq ZC770 Board"
+
+endchoice
+
+config SYS_CPU
+       string
+       default "armv7"
+
+config SYS_BOARD
+       string
+       default "zynq"
+
+config SYS_VENDOR
+       string
+       default "xilinx"
+
+config SYS_SOC
+       string
+       default "zynq"
+
+config SYS_CONFIG_NAME
+       string
+       default "zynq_zed" if TARGET_ZYNQ_ZED
+       default "zynq_microzed" if TARGET_ZYNQ_MICROZED
+       default "zynq_zc70x" if TARGET_ZYNQ_ZC70X
+       default "zynq_zc770" if TARGET_ZYNQ_ZC770
+
+endif
diff --git a/board/xilinx/zynq/Kconfig b/board/xilinx/zynq/Kconfig
deleted file mode 100644 (file)
index 3b72a5f..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-if TARGET_ZYNQ_MICROZED
-
-config SYS_CPU
-       string
-       default "armv7"
-
-config SYS_BOARD
-       string
-       default "zynq"
-
-config SYS_VENDOR
-       string
-       default "xilinx"
-
-config SYS_SOC
-       string
-       default "zynq"
-
-config SYS_CONFIG_NAME
-       string
-       default "zynq_microzed"
-
-endif
-
-if TARGET_ZYNQ_ZC70X
-
-config SYS_CPU
-       string
-       default "armv7"
-
-config SYS_BOARD
-       string
-       default "zynq"
-
-config SYS_VENDOR
-       string
-       default "xilinx"
-
-config SYS_SOC
-       string
-       default "zynq"
-
-config SYS_CONFIG_NAME
-       string
-       default "zynq_zc70x"
-
-endif
-
-if TARGET_ZYNQ_ZC770
-
-config SYS_CPU
-       string
-       default "armv7"
-
-config SYS_BOARD
-       string
-       default "zynq"
-
-config SYS_VENDOR
-       string
-       default "xilinx"
-
-config SYS_SOC
-       string
-       default "zynq"
-
-config SYS_CONFIG_NAME
-       string
-       default "zynq_zc770"
-
-endif
-
-if TARGET_ZYNQ_ZED
-
-config SYS_CPU
-       string
-       default "armv7"
-
-config SYS_BOARD
-       string
-       default "zynq"
-
-config SYS_VENDOR
-       string
-       default "xilinx"
-
-config SYS_SOC
-       string
-       default "zynq"
-
-config SYS_CONFIG_NAME
-       string
-       default "zynq_zed"
-
-endif
index e167816a2eb14d0497e315cf90f14991d0a83d56..382e921e7043e23353ad753327f8644e76f6cd1e 100644 (file)
@@ -3,13 +3,5 @@ M:     Michal Simek <monstr@monstr.eu>
 M:     Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
 S:     Maintained
 F:     board/xilinx/zynq/
-F:     include/configs/zynq_microzed.h
-F:     configs/zynq_microzed_defconfig
-F:     include/configs/zynq_zc70x.h
-F:     configs/zynq_zc70x_defconfig
-F:     include/configs/zynq_zc770.h
-F:     configs/zynq_zc770_xm010_defconfig
-F:     configs/zynq_zc770_xm012_defconfig
-F:     configs/zynq_zc770_xm013_defconfig
-F:     include/configs/zynq_zed.h
-F:     configs/zynq_zed_defconfig
+F:     include/configs/zynq*.h
+F:     configs/zynq_*_defconfig
index 14024d041222279dc3298a3d07b83b31d6d4cf85..3aedb350f6b9fe4e960afdf87e44807fe2dc8394 100644 (file)
@@ -1,3 +1,4 @@
 CONFIG_SPL=y
 +S:CONFIG_ARM=y
++S:CONFIG_ZYNQ=y
 +S:CONFIG_TARGET_ZYNQ_MICROZED=y
index d2e79a542cc2f5e3a3d25374930dacc487b03c63..04c8defaef23203f2758b57fc480d8efddf154ab 100644 (file)
@@ -1,3 +1,4 @@
 CONFIG_SPL=y
 +S:CONFIG_ARM=y
++S:CONFIG_ZYNQ=y
 +S:CONFIG_TARGET_ZYNQ_ZC70X=y
index e9f9c4b1f1e9d9fe0daaee284748ec56c88e19e7..1178b40bad426433d2ecc01911ab9c326f207246 100644 (file)
@@ -1,4 +1,5 @@
 CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="ZC770_XM010"
 +S:CONFIG_ARM=y
++S:CONFIG_ZYNQ=y
 +S:CONFIG_TARGET_ZYNQ_ZC770=y
index 78f1fe68caa72d4fc974ffb809cd3f68040aaa9d..52c21219d9c5f07cd9d6cbb5a2b37da97c62606f 100644 (file)
@@ -1,4 +1,5 @@
 CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="ZC770_XM012"
 +S:CONFIG_ARM=y
++S:CONFIG_ZYNQ=y
 +S:CONFIG_TARGET_ZYNQ_ZC770=y
index d96e8ffd008341b3c5bbcf4582d90ca38ca3b526..836809a17c07da19356997732eb72cfa70e2fd79 100644 (file)
@@ -1,4 +1,5 @@
 CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="ZC770_XM013"
 +S:CONFIG_ARM=y
++S:CONFIG_ZYNQ=y
 +S:CONFIG_TARGET_ZYNQ_ZC770=y
index abf7e8236fe7511cae513f213699e5f72965f9c9..233790664ef9bef8f6ea5a35475bf3872a09f179 100644 (file)
@@ -1,3 +1,4 @@
 CONFIG_SPL=y
 +S:CONFIG_ARM=y
++S:CONFIG_ZYNQ=y
 +S:CONFIG_TARGET_ZYNQ_ZED=y
index d57e9d5bbe84cc6c823a251e0b22a7909518b9de..875cb43f15b8d284272aece7ce16251cba61e777 100644 (file)
@@ -12,7 +12,6 @@
 
 /* High Level configuration Options */
 #define CONFIG_ARMV7
-#define CONFIG_ZYNQ
 
 /* CPU clock */
 #ifndef CONFIG_CPU_FREQ_HZ