<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/net/designware.h, branch v2016.03</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/drivers/net/designware.h?h=v2016.03</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/net/designware.h?h=v2016.03'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2016-01-28T18:32:44Z</updated>
<entry>
<title>net/designware: add support of max-speed device tree property</title>
<updated>2016-01-28T18:32:44Z</updated>
<author>
<name>Alexey Brodkin</name>
<email>Alexey.Brodkin@synopsys.com</email>
</author>
<published>2016-01-13T13:59:37Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=6968ec921634b69f700f3e4ccdc35527160ac77a'/>
<id>urn:sha1:6968ec921634b69f700f3e4ccdc35527160ac77a</id>
<content type='text'>
This property allows to specify fastest connection mode supported by
the MAC (as opposed to features of the phy).

There are situations when phy may handle faster modes than the
MAC (or even it's particular implementation or even due to CPU being too
slow).

This property is a standard one in Linux kernel these days and some
boards do already use it in their device tree descriptions.

Signed-off-by: Alexey Brodkin &lt;abrodkin@synopsys.com&gt;
Cc: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Cc: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
Cc: Sonic Zhang &lt;sonic.zhang@analog.com&gt;
cc: Simon Glass &lt;sjg@chromium.org&gt;
Acked-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</content>
</entry>
<entry>
<title>dm: net: Adjust designware driver to support driver model</title>
<updated>2015-04-18T17:11:37Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2015-04-05T22:07:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=75577ba45a42420d91ccfd9b9ce4ea1298f507ef'/>
<id>urn:sha1:75577ba45a42420d91ccfd9b9ce4ea1298f507ef</id>
<content type='text'>
Add driver model support to the designware driver. This reuses most of the
existing code except for some duplication in the probe() method.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Acked-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</content>
</entry>
<entry>
<title>net: configure DWMAC DMA by default AXI burst length</title>
<updated>2015-03-05T16:17:53Z</updated>
<author>
<name>Sonic Zhang</name>
<email>sonic.zhang@analog.com</email>
</author>
<published>2015-01-29T05:37:31Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2ddaf13bd28d9d9450831e84e30d617d2f49f1bd'/>
<id>urn:sha1:2ddaf13bd28d9d9450831e84e30d617d2f49f1bd</id>
<content type='text'>
Board can define its own AXI burst length to improve DWMAC DMA performance.

v2-changes:
- Avoid write burst len register when the Macro is not defined.

v3-changes:
- Add axi_bus register member to struct eth_dma_regs.

Signed-off-by: Sonic Zhang &lt;sonic.zhang@analog.com&gt;
Acked-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</content>
</entry>
<entry>
<title>net/designware: Make DMA burst length configurable and reduce by default</title>
<updated>2014-05-25T15:23:58Z</updated>
<author>
<name>Ian Campbell</name>
<email>ijc@hellion.org.uk</email>
</author>
<published>2014-05-08T21:26:35Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=49692c5f517d8e44ed9db0de778728fe7d2a300c'/>
<id>urn:sha1:49692c5f517d8e44ed9db0de778728fe7d2a300c</id>
<content type='text'>
The correct value for this setting can vary across SoCs and boards, so make it
configurable.

Also reduce the default value to 8, which is the same default as used in the
Linux driver.

Signed-off-by: Ian Campbell &lt;ijc@hellion.org.uk&gt;
Cc: Alexey Brodkin &lt;abrodkin@synopsys.com&gt;
</content>
</entry>
<entry>
<title>net/designware: reorder struct dw_eth_dev to pack more efficiently.</title>
<updated>2014-05-25T15:23:48Z</updated>
<author>
<name>Ian Campbell</name>
<email>ijc@hellion.org.uk</email>
</author>
<published>2014-05-14T18:30:29Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=1857075a7f00ff0a62b13170a78c70ff94e30f96'/>
<id>urn:sha1:1857075a7f00ff0a62b13170a78c70ff94e30f96</id>
<content type='text'>
On Thu, 2014-05-08 at 22:26 +0100, Ian Campbell wrote:
&gt; The {r,t}xbuffs fields also need to be aligned. Previously this was done
&gt; implicitly because they immediately followed the descriptor tables. Make this
&gt; explicit and also move to the head of the struct.

Looks like I managed to not actually commit the move of the field to the
head of the struct! v3.1 follows....

Ian.

8&lt;------------

&gt;From 2937ba01841887317f6792709ed57cb86b5fc0cd Mon Sep 17 00:00:00 2001
From: Ian Campbell &lt;ijc@hellion.org.uk&gt;
Date: Thu, 1 May 2014 19:45:15 +0100
Subject: [PATCH] net/designware: reorder struct dw_eth_dev to pack more
 efficiently.

The {tx,rx}_mac_descrtable fields are aligned to ARCH_DMA_MINALIGN, which could
be 256 or even larger. That means there is a potentially huge hole in the
struct before those fields, so move them to the front where they are better
packed.

Moving them to the front also helps ensure that so long as dw_eth_dev is
properly aligned (which it is since "net/designware: ensure device private data
is DMA aligned.") the {tx,rx}_mac_descrtable will be too, or at least avoids
having to worry too much about compiler specifics.

The {r,t}xbuffs fields also need to be aligned. Previously this was done
implicitly because they immediately followed the descriptor tables. Make this
explicit and also move to the head of the struct.

Signed-off-by: Ian Campbell &lt;ijc@hellion.org.uk&gt;
Cc: Alexey Brodkin &lt;abrodkin@synopsys.com&gt;
Tested-by: Siarhei Siamashka &lt;siarhei.siamashka@gmail.com&gt;
Reviewed-by: Siarhei Siamashka &lt;siarhei.siamashka@gmail.com&gt;
</content>
</entry>
<entry>
<title>net/designware: align DMA buffer descriptors to D$ line</title>
<updated>2014-03-28T19:06:30Z</updated>
<author>
<name>Alexey Brodkin</name>
<email>Alexey.Brodkin@synopsys.com</email>
</author>
<published>2014-03-21T12:16:57Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a7b26dbb49139535992c6d4c282bcf258b3f7fa3'/>
<id>urn:sha1:a7b26dbb49139535992c6d4c282bcf258b3f7fa3</id>
<content type='text'>
It's important to have ability to flush/invalidate each DMA buffer descriptor
individually to prevent incoherency of adjacent BDs.

Signed-off-by: Alexey Brodkin &lt;abrodkin@synopsys.com&gt;

Cc: Vineet Gupta &lt;vgupta@synopsys.com&gt;
Cc: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
Cc: Vipin Kumar &lt;vipin.kumar@st.com&gt;
Cc: Stefan Roese &lt;sr@denx.de&gt;
Cc: Shiraz Hashim &lt;shiraz.hashim@st.com&gt;
Cc: Albert ARIBAUD &lt;albert.u.boot@aribaud.net&gt;
Cc: Amit Virdi &lt;amit.virdi@st.com&gt;
Cc: Sonic Zhang &lt;sonic.zhang@analog.com&gt;
</content>
</entry>
<entry>
<title>net/designware - switch driver to phylib usage</title>
<updated>2014-02-07T14:16:46Z</updated>
<author>
<name>Alexey Brodkin</name>
<email>Alexey.Brodkin@synopsys.com</email>
</author>
<published>2014-01-22T16:54:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=92a190aaab3536d695c51e0739f925910eb49889'/>
<id>urn:sha1:92a190aaab3536d695c51e0739f925910eb49889</id>
<content type='text'>
With this change driver will benefit from existing phylib and thus
custom phy functionality implemented in the driver will go away:
 * Instantiation of the driver is now much shorter - 2 parameters
instead of 4.
 * Simplified phy management/functoinality in driver is replaced with
rich functionality of phylib.
 * Support of custom phy initialization is now done with existing
"board_phy_config".

Note that after this change some previously used config options
(driver-specific PHY configuration) will be obsolete and they are simply
substituted with similar options of phylib.

For example:
 * CONFIG_DW_AUTONEG - no need in this one. Autonegotiation is enabled
by default.
 * CONFIG_DW_SEARCH_PHY - if one wants to specify attached phy
explicitly CONFIG_PHY_ADDR board config option has to be used, otherwise
automatically the first discovered on MDIO bus phy will be used

I believe there's no need now in "doc/README.designware_eth" because
user only needs to instantiate the driver with "designware_initialize"
whose prototype exists in "include/netdev.h".

Cc: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
Cc: Vipin Kumar &lt;vipin.kumar@st.com&gt;
Cc: Stefan Roese &lt;sr@denx.de&gt;
Cc: Mischa Jonker &lt;mjonker@synopsys.com&gt;
Cc: Shiraz Hashim &lt;shiraz.hashim@st.com&gt;
Cc: Albert ARIBAUD &lt;albert.u.boot@aribaud.net&gt;
Cc: Amit Virdi &lt;amit.virdi@st.com&gt;
Cc: Sonic Zhang &lt;sonic.zhang@analog.com&gt;
Signed-off-by: Alexey Brodkin &lt;abrodkin@synopsys.com&gt;
</content>
</entry>
<entry>
<title>net: designware: Fix alignment of buffer descriptors</title>
<updated>2013-11-22T22:50:55Z</updated>
<author>
<name>Alexey Brodkin</name>
<email>Alexey.Brodkin@synopsys.com</email>
</author>
<published>2013-09-25T15:27:48Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ed102be70f762afc39bda165ba57ea84dc9be39e'/>
<id>urn:sha1:ed102be70f762afc39bda165ba57ea84dc9be39e</id>
<content type='text'>
It's important that buffer descriptors are aligned in accordance to GMAC
data bus width (32/64/128-bit). It's safe to align to 128-bit (16-bytes)
for every bus width type.

If buffer descriptor is improperly aligned GMAC discards lower bits of
provided address and as a result reads from improper location that
doesn't match expected fields.

Commit ef76025a99247cdb8f927a2c9f15400678dfb599 "net: Multiple
updates/enhancements to designware.c" introduced another structure
member "link_printed" right before buffer descriptors while "padding"
member was left untouched. This together with alignment of structure
itself to 16-byte boundary forces buffer descriptoprs always to be
4-byte aligned that causes driver complete disfunction if GMAC bus width
is 64 or 128-bit.

Proposed change makes sure all buffer descriptors are 16-byte (128-bit)
aligned.

Signed-off-by: Alexey Brodkin &lt;abrodkin@synopsys.com&gt;
Patch: 277902
</content>
</entry>
<entry>
<title>Add GPL-2.0+ SPDX-License-Identifier to source files</title>
<updated>2013-07-24T13:44:38Z</updated>
<author>
<name>Wolfgang Denk</name>
<email>wd@denx.de</email>
</author>
<published>2013-07-08T07:37:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=1a4596601fd395f3afb8f82f3f840c5e00bdd57a'/>
<id>urn:sha1:1a4596601fd395f3afb8f82f3f840c5e00bdd57a</id>
<content type='text'>
Signed-off-by: Wolfgang Denk &lt;wd@denx.de&gt;
[trini: Fixup common/cmd_io.c]
Signed-off-by: Tom Rini &lt;trini@ti.com&gt;
</content>
</entry>
<entry>
<title>net: Multiple updates/enhancements to designware.c</title>
<updated>2012-07-07T12:07:42Z</updated>
<author>
<name>Stefan Roese</name>
<email>sr@denx.de</email>
</author>
<published>2012-05-07T10:04:25Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ef76025a99247cdb8f927a2c9f15400678dfb599'/>
<id>urn:sha1:ef76025a99247cdb8f927a2c9f15400678dfb599</id>
<content type='text'>
This patch adds the following changes to designware ethernet driver
found on the ST SPEAr SoC:

- Don't init MAC &amp; PHY upon startup. This causes a delay, waiting for
  the auto negotiation to complete. And we don't want this delay to
  always happen. Especially not on platforms where ethernet is not
  used at all (e.g. booting via flash).
  Instead postpone the MAC / PHY configuration to the stage, where
  ethernet is first used.
- Add possibility for board specific PHY init code. This is needed
  for example on the X600 board, where the Vitesse PHY needs to be
  configured for GMII mode.
  This board specific PHY init is done via the function
  designware_board_phy_init(). And this driver now adds a weak default
  which can be overridden by board code.
- Use common functions miiphy_speed() &amp; miiphy_duplex() to read
  link status from PHY.
- Print status and progress of auto negotiation.
- Print link status (speed, dupex) upon first usage.

Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
Cc: Amit Virdi &lt;amit.virdi@st.com&gt;
Cc: Vipin Kumar &lt;vipin.kumar@st.com&gt;
Cc: Joe Hershberger &lt;joe.hershberger@gmail.com&gt;
Acked-by: Joe Hershberger &lt;joe.hershberger@gmail.com&gt;
</content>
</entry>
</feed>
