1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <device/mmio.h>
4 #include <intelblocks/cfg.h>
5 #include <intelblocks/pmclib.h>
6 #include <intelpch/lockdown.h>
9 static void pmc_lockdown_config(void)
15 pmcbase
= pmc_mmio_regs();
16 pmsyncreg
= read32(pmcbase
+ PMSYNC_TPR_CFG
);
17 pmsyncreg
|= PMSYNC_LOCK
;
18 write32(pmcbase
+ PMSYNC_TPR_CFG
, pmsyncreg
);
20 /* Make sure payload/OS can't trigger global reset */
21 pmc_global_reset_disable_and_lock();
24 void soc_lockdown_config(int chipset_lockdown
)
26 /* PMC lock down configuration */
27 pmc_lockdown_config();