From b4d960b65aa126d4534189672322ec62dcd87bde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Niew=C3=B6hner?= Date: Sat, 2 Nov 2019 12:14:06 +0100 Subject: soc/intel/apollolake: add soc implementation for ETR address API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add soc implementation for the new ETR address API. Change-Id: I1832f5f14055fc3dbb502289035130ca7a5d6d33 Signed-off-by: Michael Niewöhner Reviewed-on: https://review.coreboot.org/c/coreboot/+/36566 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/soc/intel/apollolake/pmutil.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/soc/intel/apollolake/pmutil.c b/src/soc/intel/apollolake/pmutil.c index 23e9732e91..559adad405 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[] = { -- cgit v1.2.3