diff options
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 3d343ee881..cb9dccdc35 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, |