[ECOS] The CYGPKG_DEVS_ETH_ARM_AT91_PHYADDR setting seem's to be not needed
Andrew Lunn
andrew@lunn.ch
Thu Oct 23 13:39:00 GMT 2008
On Thu, Oct 23, 2008 at 03:53:58AM +0200, Oliver Munz @ SNR wrote:
> In the AT91-Ethernet-Driver is the parameter
> CYGPKG_DEVS_ETH_ARM_AT91_PHYADDR. It should hold the MDC/MDIO-addres of
> the Ethernet-PHY. But no matter wich value i write, the lwIP sees my PHY
> every time. Furtermore the lwIP says, he find my PHY on the addr 0,
> while the datasheet of the PHY say's one can config the address between
> 1..7.
Grepping the source code is interesting...
$ grep -r CYGPKG_DEVS_ETH_ARM_AT91_PHYADDR *
devs/eth/arm/at91/current/cdl/at91_eth.cdl: cdl_option CYGPKG_DEVS_ETH_ARM_AT91_PHYADDR {
i.e, this CDL option is defined, but not used anywhere....
> PHY: Micrel KSZ8041 at addr 0
> ksz8041_stat(): phy_addr: 0
Humm, i cannot find the source code for this PHY driver.
Also, take a look at _eth_phy_init. You will see it scans all the phy
addresses until it finds one it supports.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list