All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 04/10] rockchip: spl: support a 'same-as-spl'-specifier in the spl-boot-order
Date: Tue, 12 Sep 2017 22:25:55 -0600	[thread overview]
Message-ID: <CAPnjgZ2jm4LVG+GK5FeQqudGR-hFkr5XjFhrvMqihuphDZ1tKQ@mail.gmail.com> (raw)
In-Reply-To: <1505131150-39480-5-git-send-email-philipp.tomsich@theobroma-systems.com>

On 11 September 2017 at 05:59, Philipp Tomsich
<philipp.tomsich@theobroma-systems.com> wrote:
> It is often desirable to configure the spl-boot-order (i.e. the order
> that SPL probes devices to find the FIT image containing a full U-Boot)
> such that it contains 'the same device the SPL stage was booted from'
> early on.  To support this, we introduce the 'same-as-spl' specifier
> for the spl-boot-order property.
>
> This commit adds:
>  - documentation for the new board_spl_was_booted_from() function that
>    individual SoCs/boards should provide, if they can determine where
>    the SPL was booted from
>  - implements the new board_spl_was_booted_from() stub function
>  - adds support for handling the 'same-as-spl' specifier and calling
>    into the per-SoC/per-board support code.
>
> This also updates the documentation for the 'u-boot,spl-boot-order'
> property.
>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
>
>  arch/arm/mach-rockchip/spl-boot-order.c | 29 ++++++++++++++++++++++++++++-
>  doc/device-tree-bindings/chosen.txt     | 12 +++++++++++-
>  2 files changed, 39 insertions(+), 2 deletions(-)

Can that weak function be declared in a header file somewhere?

One day we should have SPL pass to U-Boot a structure containing this
information and other things it wants to pass on...

Reviewed-by: Simon Glass <sjg@chromium.org>

  reply	other threads:[~2017-09-13  4:25 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-11 11:59 [U-Boot] [PATCH 00/10] For the RK3399-Q7, we have a few additional features in the SPL boot Philipp Tomsich
2017-09-11 11:59 ` [U-Boot] [PATCH 01/10] rockchip: rk3399: make spl_board_init board-specific Philipp Tomsich
2017-09-13  4:25   ` Simon Glass
2017-09-11 11:59 ` [U-Boot] [PATCH 02/10] rockchip: bootrom: add definitions to retrieve BROM boot-source Philipp Tomsich
2017-09-13  4:25   ` Simon Glass
2017-09-11 11:59 ` [U-Boot] [PATCH 03/10] rockchip: spl: add documentation for spl_node_to_boot_device() Philipp Tomsich
2017-09-13  4:25   ` Simon Glass
2017-09-11 11:59 ` [U-Boot] [PATCH 04/10] rockchip: spl: support a 'same-as-spl'-specifier in the spl-boot-order Philipp Tomsich
2017-09-13  4:25   ` Simon Glass [this message]
2017-09-13  8:13     ` Dr. Philipp Tomsich
2017-09-11 11:59 ` [U-Boot] [PATCH 05/10] rockchip: spl: rk3399: implement chip-specific board_spl_was_booted_from() Philipp Tomsich
2017-09-13  4:25   ` Simon Glass
2017-09-13  8:10     ` Dr. Philipp Tomsich
2017-09-11 11:59 ` [U-Boot] [PATCH 06/10] rockchip: dts: rk3399-puma: add 'same-as-spl' to the front of the boot-order Philipp Tomsich
2017-09-13  4:26   ` Simon Glass
2017-09-11 11:59 ` [U-Boot] [PATCH 07/10] rockchip: puma-rk3399: update board_init() Philipp Tomsich
2017-09-13  4:26   ` Simon Glass
2017-09-11 11:59 ` [U-Boot] [PATCH 08/10] rockchip: rk3399-puma: add boot-on regulator to override BIOS_DISABLE Philipp Tomsich
2017-09-13  4:26   ` Simon Glass
2017-09-11 11:59 ` [U-Boot] [PATCH 09/10] power: spl: add SPL_DM_REGULATOR_FIXED in Kconfig Philipp Tomsich
2017-09-13  4:26   ` Simon Glass
2017-09-13  8:20     ` Dr. Philipp Tomsich
2017-09-17 17:52       ` Simon Glass
2017-09-11 11:59 ` [U-Boot] [PATCH 10/10] rockchip: defconfig: puma-rk3399: update for DM_REGULATOR support in SPL Philipp Tomsich
2017-09-13  4:26   ` Simon Glass

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=CAPnjgZ2jm4LVG+GK5FeQqudGR-hFkr5XjFhrvMqihuphDZ1tKQ@mail.gmail.com \
    --to=sjg@chromium.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.