aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2023-02-23 10:01:51 +0100
committerElyes Haouas <ehaouas@noos.fr>2023-02-26 13:57:40 +0000
commite10d8a0d52aa116c9bcf952231dd8c4b2cf2820e (patch)
tree41b8ffdda1b6b8a9443a1b84ce5afb7d32adb4ca
parente784c1e66a5971cd780648925199f8713a72716f (diff)
soc/intel/xeon_sp: Drop unused cpu.h header
Change-Id: I42856424d3b55107f1758fb05f7ddbee3550d8b2 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/73200 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jonathan Zhang <jonzhang@fb.com> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
-rw-r--r--src/soc/intel/xeon_sp/cpx/chip.c1
-rw-r--r--src/soc/intel/xeon_sp/cpx/cpu.c1
-rw-r--r--src/soc/intel/xeon_sp/cpx/include/soc/cpu.h12
-rw-r--r--src/soc/intel/xeon_sp/cpx/soc_acpi.c1
-rw-r--r--src/soc/intel/xeon_sp/cpx/soc_util.c1
-rw-r--r--src/soc/intel/xeon_sp/nb_acpi.c1
-rw-r--r--src/soc/intel/xeon_sp/skx/cpu.c4
-rw-r--r--src/soc/intel/xeon_sp/skx/include/soc/cpu.h15
-rw-r--r--src/soc/intel/xeon_sp/skx/soc_acpi.c1
-rw-r--r--src/soc/intel/xeon_sp/skx/soc_util.c1
10 files changed, 3 insertions, 35 deletions
diff --git a/src/soc/intel/xeon_sp/cpx/chip.c b/src/soc/intel/xeon_sp/cpx/chip.c
index 9d94d8b088..a3d15abdbb 100644
--- a/src/soc/intel/xeon_sp/cpx/chip.c
+++ b/src/soc/intel/xeon_sp/cpx/chip.c
@@ -12,7 +12,6 @@
#include <intelblocks/p2sb.h>
#include <soc/acpi.h>
#include <soc/chip_common.h>
-#include <soc/cpu.h>
#include <soc/pch.h>
#include <soc/soc_pch.h>
#include <soc/ramstage.h>
diff --git a/src/soc/intel/xeon_sp/cpx/cpu.c b/src/soc/intel/xeon_sp/cpx/cpu.c
index fefb900943..f46d1a6f60 100644
--- a/src/soc/intel/xeon_sp/cpx/cpu.c
+++ b/src/soc/intel/xeon_sp/cpx/cpu.c
@@ -15,7 +15,6 @@
#include <intelblocks/cpulib.h>
#include <intelblocks/mp_init.h>
#include <intelpch/lockdown.h>
-#include <soc/cpu.h>
#include <soc/msr.h>
#include <soc/pci_devs.h>
#include <soc/pm.h>
diff --git a/src/soc/intel/xeon_sp/cpx/include/soc/cpu.h b/src/soc/intel/xeon_sp/cpx/include/soc/cpu.h
deleted file mode 100644
index d00c27fdec..0000000000
--- a/src/soc/intel/xeon_sp/cpx/include/soc/cpu.h
+++ /dev/null
@@ -1,12 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#ifndef _SOC_CPU_H
-#define _SOC_CPU_H
-
-#include <device/device.h>
-#include <cpu/intel/cpu_ids.h>
-#include <cpu/x86/msr.h>
-
-void cpx_init_cpus(struct device *dev);
-
-#endif
diff --git a/src/soc/intel/xeon_sp/cpx/soc_acpi.c b/src/soc/intel/xeon_sp/cpx/soc_acpi.c
index 0da827d8d5..e8abd776d6 100644
--- a/src/soc/intel/xeon_sp/cpx/soc_acpi.c
+++ b/src/soc/intel/xeon_sp/cpx/soc_acpi.c
@@ -9,7 +9,6 @@
#include <intelblocks/acpi.h>
#include <intelblocks/cpulib.h>
#include <soc/acpi.h>
-#include <soc/cpu.h>
#include <soc/iomap.h>
#include <soc/msr.h>
#include <soc/pci_devs.h>
diff --git a/src/soc/intel/xeon_sp/cpx/soc_util.c b/src/soc/intel/xeon_sp/cpx/soc_util.c
index cd1e06d290..a6bcad3c51 100644
--- a/src/soc/intel/xeon_sp/cpx/soc_util.c
+++ b/src/soc/intel/xeon_sp/cpx/soc_util.c
@@ -4,7 +4,6 @@
#include <device/device.h>
#include <device/pci.h>
#include <intelblocks/cpulib.h>
-#include <soc/cpu.h>
#include <soc/pci_devs.h>
#include <soc/soc_util.h>
#include <soc/util.h>
diff --git a/src/soc/intel/xeon_sp/nb_acpi.c b/src/soc/intel/xeon_sp/nb_acpi.c
index bebabfba29..121c8a1cee 100644
--- a/src/soc/intel/xeon_sp/nb_acpi.c
+++ b/src/soc/intel/xeon_sp/nb_acpi.c
@@ -7,7 +7,6 @@
#include <device/mmio.h>
#include <device/pci.h>
#include <soc/acpi.h>
-#include <soc/cpu.h>
#include <soc/hest.h>
#include <soc/iomap.h>
#include <soc/pci_devs.h>
diff --git a/src/soc/intel/xeon_sp/skx/cpu.c b/src/soc/intel/xeon_sp/skx/cpu.c
index 283cbcc9ae..a9a035dac9 100644
--- a/src/soc/intel/xeon_sp/skx/cpu.c
+++ b/src/soc/intel/xeon_sp/skx/cpu.c
@@ -4,11 +4,11 @@
#include <console/debug.h>
#include <intelblocks/cpulib.h>
#include <cpu/cpu.h>
+#include <cpu/intel/cpu_ids.h>
#include <cpu/x86/mtrr.h>
#include <cpu/x86/mp.h>
#include <cpu/intel/turbo.h>
#include <soc/msr.h>
-#include <soc/cpu.h>
#include <soc/soc_util.h>
#include <soc/smmrelocate.h>
#include <soc/util.h>
@@ -161,6 +161,8 @@ static const struct cpu_driver driver __cpu_driver = {
.id_table = cpu_table,
};
+#define CPU_BCLK 100
+
static void set_max_turbo_freq(void)
{
msr_t msr, perf_ctl;
diff --git a/src/soc/intel/xeon_sp/skx/include/soc/cpu.h b/src/soc/intel/xeon_sp/skx/include/soc/cpu.h
deleted file mode 100644
index ef712ab246..0000000000
--- a/src/soc/intel/xeon_sp/skx/include/soc/cpu.h
+++ /dev/null
@@ -1,15 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-
-#ifndef _SOC_CPU_H_
-#define _SOC_CPU_H_
-
-#include <device/device.h>
-#include <cpu/intel/cpu_ids.h>
-#include <cpu/x86/msr.h>
-
-/* CPU bus clock is fixed at 100MHz */
-#define CPU_BCLK 100
-
-void xeon_sp_init_cpus(struct device *dev);
-
-#endif
diff --git a/src/soc/intel/xeon_sp/skx/soc_acpi.c b/src/soc/intel/xeon_sp/skx/soc_acpi.c
index 88f24d4b2c..39dbd4a962 100644
--- a/src/soc/intel/xeon_sp/skx/soc_acpi.c
+++ b/src/soc/intel/xeon_sp/skx/soc_acpi.c
@@ -8,7 +8,6 @@
#include <device/pci.h>
#include <intelblocks/acpi.h>
#include <soc/acpi.h>
-#include <soc/cpu.h>
#include <soc/iomap.h>
#include <soc/msr.h>
#include <soc/pci_devs.h>
diff --git a/src/soc/intel/xeon_sp/skx/soc_util.c b/src/soc/intel/xeon_sp/skx/soc_util.c
index 3258007f1c..628613829a 100644
--- a/src/soc/intel/xeon_sp/skx/soc_util.c
+++ b/src/soc/intel/xeon_sp/skx/soc_util.c
@@ -7,7 +7,6 @@
#include <intelblocks/cpulib.h>
#include <intelblocks/pcr.h>
#include <soc/iomap.h>
-#include <soc/cpu.h>
#include <soc/msr.h>
#include <soc/pci_devs.h>
#include <soc/pcr_ids.h>