[PATCH] arm: rockchip: radxa-rock3: register barebox update handler

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

 



Register a barebox update handler on the eMMC card.

Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
---
 arch/arm/boards/radxa-rock3/board.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boards/radxa-rock3/board.c b/arch/arm/boards/radxa-rock3/board.c
index 05a526b06e..30ad594d0a 100644
--- a/arch/arm/boards/radxa-rock3/board.c
+++ b/arch/arm/boards/radxa-rock3/board.c
@@ -2,6 +2,7 @@
 #include <bootsource.h>
 #include <common.h>
 #include <init.h>
+#include <mach/bbu.h>
 
 struct rock3_model {
 	const char *name;
@@ -24,6 +25,9 @@ static int rock3_probe(struct device_d *dev)
 	else
 		of_device_enable_path("/chosen/environment-emmc");
 
+	rk3568_bbu_mmc_register("emmc", BBU_HANDLER_FLAG_DEFAULT,
+				"/dev/mmc1");
+
 	return 0;
 }
 
-- 
2.30.2


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



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

  Powered by Linux