romstage_handoff: add helper to determine resume status
Instead of having callers query the romstage handoff resume status by inspecting the object themselves add romstage_handoff_is_resume() so that the same information can be queried easily. Change-Id: I40f3769b7646bf296ee4bc323a9ab1d5e5691e21 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/17647 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
@@ -260,7 +260,6 @@ static void set_power_limits(void)
|
||||
static void soc_init(void *data)
|
||||
{
|
||||
struct global_nvs_t *gnvs;
|
||||
struct romstage_handoff *handoff;
|
||||
|
||||
/* Save VBT info and mapping */
|
||||
vbt = vbt_get(&vbt_rdev);
|
||||
@@ -269,8 +268,7 @@ static void soc_init(void *data)
|
||||
* default policy that doesn't honor boards' requirements. */
|
||||
itss_snapshot_irq_polarities(GPIO_IRQ_START, GPIO_IRQ_END);
|
||||
|
||||
handoff = romstage_handoff_find_or_add();
|
||||
fsp_silicon_init(handoff->s3_resume);
|
||||
fsp_silicon_init(romstage_handoff_is_resume());
|
||||
|
||||
/* Restore GPIO IRQ polarities back to previous settings. */
|
||||
itss_restore_irq_polarities(GPIO_IRQ_START, GPIO_IRQ_END);
|
||||
|
Reference in New Issue
Block a user