u-boot/arch/arm/include/asm/mach-imx
Bryan O'Donoghue adbb051f08 arm: imx: hab: Make authenticate_image return int
Both usages of authenticate_image treat the result code as a simple binary.
The command line usage of authenticate_image directly returns the result
code of authenticate_image as a success/failure code.

Right now when calling hab_auth_img and test the result code in a shell a
passing hab_auth_img will appear to the shell as a fail.

The first step in fixing this behaviour is to fix-up the result code return
by authenticate_image() itself, subsequent patches fix the interpretation
of authenticate_image so that zero will return CMD_RET_SUCCESS and non-zero
will return CMD_RET_FAILURE.

The first step is fixing the return type in authenticate_image() so do that
now.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Sven Ebenfeld <sven.ebenfeld@gmail.com>
Cc: George McCollister <george.mccollister@gmail.com>
Cc: Breno Matheus Lima <brenomatheus@gmail.com>
Tested-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
2018-01-14 17:26:30 +01:00
..
boot_mode.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
dma.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
gpio.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
hab.h arm: imx: hab: Make authenticate_image return int 2018-01-14 17:26:30 +01:00
imximage.cfg imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
iomux-v3.h mx6ull: Handle the CONFIG_MX6ULL cases correctly 2018-01-04 16:29:04 +01:00
mx5_video.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
mxc_i2c.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
rdc-sema.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
regs-apbh.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
regs-bch.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
regs-common.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
regs-gpmi.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
regs-lcdif.h mx6ull: Handle the CONFIG_MX6ULL cases correctly 2018-01-04 16:29:04 +01:00
regs-usbphy.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
sata.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
spi.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
sys_proto.h imx: spl: Fix NAND bootmode detection 2018-01-03 14:01:38 +01:00
syscounter.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00
video.h imx: reorganize IMX code as other SOCs 2017-07-12 10:17:44 +02:00