[coreboot-gerrit] Change in coreboot[master]: soc/amd/common/block/pi/agesawrapper.c: Add new function sb_program_g...

Richard Spiegel (Code Review) gerrit at coreboot.org
Tue Dec 26 16:53:34 CET 2017


Richard Spiegel has uploaded this change for review. ( https://review.coreboot.org/22987


Change subject: soc/amd/common/block/pi/agesawrapper.c: Add new function sb_program_gpio()
......................................................................

soc/amd/common/block/pi/agesawrapper.c: Add new function sb_program_gpio()

Add new function sb_program_gpio after AGESA wrapper for RESET and INIT_LATE.

BUG=b:64140392
TEST=Build kahlee.

Change-Id: I38da26cd1e20617958a6b17d55b7d7c08b8a0230
Signed-off-by: Richard Spiegel <richard.spiegel at silverbackltd.com>
---
M src/soc/amd/common/block/pi/agesawrapper.c
1 file changed, 3 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/87/22987/1

diff --git a/src/soc/amd/common/block/pi/agesawrapper.c b/src/soc/amd/common/block/pi/agesawrapper.c
index 7fb5485..53f1c2d 100644
--- a/src/soc/amd/common/block/pi/agesawrapper.c
+++ b/src/soc/amd/common/block/pi/agesawrapper.c
@@ -22,6 +22,7 @@
 #include <amdblocks/BiosCallOuts.h>
 #include <string.h>
 #include <timestamp.h>
+#include <soc/southbridge.h>
 
 void __attribute__((weak)) SetMemParams(AMD_POST_PARAMS *PostParams) {}
 void __attribute__((weak)) OemPostParams(AMD_POST_PARAMS *PostParams) {}
@@ -90,6 +91,7 @@
 	timestamp_add_now(TS_AGESA_INIT_RESET_START);
 	status = AmdInitReset(&AmdResetParams);
 	timestamp_add_now(TS_AGESA_INIT_RESET_DONE);
+	sb_program_gpio(STAGE_RESET);
 
 	if (status != AGESA_SUCCESS)
 		agesawrapper_readeventlog(AmdParamStruct.StdHeader.HeapStatus);
@@ -336,6 +338,7 @@
 	timestamp_add_now(TS_AGESA_INIT_LATE_START);
 	Status = AmdInitLate(AmdLateParams);
 	timestamp_add_now(TS_AGESA_INIT_LATE_DONE);
+	sb_program_gpio(STAGE_INIT_LATE);
 
 	if (Status != AGESA_SUCCESS) {
 		agesawrapper_readeventlog(AmdLateParams->StdHeader.HeapStatus);

-- 
To view, visit https://review.coreboot.org/22987
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I38da26cd1e20617958a6b17d55b7d7c08b8a0230
Gerrit-Change-Number: 22987
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Spiegel <richard.spiegel at silverbackltd.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20171226/5a74e466/attachment.html>


More information about the coreboot-gerrit mailing list