mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
spl: Add support for passing handoff info to U-Boot proper
There is some basic informaton that SPL normally wants to pass through to U-Boot, such as the SDRAM size and bank information. Mkae use of the new bloblist structure for this. Add a new 'handoff' blob which is set up in SPL and passed to U-Boot proper. Also adda test for sandbox_spl that checks that this works correctly and a new 'sb' command to show the information passed from SPL. Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -25,6 +25,9 @@
|
||||
#include <post.h>
|
||||
#include <relocate.h>
|
||||
#include <spi.h>
|
||||
#ifdef CONFIG_SPL
|
||||
#include <spl.h>
|
||||
#endif
|
||||
#include <status_led.h>
|
||||
#include <sysreset.h>
|
||||
#include <timer.h>
|
||||
@@ -286,6 +289,17 @@ static int setup_mon_len(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int setup_spl_handoff(void)
|
||||
{
|
||||
#if CONFIG_IS_ENABLED(HANDOFF)
|
||||
gd->spl_handoff = bloblist_find(BLOBLISTT_SPL_HANDOFF,
|
||||
sizeof(struct spl_handoff));
|
||||
debug("Found SPL hand-off info %p\n", gd->spl_handoff);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
__weak int arch_cpu_init(void)
|
||||
{
|
||||
return 0;
|
||||
@@ -845,6 +859,7 @@ static const init_fnc_t init_sequence_f[] = {
|
||||
#ifdef CONFIG_BLOBLIST
|
||||
bloblist_init,
|
||||
#endif
|
||||
setup_spl_handoff,
|
||||
initf_console_record,
|
||||
#if defined(CONFIG_HAVE_FSP)
|
||||
arch_fsp_init,
|
||||
|
Reference in New Issue
Block a user