Commit 69c9c943 authored by Grant Likely's avatar Grant Likely Committed by Josh Boyer

[POWERPC] Setup default eth addr in embed_config for Xilinx Virtex platforms

This simply adds the boilerplate default Ethernet address to embed_config
for the Xilinx platform (bug fix).
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
Signed-off-by: default avatarJosh Boyer <jwboyer@linux.vnet.ibm.com>
parent dc8afdc7
...@@ -752,7 +752,9 @@ embed_config(bd_t ** bdp) ...@@ -752,7 +752,9 @@ embed_config(bd_t ** bdp)
static const unsigned long congruence_classes = 256; static const unsigned long congruence_classes = 256;
unsigned long addr; unsigned long addr;
unsigned long dccr; unsigned long dccr;
uint8_t* cp;
bd_t *bd; bd_t *bd;
int i;
/* /*
* Invalidate the data cache if the data cache is turned off. * Invalidate the data cache if the data cache is turned off.
...@@ -778,6 +780,12 @@ embed_config(bd_t ** bdp) ...@@ -778,6 +780,12 @@ embed_config(bd_t ** bdp)
bd->bi_intfreq = XPAR_CORE_CLOCK_FREQ_HZ; bd->bi_intfreq = XPAR_CORE_CLOCK_FREQ_HZ;
bd->bi_busfreq = XPAR_PLB_CLOCK_FREQ_HZ; bd->bi_busfreq = XPAR_PLB_CLOCK_FREQ_HZ;
bd->bi_pci_busfreq = XPAR_PCI_0_CLOCK_FREQ_HZ; bd->bi_pci_busfreq = XPAR_PCI_0_CLOCK_FREQ_HZ;
/* Copy the default ethernet address */
cp = (u_char *)def_enet_addr;
for (i=0; i<6; i++)
bd->bi_enetaddr[i] = *cp++;
timebase_period_ns = 1000000000 / bd->bi_tbfreq; timebase_period_ns = 1000000000 / bd->bi_tbfreq;
/* see bi_tbfreq definition in arch/ppc/platforms/4xx/xilinx_ml300.h */ /* see bi_tbfreq definition in arch/ppc/platforms/4xx/xilinx_ml300.h */
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment