soc/amd/common: Introduce agesa_execute_state()
commit6e512c4d7a4faa68bf64b37c68bae8141d9e4518
authorKyösti Mälkki <kyosti.malkki@gmail.com>
Thu, 14 Jun 2018 03:57:05 +0000 (14 06:57 +0300)
committerPatrick Georgi <pgeorgi@google.com>
Tue, 23 Apr 2019 10:10:34 +0000 (23 10:10 +0000)
tree2e26cc89cf7f26d46a0cc370c62c5801786d6a1f
parentba851170fba9157b45bfdc74fe60873c187cac96
soc/amd/common: Introduce agesa_execute_state()

Each entrypoint to AGESA goes through the same sequence
and have same the function signature.

To avoid introducing bunch of preprocessor magic, rename
all the agesawrapper_amdXXX() functions that are actual
entrypoints to AGESA API, make them static, and provide
a single exposed entry function agesa_execute_state().

Change-Id: I96ae1874132da3843aa42c2f4e8a59ec771d3893
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/31483
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/soc/amd/common/block/include/amdblocks/agesawrapper.h
src/soc/amd/common/block/include/amdblocks/agesawrapper_call.h
src/soc/amd/common/block/pi/agesawrapper.c
src/soc/amd/common/block/pi/amd_late_init.c
src/soc/amd/common/block/pi/amd_resume_final.c
src/soc/amd/common/block/s3/Makefile.inc
src/soc/amd/stoneyridge/chip.c
src/soc/amd/stoneyridge/northbridge.c
src/soc/amd/stoneyridge/romstage.c