From 09ea3499e7f5647aebc408e49fb346d06222b0c0 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Thu, 1 Feb 2024 20:20:34 +0100 Subject: soc/amd/phoenix/chip.h: guard FSP-specific data structures Since the USB configuration data structure is FSP-specific, add guards on this part of the soc_amd_phoenix_config struct and the corresponding include. Signed-off-by: Felix Held Change-Id: I6c324421fbc3dc7b9a7bf6f5868785e9718147a5 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80298 Reviewed-by: Matt DeVillier Tested-by: build bot (Jenkins) --- src/soc/amd/phoenix/chip.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/soc/amd/phoenix/chip.h b/src/soc/amd/phoenix/chip.h index f436f9fde453..e3cadc24a312 100644 --- a/src/soc/amd/phoenix/chip.h +++ b/src/soc/amd/phoenix/chip.h @@ -13,7 +13,9 @@ #include #include #include +#if CONFIG(PLATFORM_USES_FSP2_0) #include +#endif struct soc_amd_phoenix_config { struct soc_amd_common_config common_config; @@ -103,8 +105,10 @@ struct soc_amd_phoenix_config { DXIO_PSPP_POWERSAVE, } pspp_policy; +#if CONFIG(PLATFORM_USES_FSP2_0) uint8_t usb_phy_custom; struct usb_phy_config usb_phy; +#endif }; #endif /* PHOENIX_CHIP_H */ -- cgit v1.2.3