Add support for the second Ethernet interface for the 'PPChameleon' board.

This commit is contained in:
wdenk
2004-06-06 23:53:59 +00:00
parent a56bd92289
commit cea655a224
6 changed files with 566 additions and 361 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -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,