From 0756880b804a3798561937220e471321c05d6c81 Mon Sep 17 00:00:00 2001 From: Marshall Dawson Date: Wed, 8 Nov 2017 15:43:06 -0700 Subject: amd/stoneyridge: Add function to find Pm1EvtBlk base The AcpiPm1EvtBlk base I/O address is configured in PMx60. Add a helper function to read this. The register is not lockable so it shouldn't be assumed to be at its original address. Change-Id: I91ebfb454c2d2ae561e658d903f33bfb34e1ad6f Signed-off-by: Marshall Dawson Reviewed-on: https://review.coreboot.org/22413 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones Reviewed-by: Aaron Durbin --- src/soc/amd/stoneyridge/sb_util.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/soc/amd/stoneyridge/sb_util.c') diff --git a/src/soc/amd/stoneyridge/sb_util.c b/src/soc/amd/stoneyridge/sb_util.c index ebf791d6ff..f7c6b45ac3 100644 --- a/src/soc/amd/stoneyridge/sb_util.c +++ b/src/soc/amd/stoneyridge/sb_util.c @@ -79,3 +79,8 @@ uint16_t pm_acpi_pm_cnt_blk(void) { return pm_read16(PM1_CNT_BLK); } + +uint16_t pm_acpi_pm_evt_blk(void) +{ + return pm_read16(PM_EVT_BLK); +} -- cgit v1.2.3