Current u-boot top of tree builds with warnings/errors for
the following boards:
ads5121 cpci5200 mecp5200 v38b IAD210 MBX MBX860T NX823
RPXClassic debris PN62
following patch solves this.
Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
#include <i2c.h>
#include <config.h>
#include <mpc8xx.h>
#include <i2c.h>
#include <config.h>
#include <mpc8xx.h>
/* ------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------- */
if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
board_get_enetaddr(enetaddr);
if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
board_get_enetaddr(enetaddr);
- eth_putenv_enetaddr("ethaddr", enetaddr);
+ eth_setenv_enetaddr("ethaddr", enetaddr);
#include <common.h>
#include <mpc824x.h>
#include <common.h>
#include <mpc824x.h>
#include <pci.h>
#include <i2c.h>
#include <netdev.h>
#include <pci.h>
#include <i2c.h>
#include <netdev.h>
#include <common.h>
#include <commproc.h>
#include <mpc8xx.h>
#include <common.h>
#include <commproc.h>
#include <mpc8xx.h>
#include "dimm.h"
#include "vpd.h"
#include "csr.h"
#include "dimm.h"
#include "vpd.h"
#include "csr.h"
if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
board_get_enetaddr(enetaddr);
if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
board_get_enetaddr(enetaddr);
- eth_putenv_enetaddr("ethaddr", enetaddr);
+ eth_setenv_enetaddr("ethaddr", enetaddr);
#include <common.h>
#include <malloc.h>
#include <mpc8xx.h>
#include <common.h>
#include <malloc.h>
#include <mpc8xx.h>
char tmp[50];
uchar ethaddr[6];
bd_t *bd = gd->bd;
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)
/* load unique serial number */
for (i = 0; i < 8; ++i)
#include <common.h>
#include <mpc824x.h>
#include <common.h>
#include <mpc824x.h>
#include <pci.h>
#include <netdev.h>
#include <pci.h>
#include <netdev.h>
#include <common.h>
#include <mpc8xx.h>
#include <common.h>
#include <mpc8xx.h>
#include "atm.h"
#include <i2c.h>
#include "atm.h"
#include <i2c.h>
if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
board_get_enetaddr(enetaddr);
if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
board_get_enetaddr(enetaddr);
- eth_putenv_enetaddr("ethaddr", enetaddr);
+ eth_setenv_enetaddr("ethaddr", enetaddr);
{
volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
volatile memctl8xx_t *memctl = &immap->im_memctl;
{
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];
bd_t *bd = gd->bd;
uchar enetaddr[6];
#include <common.h>
#include <mpc5xxx.h>
#include <common.h>
#include <mpc5xxx.h>
#include <asm/processor.h>
#include <asm/processor.h>
if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
board_get_enetaddr(enetaddr);
if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
board_get_enetaddr(enetaddr);
- eth_putenv_enetaddr("ethaddr", enetaddr);
+ eth_setenv_enetaddr("ethaddr", enetaddr);
#if defined(CONFIG_WALNUT)
tmp = (char *) CONFIG_SYS_NVRAM_BASE_ADDR + 0x500;
#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;
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");
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 <common.h>
#include <command.h>
#include <mpc512x.h>
#include <netdev.h>
#include <asm/processor.h>
#include <netdev.h>
#include <asm/processor.h>
*/
#define NR_8259_INTS 0
*/
#define NR_8259_INTS 0
/*
* MPC8xx CPM Options
*/
/*
* MPC8xx CPM Options
*/