aboutsummaryrefslogtreecommitdiff
path: root/platforms
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 /platforms
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 'platforms')
-rw-r--r--platforms/astbmc/mihawk.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/platforms/astbmc/mihawk.c b/platforms/astbmc/mihawk.c
index 8971b40..f3669ff 100644
--- a/platforms/astbmc/mihawk.c
+++ b/platforms/astbmc/mihawk.c
@@ -142,6 +142,12 @@ static const char *mihawk_ocapi_slot_label(uint32_t chip_id,
return name;
}
+static const struct ocapi_phy_setup mihawk_phy = {
+ .tx_ffe_pre_coeff = 0x3,
+ .tx_ffe_post_coeff = 0x14,
+ .tx_ffe_boost_en = 0,
+};
+
static const struct platform_ocapi mihawk_ocapi = {
.i2c_engine = 1,
.i2c_port = 4,
@@ -157,6 +163,7 @@ static const struct platform_ocapi mihawk_ocapi = {
.i2c_presence_brick5 = 0, /* unused */
.odl_phy_swap = true,
.ocapi_slot_label = mihawk_ocapi_slot_label,
+ .phy_setup = &mihawk_phy,
};
static const struct slot_table_entry P1E1A_x8_PLX8748_RiserA_down[] = {