summaryrefslogtreecommitdiff
path: root/src/soc/intel/xeon_sp/include
diff options
context:
space:
mode:
authorJonathan Zhang <jonzhang@meta.com>2023-01-23 10:55:09 -0800
committerFelix Held <felix-coreboot@felixheld.de>2023-02-17 12:34:27 +0000
commit43277976edaba62f91d16d48f044b443a1e5da7b (patch)
tree13423b3c9d7ae634eac21cfd332eb47a52cce6df /src/soc/intel/xeon_sp/include
parent21fbf84d219244f6806cf6ba5cef59bcba32c37d (diff)
soc/intel/xeon_sp: move PCH specific code into lbg directory
pmc_lock_smi() and pmc_lockdown_config() have PCH specific implementations. Move them from common lockdown.c and pmc.c into lbg/soc_pmutil.c. Move sata_lockdown_config() and spi_lockdown_config() to lbg/lockdown.c. While here, fix some coding style issues. Change-Id: I9b357ce877123530dd5c310a730808b6e651712e Signed-off-by: Jonathan Zhang <jonzhang@meta.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/72396 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Simon Chou <simonchou@supermicro.com.tw> Reviewed-by: Jian-Ming Wang <jianmingW@supermicro.com> Reviewed-by: David Hendricks <david.hendricks@gmail.com>
Diffstat (limited to 'src/soc/intel/xeon_sp/include')
-rw-r--r--src/soc/intel/xeon_sp/include/soc/lockdown.h9
-rw-r--r--src/soc/intel/xeon_sp/include/soc/pm.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/src/soc/intel/xeon_sp/include/soc/lockdown.h b/src/soc/intel/xeon_sp/include/soc/lockdown.h
new file mode 100644
index 0000000000..549a93aa28
--- /dev/null
+++ b/src/soc/intel/xeon_sp/include/soc/lockdown.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#ifndef _SOC_LOCKDOWN_H_
+#define _SOC_LOCKDOWN_H_
+
+void sata_lockdown_config(int chipset_lockdown);
+
+void spi_lockdown_config(int chipset_lockdown);
+#endif
diff --git a/src/soc/intel/xeon_sp/include/soc/pm.h b/src/soc/intel/xeon_sp/include/soc/pm.h
index b4d6df987e..41160fac5b 100644
--- a/src/soc/intel/xeon_sp/include/soc/pm.h
+++ b/src/soc/intel/xeon_sp/include/soc/pm.h
@@ -121,4 +121,5 @@ uint16_t get_pmbase(void);
void pmc_lock_smi(void);
+void pmc_lockdown_config(void);
#endif