Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=69c9c94303e309c02cf4b3e671a46a34fd0c4b0b
Commit:     69c9c94303e309c02cf4b3e671a46a34fd0c4b0b
Parent:     dc8afdc7ada82562231cbae867fe6dcdb7b677f5
Author:     Grant Likely <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 1 07:47:05 2007 +1000
Committer:  Josh Boyer <[EMAIL PROTECTED]>
CommitDate: Wed Oct 3 07:23:17 2007 -0500

    [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: Grant Likely <[EMAIL PROTECTED]>
    Signed-off-by: Josh Boyer <[EMAIL PROTECTED]>
---
 arch/ppc/boot/simple/embed_config.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/arch/ppc/boot/simple/embed_config.c 
b/arch/ppc/boot/simple/embed_config.c
index 840bff2..3b46792 100644
--- a/arch/ppc/boot/simple/embed_config.c
+++ b/arch/ppc/boot/simple/embed_config.c
@@ -752,7 +752,9 @@ embed_config(bd_t ** bdp)
        static const unsigned long congruence_classes = 256;
        unsigned long addr;
        unsigned long dccr;
+       uint8_t* cp;
        bd_t *bd;
+       int i;
 
        /*
         * Invalidate the data cache if the data cache is turned off.
@@ -778,6 +780,12 @@ embed_config(bd_t ** bdp)
        bd->bi_intfreq = XPAR_CORE_CLOCK_FREQ_HZ;
        bd->bi_busfreq = XPAR_PLB_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;
        /* see bi_tbfreq definition in arch/ppc/platforms/4xx/xilinx_ml300.h */
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to