]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynq: Synchronize uart selection across all configs
authorMichal Simek <monstr@monstr.eu>
Mon, 24 Sep 2012 10:00:19 +0000 (12:00 +0200)
committerMichal Simek <monstr@monstr.eu>
Mon, 24 Sep 2012 15:12:51 +0000 (17:12 +0200)
Signed-off-by: Michal Simek <monstr@monstr.eu>
include/configs/zynq_afx.h
include/configs/zynq_common.h
include/configs/zynq_cseflash.h
include/configs/zynq_ep107.h
include/configs/zynq_zc70x.h
include/configs/zynq_zc770.h
include/configs/zynq_zed.h

index 5a766b9091ab9e4127f550756c1c7f3242f4e4aa..b11ac08c99184dd8054d584176bb75c3bc7c12b8 100644 (file)
@@ -18,6 +18,8 @@
 #ifndef __CONFIG_ZYNQ_AFX_H
 #define __CONFIG_ZYNQ_AFX_H
 
+#define CONFIG_ZYNQ_SERIAL_UART1
+
 #include <configs/zynq_common.h>
 
 #if defined(CONFIG_AFX_NOR)
  */
 #define PHYS_SDRAM_1_SIZE (128 * 1024 * 1024)
 
-/*
- * UART Settings
- */
-#define CONFIG_UART1
-
 /*
  * Ethernet Settings
  */
index 1b97b1608ce6621fbe5a62945398c08c49277101..a38b39043f59859e7a849213569be35cc7c82d56 100644 (file)
 #define CONFIG_IPADDR   192.168.0.99
 #define CONFIG_SERVERIP 192.168.0.101
 
+/* Zynq serial driver */
+#ifdef CONFIG_ZYNQ_SERIAL_UART0
+# define CONFIG_ZYNQ_SERIAL_BASEADDR0  0xE0000000
+# define CONFIG_ZYNQ_SERIAL_BAUDRATE0  CONFIG_BAUDRATE
+# define CONFIG_ZYNQ_SERIAL_CLOCK0     50000000
+#endif
+
+#ifdef CONFIG_ZYNQ_SERIAL_UART1
+# define CONFIG_ZYNQ_SERIAL_BASEADDR1  0xE0001000
+# define CONFIG_ZYNQ_SERIAL_BAUDRATE1  CONFIG_BAUDRATE
+# define CONFIG_ZYNQ_SERIAL_CLOCK1     50000000
+#endif
+
+#if defined(CONFIG_ZYNQ_SERIAL_UART0) || defined(CONFIG_ZYNQ_SERIAL_UART1)
+#define CONFIG_SERIAL_MULTI
+#define CONFIG_ZYNQ_SERIAL
+#endif
+
 #include <asm/arch/xparameters.h>
 
 #define CONFIG_SYS_TEXT_BASE 0x04000000
 #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 38400, 115200 }
 #define CONFIG_BOOTDELAY       3 /* -1 to Disable autoboot */
 
-#define        CONFIG_PSS_SERIAL
 #define        CONFIG_RTC_XPSSRTC
 
 #define CONFIG_SYS_PROMPT      "zynq-uboot> "
index ac218fdfa9f46f54836b7fcdf0bf8933221ca529..8f9640b1d607761b8f70a8115a6ab1d89dafd648 100644 (file)
@@ -6,6 +6,11 @@
 
 #include <configs/zynq_common.h>
 
+/* Disable uart console */
+#undef CONFIG_SERIAL_MULTI
+#undef CONFIG_ZYNQ_SERIAL
+
+
 #define CONFIG_ARM_DCC
 #define CONFIG_CPU_V6 /* Required by CONFIG_ARM_DCC */
 
@@ -15,7 +20,6 @@
 #undef CONFIG_OF_LIBFDT
 
 #undef CONFIG_ZYNQ_XIL_LQSPI
