summaryrefslogtreecommitdiff
path: root/src/soc/intel/apollolake/pmutil.c
diff options
context:
space:
mode:
authorShaunak Saha <shaunak.saha@intel.com>2016-06-27 23:00:15 -0700
committerAaron Durbin <adurbin@chromium.org>2016-06-30 16:15:53 +0200
commit9a0c9ac912b4bc4248cdada2889a13e48a06d28d (patch)
tree8857533fc0a55e22d6c9ee775ada9792bc053aa0 /src/soc/intel/apollolake/pmutil.c
parent61f4b42f2c1bdf5fb09ad4ba22e8420c6f9fbe00 (diff)
downloadcoreboot-9a0c9ac912b4bc4248cdada2889a13e48a06d28d.tar.xz
soc/apollolake: Expose a function to read pmc bar
This patch exposes a function to read pmc bar. PMC bar is read in function read_pmc_mmio_bar which is defined static in file pmutil.c. This patch exposes that functionality to call it from other files. BUG=chrome-os-partner:53438 TEST= Read the PMC bar value properly from outside pmutil file. Change-Id: I26ee13e6ab95d3a8991c7f8ea4b3856ceb015d10 Signed-off-by: Shaunak Saha <shaunak.saha@intel.com> Reviewed-on: https://review.coreboot.org/15460 Tested-by: build bot (Jenkins) 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 f8b2fdfdd1..f25adfb391 100644
--- a/src/soc/intel/apollolake/pmutil.c
+++ b/src/soc/intel/apollolake/pmutil.c
@@ -34,6 +34,11 @@ static uintptr_t read_pmc_mmio_bar(void)
return bar & ~PCI_BASE_ADDRESS_MEM_ATTR_MASK;
}
+uintptr_t get_pmc_mmio_bar(void)
+{
+ return read_pmc_mmio_bar();
+}
+
static void print_num_status_bits(int num_bits, uint32_t status,
const char * const bit_names[])
{