mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 0/3] add PBL handoff-data support
Date: Tue, 30 Apr 2024 12:53:07 +0200	[thread overview]
Message-ID: <20240430105310.3149242-1-s.hauer@pengutronix.de> (raw)

We need to pass data from the PBL to barebox proper. Right now we do
this with passing the data in registers which is quite limited. As the
amount of information that has to be passed increases it's time to
overcome this limitation.

This series introduces handoff-data which is a linked list of memory
blobs that can be passed from PBL to barebox proper. Board and SoC
code can append this list with their own entries and pick them up later
in barebox proper. The ARM architecture is converted over to use handoff
data, other architectures could follow.

Sascha Hauer (3):
  ARM: move blob_is_arm_boarddata() to include
  add handoff-data support
  ARM: pass handoff data from PBL to proper

 arch/arm/cpu/start.c               |  60 +++------
 arch/arm/cpu/uncompress.c          |  33 ++++-
 arch/arm/include/asm/barebox-arm.h |   7 ++
 include/handoff-data.h             |  48 ++++++++
 pbl/Makefile                       |   1 +
 pbl/handoff-data.c                 | 192 +++++++++++++++++++++++++++++
 6 files changed, 293 insertions(+), 48 deletions(-)
 create mode 100644 include/handoff-data.h
 create mode 100644 pbl/handoff-data.c

-- 
2.39.2




             reply	other threads:[~2024-04-30 10:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-30 10:53 Sascha Hauer [this message]
2024-04-30 10:53 ` [PATCH 1/3] ARM: move blob_is_arm_boarddata() to include Sascha Hauer
2024-05-02 14:21   ` Ahmad Fatoum
2024-04-30 10:53 ` [PATCH 2/3] add handoff-data support Sascha Hauer
2024-04-30 10:53 ` [PATCH 3/3] ARM: pass handoff data from PBL to proper Sascha Hauer
2024-05-07  7:35 ` [PATCH 0/3] add PBL handoff-data support 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=20240430105310.3149242-1-s.hauer@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