From: Sascha Hauer <s.hauer@pengutronix.de>
To: BAREBOX <barebox@lists.infradead.org>
Subject: [PATCH 1/3] ARM: rockchip: atf: only set OP-TEE address when starting it
Date: Wed, 13 May 2026 15:55:50 +0200 [thread overview]
Message-ID: <20260513-rockchip-fixes-v1-1-a4055849a014@pengutronix.de> (raw)
In-Reply-To: <20260513-rockchip-fixes-v1-0-a4055849a014@pengutronix.de>
Setting optee_load_address should be gated behind
CONFIG_ARCH_ROCKCHIP_OPTEE, otherwise we start OP-TEE unconditionally,
even with CONFIG_ARCH_ROCKCHIP_OPTEE disabled.
Fixes: 01df55fc7f ("ARM: Rockchip: Simplify retrieval of SoC specific addresses")
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/mach-rockchip/atf.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-rockchip/atf.c b/arch/arm/mach-rockchip/atf.c
index a9bcb58799..62ed73a920 100644
--- a/arch/arm/mach-rockchip/atf.c
+++ b/arch/arm/mach-rockchip/atf.c
@@ -139,10 +139,11 @@ static struct fwobj bl32; /* OP-TEE in barebox image */
#define ROCKCHIP_GET_ADDRESSES(SOC, atf_bin, tee_bin) \
do { \
barebox_load_address = SOC##_BAREBOX_LOAD_ADDRESS; \
- optee_load_address = SOC##_OPTEE_LOAD_ADDRESS; \
get_builtin_firmware_compressed(atf_bin, &bl31); \
- if (IS_ENABLED(CONFIG_ARCH_ROCKCHIP_OPTEE)) \
+ if (IS_ENABLED(CONFIG_ARCH_ROCKCHIP_OPTEE)) { \
get_builtin_firmware_compressed(tee_bin, &bl32); \
+ optee_load_address = SOC##_OPTEE_LOAD_ADDRESS; \
+ } \
} while (0)
static int rockchip_create_optee_fdt(void *buf, int bufsize)
--
2.47.3
next prev parent reply other threads:[~2026-05-13 13:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-13 13:55 [PATCH 0/3] ARM: Rockchip: regression fixes Sascha Hauer
2026-05-13 13:55 ` Sascha Hauer [this message]
2026-05-13 13:55 ` [PATCH 2/3] ARM: rockchip: dmc: substract ROCKCHIP_DRAM_TFA_CARVE_OUT from memory regions Sascha Hauer
2026-05-13 13:55 ` [PATCH 3/3] ARM: rockchip: atf: pass correct memsize to mmu_early_enable() Sascha Hauer
2026-05-15 9:28 ` [PATCH 0/3] ARM: Rockchip: regression fixes Sascha Hauer
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=20260513-rockchip-fixes-v1-1-a4055849a014@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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