[PATCH 4/4] ARM i.MX51 babbage: set fec ethernet address from IIM

Sascha Hauer s.hauer at pengutronix.de
Thu Jul 28 06:06:00 EDT 2011


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 arch/arm/boards/freescale-mx51-pdk/board.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/arch/arm/boards/freescale-mx51-pdk/board.c b/arch/arm/boards/freescale-mx51-pdk/board.c
index d0b8b89..c763719 100644
--- a/arch/arm/boards/freescale-mx51-pdk/board.c
+++ b/arch/arm/boards/freescale-mx51-pdk/board.c
@@ -19,7 +19,6 @@
  */
 
 #include <common.h>
-#include <net.h>
 #include <init.h>
 #include <environment.h>
 #include <mach/imx-regs.h>
@@ -40,6 +39,7 @@
 #include <mach/generic.h>
 #include <mach/iomux-mx51.h>
 #include <mach/devices-imx51.h>
+#include <mach/iim.h>
 
 static struct fec_platform_data fec_info = {
 	.xcv_type = MII100,
@@ -230,11 +230,14 @@ static void babbage_power_init(void)
 static int f3s_devices_init(void)
 {
 	struct device_d *sdram_dev;
+
 	babbage_mmu_init();
 
 	sdram_dev = add_mem_device("ram0", 0x90000000, 512 * 1024 * 1024,
 				   IORESOURCE_MEM_WRITEABLE);
 	armlinux_add_dram(sdram_dev);
+
+	imx51_iim_register_fec_ethaddr();
 	imx51_add_fec(&fec_info);
 	imx51_add_mmc0(NULL);
 
-- 
1.7.5.4




More information about the barebox mailing list