aboutsummaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-10-31 13:46:00 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-11-03 13:07:39 +0000
commitf743e0c0e4e31f41230f2c8e27299e2e56259b77 (patch)
treea590ad38f7443df7ed380b0b6bc5f1ec3077ff8c /src/soc
parent35c3ae3bf4a43a36028fbd9e34ea4cb758029bf1 (diff)
soc/amd: Include <cpu/cpu.h> instead of <arch/cpu.h>
Also sort includes. Change-Id: Iea29938623fe1b2bcdd7f869b0accbc1f8758e7a Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69033 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/amd/cezanne/romstage.c2
-rw-r--r--src/soc/amd/common/block/acpi/cppc.c2
-rw-r--r--src/soc/amd/common/block/cpu/cpu.c2
-rw-r--r--src/soc/amd/common/block/cpu/noncar/write_resume_eip.c2
-rw-r--r--src/soc/amd/common/block/cpu/update_microcode.c10
-rw-r--r--src/soc/amd/glinda/romstage.c2
-rw-r--r--src/soc/amd/mendocino/romstage.c2
-rw-r--r--src/soc/amd/morgana/romstage.c2
-rw-r--r--src/soc/amd/picasso/agesa_acpi.c20
-rw-r--r--src/soc/amd/picasso/romstage.c2
-rw-r--r--src/soc/amd/picasso/soc_util.c4
-rw-r--r--src/soc/amd/stoneyridge/romstage.c4
12 files changed, 27 insertions, 27 deletions
diff --git a/src/soc/amd/cezanne/romstage.c b/src/soc/amd/cezanne/romstage.c
index dce0b69735..b843bff7dc 100644
--- a/src/soc/amd/cezanne/romstage.c
+++ b/src/soc/amd/cezanne/romstage.c
@@ -4,8 +4,8 @@
#include <amdblocks/acpimmio.h>
#include <amdblocks/memmap.h>
#include <amdblocks/pmlib.h>
-#include <arch/cpu.h>
#include <console/console.h>
+#include <cpu/cpu.h>
#include <fsp/api.h>
#include <program_loading.h>
#include <romstage_common.h>
diff --git a/src/soc/amd/common/block/acpi/cppc.c b/src/soc/amd/common/block/acpi/cppc.c
index ce40057c5d..81a09b4037 100644
--- a/src/soc/amd/common/block/acpi/cppc.c
+++ b/src/soc/amd/common/block/acpi/cppc.c
@@ -3,7 +3,7 @@
#include <acpi/acpi_pm.h>
#include <acpi/acpigen.h>
#include <amdblocks/cppc.h>
-#include <arch/cpu.h>
+#include <cpu/cpu.h>
#include <soc/msr.h>
#include <types.h>
diff --git a/src/soc/amd/common/block/cpu/cpu.c b/src/soc/amd/common/block/cpu/cpu.c
index bece89bc72..7c1daf96f1 100644
--- a/src/soc/amd/common/block/cpu/cpu.c
+++ b/src/soc/amd/common/block/cpu/cpu.c
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <arch/cpu.h>
#include <amdblocks/cpu.h>
+#include <cpu/cpu.h>
int get_cpu_count(void)
{
diff --git a/src/soc/amd/common/block/cpu/noncar/write_resume_eip.c b/src/soc/amd/common/block/cpu/noncar/write_resume_eip.c
index d53916107e..5863917920 100644
--- a/src/soc/amd/common/block/cpu/noncar/write_resume_eip.c
+++ b/src/soc/amd/common/block/cpu/noncar/write_resume_eip.c
@@ -1,9 +1,9 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <acpi/acpi.h>
-#include <arch/cpu.h>
#include <amdblocks/cpu.h>
#include <cpu/amd/msr.h>
+#include <cpu/cpu.h>
#include <cpu/x86/msr.h>
#include <stdint.h>
diff --git a/src/soc/amd/common/block/cpu/update_microcode.c b/src/soc/amd/common/block/cpu/update_microcode.c
index 79aaaf5d65..cfffbc0326 100644
--- a/src/soc/amd/common/block/cpu/update_microcode.c
+++ b/src/soc/amd/common/block/cpu/update_microcode.c
@@ -1,15 +1,15 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <arch/cpu.h>
-#include <types.h>
-#include <cpu/amd/microcode.h>
+#include <cbfs.h>
#include <commonlib/helpers.h>
#include <console/console.h>
-#include <cpu/x86/msr.h>
+#include <cpu/amd/microcode.h>
#include <cpu/amd/msr.h>
-#include <cbfs.h>
+#include <cpu/cpu.h>
+#include <cpu/x86/msr.h>
#include <stdio.h>
#include <timestamp.h>
+#include <types.h>
#define CPU_MICROCODE_BLOB_NAME "cpu_microcode_XXXX.bin"
#define CPU_MICROCODE_BLOB_FORMAT "cpu_microcode_%04x.bin"
diff --git a/src/soc/amd/glinda/romstage.c b/src/soc/amd/glinda/romstage.c
index dce0b69735..b843bff7dc 100644
--- a/src/soc/amd/glinda/romstage.c
+++ b/src/soc/amd/glinda/romstage.c
@@ -4,8 +4,8 @@
#include <amdblocks/acpimmio.h>
#include <amdblocks/memmap.h>
#include <amdblocks/pmlib.h>
-#include <arch/cpu.h>
#include <console/console.h>
+#include <cpu/cpu.h>
#include <fsp/api.h>
#include <program_loading.h>
#include <romstage_common.h>
diff --git a/src/soc/amd/mendocino/romstage.c b/src/soc/amd/mendocino/romstage.c
index dfec897c03..3548a79457 100644
--- a/src/soc/amd/mendocino/romstage.c
+++ b/src/soc/amd/mendocino/romstage.c
@@ -7,8 +7,8 @@
#include <amdblocks/memmap.h>
#include <amdblocks/pmlib.h>
#include <amdblocks/stb.h>
-#include <arch/cpu.h>
#include <console/console.h>
+#include <cpu/cpu.h>
#include <fsp/api.h>
#include <program_loading.h>
#include <romstage_common.h>
diff --git a/src/soc/amd/morgana/romstage.c b/src/soc/amd/morgana/romstage.c
index dce0b69735..b843bff7dc 100644
--- a/src/soc/amd/morgana/romstage.c
+++ b/src/soc/amd/morgana/romstage.c
@@ -4,8 +4,8 @@
#include <amdblocks/acpimmio.h>
#include <amdblocks/memmap.h>
#include <amdblocks/pmlib.h>
-#include <arch/cpu.h>
#include <console/console.h>
+#include <cpu/cpu.h>
#include <fsp/api.h>
#include <program_loading.h>
#include <romstage_common.h>
diff --git a/src/soc/amd/picasso/agesa_acpi.c b/src/soc/amd/picasso/agesa_acpi.c
index 35eedcb91a..839d7c0652 100644
--- a/src/soc/amd/picasso/agesa_acpi.c
+++ b/src/soc/amd/picasso/agesa_acpi.c
@@ -1,24 +1,24 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <acpi/acpi.h>
#include <acpi/acpi_crat.h>
#include <acpi/acpi_ivrs.h>
-#include <arch/cpu.h>
+#include <acpi/acpi.h>
+#include <amdblocks/acpi.h>
+#include <amdblocks/cpu.h>
+#include <amdblocks/data_fabric.h>
+#include <amdblocks/ioapic.h>
+#include <arch/mmio.h>
#include <cpu/amd/cpuid.h>
#include <cpu/amd/msr.h>
-#include <FspGuids.h>
-#include <soc/acpi.h>
-#include <stdint.h>
+#include <cpu/cpu.h>
#include <device/device.h>
#include <device/pci_def.h>
#include <device/pci_ops.h>
-#include <amdblocks/acpi.h>
-#include <amdblocks/cpu.h>
-#include <amdblocks/data_fabric.h>
-#include <amdblocks/ioapic.h>
+#include <FspGuids.h>
+#include <soc/acpi.h>
#include <soc/data_fabric.h>
#include <soc/pci_devs.h>
-#include <arch/mmio.h>
+#include <stdint.h>
static unsigned long gen_crat_hsa_entry(struct acpi_crat_header *crat, unsigned long current)
{
diff --git a/src/soc/amd/picasso/romstage.c b/src/soc/amd/picasso/romstage.c
index ccb11f083a..9958af2221 100644
--- a/src/soc/amd/picasso/romstage.c
+++ b/src/soc/amd/picasso/romstage.c
@@ -3,9 +3,9 @@
#include <acpi/acpi.h>
#include <amdblocks/memmap.h>
#include <amdblocks/pmlib.h>
-#include <arch/cpu.h>
#include <commonlib/helpers.h>
#include <console/console.h>
+#include <cpu/cpu.h>
#include <fsp/api.h>
#include <program_loading.h>
#include <romstage_common.h>
diff --git a/src/soc/amd/picasso/soc_util.c b/src/soc/amd/picasso/soc_util.c
index c82416ea18..9616f26bf5 100644
--- a/src/soc/amd/picasso/soc_util.c
+++ b/src/soc/amd/picasso/soc_util.c
@@ -1,9 +1,9 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <arch/cpu.h>
#include <console/console.h>
-#include <FspGuids.h>
+#include <cpu/cpu.h>
#include <fsp/util.h>
+#include <FspGuids.h>
#include <misc_data.h>
#include <soc/cpu.h>
#include <soc/soc_util.h>
diff --git a/src/soc/amd/stoneyridge/romstage.c b/src/soc/amd/stoneyridge/romstage.c
index 7d1124ad45..54fc51ee99 100644
--- a/src/soc/amd/stoneyridge/romstage.c
+++ b/src/soc/amd/stoneyridge/romstage.c
@@ -2,16 +2,16 @@
#include <acpi/acpi.h>
#include <amdblocks/acpi.h>
-#include <amdblocks/agesawrapper.h>
#include <amdblocks/agesawrapper_call.h>
+#include <amdblocks/agesawrapper.h>
#include <amdblocks/biosram.h>
#include <amdblocks/psp.h>
-#include <arch/cpu.h>
#include <arch/romstage.h>
#include <cbmem.h>
#include <commonlib/helpers.h>
#include <console/console.h>
#include <cpu/amd/mtrr.h>
+#include <cpu/cpu.h>
#include <cpu/x86/msr.h>
#include <cpu/x86/mtrr.h>
#include <cpu/x86/smm.h>