[coreboot-gerrit] Change in coreboot[master]: amd/stoneyridge: Add function to find Pm1EvtBlk base

Marshall Dawson (Code Review) gerrit at coreboot.org
Fri Nov 10 01:31:26 CET 2017


Marshall Dawson has uploaded this change for review. ( https://review.coreboot.org/22413


Change subject: amd/stoneyridge: Add function to find Pm1EvtBlk base
......................................................................

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 <marshalldawson3rd at gmail.com>
---
M src/soc/amd/stoneyridge/include/soc/southbridge.h
M src/soc/amd/stoneyridge/sb_util.c
2 files changed, 6 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/13/22413/1

diff --git a/src/soc/amd/stoneyridge/include/soc/southbridge.h b/src/soc/amd/stoneyridge/include/soc/southbridge.h
index c6111a1..71da150 100644
--- a/src/soc/amd/stoneyridge/include/soc/southbridge.h
+++ b/src/soc/amd/stoneyridge/include/soc/southbridge.h
@@ -289,6 +289,7 @@
 void smi_write16(u8 reg, u16 value);
 void smi_write32(u8 reg, u32 value);
 uint16_t pm_acpi_pm_cnt_blk(void);
+uint16_t pm_acpi_pm_evt_blk(void);
 int s3_load_nvram_early(int size, u32 *old_dword, int nvram_pos);
 int s3_save_nvram_early(u32 dword, int size, int  nvram_pos);
 void bootblock_fch_early_init(void);
diff --git a/src/soc/amd/stoneyridge/sb_util.c b/src/soc/amd/stoneyridge/sb_util.c
index ebf791d..f7c6b45 100644
--- a/src/soc/amd/stoneyridge/sb_util.c
+++ b/src/soc/amd/stoneyridge/sb_util.c
@@ -79,3 +79,8 @@
 {
 	return pm_read16(PM1_CNT_BLK);
 }
+
+uint16_t pm_acpi_pm_evt_blk(void)
+{
+	return pm_read16(PM_EVT_BLK);
+}

-- 
To view, visit https://review.coreboot.org/22413
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I91ebfb454c2d2ae561e658d903f33bfb34e1ad6f
Gerrit-Change-Number: 22413
Gerrit-PatchSet: 1
Gerrit-Owner: Marshall Dawson <marshalldawson3rd at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20171110/32d3ee35/attachment-0001.html>


More information about the coreboot-gerrit mailing list