<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/net/designware.c, branch v2012.07</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<entry>
<title>net: Multiple updates/enhancements to designware.c</title>
<updated>2012-07-07T12:07:42+00:00</updated>
<author>
<name>Stefan Roese</name>
<email>sr@denx.de</email>
</author>
<published>2012-05-07T10:04:25+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ef76025a99247cdb8f927a2c9f15400678dfb599'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</content>
</entry>
<entry>
<title>SPEAr: Add interface information in initialization</title>
<updated>2012-07-07T12:07:40+00:00</updated>
<author>
<name>Vipin Kumar</name>
<email>vipin.kumar@st.com</email>
</author>
<published>2012-05-07T07:36:44+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9afc1af01f2d4b033e0da5df105b399949976a12'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</content>
</entry>
<entry>
<title>net: Fix remaining API interface breakage</title>
<updated>2012-05-23T19:19:21+00:00</updated>
<author>
<name>Joe Hershberger</name>
<email>joe.hershberger@ni.com</email>
</author>
<published>2012-05-22T18:36:19+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=10cbe3b6a4b2289906fc94bb26810191607ee748'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</content>
</entry>
<entry>
<title>net/designware: Change timeout loop implementation</title>
<updated>2012-04-04T15:47:53+00:00</updated>
<author>
<name>Amit Virdi</name>
<email>amit.virdi@st.com</email>
</author>
<published>2012-03-26T00:09:59+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=cafabe1995af20d02a000a984ae38693a6f9b900'/>
<id>cafabe1995af20d02a000a984ae38693a6f9b900</id>
<content type='text'>
The new implementation changes the timeout loop implementation to avoid 1 ms
delay in each failing test. It also configures the delay to 10usec.

Signed-off-by: Amit Virdi &lt;amit.virdi@st.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The new implementation changes the timeout loop implementation to avoid 1 ms
delay in each failing test. It also configures the delay to 10usec.

Signed-off-by: Amit Virdi &lt;amit.virdi@st.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net/designware: Set ANAR to 0x1e1</title>
<updated>2012-04-04T15:47:40+00:00</updated>
<author>
<name>Armando Visconti</name>
<email>armando.visconti@st.com</email>
</author>
<published>2012-03-26T00:09:58+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=20a5dde1495c74fd6c8b977a2619538b6bee8e0b'/>
<id>20a5dde1495c74fd6c8b977a2619538b6bee8e0b</id>
<content type='text'>
This patch forces the advertised capabilities during auto
negotiation to always be 10/100 Mbps and half/full as duplexing.

Signed-off-by: Armando Visconti &lt;armando.visconti@st.com&gt;
Signed-off-by: Amit Virdi &lt;amit.virdi@st.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch forces the advertised capabilities during auto
negotiation to always be 10/100 Mbps and half/full as duplexing.

Signed-off-by: Armando Visconti &lt;armando.visconti@st.com&gt;
Signed-off-by: Amit Virdi &lt;amit.virdi@st.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net/designware: Program phy registers when auto-negotiation is ON</title>
<updated>2012-04-04T15:47:34+00:00</updated>
<author>
<name>Vikas Manocha</name>
<email>vikas.manocha@st.com</email>
</author>
<published>2012-03-26T00:09:57+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=e25c90b45c4764e60e44f302ad337ed6ce066468'/>
<id>e25c90b45c4764e60e44f302ad337ed6ce066468</id>
<content type='text'>
If AN(auto-negotiation) is ON, speed bit of control register are not
applicable.  Also phy registers were not getting programmed as per the
result of AN. This patch sets only AN bit &amp; restart AN bit for AN ON
selection &amp; programs PHY registers as per AN result.

Signed-off-by: Vikas Manocha &lt;vikas.manocha@st.com&gt;
Signed-off-by: Amit Virdi &lt;amit.virdi@st.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If AN(auto-negotiation) is ON, speed bit of control register are not
applicable.  Also phy registers were not getting programmed as per the
result of AN. This patch sets only AN bit &amp; restart AN bit for AN ON
selection &amp; programs PHY registers as per AN result.

Signed-off-by: Vikas Manocha &lt;vikas.manocha@st.com&gt;
Signed-off-by: Amit Virdi &lt;amit.virdi@st.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net/designware: Try configuring phy on each dw_eth_init</title>
<updated>2012-04-04T15:47:21+00:00</updated>
<author>
<name>Vipin Kumar</name>
<email>vipin.kumar@st.com</email>
</author>
<published>2012-03-26T00:09:56+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=13edd1706c56371dc6a67f7bef874f6d8b7af8eb'/>
<id>13edd1706c56371dc6a67f7bef874f6d8b7af8eb</id>
<content type='text'>
Phy autonegotiation works only when the ethernet cable is plugged in.
Since the phy was configured only at the init time, a plugged in cable
was necessary to initialize the phy properly.

This patch keeps a flag to check if the phy initialization has
succeeded, and calls configure_phy routine at every init if this flag
reports otherwise.

Signed-off-by: Vipin Kumar &lt;vipin.kumar@st.com&gt;
Signed-off-by: Amit Virdi &lt;amit.virdi@st.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Phy autonegotiation works only when the ethernet cable is plugged in.
Since the phy was configured only at the init time, a plugged in cable
was necessary to initialize the phy properly.

This patch keeps a flag to check if the phy initialization has
succeeded, and calls configure_phy routine at every init if this flag
reports otherwise.

Signed-off-by: Vipin Kumar &lt;vipin.kumar@st.com&gt;
Signed-off-by: Amit Virdi &lt;amit.virdi@st.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net/designware: Consecutive writes must have delay</title>
<updated>2012-04-04T15:47:09+00:00</updated>
<author>
<name>Armando Visconti</name>
<email>armando.visconti@st.com</email>
</author>
<published>2012-03-26T00:09:55+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=aa51005c3f7e517164fa000d68672041f6c4191f'/>
<id>aa51005c3f7e517164fa000d68672041f6c4191f</id>
<content type='text'>
This patch solves a TX/RX problem which happens at 10Mbps, due to the
fact that we are not respecting 4 cyles of the phy_clk (2.5MHz) between
two consecutive writes on the same register.

Signed-off-by: Armando Visconti &lt;armando.visconti@st.com&gt;
Signed-off-by: Amit Virdi &lt;amit.virdi@st.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch solves a TX/RX problem which happens at 10Mbps, due to the
fact that we are not respecting 4 cyles of the phy_clk (2.5MHz) between
two consecutive writes on the same register.

Signed-off-by: Armando Visconti &lt;armando.visconti@st.com&gt;
Signed-off-by: Amit Virdi &lt;amit.virdi@st.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net/designware: Phy address fix</title>
<updated>2012-04-04T15:46:59+00:00</updated>
<author>
<name>Vipin KUMAR</name>
<email>vipin.kumar@st.com</email>
</author>
<published>2012-03-26T00:09:54+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=024333c96fecb698efe703e01f2326c1256114a4'/>
<id>024333c96fecb698efe703e01f2326c1256114a4</id>
<content type='text'>
The code assumes the phy address to be &gt; 0, which is not true, the phy address
can be in the range 0-31.

Signed-off-by: Vipin Kumar &lt;vipin.kumar@st.com&gt;
Signed-off-by: Amit Virdi &lt;amit.virdi@st.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The code assumes the phy address to be &gt; 0, which is not true, the phy address
can be in the range 0-31.

Signed-off-by: Vipin Kumar &lt;vipin.kumar@st.com&gt;
Signed-off-by: Amit Virdi &lt;amit.virdi@st.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net/designware: Fix to restore hw mac address</title>
<updated>2012-04-04T15:46:39+00:00</updated>
<author>
<name>Vipin KUMAR</name>
<email>vipin.kumar@st.com</email>
</author>
<published>2012-03-26T00:09:52+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c7f6dbe736f3f57436ba162f986691f7e862eb4d'/>
<id>c7f6dbe736f3f57436ba162f986691f7e862eb4d</id>
<content type='text'>
The network controller mac resets hardware address stored in MAC_HI and MAC_LO
registers if mac is resetted. So, hw mac address needs to be restored in case
mac is explicitly resetted from driver.

Signed-off-by: Vipin Kumar &lt;vipin.kumar@st.com&gt;
Signed-off-by: Amit Virdi &lt;amit.virdi@st.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The network controller mac resets hardware address stored in MAC_HI and MAC_LO
registers if mac is resetted. So, hw mac address needs to be restored in case
mac is explicitly resetted from driver.

Signed-off-by: Vipin Kumar &lt;vipin.kumar@st.com&gt;
Signed-off-by: Amit Virdi &lt;amit.virdi@st.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
