spl: Add support for passing handoff info to U-Boot proper
authorSimon Glass <sjg@chromium.org>
Fri, 16 Nov 2018 01:44:09 +0000 (18:44 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 26 Nov 2018 13:25:37 +0000 (08:25 -0500)
commitb0edea3c27af3bf7b959fa190a7fe9d7881153c5
treee48319d91713218a49706b7526f147f2d56c7aee
parent27028f186d17a25507eb7d5c9b852d8555432679
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>
14 files changed:
arch/powerpc/include/asm/spl.h
arch/sandbox/include/asm/handoff.h [new file with mode: 0644]
cmd/sb.c
common/board_f.c
common/init/Makefile
common/init/handoff.c [new file with mode: 0644]
common/spl/Kconfig
common/spl/spl.c
configs/sandbox_spl_defconfig
include/asm-generic/global_data.h
include/handoff.h [new file with mode: 0644]
include/spl.h
test/py/tests/test_handoff.py [new file with mode: 0644]
test/run