soc/amd/sabrina/fsp_m_params: add defines for FSP USB struct version
Add and use defines instead of magic values in fsp_m_params.c. The values will be updated to match the Sabrina FSP in a follow-up commit. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I91da9e9d2b95e169dd73153766f24cf8afbfa4ef Reviewed-on: https://review.coreboot.org/c/coreboot/+/64128 Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
68aaa8cc26
commit
3654c779f7
|
@ -144,8 +144,8 @@ void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version)
|
|||
|
||||
if (config->usb_phy_custom) {
|
||||
mcfg->usb_phy = (struct usb_phy_config *)&config->usb_phy;
|
||||
mcfg->usb_phy->Version_Major = 0xd;
|
||||
mcfg->usb_phy->Version_Minor = 0x6;
|
||||
mcfg->usb_phy->Version_Major = FSP_USB_STRUCT_MAJOR_VERSION;
|
||||
mcfg->usb_phy->Version_Minor = FSP_USB_STRUCT_MINOR_VERSION;
|
||||
mcfg->usb_phy->TableLength = sizeof(struct usb_phy_config);
|
||||
} else {
|
||||
mcfg->usb_phy = NULL;
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
|
||||
#include <FspUpd.h>
|
||||
|
||||
#define FSP_USB_STRUCT_MAJOR_VERSION 0xd
|
||||
#define FSP_USB_STRUCT_MINOR_VERSION 0x6
|
||||
|
||||
#define USB2_PORT_COUNT 8
|
||||
#define USB3_PORT_COUNT 4
|
||||
#define USBC_COMBO_PHY_COUNT 2
|
||||
|
|
Loading…
Reference in New Issue