public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "André Schwarz" <andre.schwarz@matrix-vision.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] add config options for VSC8601 RGMII PHY
Date: Tue, 29 Apr 2008 16:45:58 +0200	[thread overview]
Message-ID: <481734A6.6060704@matrix-vision.de> (raw)
In-Reply-To: <2acbd3e40804290734l315c57fevd9ba1ddfc5445da8@mail.gmail.com>

Andy,

it's no problem to re-send a "more suitable" patch as soon as Ben has 
finished the re-work. I'll wait for him and send an updated version to 
the list.


Cheers,
Andr?

Andy Fleming schrieb:
> On Tue, Apr 29, 2008 at 1:58 AM, Andre Schwarz
> <andre.schwarz@matrix-vision.de> wrote:
>> Andy,
>>
>>  thanks for your comments.
>>
>>
>>  Andy Fleming schrieb:
>>
>>> On Thu, Apr 24, 2008 at 9:45 AM, Andre Schwarz
>>  > <andre.schwarz@matrix-vision.de> wrote:
>>  >
>>  >
>>  >>  {MIIM_VSC8601_EPHY_CON,MIIM_VSC8601_EPHY_CON_INIT_SKEW,NULL},
>>  >>  +#if defined(CFG_VSC8601_SKEW_TX) && defined(CFG_VSC8601_SKEW_RX)
>>  >>  +                {MIIM_EXT_PAGE_ACCESS,1,NULL},
>>  >>  +#define VSC8101_SKEW    (CFG_VSC8601_SKEW_TX<<14)|(CFG_VSC8601_SKEW_RX<<12)
>>  >>  +                {MIIM_VSC8601_SKEW_CTRL,VSC8101_SKEW,NULL},
>>  >>  +                {MIIM_EXT_PAGE_ACCESS,0,NULL},
>>  >>  +#endif
>>  >>   #endif
>>  >>
>>  >
>>  >
>>  > I'm not sure this is the best solution to this.  It seems like it
>>  > wouldn't scale well.  Either we need to set a bit somewhere that the
>>  > phy driver can read (and thereby determine how to configure the skew),
>>  > or we need to set the value to write in the board config file.  I'm
>>  > partial to the first solution, as it encapsulates the information
>>  > inside the code that deals with it.
>>  >
>>  > [...]
>>  >
>>  >
>>  I don't understand "scale well". What should be scalable ?
>>
>>  Of course using a function would be better.
>>  I silently assumed that the other bits are set to zero which is true
>>  after reset.
>>  There are only two other bits : Packet size and 10M preamble mode.
>>  Both should be left untouched, i.e. "0".
>>
> 
> 
> Sorry, I should have been more explicit.  In this case I'm referring
> to how well the solution scales as we deal with more configuration
> options.  Your solution isn't a terrible example of this, but #ifdefs
> that seem straightforward when there is one of them quickly can become
> unmanageable.  I'll admit, though, this is the sort of problem that is
> best solved by rearchitecting the PHY code in tsec.c, which is, I
> believe, under way by Ben.
> 
> In light of the fact that the #ifdefs here are feature-based, and that
> the PHY code is probably changing soon, anyway, I'd be ok with letting
> this patch through (with the duplicate #define removed, of course).
> 
> Andy


MATRIX VISION GmbH, Talstra?e 16, DE-71570 Oppenweiler  - Registergericht: Amtsgericht Stuttgart, HRB 271090
Gesch?ftsf?hrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner

  reply	other threads:[~2008-04-29 14:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-24 14:45 [U-Boot-Users] [PATCH] add config options for VSC8601 RGMII PHY Andre Schwarz
2008-04-28 21:21 ` Andy Fleming
2008-04-29  6:58   ` Andre Schwarz
2008-04-29 14:34     ` Andy Fleming
2008-04-29 14:45       ` André Schwarz [this message]
2008-04-29 17:04         ` Ben Warren
2008-04-29 17:16           ` Andre Schwarz

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=481734A6.6060704@matrix-vision.de \
    --to=andre.schwarz@matrix-vision.de \
    --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