From e10d8a0d52aa116c9bcf952231dd8c4b2cf2820e Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Thu, 23 Feb 2023 10:01:51 +0100 Subject: soc/intel/xeon_sp: Drop unused cpu.h header Change-Id: I42856424d3b55107f1758fb05f7ddbee3550d8b2 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/73200 Tested-by: build bot (Jenkins) Reviewed-by: Jonathan Zhang Reviewed-by: Elyes Haouas --- src/soc/intel/xeon_sp/cpx/chip.c | 1 - src/soc/intel/xeon_sp/cpx/cpu.c | 1 - src/soc/intel/xeon_sp/cpx/include/soc/cpu.h | 12 ------------ src/soc/intel/xeon_sp/cpx/soc_acpi.c | 1 - src/soc/intel/xeon_sp/cpx/soc_util.c | 1 - src/soc/intel/xeon_sp/nb_acpi.c | 1 - src/soc/intel/xeon_sp/skx/cpu.c | 4 +++- src/soc/intel/xeon_sp/skx/include/soc/cpu.h | 15 --------------- src/soc/intel/xeon_sp/skx/soc_acpi.c | 1 - src/soc/intel/xeon_sp/skx/soc_util.c | 1 - 10 files changed, 3 insertions(+), 35 deletions(-) delete mode 100644 src/soc/intel/xeon_sp/cpx/include/soc/cpu.h delete mode 100644 src/soc/intel/xeon_sp/skx/include/soc/cpu.h (limited to 'src/soc/intel/xeon_sp') 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 #include #include -#include #include #include #include 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 #include #include -#include #include #include #include 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 -#include -#include - -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 #include #include -#include #include #include #include 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 #include #include -#include #include #include #include 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 #include #include -#include #include #include #include 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 #include #include +#include #include #include #include #include -#include #include #include #include @@ -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 -#include -#include - -/* 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 #include #include -#include #include #include #include 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 #include #include -#include #include #include #include -- cgit v1.2.3