From: Alex G. <mr.nuke.me@gmail.com>
To: u-boot@lists.denx.de
Subject: [PATCH 3/5] arm: stm32mp: Implement support for TZC 400 controller
Date: Mon, 8 Feb 2021 15:23:36 -0600 [thread overview]
Message-ID: <99048ba5-3f08-0eb2-eb42-16a0cf9e99bc@gmail.com> (raw)
In-Reply-To: <CAPnjgZ20PXAUqD7_TPFO1wbG7Eq41MYg+LX-0dZmTRcPiXAPYQ@mail.gmail.com>
On 2/7/21 8:37 AM, Simon Glass wrote:
> Hi Alexandru,
>
> On Thu, 4 Feb 2021 at 12:56, Alexandru Gagniuc <mr.nuke.me@gmail.com> wrote:
>>
>> The purpose of this change is to allow configuring TrustZone (TZC)
>> memory permissions. For example, OP-TEE expects TZC regions to be
>> configured in a very particular way. The API presented here is
>> intended to allow exactly that.
>>
>> UCLASS support is not implemented, because it would not be too useful.
>> Changing TZC permissions needs to be done with care, so as not to cut
>> off access to memory we are currently using. One place where we can
>> use this is at the end of SPL, right before jumping to OP-TEE.
>>
>> Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
>> ---
>> arch/arm/mach-stm32mp/Makefile | 1 +
>> arch/arm/mach-stm32mp/include/mach/tzc.h | 33 ++++++
>> arch/arm/mach-stm32mp/tzc400.c | 135 +++++++++++++++++++++++
>> 3 files changed, 169 insertions(+)
>> create mode 100644 arch/arm/mach-stm32mp/include/mach/tzc.h
>> create mode 100644 arch/arm/mach-stm32mp/tzc400.c
>
> If this is an API you should add comments to the header file structs
> and functions.
>
> Is this API specific to just this chip?
I've designed and validated this to set up stm32mp for starting up
OP-TEE. It's a narrow use case. I can't speak for other chips.
Alex
next prev parent reply other threads:[~2021-02-08 21:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-04 19:55 [PATCH 1/5] spl: mmc: Support OP-TEE payloads in Falcon mode Alexandru Gagniuc
2021-02-04 19:55 ` [PATCH 2/5] spl: Introduce spl_board_prepare_for_optee() hook Alexandru Gagniuc
2021-02-07 14:37 ` Simon Glass
2021-02-04 19:55 ` [PATCH 3/5] arm: stm32mp: Implement support for TZC 400 controller Alexandru Gagniuc
2021-02-07 14:37 ` Simon Glass
2021-02-08 21:23 ` Alex G. [this message]
2021-02-04 19:55 ` [PATCH 4/5] stm32mp1: spl: Configure TrustZone controller for OP-TEE Alexandru Gagniuc
2021-02-04 19:55 ` [PATCH 5/5] ARM: dts: stm32mp: Add OP-TEE reserved memory to SPL dtb Alexandru Gagniuc
2021-02-04 19:56 ` [PATCH 1/5] spl: mmc: Support OP-TEE payloads in Falcon mode Alex G.
2021-02-07 14:37 ` Simon Glass
-- strict thread matches above, loose matches on Subject: below --
2021-02-03 15:21 Alexandru Gagniuc
2021-02-03 15:21 ` [PATCH 3/5] arm: stm32mp: Implement support for TZC 400 controller Alexandru Gagniuc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=99048ba5-3f08-0eb2-eb42-16a0cf9e99bc@gmail.com \
--to=mr.nuke.me@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox