fmap: Support images with multiple FMAP signatures.
Firmware images reading itself and searching for FMAP structure will have FMAP
signature in execution code, and cause decode_fmap to locate incorrect starting
address. To fix that, always check known version numbers.
TEST=manually: tested with peach_pit depthcharge firmware.
Tested-by: Hung-Te Lin <firstname.lastname@example.org>
Reviewed-by: Vic Yang <email@example.com>
Commit-Queue: Hung-Te Lin <firstname.lastname@example.org>
1 file changed