From: Andrew Davis <afd@ti.com>
To: Manorit Chawdhry <m-chawdhry@ti.com>
Cc: Neha Malcom Francis <n-francis@ti.com>,
Vignesh Raghavendra <vigneshr@ti.com>, Nishanth Menon <nm@ti.com>,
Simon Glass <sjg@chromium.org>, Tom Rini <trini@konsulko.com>,
<u-boot@lists.denx.de>
Subject: Re: [PATCH 2/6] arm: mach-k3: Add config option for setting OP-TEE address
Date: Wed, 6 Mar 2024 07:49:44 -0600 [thread overview]
Message-ID: <1441c976-1533-4b4b-b09f-88e9a8fd3944@ti.com> (raw)
In-Reply-To: <20240228062113.bozx3di2daub4z7f@uda0497581>
On 2/28/24 12:21 AM, Manorit Chawdhry wrote:
> Hi Andrew,
>
> On 10:30-20240214, Andrew Davis wrote:
>> Much like we have for ATF, OP-TEE has a standard address that we load
>> it too and run it from. Add a Kconfig item for this to remove some
>> hard-coding and allow this address to be more easily changed.
>>
>> Signed-off-by: Andrew Davis <afd@ti.com>
>> ---
>> arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi | 4 ++--
>> arch/arm/dts/k3-am65-iot2050-boot-image.dtsi | 4 ++--
>> arch/arm/dts/k3-binman.dtsi | 8 ++++----
>> arch/arm/dts/k3-j721e-beagleboneai64-u-boot.dtsi | 4 ++--
>> arch/arm/mach-k3/Kconfig | 7 +++++++
>> 5 files changed, 17 insertions(+), 10 deletions(-)
>>
>> diff --git a/arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi b/arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi
>> index a723caa5805..cca0f44b7d8 100644
>> --- a/arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi
>> +++ b/arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi
>> @@ -105,8 +105,8 @@
>> arch = "arm64";
>> compression = "none";
>> os = "tee";
>> - load = <0x9e800000>;
>> - entry = <0x9e800000>;
>> + load = <CONFIG_K3_OPTEE_LOAD_ADDR>;
>> + entry = <CONFIG_K3_OPTEE_LOAD_ADDR>;
>> tee-os {
>> filename = "tee-raw.bin";
>> };
>> diff --git a/arch/arm/dts/k3-am65-iot2050-boot-image.dtsi b/arch/arm/dts/k3-am65-iot2050-boot-image.dtsi
>> index 64318d09cf0..3a6db91e132 100644
>> --- a/arch/arm/dts/k3-am65-iot2050-boot-image.dtsi
>> +++ b/arch/arm/dts/k3-am65-iot2050-boot-image.dtsi
>> @@ -51,8 +51,8 @@
>> arch = "arm64";
>> compression = "none";
>> os = "tee";
>> - load = <0x9e800000>;
>> - entry = <0x9e800000>;
>> + load = <CONFIG_K3_OPTEE_LOAD_ADDR>;
>> + entry = <CONFIG_K3_OPTEE_LOAD_ADDR>;
>> tee-os {
>> };
>> };
>> diff --git a/arch/arm/dts/k3-binman.dtsi b/arch/arm/dts/k3-binman.dtsi
>> index 758c8bf6ea1..621653e9471 100644
>> --- a/arch/arm/dts/k3-binman.dtsi
>> +++ b/arch/arm/dts/k3-binman.dtsi
>> @@ -286,8 +286,8 @@
>> arch = "arm64";
>> compression = "none";
>> os = "tee";
>> - load = <0x9e800000>;
>> - entry = <0x9e800000>;
>> + load = <CONFIG_K3_OPTEE_LOAD_ADDR>;
>> + entry = <CONFIG_K3_OPTEE_LOAD_ADDR>;
>> ti-secure {
>> content = <&tee>;
>> keyfile = "custMpk.pem";
>> @@ -356,8 +356,8 @@
>> arch = "arm64";
>> compression = "none";
>> os = "tee";
>> - load = <0x9e800000>;
>> - entry = <0x9e800000>;
>> + load = <CONFIG_K3_OPTEE_LOAD_ADDR>;
>> + entry = <CONFIG_K3_OPTEE_LOAD_ADDR>;
>> tee-os {
>> filename = "tee-raw.bin";
>> };
>> diff --git a/arch/arm/dts/k3-j721e-beagleboneai64-u-boot.dtsi b/arch/arm/dts/k3-j721e-beagleboneai64-u-boot.dtsi
>> index 017a5a722e0..ca99fa0e690 100644
>> --- a/arch/arm/dts/k3-j721e-beagleboneai64-u-boot.dtsi
>> +++ b/arch/arm/dts/k3-j721e-beagleboneai64-u-boot.dtsi
>> @@ -250,8 +250,8 @@
>> arch = "arm64";
>> compression = "none";
>> os = "tee";
>> - load = <0x9e800000>;
>> - entry = <0x9e800000>;
>> + load = <CONFIG_K3_OPTEE_LOAD_ADDR>;
>> + entry = <CONFIG_K3_OPTEE_LOAD_ADDR>;
>> tee-os {
>> filename = "tee-raw.bin";
>> };
>> diff --git a/arch/arm/mach-k3/Kconfig b/arch/arm/mach-k3/Kconfig
>> index 0bd3f9fa12d..55bb874d9aa 100644
>> --- a/arch/arm/mach-k3/Kconfig
>> +++ b/arch/arm/mach-k3/Kconfig
>> @@ -129,6 +129,13 @@ config K3_ATF_LOAD_ADDR
>> The load address for the ATF image. This value is used to build the
>> FIT image header that places ATF in memory where it will run.
>>
>> +config K3_OPTEE_LOAD_ADDR
>> + hex "Load address of OPTEE image"
>> + default 0x9e800000
>> + help
>> + The load address for the OPTEE image. This value defaults to 0x9e800000
>> + if not provided in the board defconfig file.
>> +
>
> Wondering if we should call out updating the firewall configurations as
> well as a part of this so people don't end up with random failures..
>
Might be even better to build the firewall config based on this
new kconfig symbol. I can look into that at some later point.
Andrew
> Regards,
> Manorit
>
>> config K3_DM_FW
>> bool "Separate DM firmware image"
>> depends on CPU_V7R && (SOC_K3_J721E || SOC_K3_J721S2 || SOC_K3_AM625 || SOC_K3_AM62A7) && !CLK_TI_SCI && !TI_SCI_POWER_DOMAIN
>> --
>> 2.39.2
>>
next prev parent reply other threads:[~2024-03-06 13:50 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-14 16:30 [PATCH 0/6] Move DRAM address of ATF Andrew Davis
2024-02-14 16:30 ` [PATCH 1/6] arm: mach-k3: Add default ATF location for AM62/AM62a Andrew Davis
2024-02-16 4:55 ` Neha Malcom Francis
2024-03-06 13:27 ` Bryan Brattlof
2024-06-19 11:49 ` Dhruva Gole
2024-06-19 18:20 ` Nishanth Menon
2024-06-19 20:02 ` Andrew Davis
2024-06-20 5:30 ` Wadim Egorov
2024-06-21 13:49 ` Bryan Brattlof
2024-02-14 16:30 ` [PATCH 2/6] arm: mach-k3: Add config option for setting OP-TEE address Andrew Davis
2024-02-16 4:59 ` Neha Malcom Francis
2024-02-28 6:21 ` Manorit Chawdhry
2024-03-06 13:49 ` Andrew Davis [this message]
2024-03-06 13:28 ` Bryan Brattlof
2024-02-14 16:30 ` [PATCH 3/6] arm: mach-k3: am62: Enable OF_SYSTEM_SETUP for all boards Andrew Davis
2024-02-14 16:30 ` [PATCH 4/6] arm: mach-k3: am62: Fixup TF-A/OP-TEE reserved-memory node in FDT Andrew Davis
2024-02-16 5:26 ` Neha Malcom Francis
2024-02-28 6:24 ` Manorit Chawdhry
2024-03-06 13:52 ` Andrew Davis
2024-03-06 13:35 ` Bryan Brattlof
2024-03-06 14:03 ` Andrew Davis
2024-03-06 15:38 ` Bryan Brattlof
2024-02-14 16:30 ` [PATCH 5/6] arm: mach-k3: am62a: " Andrew Davis
2024-03-06 13:35 ` Bryan Brattlof
2024-02-14 16:30 ` [PATCH 6/6] arm: mach-k3: Move DRAM address of ATF for AM62/AM62a Andrew Davis
2024-02-15 8:06 ` Francesco Dolcini
2024-02-15 20:44 ` Andrew Davis
2024-03-06 13:37 ` Bryan Brattlof
2024-03-06 16:53 ` [PATCH 0/6] Move DRAM address of ATF Tom Rini
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=1441c976-1533-4b4b-b09f-88e9a8fd3944@ti.com \
--to=afd@ti.com \
--cc=m-chawdhry@ti.com \
--cc=n-francis@ti.com \
--cc=nm@ti.com \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=vigneshr@ti.com \
/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