ast27x0: refactor FIT boot loader into fmc_image.c for future Caliptra Manifest support

Refactor the BootROM image loader to prepare for future SoC Caliptra manifest
support.

Move FMC scan and FIT parsing/loading logic out of image.c into a dedicated
implementation file (fmc_image.c) and add a corresponding header (fmc_image.h).
Keep image.c focused on boot entry and boot policy flow, including a placeholder
policy step for Caliptra Manifest boot with fallback to the legacy FIT path.

Update headers to include stdint.h where required, and adjust Makefile objects
to build the new module.

This change is a pure refactor with no intended functional behavior change. It
cleans up the code base and provides a clear separation between boot policy and
image-format-specific logic, which will be extended by a future Caliptra
manifest loader.

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
6 files changed
tree: db75160f2830d83a788e52b40a153ac0711622d0
  1. ast27x0/
  2. lib/
  3. npcm7xx/
  4. npcm8xx/
  5. .gitignore
  6. CONTRIBUTING.md
  7. LICENSE
  8. README.md
README.md

Virtual Boot ROM for NPCM and ASPEED SoCs

This repository contains simple Boot ROMs for Nuvoton and ASPEED based BMC images that are intended to be used by QEMU when emulating NPCM and ASPEED based machines.

Subdirectories

npcm7xx: This subdir contains Boot ROM for NPCM7XX, a 32-bit ARM image. npcm8xx: This subdir contains Boot ROM for NPCM8XX, a 64-bit ARM image. ast27x0: This subdir contains Boot ROM for AST27X0, a 64-bit ARM image.