
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