From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Sun, 14 May 2017 03:32:09 -0600 Subject: [U-Boot] [PATCH v4] spl: add support to booting with ATF In-Reply-To: <1493956072-11281-1-git-send-email-kever.yang@rock-chips.com> References: <1493956072-11281-1-git-send-email-kever.yang@rock-chips.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 4 May 2017 at 21:47, Kever Yang 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 > --- > > 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