coreboot/src/soc
Marshall Dawson 00a220877c soc/amd/picasso: Add FSP support for including AGESA
AMD has rewritten AGESA (now at v9) for direct inclusion into UEFI
build environments.  Therefore, unlike the previous Arch2008
(a.k.a. v5), it can't be built without additional source, e.g. by
combining with EDK II, and it has no entry points for easily
building it into a legacy BIOS.

AGESA in coreboot now relies on the FSP 2.0 framework published
by Intel and uses the existing fsp2_0 driver.

* Add fsp_memory_init() to romstage.c.  Although Picasso comes out
  of reset with DRAM alive, this call is added to maximize
  compatibility and facilitate internal development.  Future work
  may look at removing it.  AGESA reports the memory map to coreboot
  via HOBs returned from fsp_memory_init().
* AGESA currently sets up MTRRs, as in most older generations.
  Take ownership back immediately before running ramstage.
* Remove cbmem initialization, as the FSP driver handles this.
* Add chipset_handle_reset() for compatibility.
* Top of memory is determined by the FSP driver checking the HOBs
  passed from AGESA.  Note that relying on the TOM register happens
  to be misleading when UMA is below 4GB.

BUG=b:147042464
TEST=Boot trembyle to payload

Change-Id: Iecb3a3f2599a8ccbc168b1d26a0271f51b71dcf0
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34423
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2020-05-01 23:27:26 +00:00
..
amd soc/amd/picasso: Add FSP support for including AGESA 2020-05-01 23:27:26 +00:00
cavium Replace DEVICE_NOOP with noop_(set|read)_resources 2020-04-10 11:50:22 +00:00
intel soc/intel/xeon_sp/cpx: Implement hide/unhide P2SB traditional dance 2020-05-01 23:12:12 +00:00
mediatek Revert "soc/mediatek/mt8183: Force retraining memory if requested" 2020-04-30 19:30:19 +00:00
nvidia Replace DEVICE_NOOP with noop_(set|read)_resources 2020-04-10 11:50:22 +00:00
qualcomm sc7180: Increase SPI flash frequency to 37.5MHz 2020-04-30 01:18:11 +00:00
rockchip Replace DEVICE_NOOP with noop_(set|read)_resources 2020-04-10 11:50:22 +00:00
samsung Replace DEVICE_NOOP with noop_(set|read)_resources 2020-04-10 11:50:22 +00:00
sifive soc/sifive: Use SPDX for GPL-2.0-only files 2020-04-05 17:51:11 +00:00
ucb soc/ucb: Use SPDX for GPL-2.0-only files 2020-04-05 17:47:49 +00:00