[PATCH 2/2] ARM: i.MX8M: Add bbu support for eCSPI boot
Jonas Rebmann
jre at pengutronix.de
Tue Jun 10 08:30:56 PDT 2025
Adds a barebox-update handler for i.MX8M eCSPI NOR flash
Signed-off-by: Jonas Rebmann <jre at 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
More information about the barebox
mailing list