diff options
author | wdenk <wdenk> | 2004-06-06 23:53:59 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-06-06 23:53:59 +0000 |
commit | cea655a224456d043192156fb2d44a0896194adc (patch) | |
tree | 4bd5303a7e9b87df12ca56ddda0e42bc674ac4bb /cpu/ppc4xx/miiphy.c | |
parent | a56bd92289298bde16306bcc754277db45315d2f (diff) | |
download | u-boot-imx-cea655a224456d043192156fb2d44a0896194adc.zip u-boot-imx-cea655a224456d043192156fb2d44a0896194adc.tar.gz u-boot-imx-cea655a224456d043192156fb2d44a0896194adc.tar.bz2 |
Add support for the second Ethernet interface for the 'PPChameleon' board.
Diffstat (limited to 'cpu/ppc4xx/miiphy.c')
-rw-r--r-- | cpu/ppc4xx/miiphy.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cpu/ppc4xx/miiphy.c b/cpu/ppc4xx/miiphy.c index 3d343ee..cb9dccd 100644 --- a/cpu/ppc4xx/miiphy.c +++ b/cpu/ppc4xx/miiphy.c @@ -48,8 +48,8 @@ #include <405_mal.h> #include <miiphy.h> -#if (defined(CONFIG_405GP) || defined(CONFIG_405EP) || defined(CONFIG_440)) \ - && !defined (CONFIG_NET_MULTI) +#if defined(CONFIG_405GP) || defined(CONFIG_405EP) || \ + (defined(CONFIG_440) && !defined(CONFIG_NET_MULTI)) /***********************************************************/ /* Dump out to the screen PHY regs */ @@ -78,6 +78,12 @@ void miiphy_dump (unsigned char addr) /***********************************************************/ /* read a phy reg and return the value with a rc */ +/* Note: We are referencing to EMAC_STACR register */ +/* @(EMAC_BASE + 92) because of: */ +/* - 405EP has only STACR for EMAC0 pinned out */ +/* - 405GP has onle one EMAC0 */ +/* - For 440 this module gets compiled only for */ +/* !CONFIG_NET_MULTI, i.e. only EMAC0 is supported. */ /***********************************************************/ int miiphy_read (unsigned char addr, unsigned char reg, |