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:
parent
5e2e74f981
commit
6350b8789f
|
@ -78,3 +78,13 @@ void enable_imc_thermal_zone(void)
|
||||||
WriteECmsg(MSG_SYS_TO_IMC, AccessWidth8, &FunNum, &StdHeader);
|
WriteECmsg(MSG_SYS_TO_IMC, AccessWidth8, &FunNum, &StdHeader);
|
||||||
WaitForEcLDN9MailboxCmdAck(&StdHeader);
|
WaitForEcLDN9MailboxCmdAck(&StdHeader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void imc_sleep(void)
|
||||||
|
{
|
||||||
|
ImcSleep(NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
void imc_wakeup(void)
|
||||||
|
{
|
||||||
|
ImcWakeup(NULL);
|
||||||
|
}
|
||||||
|
|
|
@ -18,5 +18,7 @@
|
||||||
|
|
||||||
void imc_reg_init(void);
|
void imc_reg_init(void);
|
||||||
void enable_imc_thermal_zone(void);
|
void enable_imc_thermal_zone(void);
|
||||||
|
void imc_sleep(void);
|
||||||
|
void imc_wakeup(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue