switch-coreboot/src
Kyösti Mälkki c0ad649f34 UPSTREAM: CBMEM: Add config CBMEM_TOP_BACKUP
AGESA and binaryPI boards have no easy way to determine correct
cbmem_top() location early enough when GFXUMA is enabled, so they
will use these functions with EARLY_CBMEM_INIT as well.

At the end of AmdInitPost() the decisions of UMA base and size
have not been written to hardware yet. The decisions are stored
inside AGESA heap object we cannot locate from coreboot proper
until after AmdInitEnv().

Modify code such that weak backup functions are only defined
for LATE_CBMEM_INIT; they are somewhat troublesome to handle.

BUG=none
BRANCH=none
TEST=none

Change-Id: I507ef40b77f20c76b3178654c397a4130092240d
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Original-Commit-Id: a7dd645594
Original-Change-Id: Ifef4f75b36bc6dee6cd56d1d9164281d9b2a4f2a
Original-Signed-off-by: Kysti Mlkki <kyosti.malkki@gmail.com>
Original-Reviewed-on: https://review.coreboot.org/19306
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-on: https://chromium-review.googlesource.com/508776
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
2017-05-18 18:07:12 -07:00
..
acpi UPSTREAM: src/acpi: Capitalize ACPI and SATA 2016-08-04 23:37:57 -07:00
arch UPSTREAM: CBMEM: Add config CBMEM_TOP_BACKUP 2017-05-18 18:07:12 -07:00
commonlib UPSTREAM: commonlib: Move drivers/storage into commonlib/storage 2017-05-15 08:17:50 -07:00
console UPSTREAM: console: rework log level to not be reliant on ROMSTAGE_CONST 2017-04-26 13:36:55 -07:00
cpu UPSTREAM: cpu/intel/turbo: Add option to disable turbo 2017-05-18 02:26:03 -07:00
device UPSTREAM: lib/edid.c: Allow use of when not NGI 2017-05-07 07:41:12 -07:00
drivers UPSTREAM: drivers/pc80/rtc: Rename mc146818rtc_early.c -> _romcc.c 2017-05-15 08:17:53 -07:00
ec UPSTREAM: mb/lenovo/x201: Add support for ThinkLight 2017-05-15 08:17:44 -07:00
include UPSTREAM: CBMEM: Add config CBMEM_TOP_BACKUP 2017-05-18 18:07:12 -07:00
lib UPSTREAM: lib/edid: Save the display ASCII string 2017-05-07 07:41:13 -07:00
mainboard UPSTREAM: google/scarlet: Enable innolux,p079zca MIPI panel 2017-05-18 18:07:11 -07:00
northbridge UPSTREAM: nb/intel/x4x: Fix uninitialized variable issue 2017-05-15 08:17:52 -07:00
soc UPSTREAM: intel/common/block/i2c: Add common block for I2C and use the same in SoCs 2017-05-18 18:07:12 -07:00
southbridge UPSTREAM: amd/pi: Add AMD fam16h TPM ACPI path support 2017-05-15 08:17:47 -07:00
superio UPSTREAM: superio/nuvoton: Make SuperIO config functions externally available 2017-05-15 08:17:43 -07:00
vboot UPSTREAM: vboot: Separate board name and version number in FWID with a dot 2017-05-02 20:24:01 -07:00
vendorcode UPSTREAM: vendorcode/intel/fsp/fsp2_0/glk: Add FSP header files for GLK 2017-05-15 08:17:48 -07:00
Kconfig UPSTREAM: commonlib: Move drivers/storage into commonlib/storage 2017-05-15 08:17:50 -07:00