summaryrefslogtreecommitdiff
path: root/src/soc/amd/stoneyridge
diff options
context:
space:
mode:
authorMarshall Dawson <marshalldawson3rd@gmail.com>2017-11-09 11:07:52 -0700
committerMartin Roth <martinroth@google.com>2017-11-14 17:18:05 +0000
commit6350b8789f86c1781e2953633d6191b37fb96ac3 (patch)
treea9bbc1beff55e5786132b54ffb92210066ae7a43 /src/soc/amd/stoneyridge
parent5e2e74f981ec444d326e8fa4c79396bc428ac528 (diff)
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>
Diffstat (limited to 'src/soc/amd/stoneyridge')
-rw-r--r--src/soc/amd/stoneyridge/imc.c10
-rw-r--r--src/soc/amd/stoneyridge/include/soc/imc.h2
2 files changed, 12 insertions, 0 deletions
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