This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: The CYGPKG_DEVS_ETH_ARM_AT91_PHYADDR setting seem's to be not needed
- From: Andrew Lunn <andrew at lunn dot ch>
- To: "Oliver Munz @ SNR" <oli at snr dot ch>
- Cc: "ecos-discuss at sourceware dot org >> ecos-discuss at sourceware dot org" <ecos-discuss at sourceware dot org>
- Date: Thu, 23 Oct 2008 12:29:44 +0200
- Subject: Re: [ECOS] The CYGPKG_DEVS_ETH_ARM_AT91_PHYADDR setting seem's to be not needed
- References: <48FFD936.8030009@snr.ch>
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