diff options
author | Yatharth Kochar <yatharth.kochar@arm.com> | 2015-10-14 15:27:24 +0100 |
---|---|---|
committer | Yatharth Kochar <yatharth.kochar@arm.com> | 2015-12-09 17:41:19 +0000 |
commit | 9003fa0b0c06fc8951498dcd69925e477fc5907a (patch) | |
tree | bd490853765d694ec2bc5cbcd59fdc7ac2d09acd /include | |
parent | 436223def6e2ca5e9b9fe66c5e9217857280d44e (diff) |
FWU: Add Generic BL2U FWU image support in BL2
The Firmware Update (FWU) feature needs support for an optional
secure world image, BL2U, to allow additional secure world
initialization required by FWU, for example DDR initialization.
This patch adds generic framework support to create BL2U.
NOTE: A platform makefile must supply additional `BL2U_SOURCES`
to build the bl2u target. A subsequent patch adds bl2u
support for ARM platforms.
Change-Id: If2ce036199bb40b39b7f91a9332106bcd4e25413
Diffstat (limited to 'include')
-rw-r--r-- | include/common/bl_common.h | 2 | ||||
-rw-r--r-- | include/plat/common/platform.h | 17 |
2 files changed, 19 insertions, 0 deletions
diff --git a/include/common/bl_common.h b/include/common/bl_common.h index af83d784..b7cb95aa 100644 --- a/include/common/bl_common.h +++ b/include/common/bl_common.h @@ -150,6 +150,8 @@ extern unsigned long __RO_START__; extern unsigned long __RO_END__; #if IMAGE_BL2 extern unsigned long __BL2_END__; +#elif IMAGE_BL2U +extern unsigned long __BL2U_END__; #elif IMAGE_BL31 extern unsigned long __BL31_END__; #elif IMAGE_BL32 diff --git a/include/plat/common/platform.h b/include/plat/common/platform.h index 1e724518..9fbc1721 100644 --- a/include/plat/common/platform.h +++ b/include/plat/common/platform.h @@ -193,6 +193,23 @@ void bl2_plat_get_bl32_meminfo(struct meminfo *mem_info); ******************************************************************************/ /******************************************************************************* + * Mandatory BL2U functions. + ******************************************************************************/ +void bl2u_early_platform_setup(struct meminfo *mem_layout, + void *plat_info); +void bl2u_plat_arch_setup(void); +void bl2u_platform_setup(void); + +/******************************************************************************* + * Conditionally mandatory BL2U functions for CSS platforms. + ******************************************************************************/ +/* + * This function is used to perform any platform-specific actions required to + * handle the BL2U_SCP firmware. + */ +int bl2u_plat_handle_scp_bl2u(void); + +/******************************************************************************* * Mandatory BL3-1 functions ******************************************************************************/ void bl31_early_platform_setup(struct bl31_params *from_bl2, |