[PATCH 2/2] ARM: nxp-imx93-frdm: add bbu handler for eMMC
Bastian Krause
bst at pengutronix.de
Wed Jun 10 10:49:19 PDT 2026
This allows updating barebox via barebox_update as well as via fastboot.
Signed-off-by: Bastian Krause <bst at pengutronix.de>
---
arch/arm/boards/nxp-imx93-frdm/board.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm/boards/nxp-imx93-frdm/board.c b/arch/arm/boards/nxp-imx93-frdm/board.c
index 09ce3349537..b9463e3d172 100644
--- a/arch/arm/boards/nxp-imx93-frdm/board.c
+++ b/arch/arm/boards/nxp-imx93-frdm/board.c
@@ -1,6 +1,15 @@
// SPDX-License-Identifier: GPL-2.0
+#include <common.h>
#include <deep-probe.h>
+#include <mach/imx/bbu.h>
+
+static int imx93_frdm_probe(struct device *dev)
+{
+ imx9_bbu_internal_mmcboot_register_handler("eMMC", "/dev/mmc0", 0);
+
+ return 0;
+}
static const struct of_device_id frdm_imx93_of_match[] = {
{
@@ -10,3 +19,10 @@ static const struct of_device_id frdm_imx93_of_match[] = {
};
BAREBOX_DEEP_PROBE_ENABLE(frdm_imx93_of_match);
+
+static struct driver frdm_imx93_board_driver = {
+ .name = "board-imx93-frdm",
+ .probe = imx93_frdm_probe,
+ .of_compatible = frdm_imx93_of_match,
+};
+coredevice_platform_driver(frdm_imx93_board_driver);
--
2.47.3
More information about the barebox
mailing list