amd/stoneyridge: Add generic IMC sleep and wakeup

Hudson code, the basis for soc//stoneyridge southbridge, has typically
contained direct calls to vendorcode/amd//ImcLib.c.  In an effort to
keep #include files clean in other stoneyridge files, put the new calls
into imc.c.

Change-Id: I830d5431635ac4acaf3c3c974cb452847dc147cd
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/22407
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
This commit is contained in:
Marshall Dawson 2017-11-09 11:07:52 -07:00 committed by Martin Roth
parent 5e2e74f981
commit 6350b8789f
2 changed files with 12 additions and 0 deletions

View File

@ -78,3 +78,13 @@ void enable_imc_thermal_zone(void)
WriteECmsg(MSG_SYS_TO_IMC, AccessWidth8, &FunNum, &StdHeader);
WaitForEcLDN9MailboxCmdAck(&StdHeader);
}
void imc_sleep(void)
{
ImcSleep(NULL);
}
void imc_wakeup(void)
{
ImcWakeup(NULL);
}

View File

@ -18,5 +18,7 @@
void imc_reg_init(void);
void enable_imc_thermal_zone(void);
void imc_sleep(void);
void imc_wakeup(void);
#endif