From 1eaffe39583a784390d579c3ca9e06b58164f4d0 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Thu, 20 Oct 2022 12:12:19 -0500 Subject: arm: mach-omap2: Move common image process functions out of board files The functions board_fit_image_post_process() and board_tee_image_process() are not actually board specific (despite their names). Any board using the OMAP2 family can use these functions. Move them to boot-common.c. Signed-off-by: Andrew Davis Reviewed-by: Tom Rini --- board/ti/dra7xx/evm.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'board/ti/dra7xx') diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c index 1c00e25..9cb7e21 100644 --- a/board/ti/dra7xx/evm.c +++ b/board/ti/dra7xx/evm.c @@ -13,7 +13,6 @@ #include #include #include -#include #include #include #include @@ -26,7 +25,6 @@ #include #include #include -#include #include #include #include @@ -1063,18 +1061,3 @@ int fastboot_set_reboot_flag(enum fastboot_reboot_reason reason) return 0; } #endif - -#ifdef CONFIG_TI_SECURE_DEVICE -void board_fit_image_post_process(const void *fit, int node, void **p_image, - size_t *p_size) -{ - secure_boot_verify_image(p_image, p_size); -} - -void board_tee_image_process(ulong tee_image, size_t tee_size) -{ - secure_tee_install((u32)tee_image); -} - -U_BOOT_FIT_LOADABLE_HANDLER(IH_TYPE_TEE, board_tee_image_process); -#endif -- cgit v1.1