From 6350b8789f86c1781e2953633d6191b37fb96ac3 Mon Sep 17 00:00:00 2001 From: Marshall Dawson Date: Thu, 9 Nov 2017 11:07:52 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/22407 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones --- src/soc/amd/stoneyridge/imc.c | 10 ++++++++++ src/soc/amd/stoneyridge/include/soc/imc.h | 2 ++ 2 files changed, 12 insertions(+) (limited to 'src/soc') diff --git a/src/soc/amd/stoneyridge/imc.c b/src/soc/amd/stoneyridge/imc.c index 6a5b5d8eba..a42a9e0291 100644 --- a/src/soc/amd/stoneyridge/imc.c +++ b/src/soc/amd/stoneyridge/imc.c @@ -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); +} diff --git a/src/soc/amd/stoneyridge/include/soc/imc.h b/src/soc/amd/stoneyridge/include/soc/imc.h index d61340941c..079df79dc4 100644 --- a/src/soc/amd/stoneyridge/include/soc/imc.h +++ b/src/soc/amd/stoneyridge/include/soc/imc.h @@ -18,5 +18,7 @@ void imc_reg_init(void); void enable_imc_thermal_zone(void); +void imc_sleep(void); +void imc_wakeup(void); #endif -- cgit v1.2.3