From 5ada977a2dd9240d2dd071468d310af79379abfd Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Tue, 1 May 2018 14:05:10 +0200 Subject: tdx-cfg-block: add Apalis iMX8 QuadMax support Add support for interactive recovery of Apalis iMX8 QuadMax config block. Signed-off-by: Stefan Agner (cherry picked from commit 70cf26d9f5edcb6de6b2b70f1bf6a821e46be3dd) (cherry picked from commit afc3024a826e61dc0ecc5d55b8dea96544ca9487) (cherry picked from commit b15393500e633a40319c5f8cf3ad02010f4acddd) --- board/toradex/common/tdx-cfg-block.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/board/toradex/common/tdx-cfg-block.c b/board/toradex/common/tdx-cfg-block.c index d106424212..e94b217e29 100644 --- a/board/toradex/common/tdx-cfg-block.c +++ b/board/toradex/common/tdx-cfg-block.c @@ -7,7 +7,8 @@ #include #include "tdx-cfg-block.h" -#if defined(CONFIG_TARGET_APALIS_IMX6) || defined(CONFIG_TARGET_COLIBRI_IMX6) +#if defined(CONFIG_TARGET_APALIS_IMX6) || defined(CONFIG_TARGET_COLIBRI_IMX6) \ + || defined(CONFIG_TARGET_APALIS_IMX8) #include #else #define is_cpu_type(cpu) (0) @@ -365,6 +366,8 @@ static int get_cfgblock_interactive(void) tdx_hw_tag.prodid = COLIBRI_VF61_IT; else tdx_hw_tag.prodid = COLIBRI_VF61; + } else if (is_cpu_type(MXC_CPU_IMX8QM)) { + tdx_hw_tag.prodid = APALIS_IMX8QM; } else { printf("Module type not detectable due to unknown SoC\n"); return -1; -- cgit v1.2.3