#include <i2c.h>
#include <config.h>
#include <mpc8xx.h>
+#include <net.h>
/* ------------------------------------------------------------------------- */
if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
board_get_enetaddr(enetaddr);
- eth_putenv_enetaddr("ethaddr", enetaddr);
+ eth_setenv_enetaddr("ethaddr", enetaddr);
}
return 0;
#include <common.h>
#include <mpc824x.h>
+#include <net.h>
#include <pci.h>
#include <i2c.h>
#include <netdev.h>
#include <common.h>
#include <commproc.h>
#include <mpc8xx.h>
+#include <net.h>
#include "dimm.h"
#include "vpd.h"
#include "csr.h"
if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
board_get_enetaddr(enetaddr);
- eth_putenv_enetaddr("ethaddr", enetaddr);
+ eth_setenv_enetaddr("ethaddr", enetaddr);
}
return 0;
#include <common.h>
#include <malloc.h>
#include <mpc8xx.h>
+#include <net.h>
DECLARE_GLOBAL_DATA_PTR;
char tmp[50];
uchar ethaddr[6];
bd_t *bd = gd->bd;
- ulong my_sernum = bd->bi_sernum;
+ ulong *my_sernum = (unsigned long *)&bd->bi_sernum;
/* load unique serial number */
for (i = 0; i < 8; ++i)
#include <common.h>
#include <mpc824x.h>
+#include <net.h>
#include <pci.h>
#include <netdev.h>
#include <common.h>
#include <mpc8xx.h>
+#include <net.h>
#include "atm.h"
#include <i2c.h>
if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
board_get_enetaddr(enetaddr);
- eth_putenv_enetaddr("ethaddr", enetaddr);
+ eth_setenv_enetaddr("ethaddr", enetaddr);
}
return 0;
{
volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
volatile memctl8xx_t *memctl = &immap->im_memctl;
- char* s;
- char* e;
- int reg;
bd_t *bd = gd->bd;
uchar enetaddr[6];
#include <common.h>
#include <mpc5xxx.h>
+#include <net.h>
#include <asm/processor.h>
if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
board_get_enetaddr(enetaddr);
- eth_putenv_enetaddr("ethaddr", enetaddr);
+ eth_setenv_enetaddr("ethaddr", enetaddr);
}
return 0;
#if defined(CONFIG_WALNUT)
tmp = (char *) CONFIG_SYS_NVRAM_BASE_ADDR + 0x500;
- eth_getenv_enetaddr("ethaddr", build_buf);
+ eth_getenv_enetaddr("ethaddr", (uchar *)build_buf);
memcpy(tmp, &build_buf[3], 3);
#elif defined(CONFIG_SYS_VXWORKS_MAC_PTR)
tmp = (char *) CONFIG_SYS_VXWORKS_MAC_PTR;
- eth_getenv_enetaddr("ethaddr", build_buf);
+ eth_getenv_enetaddr("ethaddr", (uchar *)build_buf);
memcpy(tmp, build_buf, 6);
#else
puts ("## Ethernet MAC address not copied to NV RAM\n");
#include <common.h>
#include <command.h>
#include <mpc512x.h>
+#include <net.h>
#include <netdev.h>
#include <asm/processor.h>
*/
#define NR_8259_INTS 0
+#define CONFIG_CMD_NET
/*
* MPC8xx CPM Options
*/