[PATCH 5/9] ARM: zynq: zed: add Barebox update handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add a BBU handler for easy updating.

Signed-off-by: Lucas Stach <dev@xxxxxxxxxx>
---
 arch/arm/boards/avnet-zedboard/board.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boards/avnet-zedboard/board.c b/arch/arm/boards/avnet-zedboard/board.c
index faa0bacf0ce1..b19b26bfb307 100644
--- a/arch/arm/boards/avnet-zedboard/board.c
+++ b/arch/arm/boards/avnet-zedboard/board.c
@@ -2,6 +2,7 @@
 // SPDX-FileCopyrightText: 2013 Steffen Trumtrar <s.trumtrar@xxxxxxxxxxxxxx>
 
 #include <asm/armlinux.h>
+#include <bbu.h>
 #include <common.h>
 #include <environment.h>
 #include <asm/mach-types.h>
@@ -17,6 +18,9 @@ static int zedboard_console_init(void)
 
 	barebox_set_hostname("zedboard");
 
+	bbu_register_std_file_update("SD", BBU_HANDLER_FLAG_DEFAULT,
+				     "/boot/BOOT.bin", filetype_zynq_image);
+
 	return 0;
 }
 console_initcall(zedboard_console_init);
-- 
2.47.1





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux