[PATCH v2 1/2] embedsky-e9: enable barebox_update command for booter update

Anton Bondarenko anton.bondarenko.sama at gmail.com
Wed Nov 4 14:16:32 PST 2015


Simplify booter update with barebox_update command using special
IMX6 MMC BBU handler.

Signed-off-by: Anton Bondarenko <anton.bondarenko.sama at gmail.com>
---
 arch/arm/boards/embedsky-e9/board.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boards/embedsky-e9/board.c b/arch/arm/boards/embedsky-e9/board.c
index e8aac0c..23bfec1 100644
--- a/arch/arm/boards/embedsky-e9/board.c
+++ b/arch/arm/boards/embedsky-e9/board.c
@@ -41,6 +41,8 @@
 #include <mach/usb.h>
 #include <envfs.h>
 #include <bootsource.h>
+#include <bbu.h>
+#include <mach/bbu.h>
 
 #define PHY_ID_RTL8211E	0x001cc915
 #define PHY_ID_MASK	0xffffffff
@@ -81,6 +83,12 @@ static int e9_devices_init(void)
 
 	defaultenv_append_directory(defaultenv_e9);
 
+	imx6_bbu_internal_mmc_register_handler("sd", "/dev/mmc1",
+		BBU_HANDLER_FLAG_DEFAULT);
+
+	imx6_bbu_internal_mmc_register_handler("emmc", "/dev/mmc3",
+		BBU_HANDLER_FLAG_DEFAULT);
+
 	return 0;
 }
 device_initcall(e9_devices_init);
-- 
2.6.2




More information about the barebox mailing list