summaryrefslogtreecommitdiff
path: root/src/soc/intel
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel')
-rw-r--r--src/soc/intel/apollolake/lockdown.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/soc/intel/apollolake/lockdown.c b/src/soc/intel/apollolake/lockdown.c
index 1b7381da5e..e11778b5dc 100644
--- a/src/soc/intel/apollolake/lockdown.c
+++ b/src/soc/intel/apollolake/lockdown.c
@@ -6,10 +6,17 @@
#include <intelpch/lockdown.h>
#include <soc/pm.h>
+static void pmc_lock_smi(void)
+{
+ uint8_t *pmcbase;
+
+ pmcbase = pmc_mmio_regs();
+
+ setbits32(pmcbase + GEN_PMCON2, SMI_LOCK);
+}
+
void soc_lockdown_config(int chipset_lockdown)
{
- /*
- * Nothing to do here as pmc_global_reset_disable_and_lock
- * is called from chip.c
- */
+ /* APL only supports CHIPSET_LOCKDOWN_COREBOOT */
+ pmc_lock_smi();
}