diff mbox series

[28/37] crypto: Add blob command support for i.MX8M platforms

Message ID 20210325093036.3270101-29-peng.fan@oss.nxp.com
State Accepted
Commit 2532429b166246ef82b975435925e2772df3e70b
Delegated to: Stefano Babic
Headers show
Series imx: hab/caam new feature and update | expand

Commit Message

Peng Fan (OSS) March 25, 2021, 9:30 a.m. UTC
From: Aymen Sghaier <aymen.sghaier@nxp.com>

 This patch enable blob command for mScale platforms.

Signed-off-by: Aymen Sghaier <aymen.sghaier@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 cmd/Kconfig | 4 ++--
 cmd/blob.c  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/cmd/Kconfig b/cmd/Kconfig
index 00bcc7826b..f73de2d75a 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1959,8 +1959,8 @@  config CMD_AES
 
 config CMD_BLOB
 	bool "Enable the 'blob' command"
-	depends on !MX6ULL && !MX6SLL && !MX6SL && !IMX8M
-	select IMX_HAB if ARCH_MX6 || ARCH_MX7 || ARCH_MX7ULP
+	depends on !MX6ULL && !MX6SLL && !MX6SL
+	select IMX_HAB if ARCH_MX6 || ARCH_MX7 || ARCH_MX7ULP || ARCH_IMX8M
 	help
 	  This is used with the Freescale secure boot mechanism.
 
diff --git a/cmd/blob.c b/cmd/blob.c
index 4e244cd126..887219cc07 100644
--- a/cmd/blob.c
+++ b/cmd/blob.c
@@ -10,7 +10,7 @@ 
 #include <asm/byteorder.h>
 #include <linux/compiler.h>
 #if defined(CONFIG_ARCH_MX6) || defined(CONFIG_ARCH_MX7) || \
-	defined(CONFIG_ARCH_MX7ULP)
+	defined(CONFIG_ARCH_MX7ULP) || defined(CONFIG_ARCH_IMX8M)
 #include <fsl_sec.h>
 #include <asm/arch/clock.h>
 #endif
@@ -80,7 +80,7 @@  static int do_blob(struct cmd_tbl *cmdtp, int flag, int argc,
 	dst_ptr = (uint8_t *)(uintptr_t)dst_addr;
 
 #if defined(CONFIG_ARCH_MX6) || defined(CONFIG_ARCH_MX7) || \
-	defined(CONFIG_ARCH_MX7ULP)
+	defined(CONFIG_ARCH_MX7ULP) || defined(CONFIG_ARCH_IMX8M)
 
 	hab_caam_clock_enable(1);