]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: hab: rework secure boot support for imx6
authorAdrian Alonso <aalonso@freescale.com>
Mon, 12 Oct 2015 18:48:08 +0000 (13:48 -0500)
committerStefano Babic <sbabic@denx.de>
Fri, 30 Oct 2015 14:20:57 +0000 (15:20 +0100)
Rework secure boot support for imx6, move existing hab support
for imx6 into imx-common for SoC reuse.

Signed-off-by: Adrian Alonso <aalonso@freescale.com>
arch/arm/cpu/armv7/mx6/Makefile
arch/arm/imx-common/Makefile
arch/arm/imx-common/hab.c [moved from arch/arm/cpu/armv7/mx6/hab.c with 99% similarity]
arch/arm/include/asm/imx-common/hab.h [moved from arch/arm/include/asm/arch-mx6/hab.h with 100% similarity]

index bf6effc9399d5407cc04e80fb200b59590a04536..8af191d660b61f212dec4ed0df4d13d29da88f5a 100644 (file)
@@ -9,5 +9,4 @@
 
 obj-y  := soc.o clock.o
 obj-$(CONFIG_SPL_BUILD)             += ddr.o
-obj-$(CONFIG_SECURE_BOOT)    += hab.o
 obj-$(CONFIG_MP)             += mp.o
index 1698d061e770829ae9f674189294441f41ecf08c..4abffee6232e5968528ca625e8374894a02aa0a4 100644 (file)
@@ -27,6 +27,7 @@ ifeq ($(SOC),$(filter $(SOC),mx6 mx7))
 obj-y  += cache.o init.o
 obj-$(CONFIG_CMD_SATA) += sata.o
 obj-$(CONFIG_IMX_VIDEO_SKIP) += video.o
+obj-$(CONFIG_SECURE_BOOT)    += hab.o
 endif
 ifeq ($(SOC),$(filter $(SOC),vf610))
 obj-y += ddrmc-vf610.o
similarity index 99%
rename from arch/arm/cpu/armv7/mx6/hab.c
rename to arch/arm/imx-common/hab.c
index 27cabe477d9e05e3d433eafdf5ee7d8b2448d8ec..9ee0f12a660650a95411b6de01c3c1a0176d2158 100644 (file)
@@ -7,9 +7,9 @@
 #include <common.h>
 #include <asm/io.h>
 #include <asm/system.h>
-#include <asm/arch/hab.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
+#include <asm/imx-common/hab.h>
 
 /* -------- start of HAB API updates ------------*/