summaryrefslogtreecommitdiff
path: root/board/ti
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2016-08-30 14:06:24 -0500
committerTom Rini <trini@konsulko.com>2016-10-02 08:10:01 -0400
commitb0a4eea1a0d63a5debc132ff579590c057262339 (patch)
treecab3ccf6b2f9d99e466e5c3991a75869a2a62650 /board/ti
parent7e5a0bfbd23584e31e490871931378e647ad827b (diff)
board: am33xx-hs: Allow post-processing of FIT image on AM33xx
When CONFIG_FIT_IMAGE_POST_PROCESS or CONFIG_SPL_FIT_IMAGE_POST_PROCESS is enabled board_fit_image_post_process will be called, add this function to am33xx boards when CONFIG_TI_SECURE_DEVICE is set to verify the loaded image. Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Acked-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'board/ti')
-rw-r--r--board/ti/am335x/board.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
index 56f4984f47..0ed16ca15a 100644
--- a/board/ti/am335x/board.c
+++ b/board/ti/am335x/board.c
@@ -25,6 +25,7 @@
#include <asm/io.h>
#include <asm/emif.h>
#include <asm/gpio.h>
+#include <asm/omap_sec_common.h>
#include <i2c.h>
#include <miiphy.h>
#include <cpsw.h>
@@ -775,3 +776,10 @@ int board_fit_config_name_match(const char *name)
return -1;
}
#endif
+
+#ifdef CONFIG_TI_SECURE_DEVICE
+void board_fit_image_post_process(void **p_image, size_t *p_size)
+{
+ secure_boot_verify_image(p_image, p_size);
+}
+#endif