Skip to content
  • Kever Yang's avatar
    spl: add support to booting with OP-TEE · 70fe2876
    Kever Yang authored and Philipp Tomsich's avatar Philipp Tomsich committed
    OP-TEE is an open source trusted OS, in armv7, its loading and
    running are like this:
    loading:
    - SPL load both OP-TEE and U-Boot
    running:
    - SPL run into OP-TEE in secure mode;
    - OP-TEE run into U-Boot in non-secure mode;
    
    To make code simple, it would be fine to use IH_OS_TEE for the
    os tyle in TPL(just like IH_OS_LINUX is using both in SPL and U-Boot).
    
    Here is the diagram for SPL loading OP-TEE,
    IH_OS_TEE:(make u-boot.itb for SPL)
        Non-Secure       Secure
    
                         BootROM
                           |
                           v
                          SPL
                           |
                           v
              ---------  OP-TEE
             |
             v
           U-Boot
             |
             V
           Linux
    For other two king of OP-TEE loading/booting, see commit message:
    45b55712 image: Add IH_OS_TEE for TEE chain-load boot
    
    More detail:
    https://github.com/OP-TEE/optee_os
    
    
    and search for 'boot arguments' for detail entry parameter in:
    core/arch/arm/kernel/generic_entry_a32.S
    
    Signed-off-by: Kever Yang's avatarKever Yang <kever.yang@rock-chips.com>
    Cc: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
    Reviewed-by: Philipp Tomsich's avatarPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
    70fe2876