aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFrederic Barrat <fbarrat@linux.ibm.com>2020-04-23 19:54:43 +0200
committerOliver O'Halloran <oohall@gmail.com>2020-05-26 14:30:29 +1000
commitafe6bc9051907d25082309895f8cfe44f59e2f25 (patch)
tree61873aa988d85d1d97a9ac2b91b9c0ac5859ec8c /include
parent11d12c6fb60af42b89930fe776958f0eb208dd23 (diff)
downloadskiboot-afe6bc9051907d25082309895f8cfe44f59e2f25.zip
skiboot-afe6bc9051907d25082309895f8cfe44f59e2f25.tar.gz
skiboot-afe6bc9051907d25082309895f8cfe44f59e2f25.tar.bz2
platform/mihawk: Tune equalization settings for opencapi
The Bittware 250SOC adapter on Mihawk was showing a high count of CRC errors on one of the opencapi slots. The PHY team suggested new equalization settings to correct the errors. All existing adapters have been tested on mihawk to make sure the settings are compatible. However, the new settings should not be used on platforms other than mihawk. The changes specific to mihawk are: - Update the tx_ffe_pre_coeff and tx_ffe_post_coeff input parameters used during zcal - turn off the tx_ffe_boost parameter through scom Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com> Cc: skiboot-stable@lists.ozlabs.org # skiboot-op940.x Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/platform.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h
index 6aa263a..ef93278 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -47,6 +47,12 @@ struct bmc_platform {
const struct bmc_sw_config *sw;
};
+struct ocapi_phy_setup {
+ int tx_ffe_pre_coeff;
+ int tx_ffe_post_coeff;
+ int tx_ffe_boost_en;
+};
+
/* OpenCAPI platform-specific I2C information */
struct platform_ocapi {
uint8_t i2c_engine; /* I2C engine number */
@@ -64,6 +70,7 @@ struct platform_ocapi {
bool odl_phy_swap; /* Swap ODL1 to use brick 2 rather than
* brick 1 lanes */
const char *(*ocapi_slot_label)(uint32_t chip_id, uint32_t brick_index);
+ const struct ocapi_phy_setup *phy_setup;
};
struct dt_node;