summaryrefslogtreecommitdiff
path: root/src/soc/intel
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel')
-rw-r--r--src/soc/intel/common/block/systemagent/Kconfig6
-rw-r--r--src/soc/intel/common/block/systemagent/systemagent.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/soc/intel/common/block/systemagent/Kconfig b/src/soc/intel/common/block/systemagent/Kconfig
index e7f6ba49d8..4ba83f8817 100644
--- a/src/soc/intel/common/block/systemagent/Kconfig
+++ b/src/soc/intel/common/block/systemagent/Kconfig
@@ -31,4 +31,10 @@ config ACPI_BERT_SIZE
Specify the amount of DRAM reserved for gathering the data used to
generate the ACPI table.
+config HAVE_PAM0_REGISTER
+ bool
+ default y
+ help
+ Specify if the SOC has a PAM0 register
+
endif
diff --git a/src/soc/intel/common/block/systemagent/systemagent.c b/src/soc/intel/common/block/systemagent/systemagent.c
index 0861e62fc8..c2ce999c9f 100644
--- a/src/soc/intel/common/block/systemagent/systemagent.c
+++ b/src/soc/intel/common/block/systemagent/systemagent.c
@@ -305,7 +305,7 @@ void enable_power_aware_intr(void)
void sa_lock_pam(void)
{
const struct device *dev = pcidev_path_on_root(SA_DEVFN_ROOT);
- if (!dev)
+ if (!CONFIG(HAVE_PAM0_REGISTER) || !dev)
return;
pci_or_config8(dev, PAM0, PAM_LOCK);