[U-Boot] [PATCH v4] spl: add support to booting with ATF

Simon Glass sjg at chromium.org
Sun May 14 09:32:09 UTC 2017


On 4 May 2017 at 21:47, Kever Yang <kever.yang at rock-chips.com> wrote:
> ATF(ARM Trusted Firmware) is used by ARM arch64 SoCs, find more infomation
> about ATF at: https://github.com/ARM-software/arm-trusted-firmware
>
> SPL is considered as BL2 in ATF terminology, it needs to load other parts
> 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).
>
> This patch needs work with patches from Andre for SPL support multi
> binary in FIT.
>
> The entry point of bl31 and bl33 are still using hard code because we
> still can not get them from the FIT image information.
>
> Signed-off-by: Kever Yang <kever.yang at rock-chips.com>
> ---
>
> Changes in v4:
> - fix description in Kconfig
> - add debug log before get into ATF BL31
> - remove '_t' postfix for structure define
>
> Changes in v3:
> - remove no neccessary Macro definition in header file.
> - rename some Macro with 'ATF_' prefix.
>
> Changes in v2:
> - Kconfig comment update with Simon's suggestion
> - including file ordering,
> - update function comment format,
> - use 'if' instead of '#ifdef' for bl31_entry
> - add ATF Kconfig option depend on ARM64
>
> Changes in v1:
> - license update
> - split out as separate patch
>
>  common/spl/Kconfig   |  14 ++++
>  common/spl/Makefile  |   1 +
>  common/spl/spl.c     |   5 ++
>  common/spl/spl_atf.c |  97 +++++++++++++++++++++++++++
>  include/atf_common.h | 183 +++++++++++++++++++++++++++++++++++++++++++++++++++
>  include/spl.h        |   1 +
>  6 files changed, 301 insertions(+)
>  create mode 100644 common/spl/spl_atf.c
>  create mode 100644 include/atf_common.h

Acked-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list