<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/net/designware.c, branch v2014.04-rc2</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.c?h=v2014.04-rc2</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/net/designware.c?h=v2014.04-rc2'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2014-02-07T14:17:05Z</updated>
<entry>
<title>net/designware: make driver compatible with data cache</title>
<updated>2014-02-07T14:17:05Z</updated>
<author>
<name>Alexey Brodkin</name>
<email>Alexey.Brodkin@synopsys.com</email>
</author>
<published>2014-01-22T16:49:09Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=50b0df814b0f75c08a3d45a017016a75af3edb5d'/>
<id>urn:sha1:50b0df814b0f75c08a3d45a017016a75af3edb5d</id>
<content type='text'>
Up until now this driver only worked with data cache disabled.
To make it work with enabled data cache following changes were required:

 * Flush Tx/Rx buffer descriptors their modification
 * Invalidate Tx/Rx buffer descriptors before reading its values
 * Flush cache for data passed from CPU to GMAC
 * Invalidate cache for data passed from GMAC to CPU

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 - 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: add explicit reset of {tx|rx}_currdescnum</title>
<updated>2014-02-07T14:16:26Z</updated>
<author>
<name>Alexey Brodkin</name>
<email>Alexey.Brodkin@synopsys.com</email>
</author>
<published>2014-01-13T09:28:38Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=74cb708d5853854d28547b917d4b8a5588ee7324'/>
<id>urn:sha1:74cb708d5853854d28547b917d4b8a5588ee7324</id>
<content type='text'>
Driver "init" function might be called multiple times.
On every "init" Tx/Rx buffer descriptors are initialized: "descs_init"
-&gt; "{tx|rx}_descs_init".

In its turn those init functions set MAC's "{tx|rx}desclistaddr" to
point on the first buffer descriptor in the list.

So CPU to start operation from the first buffer descriptor as well after
every "init" we have to reset "{tx|rx}_currdescnum".

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;
Signed-off-by: Alexey Brodkin &lt;abrodkin@synopsys.com&gt;
</content>
</entry>
<entry>
<title>net: designware: Respect "bus mode" register contents on SW reset</title>
<updated>2013-11-22T22:50:54Z</updated>
<author>
<name>Alexey Brodkin</name>
<email>Alexey.Brodkin@synopsys.com</email>
</author>
<published>2013-09-25T13:33:10Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=227ad7b2b6fab024fff6f60613b0e90c9e3a6724'/>
<id>urn:sha1:227ad7b2b6fab024fff6f60613b0e90c9e3a6724</id>
<content type='text'>
"bus mode" register contains lots of fields and some of them don't
expect to be written with 0 (zero). So since we're only interested in
resetting MAC (which is done with setting the least significant bit of
this register with "0") I believe it's better to modify only 1 bit of
the register.

Signed-off-by: Alexey Brodkin &lt;abrodkin@synopsys.com&gt;
Acked-by: Vipin Kumar &lt;vipin.kumar@st.com&gt;
Patch: 277864
</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/designware: Do not select MIIPORT for RGMII interface</title>
<updated>2013-06-25T00:10:16Z</updated>
<author>
<name>Vipin Kumar</name>
<email>vipin.kumar@st.com</email>
</author>
<published>2012-12-13T11:52:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=7091915ad7a58d7884b7353b87373847ae943e1c'/>
<id>urn:sha1:7091915ad7a58d7884b7353b87373847ae943e1c</id>
<content type='text'>
Do not select MIIPORT for RGMII interface

Signed-off-by: Vipin Kumar &lt;vipin.kumar@st.com&gt;
Acked-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>net/designware: Consecutive writes to the same register to be avoided</title>
<updated>2012-07-11T18:15:31Z</updated>
<author>
<name>Dinh Nguyen</name>
<email>gills702@gmail.com</email>
</author>
<published>2012-06-08T05:26:52Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=66f119e50cc854695a3709c67bf6a6c8ef60f6bc'/>
<id>urn:sha1:66f119e50cc854695a3709c67bf6a6c8ef60f6bc</id>
<content type='text'>
This commit is an add-on to f6c4191f. There are a few registers where
consecutive writes to the same location should be avoided or have a delay.

According to Synopsys, here is a list of the registers and bit(s) where
consecutive writes should be avoided or a delay is required:

DMA Registers:
Register 0        Bit 7
Register 6        All bits except for 24, 16-13, 2-1.

GMAC Registers:
Registers 0-3     All bits
Registers 6-7     All bits
Register 10       All bits
Register 11       All bits except for 5-6.
Registers 16-47   All bits
Register 48       All bits except for 18-16, 14.
Register 448      Bit 4.
Register 459      Bits 0-3.

Signed-off-by: Dinh Nguyen &lt;dinguyen@altera.com&gt;
Reviewed-by: Matthew Gerlach &lt;mgerlach@altera.com&gt;
Acked-by: Amit Virdi &lt;amit.virdi@st.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>
<entry>
<title>SPEAr: Add interface information in initialization</title>
<updated>2012-07-07T12:07:40Z</updated>
<author>
<name>Vipin Kumar</name>
<email>vipin.kumar@st.com</email>
</author>
<published>2012-05-07T07:36:44Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9afc1af01f2d4b033e0da5df105b399949976a12'/>
<id>urn:sha1:9afc1af01f2d4b033e0da5df105b399949976a12</id>
<content type='text'>
Few Designware peripheral registers need to be modified based on the
ethernet interface selected by the board. This patch supports interface
information in ethernet driver

Signed-off-by: Vipin Kumar &lt;vipin.kumar@st.com&gt;
Signed-off-by: Amit Virdi &lt;amit.virdi@st.com&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>net: Fix remaining API interface breakage</title>
<updated>2012-05-23T19:19:21Z</updated>
<author>
<name>Joe Hershberger</name>
<email>joe.hershberger@ni.com</email>
</author>
<published>2012-05-22T18:36:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=10cbe3b6a4b2289906fc94bb26810191607ee748'/>
<id>urn:sha1:10cbe3b6a4b2289906fc94bb26810191607ee748</id>
<content type='text'>
These are all the files which use the API incorrectly but did not get
built using MAKEALL -a powerpc|arm.  I have no compiler for them, but
the remaining issues should be far less than without this patch.

Any outstanding issues are left to the maintainers of boards that use
these drivers.

Signed-off-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</content>
</entry>
</feed>
