From: Patrick DELAUNAY Date: Wed, 7 Apr 2021 10:02:42 +0200 Subject: [PATCH v2 2/5] spl: Introduce spl_board_prepare_for_optee() hook In-Reply-To: <20210315154715.2258433-3-mr.nuke.me@gmail.com> References: <20210315154715.2258433-1-mr.nuke.me@gmail.com> <20210315154715.2258433-3-mr.nuke.me@gmail.com> Message-ID: <20fa2a63-6fc6-3d19-b016-2a383afe70fe@foss.st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, On 3/15/21 4:47 PM, Alexandru Gagniuc wrote: > 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 > Reviewed-by: Tom Rini > Reviewed-by: Simon Glass > --- > common/spl/spl.c | 5 +++++ > include/spl.h | 14 ++++++++++++++ > 2 files changed, 19 insertions(+) > Reviewed-by: Patrick Delaunay Thanks Patrick