spl: Introduce spl_board_prepare_for_optee() hook
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Thu, 15 Jul 2021 19:19:24 +0000 (14:19 -0500)
committerPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 27 Jul 2021 07:47:40 +0000 (09:47 +0200)
commita25d6b65c21b1298712c75604ff606025cb40267
tree413b09b4b710f1167df3ef9cfc83d3a856a91037
parent5f6e5c37c67381b9790f55a34640415939a479a5
spl: Introduce spl_board_prepare_for_optee() hook

OP-TEE requires some particular setup, which is not needed for linux
or other payloads. Add a hook for platform-specific code to perform
any OP-TEE related configuration and initialization.

A weak function is used because it is symmetrical to other
spl_board_prepare_for_*() implementations. A solution to avoid the use
of weak functions would trivially apply to all these implementations.
However, re-designing this is beyond the scope of this patch.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
common/spl/spl.c
include/spl.h