From 82cdfa73d5fbe8ded890f5bb4079a67f57449db1 Mon Sep 17 00:00:00 2001 From: Pratik Prajapati Date: Mon, 28 Aug 2017 14:48:55 -0700 Subject: intel/common/systemagent: Add API to get SOC specific PRMRR base and mask Implement weak definition and SOC specific code would implement actual definition. Change-Id: I5e787a2603aaa475cb5c61558cc31ec0afcb4a8b Signed-off-by: Pratik Prajapati Reviewed-on: https://review.coreboot.org/21243 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/soc/intel/common/block/include/intelblocks/systemagent.h | 3 +++ src/soc/intel/common/block/systemagent/systemagent.c | 7 +++++++ 2 files changed, 10 insertions(+) (limited to 'src/soc/intel') diff --git a/src/soc/intel/common/block/include/intelblocks/systemagent.h b/src/soc/intel/common/block/include/intelblocks/systemagent.h index 4ca19e667c..522d924c0b 100644 --- a/src/soc/intel/common/block/include/intelblocks/systemagent.h +++ b/src/soc/intel/common/block/include/intelblocks/systemagent.h @@ -100,4 +100,7 @@ void soc_systemagent_init(struct device *dev); */ void soc_add_fixed_mmio_resources(struct device *dev, int *resource_cnt); +/* SoC specific APIs to get UNCORE PRMRR base and mask values + * returns 0, if able to get base and mask values; otherwise returns -1 */ +int soc_get_uncore_prmmr_base_and_mask(uint64_t *base, uint64_t *mask); #endif /* SOC_INTEL_COMMON_BLOCK_SA_H */ diff --git a/src/soc/intel/common/block/systemagent/systemagent.c b/src/soc/intel/common/block/systemagent/systemagent.c index cb7af41518..3be65f919b 100644 --- a/src/soc/intel/common/block/systemagent/systemagent.c +++ b/src/soc/intel/common/block/systemagent/systemagent.c @@ -36,6 +36,13 @@ __attribute__((weak)) void soc_add_fixed_mmio_resources(struct device *dev, /* no-op */ } +__attribute__((weak)) int soc_get_uncore_prmmr_base_and_mask(uint64_t *base, + uint64_t *mask) +{ + /* return failure for this dummy API */ + return -1; +} + /* * Add all known fixed MMIO ranges that hang off the host bridge/memory * controller device. -- cgit v1.2.3