]> git.ipfire.org Git - people/ms/u-boot.git/commit
armv8: sec_firmware: Add support for loadables in FIT
authorSumit Garg <sumit.garg@nxp.com>
Fri, 1 Sep 2017 08:25:01 +0000 (13:55 +0530)
committerYork Sun <york.sun@nxp.com>
Fri, 27 Oct 2017 15:47:14 +0000 (08:47 -0700)
commit9b3f40ad092ff2633eefa7e8a4a713f71c9cb8cb
treeb2ba0cab1fdb883a0fe9b0d0146dffa49c125d14
parent9781d9ff5fafd3c433b426914f9d017ddfe757b5
armv8: sec_firmware: Add support for loadables in FIT

Enable support for loadables in SEC firmware FIT image. Currently
support is added for single loadable image.

Brief description of implementation:
  Add two more address pointers (loadable_h, loadable_l) as arguments to
  sec_firmware_init() api.
  Create new api: sec_firmware_checks_copy_loadable() to check if loadables
  node is present in SEC firmware FIT image. If present, verify loadable
  image and copies it to secure DDR memory.
  Populate address pointers with secure DDR memory addresses where loadable
  is copied.

Example use-case could be trusted OS (tee.bin) as loadables node in SEC
firmware FIT image.

Signed-off-by: Sumit Garg <sumit.garg@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/ppa.c
arch/arm/cpu/armv8/sec_firmware.c
arch/arm/include/asm/armv8/sec_firmware.h