public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/4] zynqmp: gem: Set data bus with to 64bit for arm64
@ 2015-05-26 11:40 Michal Simek
  2015-05-26 11:40 ` [U-Boot] [PATCH 2/4] zynqmp: gem: Flush the rx buffers while transmitting Michal Simek
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Michal Simek @ 2015-05-26 11:40 UTC (permalink / raw)
  To: u-boot

From: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>

Set the data bus width to 64-bit AMBA Databus width in config register.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 drivers/net/zynq_gem.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c
index c723dbb0a694..22195805e6d6 100644
--- a/drivers/net/zynq_gem.c
+++ b/drivers/net/zynq_gem.c
@@ -58,7 +58,14 @@
 #define ZYNQ_GEM_NWCFG_MDCCLKDIV	0x000080000 /* Div pclk by 32, 80MHz */
 #define ZYNQ_GEM_NWCFG_MDCCLKDIV2	0x0000c0000 /* Div pclk by 48, 120MHz */
 
-#define ZYNQ_GEM_NWCFG_INIT		(ZYNQ_GEM_NWCFG_FDEN | \
+#ifdef CONFIG_TARGET_XILINX_ZYNQMP
+# define ZYNQ_GEM_DBUS_WIDTH	(1 << 21) /* 64 bit bus */
+#else
+# define ZYNQ_GEM_DBUS_WIDTH	(0 << 21) /* 32 bit bus */
+#endif
+
+#define ZYNQ_GEM_NWCFG_INIT		(ZYNQ_GEM_DBUS_WIDTH | \
+					ZYNQ_GEM_NWCFG_FDEN | \
 					ZYNQ_GEM_NWCFG_FSREM | \
 					ZYNQ_GEM_NWCFG_MDCCLKDIV)
 
-- 
2.3.5

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-05-28  7:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-26 11:40 [U-Boot] [PATCH 1/4] zynqmp: gem: Set data bus with to 64bit for arm64 Michal Simek
2015-05-26 11:40 ` [U-Boot] [PATCH 2/4] zynqmp: gem: Flush the rx buffers while transmitting Michal Simek
2015-05-26 11:40 ` [U-Boot] [PATCH 3/4] zynq: gem: Increase the Rx buffer descriptors to 32 Michal Simek
2015-05-26 11:40 ` [U-Boot] [PATCH 4/4] zynq: gem: Setting up WRAP bit for one TX bd Michal Simek
2015-05-27 18:08 ` [U-Boot] [PATCH 1/4] zynqmp: gem: Set data bus with to 64bit for arm64 Joe Hershberger
2015-05-28  7:01   ` Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox