x86: Add support for starting from SPL/TPL
authorSimon Glass <sjg@chromium.org>
Fri, 26 Apr 2019 03:58:52 +0000 (21:58 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 8 May 2019 05:02:13 +0000 (13:02 +0800)
commit051c31b7a49933f25bcf2ffe8c7764642fcff0d4
tree06a8696d480ed074a7a46718c7a65b73f1206d82
parent9231206b73a3eee6e68e4dd708abdb4e625eac71
x86: Add support for starting from SPL/TPL

When a previous phase of U-Boot has run we need to adjust the init of
subsequent states to avoid messing up the CPU state.

Add a new version of the start logic for SPL, when it boots from TPL
(start_from tpl.c) and a new version for U-Boot when it boots from SPL.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/Makefile
arch/x86/cpu/Makefile
arch/x86/cpu/start_from_spl.S [new file with mode: 0644]
arch/x86/cpu/start_from_tpl.S [new file with mode: 0644]