drivers: imx_mu: add support for imx93
Add MU support for imx93.
Signed-off-by: Clement Faure <clement.faure@nxp.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
diff --git a/core/arch/arm/plat-imx/conf.mk b/core/arch/arm/plat-imx/conf.mk
index 4b93a18..98178b3 100644
--- a/core/arch/arm/plat-imx/conf.mk
+++ b/core/arch/arm/plat-imx/conf.mk
@@ -228,6 +228,7 @@
$(call force,CFG_TZC380,n)
$(call force,CFG_CRYPTO_DRIVER,n)
$(call force,CFG_NXP_CAAM,n)
+CFG_IMX_MU ?= y
else
$(error Unsupported PLATFORM_FLAVOR "$(PLATFORM_FLAVOR)")
endif
diff --git a/core/drivers/imx/mu/sub.mk b/core/drivers/imx/mu/sub.mk
index aa3494b..d5f67b0 100644
--- a/core/drivers/imx/mu/sub.mk
+++ b/core/drivers/imx/mu/sub.mk
@@ -1,5 +1,5 @@
srcs-y += imx_mu.c
-srcs-$(CFG_MX8ULP) += imx_mu_8ulp.c
+srcs-$(CFG_MX8ULP)$(CFG_MX93) += imx_mu_8ulp.c
ifeq ($(filter y, $(CFG_MX8QM) $(CFG_MX8QX)),y)
srcs-y += imx_mu_8q.c
endif
diff --git a/core/include/drivers/imx_mu.h b/core/include/drivers/imx_mu.h
index 316d600..4a5683e 100644
--- a/core/include/drivers/imx_mu.h
+++ b/core/include/drivers/imx_mu.h
@@ -16,7 +16,7 @@
#define IMX_MU_MSG_SIZE 7
#define IMX_MU_NB_CHANNEL 4
-#if defined(CFG_MX8ULP)
+#if defined(CFG_MX8ULP) || defined(CFG_MX93)
struct imx_mu_msg_header {
uint8_t version;
uint8_t size;