Signed-off-by: Andrey Smirnov <[email protected]>
---
arch/arm/mach-imx/imx-bbu-internal.c | 8 ++++++++
arch/arm/mach-imx/include/mach/bbu.h | 9 +++++++++
2 files changed, 17 insertions(+)
diff --git a/arch/arm/mach-imx/imx-bbu-internal.c
b/arch/arm/mach-imx/imx-bbu-internal.c
index ecc885d29..59fe6218e 100644
--- a/arch/arm/mach-imx/imx-bbu-internal.c
+++ b/arch/arm/mach-imx/imx-bbu-internal.c
@@ -565,6 +565,14 @@ int vf610_bbu_internal_mmc_register_handler(const char
*name,
unsigned long flags)
__alias(imx6_bbu_internal_mmc_register_handler);
+/*
+ * Register an i.MX8MQ internal boot update handler for MMC/SD
+ */
+int imx8mq_bbu_internal_mmc_register_handler(const char *name,
+ const char *devicefile,
+ unsigned long flags)
+ __alias(imx6_bbu_internal_mmc_register_handler);
+
/*
* Register a handler that writes to the non-active boot partition of an mmc
* medium and on success activates the written-to partition. So the machine can
diff --git a/arch/arm/mach-imx/include/mach/bbu.h
b/arch/arm/mach-imx/include/mach/bbu.h
index d543d0e92..b30403328 100644
--- a/arch/arm/mach-imx/include/mach/bbu.h
+++ b/arch/arm/mach-imx/include/mach/bbu.h
@@ -62,6 +62,9 @@ int vf610_bbu_internal_mmc_register_handler(const char *name,
const char *device
int vf610_bbu_internal_spi_i2c_register_handler(const char *name, const char
*devicefile,
unsigned long flags);
+int imx8mq_bbu_internal_mmc_register_handler(const char *name, const char
*devicefile,
+ unsigned long flags);
+
int imx_bbu_external_nor_register_handler(const char *name, const char
*devicefile,
unsigned long flags);
@@ -122,6 +125,12 @@ static inline int
vf610_bbu_internal_mmc_register_handler(const char *name, cons
return -ENOSYS;
}
+static inline int imx8mq_bbu_internal_mmc_register_handler(const char *name,
const char *devicefile,
+ unsigned long flags);
+{
+ return -ENOSYS;
+}
+
static inline int imx_bbu_external_nor_register_handler(const char *name,
const char *devicefile,
unsigned long flags)
{
--
2.17.1
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox