coreboot/src
Julius Werner b5995b5872 rk3288: Add CBMEM console support and fix RETURN_FROM_VERSTAGE
Since we can now reduce our vboot2 work buffer by 4K, we can use all
that hard-earned space for the CBMEM console instead (and 4K are
unfortunately barely enough for all the stuff we dump with vboot2).

Also add console_init() and exception_init() to the verstage for
CONFIG_RETURN_FROM_VERSTAGE, which was overlooked before (our model
requires those functions to be called again at the beginning of every
stage... even though some consoles like UARTs might not need it, others
like the CBMEM console do). In the !RETURN_FROM_VERSTAGE case, this is
expected to be done by the platform-specific verstage entry wrapper, and
already in place for the only implementation we have for now (tegra124).

(Technically, there is still a bug in the case where EARLY_CONSOLE is
set but BOOTBLOCK_CONSOLE isn't, since both verstage and romstage would
run init_console_ptr() as if they were there first, so the romstage
overwrites the verstage's output. I don't think it's worth fixing that
now, since EARLY_CONSOLE && !BOOTBLOCK_CONSOLE is a pretty pointless
use-case and I think we should probably just get rid of the
CONFIG_BOOTBLOCK_CONSOLE option eventually.)

BRANCH=None
BUG=None
TEST=Booted Pinky.

Change-Id: I87914df3c72f0262eb89f337454009377a985497
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 85486928ab
Original-Change-Id: Id666cb7a194d32cfe688861ab17c5e908bc7760d
Original-Signed-off-by: Julius Werner <jwerner@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/232614
Reviewed-on: http://review.coreboot.org/9607
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2015-04-14 09:03:36 +02:00
..
arch rk3288: Add CBMEM console support and fix RETURN_FROM_VERSTAGE 2015-04-14 09:03:36 +02:00
console New mechanism to define SRAM/memory map with automatic bounds checking 2015-04-06 22:05:01 +02:00
cpu CBFS: Automate ROM image layout and remove hardcoded offsets 2015-04-14 09:01:27 +02:00
device cbfs: correct types used for accessing files 2015-04-01 22:51:10 +02:00
drivers tpm: Only expose base address Kconfig option when enabled 2015-04-13 17:33:24 +02:00
ec chromeec: Fix printf formatting warning 2015-04-14 09:01:03 +02:00
include timer: Reestablish init_timer(), consolidate timer initialization calls 2015-04-14 09:03:28 +02:00
lib timer: Reestablish init_timer(), consolidate timer initialization calls 2015-04-14 09:03:28 +02:00
mainboard timer: Reestablish init_timer(), consolidate timer initialization calls 2015-04-14 09:03:28 +02:00
northbridge northbridge/amd/agesa/familyXY: Make NULL device op explicit 2015-04-09 19:34:22 +02:00
soc rk3288: Add CBMEM console support and fix RETURN_FROM_VERSTAGE 2015-04-14 09:03:36 +02:00
southbridge southbridge/intel/fsp_rangeley/ : Spellcheck + Formatting 2015-04-10 17:57:11 +02:00
superio kconfig: drop intermittend forwarder files 2015-04-07 17:40:28 +02:00
vendorcode rk3288: Add CBMEM console support and fix RETURN_FROM_VERSTAGE 2015-04-14 09:03:36 +02:00
Kconfig CBFS: Correct ROM_SIZE for ARM boards, use CBFS_SIZE for cbfstool 2015-04-14 09:01:23 +02:00