]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
zynqmp: Define ep config for ZynqMP
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Wed, 10 Jun 2015 10:20:57 +0000 (15:50 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 28 Jul 2015 09:56:19 +0000 (11:56 +0200)
Define a new config "zynqmp_ep" for ZynqMP instead
of xilinx_zynqmp. This defconfig supports all emulation
platforms of ZynqMP. Also renamed TARGET_XILINX_ZYNQMP
to ARCH_ZYNQMP.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/Kconfig
arch/arm/cpu/armv8/Makefile
arch/arm/cpu/armv8/zynqmp/Kconfig
board/xilinx/zynqmp/MAINTAINERS
configs/xilinx_zynqmp_ep_defconfig [moved from configs/xilinx_zynqmp_defconfig with 86% similarity]
include/configs/xilinx_zynqmp.h
include/configs/xilinx_zynqmp_ep.h [new file with mode: 0644]

index d6b06e6913b5b7f0e9f3fd260e24df497d68da68..36aa4e9f8bafd0985db7f7f0b4d0765ab7a7f8bc 100644 (file)
@@ -681,7 +681,7 @@ config ARCH_ZYNQ
        select DM_SPI
        select DM_SPI_FLASH
 
-config TARGET_XILINX_ZYNQMP
+config ARCH_ZYNQMP
        bool "Support Xilinx ZynqMP Platform"
        select ARM64
 
index dee5e258b6c33580e8ee118130b3c3a3d9b086ec..6466ebb4606b2b6d65c7a5e2173ee78d4c0a5a95 100644 (file)
@@ -16,4 +16,4 @@ obj-y += tlb.o
 obj-y  += transition.o
 
 obj-$(CONFIG_FSL_LSCH3) += fsl-lsch3/
-obj-$(CONFIG_TARGET_XILINX_ZYNQMP) += zynqmp/
+obj-$(CONFIG_ARCH_ZYNQMP) += zynqmp/
index b07932e80583e28b2c35e3f078eedbc15b92d8c5..c8fcfb6abbc115521ccacc8bd0d94e788f8a366f 100644 (file)
@@ -1,4 +1,12 @@
-if TARGET_XILINX_ZYNQMP
+if ARCH_ZYNQMP
+
+choice
+       prompt "Xilinx ZynqMP board select"
+
+config TARGET_ZYNQMP_EP
+       bool "ZynqMP EP Board"
+
+endchoice
 
 config SYS_BOARD
        default "zynqmp"
@@ -10,6 +18,6 @@ config SYS_SOC
        default "zynqmp"
 
 config SYS_CONFIG_NAME
-       default "xilinx_zynqmp"
+       default "xilinx_zynqmp_ep" if TARGET_ZYNQMP_EP
 
 endif
index da33340459443d8041bedd03484168472ead4f4e..20ca6522e5700fb47b67a8a80843ca4dcb18734a 100644 (file)
@@ -1,6 +1,7 @@
-XILINX_ZYNQMP BOARD
+XILINX_ZYNQMP_EP BOARD
 M:     Michal Simek <michal.simek@xilinx.com>
 S:     Maintained
 F:     board/xilinx/zynqmp/
 F:     include/configs/xilinx_zynqmp.h
-F:     configs/xilinx_zynqmp_defconfig
+F:     include/configs/xilinx_zynqmp_ep.h
+F:     configs/xilinx_zynqmp_ep_defconfig
similarity index 86%
rename from configs/xilinx_zynqmp_defconfig
rename to configs/xilinx_zynqmp_ep_defconfig
index 1c64eea50d4e4a5decb4ea01baa587c3c6a9e388..cbed891a5fa753dbdeab0faff4f6b27690b8789c 100644 (file)
@@ -1,6 +1,6 @@
 CONFIG_ARM=y
-CONFIG_TARGET_XILINX_ZYNQMP=y
-CONFIG_DEFAULT_DEVICE_TREE="zynqmp"
+CONFIG_ARCH_ZYNQMP=y
+CONFIG_DEFAULT_DEVICE_TREE="zynqmp-ep"
 # CONFIG_CMD_CONSOLE is not set
 # CONFIG_CMD_IMLS is not set
 # CONFIG_CMD_XIMG is not set
index ad82ed62890c35bb9af09c11eca177ce72176633..e1f287b917c08b96fef642c2f8206420e15312a9 100644 (file)
@@ -53,7 +53,6 @@
 #define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 0x400000)
 
 /* Serial setup */
-#define CONFIG_ZYNQ_SERIAL_UART0
 #define CONFIG_ZYNQ_SERIAL
 
 #define CONFIG_CONS_INDEX              0
@@ -61,8 +60,6 @@
 #define CONFIG_SYS_BAUDRATE_TABLE \
        { 4800, 9600, 19200, 38400, 57600, 115200 }
 
-#define CONFIG_ZYNQ_SDHCI0
-
 /* Command line configuration */
 #define CONFIG_CMD_ENV
 #define CONFIG_CMD_EXT2
 #define CONFIG_CMDLINE_EDITING
 #define CONFIG_SYS_MAXARGS             64
 
-#define CONFIG_ZYNQ_I2C0
-#define CONFIG_SYS_I2C_ZYNQ
-
 /* I2C */
 #if defined(CONFIG_SYS_I2C_ZYNQ)
 # define CONFIG_CMD_I2C
 # define CONFIG_SYS_I2C_ZYNQ_SLAVE             0
 #endif
 
-#define CONFIG_ZYNQMP_EEPROM
-
 /* EEPROM */
 #ifdef CONFIG_ZYNQMP_EEPROM
 # define CONFIG_CMD_EEPROM
diff --git a/include/configs/xilinx_zynqmp_ep.h b/include/configs/xilinx_zynqmp_ep.h
new file mode 100644 (file)
index 0000000..40a110d
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+ * Configuration for Xilinx ZynqMP emulation
+ * platforms. See zynqmp-common.h for ZynqMP
+ * common configs
+ *
+ * (C) Copyright 2014 - 2015 Xilinx, Inc.
+ * Michal Simek <michal.simek@xilinx.com>
+ * Siva Durga Prasad Paladugu <sivadur@xilinx.com>
+ *
+ * Based on Configuration for Versatile Express
+ *
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
+
+#ifndef __CONFIG_ZYNQMP_EP_H
+#define __CONFIG_ZYNQMP_EP_H
+
+#define CONFIG_ZYNQ_SERIAL_UART0
+#define CONFIG_ZYNQ_SDHCI0
+#define CONFIG_ZYNQ_I2C0
+#define CONFIG_SYS_I2C_ZYNQ
+#define CONFIG_ZYNQ_EEPROM
+
+#include <configs/xilinx_zynqmp.h>
+
+#endif /* __CONFIG_ZYNQMP_EP_H */