~ubuntu-branches/ubuntu/maverick/uboot-imx/maverick

« back to all changes in this revision

Viewing changes to board/etin/debris/debris.c

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2010-01-20 15:41:26 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100120154126-7bha1jeyjegu7xm5
Tags: 2009.08+really2009.01-0ubuntu1
* revert to the 2009.01 upstream version, 2009.08 has still to 
  many work in progress items in the freescale patchset (MMC and NIC
  dont work at all)
* add the latest patchset from freescale for 2009.01
* add 1002_enable_hush_shell_and_ext2.patch to enable hush shell and ext2 
* add 1003_fix_board_revision_numbers to make sure babbage 2.5 boards have 
  revision 51120 and babbage 3.0 boards have revision 51130 properly set in 
  their cpuinfo

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include <common.h>
25
25
#include <mpc824x.h>
26
 
#include <net.h>
27
26
#include <pci.h>
28
27
#include <i2c.h>
29
28
#include <netdev.h>
174
173
 
175
174
int misc_init_r(void)
176
175
{
177
 
        uchar ethaddr[6];
178
 
 
179
 
        if (eth_getenv_enetaddr("ethaddr", ethaddr))
180
 
                /* Write ethernet addr in NVRAM for VxWorks */
181
 
                nvram_write(CONFIG_ENV_ADDR + CONFIG_SYS_NVRAM_VXWORKS_OFFS,
182
 
                                ethaddr, 6);
183
 
 
 
176
        /* Write ethernet addr in NVRAM for VxWorks */
 
177
        nvram_write(CONFIG_ENV_ADDR + CONFIG_SYS_NVRAM_VXWORKS_OFFS,
 
178
                        (char*)&gd->bd->bi_enetaddr[0], 6);
184
179
        return 0;
185
180
}
186
181