[PATCH] arm: rockchip: radxa-rock3: register barebox update handler
Sascha Hauer
s.hauer at pengutronix.de
Mon Jun 13 00:10:19 PDT 2022
Register a barebox update handler on the eMMC card.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
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
More information about the barebox
mailing list