From: Jonas Rebmann <jre@pengutronix.de>
To: Sascha Hauer <s.hauer@pengutronix.de>,
BAREBOX <barebox@lists.infradead.org>
Cc: Jonas Rebmann <jre@pengutronix.de>
Subject: [PATCH 2/2] ARM: i.MX8M: Add bbu support for eCSPI boot
Date: Tue, 10 Jun 2025 17:30:56 +0200 [thread overview]
Message-ID: <20250610-imx8mp_ecspi-v1-2-d14d1e9d65f3@pengutronix.de> (raw)
In-Reply-To: <20250610-imx8mp_ecspi-v1-0-d14d1e9d65f3@pengutronix.de>
Adds a barebox-update handler for i.MX8M eCSPI NOR flash
Signed-off-by: Jonas Rebmann <jre@pengutronix.de>
---
arch/arm/mach-imx/imx-bbu-internal.c | 9 +++++++++
include/mach/imx/bbu.h | 3 +++
2 files changed, 12 insertions(+)
diff --git a/arch/arm/mach-imx/imx-bbu-internal.c b/arch/arm/mach-imx/imx-bbu-internal.c
index 66a8ae10e507b601429526afc0122adca31ce4d6..8ed447f68808eb4ab923328318d814363f906e32 100644
--- a/arch/arm/mach-imx/imx-bbu-internal.c
+++ b/arch/arm/mach-imx/imx-bbu-internal.c
@@ -627,6 +627,15 @@ int imx6_bbu_internal_spi_i2c_register_handler(const char *name,
unsigned long flags)
__alias(imx53_bbu_internal_spi_i2c_register_handler);
+int imx8m_bbu_internal_spi_i2c_register_handler(const char *name,
+ const char *devicefile,
+ unsigned long flags)
+{
+ flags |= IMX_BBU_FLAG_PARTITION_STARTS_AT_HEADER;
+
+ return imx53_bbu_internal_spi_i2c_register_handler(name, devicefile, flags);
+}
+
/*
* Register an VFxxx internal boot update handler for i2c/spi
* EEPROMs / flashes. Nearly the same as MMC/SD, but we do not need to
diff --git a/include/mach/imx/bbu.h b/include/mach/imx/bbu.h
index 9a35b0074dd42575d06995d491d9fd2b22305cd5..81ee9c8698d907d70aa807c1320a19ba43a96e68 100644
--- a/include/mach/imx/bbu.h
+++ b/include/mach/imx/bbu.h
@@ -69,6 +69,9 @@ int imx7_bbu_internal_mmcboot_register_handler(const char *name, const char *dev
int imx6_bbu_internal_spi_i2c_register_handler(const char *name, const char *devicefile,
unsigned long flags);
+int imx8m_bbu_internal_spi_i2c_register_handler(const char *name, const char *devicefile,
+ unsigned long flags);
+
int vf610_bbu_internal_mmc_register_handler(const char *name, const char *devicefile,
unsigned long flags);
--
2.39.5
next prev parent reply other threads:[~2025-06-10 18:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-10 15:30 [PATCH 0/2] Add support for eCSPI boot on i.MX8M Jonas Rebmann
2025-06-10 15:30 ` [PATCH 1/2] ARM: i.MX8M: Add support for eCSPI boot Jonas Rebmann
2025-06-11 8:13 ` Ahmad Fatoum
2025-06-10 15:30 ` Jonas Rebmann [this message]
2025-06-11 7:04 ` [PATCH 0/2] Add support for eCSPI boot on i.MX8M 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=20250610-imx8mp_ecspi-v1-2-d14d1e9d65f3@pengutronix.de \
--to=jre@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/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