mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Fabian Pflug <f.pflug@pengutronix.de>
To: BAREBOX <barebox@lists.infradead.org>
Cc: Marco Felsch <m.felsch@pengutronix.de>,
	 Fabian Pflug <f.pflug@pengutronix.de>
Subject: [PATCH v4 0/2] Add generic OP-TEE loading for i.MX6
Date: Mon, 16 Feb 2026 11:36:22 +0100	[thread overview]
Message-ID: <20260216-v2025-11-0-topic-optee-imx6-start-v4-0-b73279a8a971@pengutronix.de> (raw)

Add a generic way to load OP-TEE from i.MX6 CPU's with config options
instead of board and lowlevel code.

If the generic i.MX6 OPTEE firmware gets enabled, it will be loaded
during boot, if the boardcode is using the imx6*_barebox_entry function
to start barebox instead of the generic barebox_arm_entry. These will
make sure, that OP-TEE is configured correctly and if the space for the
overlay is configured, they will also apply the devicetree overlay
provided by OP-TEE.

This is build upon the work of Marco for i.MX8M.

Signed-off-by: Fabian Pflug <f.pflug@pengutronix.de>
---
Changes in v4:
- replace IS_NULL(fdto) with fdto == NULL
- Link to v3: https://lore.barebox.org/barebox/20260216-v2025-11-0-topic-optee-imx6-start-v3-0-ad981cb16e6e@pengutronix.de

Changes in v3:
- Update to newest version of dependend series.
- Link to dependen series: https://lore.barebox.org/barebox/20260211-v2025-09-0-topic-optee-of-handling-v3-0-dd83358ae624@pengutronix.de/
- Link to v2: https://lore.barebox.org/barebox/20251210-v2025-11-0-topic-optee-imx6-start-v2-0-5328020f7f80@pengutronix.de

Changes in v2:
- Dropped double substraction of OPTEE_SIZE from memory layout
  - from barebox-arm.h
  - from esdctl.c
- Automagically -> automatically
- Link to v1: https://lore.barebox.org/barebox/20251208-v2025-11-0-topic-optee-imx6-start-v1-0-0907128cdb8f@pengutronix.de

---
Fabian Pflug (2):
      ARM: i.MX: scratch: add generic init for imx
      ARM: i.MX6: load optee in PBL before barebox proper

 arch/arm/mach-imx/Kconfig   |  2 +-
 arch/arm/mach-imx/esdctl.c  | 48 ++++++++++++++++++++++++++++++++++++++++++---
 arch/arm/mach-imx/scratch.c | 18 ++++++++---------
 firmware/Kconfig            |  8 ++++++++
 firmware/Makefile           |  1 +
 include/mach/imx/scratch.h  |  1 +
 include/tee/optee.h         |  9 ++++++++-
 7 files changed, 73 insertions(+), 14 deletions(-)
---
base-commit: 7ca10210121e51856cdb99f85eb7f9801b29ddb2
change-id: 20251205-v2025-11-0-topic-optee-imx6-start-c6aec57d1a13
prerequisite-change-id: 20251110-v2025-09-0-topic-optee-of-handling-e9f51531c464:v3
prerequisite-patch-id: ed054cfa1582d9b49e2be540106cd90107bde600
prerequisite-patch-id: f916f25d3fe0064ce6455fff58a7ba45494188cd
prerequisite-patch-id: e9d8948b45921666d931253bfed355de5ac54c0f
prerequisite-patch-id: f25764d9a13e9631e71f9eb1cef9740b240d80e1
prerequisite-patch-id: 432b1305e98b2b406eb676f9e67b91589a8c28d8
prerequisite-patch-id: 0f6d0d30b46e432859ab824b7aec3aa3b60af3c3
prerequisite-patch-id: 3e1fa756532433c41f45ab0faaf16d0930e4c060
prerequisite-patch-id: a6b464e45b729c5050b6a666708f956af926d086
prerequisite-patch-id: 6f39185bb4f3693d764b309cca4b2745ddb8435e
prerequisite-patch-id: 03c1dad70551c5994ef195b774edf3e9a99d5502
prerequisite-patch-id: 12ab30ee2ed7982d37ef1ca5f6080c10bafce92a
prerequisite-patch-id: cce3aa8abd3e87aa7536cbf70a1a9a847322d590
prerequisite-patch-id: 528bc53ad2f52a81c42f0da0a6f77e7cd22b1b6f
prerequisite-patch-id: a999583ab806be64268eb52f47fbd8d5f4610d19

Best regards,
-- 
Fabian Pflug <f.pflug@pengutronix.de>




             reply	other threads:[~2026-02-16 10:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-16 10:36 Fabian Pflug [this message]
2026-02-16 10:36 ` [PATCH v4 1/2] ARM: i.MX: scratch: add generic init for imx Fabian Pflug
2026-02-16 10:36 ` [PATCH v4 2/2] ARM: i.MX6: load optee in PBL before barebox proper Fabian Pflug

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=20260216-v2025-11-0-topic-optee-imx6-start-v4-0-b73279a8a971@pengutronix.de \
    --to=f.pflug@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=m.felsch@pengutronix.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