1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <intelblocks/lpc_lib.h>
4 #include <intelpch/lockdown.h>
5 #include <soc/lockdown.h>
8 static void lpc_lockdown_config(void)
10 /* Set BIOS Interface Lock, BIOS Lock */
11 lpc_set_bios_interface_lock_down();
13 /* Only allow writes in SMM */
14 if (CONFIG(BOOTMEDIA_SMM_BWP
)) {
18 lpc_set_lock_enable();
21 void soc_lockdown_config(int chipset_lockdown
)
23 lpc_lockdown_config();
24 pmc_lockdown_config();
25 sata_lockdown_config(chipset_lockdown
);
26 spi_lockdown_config(chipset_lockdown
);