diff options
author | Sumit Garg <sumit.garg@nxp.com> | 2017-09-01 13:55:01 +0530 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2017-10-27 08:47:14 -0700 |
commit | 9b3f40ad092ff2633eefa7e8a4a713f71c9cb8cb (patch) | |
tree | b2ba0cab1fdb883a0fe9b0d0146dffa49c125d14 /arch/arm/include/asm/armv8 | |
parent | 9781d9ff5fafd3c433b426914f9d017ddfe757b5 (diff) | |
download | u-boot-9b3f40ad092ff2633eefa7e8a4a713f71c9cb8cb.tar.gz u-boot-9b3f40ad092ff2633eefa7e8a4a713f71c9cb8cb.tar.xz u-boot-9b3f40ad092ff2633eefa7e8a4a713f71c9cb8cb.zip |
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>
Diffstat (limited to 'arch/arm/include/asm/armv8')
-rw-r--r-- | arch/arm/include/asm/armv8/sec_firmware.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/include/asm/armv8/sec_firmware.h b/arch/arm/include/asm/armv8/sec_firmware.h index 6d42a7111f..2ba1847a2e 100644 --- a/arch/arm/include/asm/armv8/sec_firmware.h +++ b/arch/arm/include/asm/armv8/sec_firmware.h @@ -9,8 +9,10 @@ #define PSCI_INVALID_VER 0xffffffff #define SEC_JR3_OFFSET 0x40000 +#define WORD_MASK 0xffffffff +#define WORD_SHIFT 32 -int sec_firmware_init(const void *, u32 *, u32 *); +int sec_firmware_init(const void *, u32 *, u32 *, u32 *, u32 *); int _sec_firmware_entry(const void *, u32 *, u32 *); bool sec_firmware_is_valid(const void *); bool sec_firmware_support_hwrng(void); |