[PATCH 3/5] ARM i.MX boot: Add barebox_loc magicvar

Sascha Hauer s.hauer at pengutronix.de
Sun Nov 27 07:09:38 EST 2011


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 arch/arm/mach-imx/boot.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-imx/boot.c b/arch/arm/mach-imx/boot.c
index f13d956..5e5a8bb 100644
--- a/arch/arm/mach-imx/boot.c
+++ b/arch/arm/mach-imx/boot.c
@@ -18,6 +18,7 @@
 #include <common.h>
 #include <environment.h>
 #include <init.h>
+#include <magicvar.h>
 
 #include <io.h>
 #include <mach/imx-regs.h>
@@ -88,4 +89,6 @@ static int imx_25_35_boot_save_loc(void)
 
 coredevice_initcall(imx_25_35_boot_save_loc);
 
+BAREBOX_MAGIC_VAR(barebox_loc, "The source barebox has been booted from");
+
 #endif
-- 
1.7.7.1




More information about the barebox mailing list