summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorAymen Sghaier <aymen.sghaier@nxp.com>2018-05-02 10:34:27 +0200
committerYe Li <ye.li@nxp.com>2020-04-26 23:23:57 -0700
commit704eb656fa3db1cb6b02182b87ef9c59674166f7 (patch)
treedebf7c33d902a00da8cbc580b8015b3c5e645129 /cmd
parente880f881aaab01e711a0b2cbc5474c5d4e586756 (diff)
MLK-18044-3: crypto: Add blob command support for i.MX8M platforms
This patch enable blob command for mScale platforms. Signed-off-by: Aymen Sghaier <aymen.sghaier@nxp.com> (cherry picked from commit 895669394f6aae633abf6ea3f327d6093562edde) (cherry picked from commit bac8ed98778c93ef43ce9093efa3b9999d650576) (cherry picked from commit 2542f195b484dcd09bbf72406c7951bee06b52a5)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/Kconfig4
-rw-r--r--cmd/blob.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 661e93b38f..45de70039c 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1818,8 +1818,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 30192d3a67..3a602475b0 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
@@ -79,7 +79,7 @@ static int do_blob(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
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);