
22 Aug
2012
22 Aug
'12
11:21 p.m.
On 8/22/2012 1:40 PM, Andy Fleming wrote:
- Modify the driver so that the PHY address is passed in from board
initialization code programmatically. As a nod to the effort of doing so for all boards, you can create a default value (ie - as it was), that can be overridden by board code. 2) Modify the search function to look for a valid PHY for a given mask, and return the address of that PHY 3) Add code to the board file which passes in the mask to the search function, and then passes the resulting PHY address to the driver.
For a somewhat elaborate example of this, look at drivers/net/tsec.c. tsec_standard_init() and tsec_eth_init().
Andy
Thanks for providing some direction. I think I know what you are after now.
Troy