From 8fc68816a96c6fdfc7a35ec1c68b681b03decc06 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Fri, 18 Aug 2023 16:28:29 -0600 Subject: soc/amd: Move psp_transfer.h out of each SOC into common The psp_transfer.h file was the same under all SoCs, and is really tied to the file common/vboot/transfer.c, not the SOC. This patch makes an include directory under vboot to put the header into and sets it to be included for all SoCs using SOC_AMD_COMMON. This makes the header file available to all platforms, so that new chips that don't use the psp_verstage don't have to make a psp_transfer.h file just to satisfy the compiler. Signed-off-by: Martin Roth Change-Id: I5b9f2adee3a1d4d8d32813ec0a850344b7d717b2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/77303 Reviewed-by: Fred Reitberger Tested-by: build bot (Jenkins) --- src/soc/amd/common/block/cpu/noncar/bootblock.c | 2 +- src/soc/amd/common/block/cpu/noncar/memlayout_psp_verstage.ld | 2 +- src/soc/amd/common/block/cpu/noncar/memlayout_x86.ld | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/soc/amd/common/block/cpu/noncar') diff --git a/src/soc/amd/common/block/cpu/noncar/bootblock.c b/src/soc/amd/common/block/cpu/noncar/bootblock.c index 9ef899e5ac..e32499de04 100644 --- a/src/soc/amd/common/block/cpu/noncar/bootblock.c +++ b/src/soc/amd/common/block/cpu/noncar/bootblock.c @@ -6,8 +6,8 @@ #include #include #include +#include #include -#include #include asmlinkage void bootblock_c_entry(uint64_t base_timestamp) diff --git a/src/soc/amd/common/block/cpu/noncar/memlayout_psp_verstage.ld b/src/soc/amd/common/block/cpu/noncar/memlayout_psp_verstage.ld index e0278abfc8..cc1a1b5026 100644 --- a/src/soc/amd/common/block/cpu/noncar/memlayout_psp_verstage.ld +++ b/src/soc/amd/common/block/cpu/noncar/memlayout_psp_verstage.ld @@ -1,8 +1,8 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include -#include #include +#include #include ENTRY(_psp_vs_start) diff --git a/src/soc/amd/common/block/cpu/noncar/memlayout_x86.ld b/src/soc/amd/common/block/cpu/noncar/memlayout_x86.ld index 42323f51bf..090d8b727f 100644 --- a/src/soc/amd/common/block/cpu/noncar/memlayout_x86.ld +++ b/src/soc/amd/common/block/cpu/noncar/memlayout_x86.ld @@ -2,7 +2,7 @@ #include #include -#include +#include #define EARLY_RESERVED_DRAM_START(addr) REGION_START(early_reserved_dram, addr) #define EARLY_RESERVED_DRAM_END(addr) REGION_END(early_reserved_dram, addr) -- cgit v1.2.3