summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2018-05-01 14:05:10 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2018-11-29 10:55:07 +0100
commit5ada977a2dd9240d2dd071468d310af79379abfd (patch)
treee063d3dc35607e0463dba9c9be39475a80d06fc8
parent674ffe96fb6d9264f2e9019c8d26fce5fb3588e3 (diff)
tdx-cfg-block: add Apalis iMX8 QuadMax support
Add support for interactive recovery of Apalis iMX8 QuadMax config block. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit 70cf26d9f5edcb6de6b2b70f1bf6a821e46be3dd) (cherry picked from commit afc3024a826e61dc0ecc5d55b8dea96544ca9487) (cherry picked from commit b15393500e633a40319c5f8cf3ad02010f4acddd)
-rw-r--r--board/toradex/common/tdx-cfg-block.c5
1 files changed, 4 insertions, 1 deletions
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 <common.h>
#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 <asm/arch/sys_proto.h>
#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;