summaryrefslogtreecommitdiff
path: root/src/soc/intel/common/block/pmc/Makefile.inc
diff options
context:
space:
mode:
authorShaunak Saha <shaunak.saha@intel.com>2017-03-08 19:27:17 -0800
committerAaron Durbin <adurbin@chromium.org>2017-08-08 16:38:50 +0000
commit9dffbdd9c5e1a7b081b9c32a3ebd44219769cc04 (patch)
treee07707a242d3eaa5771f007e89407481fabbb0d2 /src/soc/intel/common/block/pmc/Makefile.inc
parent2991f3c48f99dc2849391725b16309eb96aa41a7 (diff)
downloadcoreboot-9dffbdd9c5e1a7b081b9c32a3ebd44219769cc04.tar.xz
soc/intel/common/block: Add Intel PMC support
PMC util code is very similar accross different intel SOC's. This patch is an effort to move those code in common place so that it can be shared accross different intel platforms instead of duplicating for each platform. This patch adds pmclib.c file which contains the pmc utility functions common accross SOC's. The config for common PMC is SOC_INTEL_COMMON_BLOCK_PMC which can be defined in SOC's Kconfig file in order to use the common PMC util code. Change-Id: Ic3d96fc23a98c30e8ea0969a7be09d217eeaa889 Signed-off-by: Shaunak Saha <shaunak.saha@intel.com> Reviewed-on: https://review.coreboot.org/19349 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/intel/common/block/pmc/Makefile.inc')
-rw-r--r--src/soc/intel/common/block/pmc/Makefile.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/pmc/Makefile.inc b/src/soc/intel/common/block/pmc/Makefile.inc
new file mode 100644
index 0000000000..40fcba10f7
--- /dev/null
+++ b/src/soc/intel/common/block/pmc/Makefile.inc
@@ -0,0 +1,5 @@
+bootblock-$(CONFIG_SOC_INTEL_COMMON_BLOCK_PMC) += pmclib.c
+romstage-$(CONFIG_SOC_INTEL_COMMON_BLOCK_PMC) += pmclib.c
+ramstage-$(CONFIG_SOC_INTEL_COMMON_BLOCK_PMC) += pmclib.c
+smm-$(CONFIG_SOC_INTEL_COMMON_BLOCK_PMC) += pmclib.c
+verstage-$(CONFIG_SOC_INTEL_COMMON_BLOCK_PMC) += pmclib.c