• Andrew F. Davis's avatar
    ARM: OMAP2+: Use ARM SMC Calling Convention when OP-TEE is available · 48840e16
    Andrew F. Davis authored
    On High-Security(HS) OMAP2+ class devices a couple actions must be
    performed from the ARM TrustZone during boot. These traditionally can be
    performed by calling into the secure ROM code resident in this secure
    world using legacy SMC calls. Optionally OP-TEE can replace this secure
    world functionality by replacing the ROM after boot. ARM recommends a
    standard calling convention is used for this interaction (SMC Calling
    Convention). We check for the presence of OP-TEE and use this type of
    call to perform the needed actions, falling back to the legacy OMAP ROM
    call if OP-TEE is not available.
    Signed-off-by: default avatarAndrew F. Davis <afd@ti.com>
    Reviewed-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
    Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
    48840e16
common.h 9.3 KB