Modifications for 0.9.1:
======================================================================
+* Fix for ppc405gp ethernet code
+ (Patch by Stefan Roese 24 Apr 2001)
+
* Fixes for HYMOD board
(Patch by Murray Jensen, 23 Apr 2001)
| to the user
| - Info print about send/received/handled packet number if
| INFO_405_ENET is set
+ | 17-Apr-01 stefan.roese@esd-electronics.com
+ | - MAL reset in "eth_halt" included
+ | - Enet speed and duplex output now in one line
+-----------------------------------------------------------------------------*/
#include <ppcboot.h>
void eth_halt(void)
{
+ /* 1st reset MAL */
+ mtdcr(malmcr, MAL_CR_MMSR);
+
+ /* wait for reset */
+ while (mfdcr(malmcr) & MAL_CR_MMSR) {};
+
/* EMAC RESET */
out32 (EMAC_M0, EMAC_M0_SRST);
}
out32 (EMAC_M0, in32 (EMAC_M0) & ~EMAC_M0_SRST);
speed = miiphy_speed();
- printf("ENET Speed is %d Mbs... \n", (int)speed);
+ printf("ENET Speed is %d Mbps - ", (int)speed);
duplex = miiphy_duplex();
if( duplex == HALF)
printf("HALF duplex connection\n");
#define CONFIG_PHY_ADDR 0 /* PHY address */
-#define CONFIG_COMMANDS ((CONFIG_CMD_DFL | CFG_CMD_IRQ | CFG_CMD_ASKENV) \
- & ~CFG_CMD_NET)
+#define CONFIG_COMMANDS \
+ ((CONFIG_CMD_DFL | CFG_CMD_IRQ | CFG_CMD_ASKENV | CFG_CMD_EEPROM) \
+ & ~CFG_CMD_NET)
/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
#include <cmd_confdefs.h>