aboutsummaryrefslogtreecommitdiff
path: root/src/vendorcode
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2022-05-06 17:43:44 +0200
committerTim Wawrzynczak <twawrzynczak@chromium.org>2022-05-12 18:44:46 +0000
commit28d012fc4cdf9a497bbfa090f5abdca28e623b29 (patch)
treeb408f9665b98a4e079db89985aadd1e16aa34dd6 /src/vendorcode
parent3654c779f78a2320437da9ef578dc1812cdece7b (diff)
vc/amd/fsp/sabrina/UsbUpd: update USB settings structure to match FSP
This file started as a copy from Cezanne. Sabrina has less USB ports than Cezanne. Also the struct definition of fch_usb2_phy has changed and FSP_USB_STRUCT_MINOR_VERSION is also updated. TEST=None Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I1ef2b62373b178d729b3230d0d8539986cc631ae Reviewed-on: https://review.coreboot.org/c/coreboot/+/64129 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com> Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/vendorcode')
-rw-r--r--src/vendorcode/amd/fsp/sabrina/FspUsb.h35
1 files changed, 19 insertions, 16 deletions
diff --git a/src/vendorcode/amd/fsp/sabrina/FspUsb.h b/src/vendorcode/amd/fsp/sabrina/FspUsb.h
index fea1fee3bd..19fac353bb 100644
--- a/src/vendorcode/amd/fsp/sabrina/FspUsb.h
+++ b/src/vendorcode/amd/fsp/sabrina/FspUsb.h
@@ -4,29 +4,32 @@
#include <FspUpd.h>
#define FSP_USB_STRUCT_MAJOR_VERSION 0xd
-#define FSP_USB_STRUCT_MINOR_VERSION 0x6
+#define FSP_USB_STRUCT_MINOR_VERSION 0xe
-#define USB2_PORT_COUNT 8
-#define USB3_PORT_COUNT 4
+#define USB2_PORT_COUNT 6
+#define USB3_PORT_COUNT 3
#define USBC_COMBO_PHY_COUNT 2
struct fch_usb2_phy {
- uint8_t compdstune; ///< COMPDSTUNE
- uint8_t sqrxtune; ///< SQRXTUNE
- uint8_t txfslstune; ///< TXFSLSTUNE
- uint8_t txpreempamptune; ///< TXPREEMPAMPTUNE
- uint8_t txpreemppulsetune; ///< TXPREEMPPULSETUNE
- uint8_t txrisetune; ///< TXRISETUNE
- uint8_t txvreftune; ///< TXVREFTUNE
- uint8_t txhsxvtune; ///< TXHSXVTUNE
- uint8_t txrestune; ///< TXRESTUNE
+ uint8_t compdistune; ///< COMPDISTUNE
+ uint8_t pllbtune; ///< PLLBTUNE
+ uint8_t pllitune; ///< PLLITUNE
+ uint8_t pllptune; ///< PLLPTUNE
+ uint8_t sqrxtune; ///< SQRXTUNE
+ uint8_t txfslstune; ///< TXFSLSTUNE
+ uint8_t txpreempamptune; ///< TXPREEMPAMPTUNE
+ uint8_t txpreemppulsetune; ///< TXPREEMPPULSETUNE
+ uint8_t txrisetune; ///< TXRISETUNE
+ uint8_t txvreftune; ///< TXVREFTUNE
+ uint8_t txhsxvtune; ///< TXHSXVTUNE
+ uint8_t txrestune; ///< TXRESTUNE
} __packed;
struct fch_usb3_phy {
- uint8_t tx_term_ctrl; ///< tx_term_ctrl
- uint8_t rx_term_ctrl; ///< rx_term_ctrl
- uint8_t tx_vboost_lvl_en; ///< TX_VBOOST_LVL_EN
- uint8_t tx_vboost_lvl; ///< TX_VBOOST_LVL
+ uint8_t tx_term_ctrl; ///< tx_term_ctrl
+ uint8_t rx_term_ctrl; ///< rx_term_ctrl
+ uint8_t tx_vboost_lvl_en; ///< TX_VBOOST_LVL_EN
+ uint8_t tx_vboost_lvl; ///< TX_VBOOST_LVL
} __packed;
#define USB0_PORT0 0