This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Q: how to select PHY for Ethernet driver?


Hi,

I've got an Ethernet driver than will currently use either of
two types of PHY (determined by linking either of two object
files with the driver).  I'll soon need to add support for a
third.  Currently the PHY selection is hard-wired (it can't be
changed using ecosconfig).

I'd like to be able to select the PHY using ecosconfig, and it
appears I could do it two ways:

  1) Have the PHY selection be a configuration parameter in
     the CDL description of my driver that changes the list of
	 files to be linked.

  2) Have the PHY support implemented in separate packages that
	 can be enabled/disabled (only one could be enabled at a
	 time).

Is there any conventional wisdom that would lead one to pick
one approach over the other?

-- 
Grant Edwards
grante@visi.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]