From: Bastian Krause <bst@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Bastian Krause <bst@pengutronix.de>
Subject: [PATCH 2/2] ARM: nxp-imx93-frdm: add bbu handler for eMMC
Date: Wed, 10 Jun 2026 19:49:19 +0200 [thread overview]
Message-ID: <20260610174919.3813577-2-bst@pengutronix.de> (raw)
In-Reply-To: <20260610174919.3813577-1-bst@pengutronix.de>
This allows updating barebox via barebox_update as well as via fastboot.
Signed-off-by: Bastian Krause <bst@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
next prev parent reply other threads:[~2026-06-10 17:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-10 17:49 [PATCH 1/2] ARM: nxp-imx93-frdm: use tabs instead of spaces Bastian Krause
2026-06-10 17:49 ` Bastian Krause [this message]
2026-06-10 18:22 ` [PATCH 2/2] ARM: nxp-imx93-frdm: add bbu handler for eMMC Marco Felsch
2026-06-10 18:22 ` [PATCH 1/2] ARM: nxp-imx93-frdm: use tabs instead of spaces Marco Felsch
2026-06-15 7:51 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260610174919.3813577-2-bst@pengutronix.de \
--to=bst@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox