coreboot-kgpe-d16/src/mainboard/google/oak
Julius Werner 5d6593a43c arm64: Factor out common parts of romstage execution flow
The romstage main() entry point on arm64 boards is usually in mainboard
code, but there are a handful of lines that are always needed in there
and not really mainboard specific (or chipset specific). We keep arguing
every once in a while that this isn't ideal, so rather than arguing any
longer let's just fix it. This patch moves the main() function into arch
code with callbacks that the platform can hook into. (This approach can
probably be expanded onto other architectures, so when that happens this
file should move into src/lib.)

Tested on Cheza and Kevin. I think the approach is straight-forward
enough that we can take this without testing every board. (Note that in
a few cases, this delays some platform-specific calls until after
console_init() and exception_init()... since these functions don't
really take that long, especially if there is no serial console
configured, I don't expect this to cause any issues.)

Change-Id: I7503acafebabed00dfeedb00b1354a26c536f0fe
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/28199
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2018-08-17 21:29:46 +00:00
..
sdram_inf Revert "google/oak: increase the driving strength for 4GB DRAMs" 2017-01-03 22:13:05 +01:00
board_info.txt google/intel mainboards: Add missing board_info.txt files 2016-03-25 20:52:04 +01:00
boardid.c boardid: Minor clean up and standardization 2017-12-07 01:18:25 +00:00
bootblock.c mediatek: Share GPIO code among similar SOCs 2018-07-20 13:50:54 +00:00
chromeos.c mediatek: Share GPIO code among similar SOCs 2018-07-20 13:50:54 +00:00
chromeos.fmd chromeos.fmd: Mark RW_LEGACY as CBFS 2016-04-05 13:37:31 +02:00
devicetree.cb tree: drop last paragraph of GPL copyright header from new files 2016-01-13 20:35:40 +01:00
gpio.h mediatek: Share GPIO code among similar SOCs 2018-07-20 13:50:54 +00:00
Kconfig security/tpm: Unify the coreboot TPM software stack 2018-06-04 20:33:07 +00:00
Kconfig.name mainboard/google: Comment variant names in Kconfig 2018-05-04 01:03:49 +00:00
mainboard.c mediatek: Share GPIO code among similar SOCs 2018-07-20 13:50:54 +00:00
Makefile.inc google/oak: Support cr50 over I2C on rowan 2017-04-24 22:33:06 +02:00
memlayout.ld mainboard/google: Update license headers 2016-04-13 17:34:04 +02:00
romstage.c arm64: Factor out common parts of romstage execution flow 2018-08-17 21:29:46 +00:00
sdram_configs.c google/oak: Add DRAM configuration for Samsung K4E8E324EB 2016-11-29 16:08:01 +01:00
tpm_tis.c security/tpm: Change TPM naming for different layers. 2018-01-18 01:45:35 +00:00