-#undef CONFIG_PSS_SERIAL
 #undef CONFIG_RTC_XPSSRTC
 
 #undef CONFIG_SYS_NO_FLASH
 /* Because (at least at first) we're going to be loaded via JTAG_Tcl */
 #define CONFIG_SKIP_LOWLEVEL_INIT
 
-/* HW to use */
-#define CONFIG_UART1
 #define CONFIG_TTC0
 //#define CONFIG_GEM0
 
index e47d1df08be0363a0fb6482cbaeebf4af4c58241..b869fd95981f9bd70c92b1a921bab4eba09603be 100644 (file)
@@ -20,6 +20,8 @@
 
 #define CONFIG_EP107 /* Board */
 
+#define CONFIG_ZYNQ_SERIAL_UART0
+
 #include <configs/zynq_common.h>
 
 #undef CONFIG_ZYNQ_XIL_LQSPI
 #endif
 
 /* HW to use */
-# define CONFIG_UART0
 #define CONFIG_TTC0
 #define CONFIG_GEM0
 #define CONFIG_ZYNQ_GEM
index 40ebcfff306fd69ac2dea2184ba093f648920cc2..e9c156a802b4f9ccff8f238d8cf81b1ee52d21f2 100644 (file)
@@ -18,6 +18,8 @@
 #ifndef __CONFIG_ZYNQ_ZC70X_H
 #define __CONFIG_ZYNQ_ZC70X_H
 
+#define CONFIG_ZYNQ_SERIAL_UART1
+
 #include <configs/zynq_common.h>
 
 #undef CONFIG_ZYNQ_XIL_LQSPI
@@ -46,7 +48,6 @@
 #define CONFIG_ZYNQ_IP_ENV
 
 /* HW to use */
-#define CONFIG_UART1
 #define CONFIG_TTC0
 #define CONFIG_GEM0
 #define CONFIG_ZYNQ_GEM
index f71a9fec845b1ee054de433185a6372659315f25..e9fc4f70703bc5ef28c4dbf00347f6d5361949bd 100644 (file)
 #ifndef __CONFIG_ZYNQ_ZC770_H
 #define __CONFIG_ZYNQ_ZC770_H
 
+
+#if defined(CONFIG_ZC770_XM010)
+# define CONFIG_ZYNQ_SERIAL_UART1
+
+#elif defined(CONFIG_ZC770_XM011)
+# define CONFIG_ZYNQ_SERIAL_UART1
+
+#elif defined(CONFIG_ZC770_XM012)
+# define CONFIG_ZYNQ_SERIAL_UART1
+
+#else
+# define CONFIG_ZYNQ_SERIAL_UART0
+#endif
+
 #include <configs/zynq_common.h>
 
 #if defined(CONFIG_ZC770_XM012)
  */
 #define PHYS_SDRAM_1_SIZE (1024 * 1024 * 1024)
 
-#if defined(CONFIG_ZC770_XM010) || defined(CONFIG_ZC770_XM011) \
-       || defined(CONFIG_ZC770_XM012)
-#define CONFIG_UART1
-#else
-#define CONFIG_UART0
-#endif
 
 /*
  * Ethernet Settings
index 6ad6887be3ee7d48c11b6a5097ee5cc411f72a0b..ed67ef840b35ee21a3dc0e76c43dce3544be57f0 100644 (file)
@@ -18,6 +18,8 @@
 #ifndef __CONFIG_ZYNQ_ZED_H
 #define __CONFIG_ZYNQ_ZED_H
 
+#define CONFIG_ZYNQ_SERIAL_UART1
+
 #include <configs/zynq_common.h>
 
 #undef CONFIG_ZYNQ_XIL_LQSPI
@@ -71,7 +73,6 @@
 #define CONFIG_ZYNQ_IP_ENV
 
 /* HW to use */
-#define CONFIG_UART1
 #define CONFIG_TTC0
 #define CONFIG_GEM0
 #define CONFIG_ZYNQ_GEM