summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/apollolake/pmutil.c
diff options
context:
space:
mode:
authorMichael Niewöhner <foss@mniewoehner.de>2019-11-02 12:14:06 +0100
committerPatrick Georgi <pgeorgi@google.com>2019-11-11 10:26:03 +0000
commitb4d960b65aa126d4534189672322ec62dcd87bde (patch)
treee74f0d24e098b2f7ba1dbb15d3098aa762585425 /src/soc/intel/apollolake/pmutil.c
parent28552095d8a4eee588923a11c3f3921a2492b140 (diff)
downloadcoreboot-b4d960b65aa126d4534189672322ec62dcd87bde.tar.gz
coreboot-b4d960b65aa126d4534189672322ec62dcd87bde.tar.bz2
coreboot-b4d960b65aa126d4534189672322ec62dcd87bde.zip
soc/intel/apollolake: add soc implementation for ETR address API
Add soc implementation for the new ETR address API. Change-Id: I1832f5f14055fc3dbb502289035130ca7a5d6d33 Signed-off-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36566 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/intel/apollolake/pmutil.c')
-rw-r--r--src/soc/intel/apollolake/pmutil.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/soc/intel/apollolake/pmutil.c b/src/soc/intel/apollolake/pmutil.c
index 23e9732e9118..559adad405a3 100644
--- a/src/soc/intel/apollolake/pmutil.c
+++ b/src/soc/intel/apollolake/pmutil.c
@@ -49,6 +49,11 @@ uintptr_t soc_read_pmc_base(void)
return read_pmc_mmio_bar();
}
+uint32_t *soc_pmc_etr_addr(void)
+{
+ return (uint32_t *)(soc_read_pmc_base() + ETR);
+}
+
const char *const *soc_smi_sts_array(size_t *a)
{
static const char *const smi_sts_bits[] = {