[coreboot-gerrit] Change in coreboot[master]: soc/amd/common: Refactor S3 helpers