summaryrefslogtreecommitdiff
path: root/cpu/ppc4xx/miiphy.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-06-06 23:53:59 +0000
committerwdenk <wdenk>2004-06-06 23:53:59 +0000
commitcea655a224456d043192156fb2d44a0896194adc (patch)
tree4bd5303a7e9b87df12ca56ddda0e42bc674ac4bb /cpu/ppc4xx/miiphy.c
parenta56bd92289298bde16306bcc754277db45315d2f (diff)
Add support for the second Ethernet interface for the 'PPChameleon' board.
Diffstat (limited to 'cpu/ppc4xx/miiphy.c')
-rw-r--r--cpu/ppc4xx/miiphy.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/cpu/ppc4xx/miiphy.c b/cpu/ppc4xx/miiphy.c
index 3d343ee881d..cb9dccdc35b 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,