summaryrefslogtreecommitdiff
path: root/arch/arm/imx-common/hab.c
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2017-02-22 16:21:53 +0800
committerYe Li <ye.li@nxp.com>2017-04-05 17:23:52 +0800
commit245854f657c092783507a572337765f2f3c44724 (patch)
tree8401467ea50633d7936113ebeb2ae4530bf95afc /arch/arm/imx-common/hab.c
parent0921d1c3d60594e584bdfc16c3777913b0de9a5f (diff)
downloadu-boot-imx-245854f657c092783507a572337765f2f3c44724.zip
u-boot-imx-245854f657c092783507a572337765f2f3c44724.tar.gz
u-boot-imx-245854f657c092783507a572337765f2f3c44724.tar.bz2
mx7ulp: Add HAB boot support
Add CAAM clock functions, SEC_CONFIG[1] fuse checking, and default CSF size for HAB support boot on mx7ulp. Users need to uncomment the CONFIG_SECURE_BOOT in mx7ulp_evk.h to build secure uboot. Signed-off-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by : Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch/arm/imx-common/hab.c')
-rw-r--r--arch/arm/imx-common/hab.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/imx-common/hab.c b/arch/arm/imx-common/hab.c
index 7449487..523d0e3 100644
--- a/arch/arm/imx-common/hab.c
+++ b/arch/arm/imx-common/hab.c
@@ -77,7 +77,8 @@
#define MX6DLS_PU_IROM_MMU_EN_VAR 0x00901dd0
#define MX6SL_PU_IROM_MMU_EN_VAR 0x00900a18
#define IS_HAB_ENABLED_BIT \
- (is_soc_type(MXC_SOC_MX7) ? 0x2000000 : 0x2)
+ (is_soc_type(MXC_SOC_MX7ULP) ? 0x80000000 : \
+ (is_soc_type(MXC_SOC_MX7) ? 0x2000000 : 0x2))
/*
* +------------+ 0x0 (DDR_UIMAGE_START) -