From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Tue, 12 Sep 2017 22:25:55 -0600 Subject: [U-Boot] [PATCH 04/10] rockchip: spl: support a 'same-as-spl'-specifier in the spl-boot-order In-Reply-To: <1505131150-39480-5-git-send-email-philipp.tomsich@theobroma-systems.com> References: <1505131150-39480-1-git-send-email-philipp.tomsich@theobroma-systems.com> <1505131150-39480-5-git-send-email-philipp.tomsich@theobroma-systems.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 11 September 2017 at 05:59, Philipp Tomsich 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 > --- > > 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