[PATCH 3/4] ARM: eDM-QMX6: remove extra FDT memcpy

Lucas Stach l.stach at pengutronix.de
Thu May 1 14:32:51 PDT 2014


Not needed anymore, as barebox now accepts FDTs outside
of it's visible DRAM, as long as it's a valid pointer.

Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
---
 arch/arm/boards/datamodul-edm-qmx6/lowlevel.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/arch/arm/boards/datamodul-edm-qmx6/lowlevel.c b/arch/arm/boards/datamodul-edm-qmx6/lowlevel.c
index 071918cb5341..b1ce4e9df4ec 100644
--- a/arch/arm/boards/datamodul-edm-qmx6/lowlevel.c
+++ b/arch/arm/boards/datamodul-edm-qmx6/lowlevel.c
@@ -136,7 +136,6 @@ static void sdram_init(void)
 }
 
 extern char __dtb_imx6q_dmo_edmqmx6_start[];
-extern char __dtb_imx6q_dmo_edmqmx6_end[];
 
 ENTRY_FUNCTION(start_imx6_realq7, r0, r1, r2)
 {
@@ -154,14 +153,6 @@ ENTRY_FUNCTION(start_imx6_realq7, r0, r1, r2)
 
 		mmdc_do_write_level_calibration();
 		mmdc_do_dqs_calibration();
-
-		/*
-		 * Copy the devicetree blob to sdram so that the barebox code finds it
-		 * inside valid SDRAM instead of SRAM.
-		 */
-		memcpy((void*)sdram, fdt, __dtb_imx6q_dmo_edmqmx6_end -
-		       __dtb_imx6q_dmo_edmqmx6_start);
-		fdt = (void *)sdram;
 	}
 
 	barebox_arm_entry(sdram, SZ_2G, fdt);
-- 
1.9.1




More information about the barebox mailing list