spl: Add methods to find the position/size of next phase
authorSimon Glass <sjg@chromium.org>
Mon, 9 Dec 2019 00:40:12 +0000 (17:40 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 15 Dec 2019 03:44:28 +0000 (11:44 +0800)
commite82c624d7cd0640da789ecb0d6906db491003e2d
treec7acbb5498e12ffee8f4a7bfb50c104cd92c06fc
parentf5b18ae3097ceaced8bef2e82f659af62433ebe1
spl: Add methods to find the position/size of next phase

Binman supports writing the position and size of U-Boot proper and SPL
into the previous phase of U-Boot. This allows the next phase to be easily
located and loaded.

Add functions to return these useful values, along with symbols to allow
TPL to load SPL.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
common/spl/spl.c
include/spl.h