diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2022-10-31 13:46:00 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-11-03 13:07:39 +0000 |
commit | f743e0c0e4e31f41230f2c8e27299e2e56259b77 (patch) | |
tree | a590ad38f7443df7ed380b0b6bc5f1ec3077ff8c /src/soc/amd | |
parent | 35c3ae3bf4a43a36028fbd9e34ea4cb758029bf1 (diff) | |
download | coreboot-f743e0c0e4e31f41230f2c8e27299e2e56259b77.tar.gz coreboot-f743e0c0e4e31f41230f2c8e27299e2e56259b77.tar.bz2 coreboot-f743e0c0e4e31f41230f2c8e27299e2e56259b77.zip |
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/amd')
-rw-r--r-- | src/soc/amd/cezanne/romstage.c | 2 | ||||
-rw-r--r-- | src/soc/amd/common/block/acpi/cppc.c | 2 | ||||
-rw-r--r-- | src/soc/amd/common/block/cpu/cpu.c | 2 | ||||
-rw-r--r-- | src/soc/amd/common/block/cpu/noncar/write_resume_eip.c | 2 | ||||
-rw-r--r-- | src/soc/amd/common/block/cpu/update_microcode.c | 10 | ||||
-rw-r--r-- | src/soc/amd/glinda/romstage.c | 2 | ||||
-rw-r--r-- | src/soc/amd/mendocino/romstage.c | 2 | ||||
-rw-r--r-- | src/soc/amd/morgana/romstage.c | 2 | ||||
-rw-r--r-- | src/soc/amd/picasso/agesa_acpi.c | 20 | ||||
-rw-r--r-- | src/soc/amd/picasso/romstage.c | 2 | ||||
-rw-r--r-- | src/soc/amd/picasso/soc_util.c | 4 | ||||
-rw-r--r-- | src/soc/amd/stoneyridge/romstage.c | 4 |
12 files changed, 27 insertions, 27 deletions
diff --git a/src/soc/amd/cezanne/romstage.c b/src/soc/amd/cezanne/romstage.c index dce0b697357a..b843bff7dcb0 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 ce40057c5d8e..81a09b403731 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 bece89bc7264..7c1daf96f1e7 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 d53916107ec8..5863917920f1 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 79aaaf5d65ef..cfffbc0326a8 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 dce0b697357a..b843bff7dcb0 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 dfec897c0303..3548a7945738 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 dce0b697357a..b843bff7dcb0 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 35eedcb91afc..839d7c065212 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 ccb11f083a26..9958af222110 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 c82416ea1858..9616f26bf589 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 7d1124ad4515..54fc51ee99f7 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> |