
On Wed, Mar 22, 2017 at 07:05:30AM -0600, Simon Glass wrote:
Hi Kever,
On 20 March 2017 at 00:41, Kever Yang kever.yang@rock-chips.com wrote:
ATF(ARM Trust Firmware) is used by ARM arch64 SoCs, find more infomation about ATF at:
SPL is consider as BL2 in ATF, it needs to load other part of ATF binary like BL31, BL32, SCP-BL30, and BL33(U-Boot). And needs to prepare the parameter for BL31 which including entry and image information for all other images. Then the SPL handle PC to BL31 with the parameter, the BL31 will do the rest of work and at last get into U-Boot(BL33).
Signed-off-by: Kever Yang kever.yang@rock-chips.com
Changes in v1:
- license update
- split out as separate patch
common/spl/Kconfig | 14 +++ common/spl/Makefile | 1 + common/spl/spl.c | 4 + common/spl/spl_atf.c | 92 +++++++++++++++++ include/atf_common.h | 276 +++++++++++++++++++++++++++++++++++++++++++++++++++ include/spl.h | 1 + 6 files changed, 388 insertions(+) create mode 100644 common/spl/spl_atf.c create mode 100644 include/atf_common.h
diff --git a/common/spl/Kconfig b/common/spl/Kconfig index cba51f5..1bb4360 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -577,6 +577,20 @@ config SPL_YMODEM_SUPPORT means of transmitting U-Boot over a serial line for using in SPL, with a checksum to ensure correctness.
+config SPL_ATF_SUPPORT
bool "Support ARM trust firmware"
depends on SPL
... and ARM64
[snip]
+static struct bl2_to_bl31_params_mem_t bl31_params_mem; +static struct bl31_params_t *bl2_to_bl31_params;
+/*******************************************************************************
Can you remove all the extra stars and use the normal fnuction and structure comment style?
... unless this is something being directly copied from upstream in which case formatting changes like this would make things harder to keep in sync. Thanks!