soc/intel: Remove blank lines before '}' and after '{'
[coreboot2.git] / src / soc / intel / xeon_sp / lockdown.c
blob9e25920011b95cee8a071ae7d9459991843130da
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <intelblocks/lpc_lib.h>
4 #include <intelpch/lockdown.h>
5 #include <soc/lockdown.h>
6 #include <soc/pm.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)) {
15 lpc_set_eiss();
16 lpc_enable_wp();
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);