coreboot/src/include
Julius Werner 86fc11d0c9 arm/arm64: Generalize bootblock C entry point
When we first added ARM support to coreboot, it was clear that the
bootblock would need to do vastly different tasks than on x86, so we
moved its main logic under arch/. Now that we have several more
architectures, it turns out (as with so many things lately) that x86 is
really the odd one out, and all the others are trying to do pretty much
the same thing. This has already caused maintenance issues as the ARM32
bootblock developed and less-mature architectures were left behind with
old cruft.

This patch tries to address that problem by centralizing that logic
under lib/ for use by all architectures/SoCs that don't explicitly
opt-out (with the slightly adapted existing BOOTBLOCK_CUSTOM option).
This works great out of the box for ARM32 and ARM64. It could probably
be easily applied to MIPS and RISCV as well, but I don't have any of
those boards to test so I'll mark them as BOOTBLOCK_CUSTOM for now and
leave that for later cleanup.

BRANCH=None
BUG=None
TEST=Built Jerry and Falco, booted Oak.

Change-Id: Ibbf727ad93651e388aef20e76f03f5567f9860cb
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: http://review.coreboot.org/12076
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins)
2015-11-11 05:08:07 +01:00
..
boot coreboot: make lb_framebuffer a weak function 2015-10-27 15:15:09 +01:00
console arm64: remove secmon 2015-11-07 03:28:06 +01:00
cpu cpu/amd: Add initial AMD Family 15h support 2015-11-02 23:45:19 +01:00
device southbridge/amd/sb700: Add AHCI support 2015-11-11 01:56:35 +01:00
pc80 drivers/pc80: Rework normal / fallback selector code 2015-11-03 21:55:20 +01:00
smp atomic.h: Fix doxygen errors 2015-01-04 20:03:28 +01:00
superio tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
tpm_lite vboot2: read secdata and nvdata 2015-03-23 19:51:47 +01:00
antirollback.h chromeos: vboot2: Add TPM PCR extension support 2015-04-20 17:06:28 +02:00
assert.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
assets.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
b64_decode.h lib: add base64 decoder 2015-04-22 08:50:54 +02:00
base3.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
bcd.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
boardid.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
boot_device.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
bootblock_common.h arm/arm64: Generalize bootblock C entry point 2015-11-11 05:08:07 +01:00
bootmem.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
bootmode.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
bootstate.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
cbfs.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
cbmem.h cbmem: add coreboot table records for each cbmem entry 2015-11-03 00:19:46 +01:00
delay.h timer: Reestablish init_timer(), consolidate timer initialization calls 2015-04-14 09:03:28 +02:00
edid.h edid: add hdmi_monitor_detected in data struct edid 2015-11-10 14:09:51 +01:00
elog.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
endian.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
fallback.h cbfs: new API and better program loading 2015-06-02 14:09:31 +02:00
fmap.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
gic.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
gpio.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
halt.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
imd.h cbmem: add coreboot table records for each cbmem entry 2015-11-03 00:19:46 +01:00
inttypes.h x86: provide more C standard environment 2013-03-20 04:20:25 +01:00
ip_checksum.h Drop prototype guarding for romcc 2013-05-10 00:06:46 +02:00
kconfig.h Add config_enabled() from Linux 2012-05-08 00:36:09 +02:00
lib.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
memlayout.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
memory_info.h smbios: add funtion for smbios type17 2015-03-27 09:55:21 +01:00
memrange.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
option.h option: Add arch-agnostic get_option() 2014-03-04 15:23:10 +01:00
program_loading.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
reg_script.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
reset.h vboot2: implement select_firmware for pre-romstage verification 2015-01-27 01:43:01 +01:00
rmodule.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
romstage_handoff.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
rtc.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
rules.h arm64: remove secmon 2015-11-07 03:28:06 +01:00
sdram_mode.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
smbios.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
spd.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
spd_cache.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
spd_ddr2.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
spi-generic.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
spi_flash.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
stage_cache.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
stddef.h coreboot: introduce commonlib 2015-09-22 21:21:34 +00:00
stdlib.h coreboot: introduce commonlib 2015-09-22 21:21:34 +00:00
string.h Replace includes of build.h with version.h 2014-11-20 07:28:37 +01:00
swab.h include: Fix spelling 2013-07-11 22:36:19 +02:00
symbols.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
thread.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
timer.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
timestamp.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
tpm.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
trace.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
types.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
vbe.h intel/gma: Clarify code and use dedicated init for Google Peppy 2014-08-25 22:36:03 +02:00
version.h build.h: remove variable for the builduser, -hostname and -domain 2015-03-09 17:53:16 +01:00
watchdog.h watchdog.h: Fix compile time error on disabling watchdog handling 2013-03-12 12:06:43 +01:00