diff options
Diffstat (limited to 'arch/ppc/boot/simple/embed_config.c')
-rw-r--r-- | 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 840bff2a45fb..3b46792d7b8b 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) | |||
752 | static const unsigned long congruence_classes = 256; | 752 | static const unsigned long congruence_classes = 256; |
753 | unsigned long addr; | 753 | unsigned long addr; |
754 | unsigned long dccr; | 754 | unsigned long dccr; |
755 | uint8_t* cp; | ||
755 | bd_t *bd; | 756 | bd_t *bd; |
757 | int i; | ||
756 | 758 | ||
757 | /* | 759 | /* |
758 | * Invalidate the data cache if the data cache is turned off. | 760 | * Invalidate the data cache if the data cache is turned off. |
@@ -778,6 +780,12 @@ embed_config(bd_t ** bdp) | |||
778 | bd->bi_intfreq = XPAR_CORE_CLOCK_FREQ_HZ; | 780 | bd->bi_intfreq = XPAR_CORE_CLOCK_FREQ_HZ; |
779 | bd->bi_busfreq = XPAR_PLB_CLOCK_FREQ_HZ; | 781 | bd->bi_busfreq = XPAR_PLB_CLOCK_FREQ_HZ; |
780 | bd->bi_pci_busfreq = XPAR_PCI_0_CLOCK_FREQ_HZ; | 782 | bd->bi_pci_busfreq = XPAR_PCI_0_CLOCK_FREQ_HZ; |
783 | |||
784 | /* Copy the default ethernet address */ | ||
785 | cp = (u_char *)def_enet_addr; | ||
786 | for (i=0; i<6; i++) | ||
787 | bd->bi_enetaddr[i] = *cp++; | ||
788 | |||
781 | timebase_period_ns = 1000000000 / bd->bi_tbfreq; | 789 | timebase_period_ns = 1000000000 / bd->bi_tbfreq; |
782 | /* see bi_tbfreq definition in arch/ppc/platforms/4xx/xilinx_ml300.h */ | 790 | /* see bi_tbfreq definition in arch/ppc/platforms/4xx/xilinx_ml300.h */ |
783 | } | 791 | } |