From: Stephan Linz <linz@li-pro.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] net: Add National DP83865 PHY to LL TEMAC driver
Date: Sat, 20 Nov 2010 19:48:04 +0100 [thread overview]
Message-ID: <201011201948.04736.linz@li-pro.net> (raw)
In-Reply-To: <AANLkTim18zpgsB9DM0SXpnz4ZOddk=D_iJsCp4wegcJr@mail.gmail.com>
Am Samstag, 20. November 2010, um 10:23:18 schrieb Michal Simek:
> Hi Stephan,
Hi Michal,
Hi Ben (see last questen to you below),
>
> 2010/11/19 Stephan Linz <linz@li-pro.net>
>
> > Adding the missing phy-id for the National 10/100/1000 MBit
> > PHY DP83865 used on the Xilinx Spartan-3A DSP evaluation board
> > SP3ADSP1800.
>
> I understand that you want to add support for PHY which is on xilinx
> development
right.
> board but here is one design problem.
> Is this really way how to add support for PHYs? As you can suggest the
> answer is NO.
Yes of course, that is my opinion too.
>
> I was talking about with Ben some months ago and there is only one solution
> which can be acceptable. The solution is phy lib. Not sure if Ben did any
> basic tests with
> it but this is sensible way how to do it.
@Ben: last question to you: Did you any basic tests with the new phy library?
Is there any documentation?
>
> The main reason is that Xilinx have several development boards and every
> custom board
> can have different phy and I don't want to see that we will add support for
> it directly to driver.
Yes I know. This will be a problem if we do not use the phy library.
>
> In general I agree that it is necessary to support more PHYs at least all
> which are on
> Xilinx development boards but I can't agree with adding it directly to the
> driver.
I accept your decision and will maintain my own patch set until we can use the
new phy library.
Other question for the transitional time to use the phy lib. Can we introduce
a LL TEMAC configuration for the board specific phy id? Example:
<include/configs/microblaze-generic.h>
#define CONFIG_XILINX_LL_TEMAC_PHYID 0x1410cc2
<drivers/net/xilinx_ll_temac.c>
#ifndef CONFIG_XILINX_LL_TEMAC_PHYID
#error define phyid in configuration
#endif
xps_ll_temac_phy_ctrl():
if (i == CONFIG_XILINX_LL_TEMAC_PHYID) {
....
}
Best regards,
Stephan
>
> Regards,
> Michal
>
> > Signed-off-by: Stephan Linz <linz@li-pro.net>
> > ---
> > drivers/net/xilinx_ll_temac.c | 9 +++++++--
> > 1 files changed, 7 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/net/xilinx_ll_temac.c
> > b/drivers/net/xilinx_ll_temac.c index a72e072..b19a74a 100644
> > --- a/drivers/net/xilinx_ll_temac.c
> > +++ b/drivers/net/xilinx_ll_temac.c
> > @@ -287,8 +287,11 @@ static int xps_ll_temac_phy_ctrl(struct eth_device
> > *dev)
> > return 1;
> > }
> >
> > - /* Marwell 88e1111 id - ml50x */
> > - if (i == 0x1410cc2) {
> > + /*
> > + * Marwell 88e1111 id - ml50x, ml605
> > + * National DP83865 id - sp3adsp1800
> > + */
> > + if (i == 0x1410cc2 || i == 0x20005c7a) {
> > result = xps_ll_temac_hostif_get(dev, 0, phy_addr, 5);
> > if ((result & 0x8000) == 0x8000) {
> > xps_ll_temac_indirect_set(dev, 0, EMMC,
> > 0x80000000); @@ -305,6 +308,8 @@ static int xps_ll_temac_phy_ctrl(struct
> > eth_device *dev)
> > }
> > return 1;
> > }
> > +
> > + printf("Unsupported PHY\n");
> > return 0;
> > }
> >
> > --
> > 1.6.0.4
--
Viele Gr??e,
Stephan Linz
______________________________________________________________________________
OpenDCC: http://www.li-pro.net/opendcc.phtml
PC/M: http://www.li-pro.net/pcm.phtml
CDK4AVR: http://cdk4avr.sourceforge.net/
CDK4NIOS: http://cdk4nios.sourceforge.net/
CDK4MSP: http://cdk4msp.sourceforge.net/
CPM4L: http://download.opensuse.org/repositories/home:/rexut:/CPM4L
next prev parent reply other threads:[~2010-11-20 18:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-19 18:54 [U-Boot] [PATCH 1/2] net: fix some bugs in LL TEMAC driver Stephan Linz
2010-11-19 18:54 ` [U-Boot] [PATCH 2/2] net: Add National DP83865 PHY to " Stephan Linz
2010-11-20 9:23 ` Michal Simek
2010-11-20 18:48 ` Stephan Linz [this message]
2010-11-20 9:27 ` [U-Boot] [PATCH 1/2] net: fix some bugs in " Michal Simek
2010-11-20 18:48 ` Stephan Linz
2010-11-22 9:46 ` [U-Boot] corrections for LL TEMAC bug fixing Stephan Linz
2010-11-22 9:46 ` [U-Boot] [PATCH V2 1/1] net: fix some bugs in LL TEMAC driver Stephan Linz
2010-11-28 20:35 ` Wolfgang Denk
2010-11-29 11:06 ` Stephan Linz
2010-12-03 8:48 ` Michal Simek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201011201948.04736.linz@li-pro.net \
--to=linz@li-pro.net \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox