1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Texas Instruments Incorporated
5 * Refactored common functions in to gpimage-common.c. Include this common
9 * Linaro LTD, www.linaro.org
10 * Author: John Rigby <john.rigby@linaro.org>
11 * Based on TI's signGP.c
14 * Stefano Babic, DENX Software Engineering, sbabic@denx.de.
17 * Marvell Semiconductor <www.marvell.com>
18 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
24 /* common headers for gpimage and omapimage formats */
29 #define GPIMAGE_HDR_SIZE (sizeof(struct gp_header))
31 /* common functions across gpimage and omapimage handlers */
32 int valid_gph_size(uint32_t size);
33 int valid_gph_load_addr(uint32_t load_addr);
34 int gph_verify_header(struct gp_header *gph, int be);
35 void gph_print_header(const struct gp_header *gph, int be);
36 void gph_set_header(struct gp_header *gph, uint32_t size, uint32_t load_addr,
38 int gpimage_check_params(struct image_tool_params *params);