soc/amd/stoneyridge: Load SMU fimware using PSP
commitf5e057c885bf28d12b70625880632f5382c5bb97
authorMarshall Dawson <marshalldawson3rd@gmail.com>
Thu, 12 Oct 2017 22:10:14 +0000 (12 16:10 -0600)
committerMartin Roth <martinroth@google.com>
Tue, 14 Nov 2017 17:27:23 +0000 (14 17:27 +0000)
tree36dfd4933c9829098a3cb8de676b3280288465c5
parent6350b8789f86c1781e2953633d6191b37fb96ac3
soc/amd/stoneyridge: Load SMU fimware using PSP

Add the ability to locate the SMRAM-based SMU firmware early and
call the PSP library to load it prior to DRAM initialization.  This
is currently placed in bootblock to ensure the blob is loaded
before any reset occurs.

Add similar functionality in ramstage for SMU FW2 to the hook already
in place for running AmdInitEnv.  Rename the hook to make more sense.

This patch was tested using a pre-released PSP bootloader on a
google/kahlee system.

Leave the option unused until the bootloader is ready.

BUG=b:66339938

Change-Id: Iedf768e54a7c3b3e7cf07e266a6906923c0fad42
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/22058
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
src/soc/amd/common/block/psp/Makefile.inc
src/soc/amd/stoneyridge/bootblock/bootblock.c
src/soc/amd/stoneyridge/chip.c