u-boot-brain/arch/x86/cpu
Bin Meng aefaff8ed8 x86: fsp: Move FspInitEntry call to board_init_f()
The call to FspInitEntry is done in arch/x86/lib/fsp/fsp_car.S so far.
It worked pretty well but looks not that good. Apart from doing too
much work than just enabling CAR, it cannot read the configuration
data from device tree at that time. Now we want to move it a little
bit later as part of init_sequence_f[] being called by board_init_f().
This way it looks and works better in the U-Boot initialization path.

Due to FSP's design, after calling FspInitEntry it will not return to
its caller, instead it jumps to a continuation function which is given
by bootloader with a new stack in system memory. The original stack in
the CAR is gone, but its content is perserved by FSP and described by
a bootloader temporary memory HOB. Technically we can recover anything
we had before in the previous stack, but that is way too complicated.
To make life much easier, in the FSP continuation routine we just
simply call fsp_init_done() and jump back to car_init_ret() to redo
the whole board_init_f() initialization, but this time with a non-zero
HOB list pointer saved in U-Boot's global data so that we can bypass
the FspInitEntry for the second time.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
Tested-by: Andrew Bradford <andrew.bradford@kodakalaris.com>
Tested-by: Simon Glass <sjg@chromium.org>
2015-07-14 18:03:15 -06:00
..
baytrail x86: baytrail: pci region 3 is not always mapped to end of ram 2015-06-04 03:03:18 -06:00
coreboot x86: qemu: Implement PIRQ routing 2015-06-04 03:03:18 -06:00
ivybridge x86: Add multi-processor init 2015-04-30 16:13:38 -06:00
qemu x86: qemu: Implement PIRQ routing 2015-06-04 03:03:18 -06:00
quark x86: quark: Implement PIRQ routing 2015-06-04 02:39:39 -06:00
queensbay x86: Refactor PIRQ routing support 2015-06-04 02:39:39 -06:00
call64.S x86: Add support for starting 64-bit kernel 2014-10-28 20:43:47 -06:00
config.mk x86: Add Kconfig options to be used by arch/x86/cpu/config.mk 2015-07-14 18:03:15 -06:00
cpu.c x86: fsp: Load GDT before calling FspInitEntry 2015-07-14 18:03:15 -06:00
interrupts.c x86: Provide access to the IDT 2015-04-29 21:02:34 -06:00
irq.c x86: Do sanity test on pirq table before writing 2015-06-04 02:39:39 -06:00
lapic.c x86: Add LAPIC setup code 2014-11-25 06:34:11 -07:00
Makefile x86: Refactor PIRQ routing support 2015-06-04 02:39:39 -06:00
mp_init.c x86: Add multi-processor init 2015-04-30 16:13:38 -06:00
mtrr.c x86: Test mtrr support flag before accessing mtrr msr 2015-01-23 17:24:55 -07:00
pci.c x86: Add a function to assign IRQ numbers to PCI device 2015-04-29 18:51:49 -06:00
resetvec.S Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
sipi_vector.S x86: Add multi-processor init 2015-04-30 16:13:38 -06:00
start16.S x86: fsp: Load GDT before calling FspInitEntry 2015-07-14 18:03:15 -06:00
start.S x86: fsp: Move FspInitEntry call to board_init_f() 2015-07-14 18:03:15 -06:00
turbo.c x86: Add Intel speedstep and turbo mode code 2014-11-25 06:34:02 -07:00
u-boot.lds x86: Factor out common values in the link script 2014-11-25 06:33:59 -07:00