[PATCH 03/22] ARM: phyCARD-i.MX27: register barebox update handler

Sascha Hauer s.hauer at pengutronix.de
Fri Jan 17 10:03:13 EST 2014


To update barebox with the barebox_update command.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 arch/arm/boards/phycard-i.MX27/pca100.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boards/phycard-i.MX27/pca100.c b/arch/arm/boards/phycard-i.MX27/pca100.c
index 7ac0bf6..69f9a3d 100644
--- a/arch/arm/boards/phycard-i.MX27/pca100.c
+++ b/arch/arm/boards/phycard-i.MX27/pca100.c
@@ -37,6 +37,7 @@
 #include <gpio.h>
 #include <asm/mmu.h>
 #include <usb/ulpi.h>
+#include <mach/bbu.h>
 #include <mach/iomux-mx27.h>
 #include <mach/devices-imx27.h>
 
@@ -294,6 +295,9 @@ static int pca100_devices_init(void)
 	devfs_add_partition("nand0", SZ_512K, SZ_512K, DEVFS_PARTITION_FIXED, "env_raw");
 	dev_add_bb_dev("env_raw", "env0");
 
+	imx_bbu_external_nand_register_handler("nand", "/dev/nand0.barebox",
+			BBU_HANDLER_FLAG_DEFAULT);
+
 	armlinux_set_architecture(2149);
 
 	return 0;
-- 
1.8.5.2




More information about the barebox mailing list