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 <felix-coreboot@felixheld.de> Change-Id: I6c324421fbc3dc7b9a7bf6f5868785e9718147a5 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80298 Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@@ -13,7 +13,9 @@
|
|||||||
#include <soc/southbridge.h>
|
#include <soc/southbridge.h>
|
||||||
#include <drivers/i2c/designware/dw_i2c.h>
|
#include <drivers/i2c/designware/dw_i2c.h>
|
||||||
#include <types.h>
|
#include <types.h>
|
||||||
|
#if CONFIG(PLATFORM_USES_FSP2_0)
|
||||||
#include <vendorcode/amd/fsp/phoenix/FspUsb.h>
|
#include <vendorcode/amd/fsp/phoenix/FspUsb.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
struct soc_amd_phoenix_config {
|
struct soc_amd_phoenix_config {
|
||||||
struct soc_amd_common_config common_config;
|
struct soc_amd_common_config common_config;
|
||||||
@@ -103,8 +105,10 @@ struct soc_amd_phoenix_config {
|
|||||||
DXIO_PSPP_POWERSAVE,
|
DXIO_PSPP_POWERSAVE,
|
||||||
} pspp_policy;
|
} pspp_policy;
|
||||||
|
|
||||||
|
#if CONFIG(PLATFORM_USES_FSP2_0)
|
||||||
uint8_t usb_phy_custom;
|
uint8_t usb_phy_custom;
|
||||||
struct usb_phy_config usb_phy;
|
struct usb_phy_config usb_phy;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* PHOENIX_CHIP_H */
|
#endif /* PHOENIX_CHIP_H */
|
||||||
|
Reference in New Issue
Block a user