From 88e7f5be3871a9002d4fa0fe7c9aabaab7edb0dc Mon Sep 17 00:00:00 2001 From: Franck LENORMAND Date: Thu, 25 Mar 2021 17:30:24 +0800 Subject: [PATCH] imx7ulp: Enable support for cmd blob Signed-off-by: Franck LENORMAND Signed-off-by: Peng Fan --- cmd/Kconfig | 4 ++-- cmd/blob.c | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index e485dd8bea..10393eea44 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1960,8 +1960,8 @@ config CMD_AES config CMD_BLOB bool "Enable the 'blob' command" - depends on !MX6ULL && !MX6SLL && !MX6SL && !IMX8M && !MX7ULP - select IMX_HAB if ARCH_MX6 || ARCH_MX7 + depends on !MX6ULL && !MX6SLL && !MX6SL && !IMX8M + select IMX_HAB if ARCH_MX6 || ARCH_MX7 || ARCH_MX7ULP help This is used with the Freescale secure boot mechanism. diff --git a/cmd/blob.c b/cmd/blob.c index 359c8940fb..4e244cd126 100644 --- a/cmd/blob.c +++ b/cmd/blob.c @@ -9,7 +9,8 @@ #include #include #include -#if defined(CONFIG_ARCH_MX6) || defined(CONFIG_ARCH_MX7) +#if defined(CONFIG_ARCH_MX6) || defined(CONFIG_ARCH_MX7) || \ + defined(CONFIG_ARCH_MX7ULP) #include #include #endif @@ -78,7 +79,8 @@ static int do_blob(struct cmd_tbl *cmdtp, int flag, int argc, src_ptr = (uint8_t *)(uintptr_t)src_addr; dst_ptr = (uint8_t *)(uintptr_t)dst_addr; -#if defined(CONFIG_ARCH_MX6) || defined(CONFIG_ARCH_MX7) +#if defined(CONFIG_ARCH_MX6) || defined(CONFIG_ARCH_MX7) || \ + defined(CONFIG_ARCH_MX7ULP) hab_caam_clock_enable(1); -- 2.39.5