mb/google/brya/var/orisa: Update Type C DisplayPort HPD Configuration
[coreboot2.git] / src / soc / intel / skylake / lockdown.c
blob1dd4e564d094c530c2d996d3f080f5e49419c358
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>
7 #include <soc/pm.h>
9 static void pmc_lockdown_config(void)
11 uint8_t *pmcbase;
12 u32 pmsyncreg;
14 /* PMSYNC */
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();