aboutsummaryrefslogtreecommitdiff
path: root/include/pau.h
diff options
context:
space:
mode:
authorChristophe Lombard <clombard@linux.vnet.ibm.com>2021-10-14 17:57:01 +0200
committerVasant Hegde <hegdevasant@linux.vnet.ibm.com>2021-10-19 12:26:01 +0530
commite89e5b9b76923ac284bb68c3083e4bd1524e450b (patch)
treecc5e0254f63d6a6e7e41c6cefd686e91bdf7a169 /include/pau.h
parent4726a3439b9800d3c7e4432f398271d3a3024e68 (diff)
downloadskiboot-e89e5b9b76923ac284bb68c3083e4bd1524e450b.zip
skiboot-e89e5b9b76923ac284bb68c3083e4bd1524e450b.tar.gz
skiboot-e89e5b9b76923ac284bb68c3083e4bd1524e450b.tar.bz2
pau: link training
Add elementary functions to handle a phb complete, fundamental and hot resets. For the time being, specific creset and hreset are not supported. A complete fundamental reset is based on the following steps, in this order: - Place all bricks into Fence state - Disable BARs - Reset ODL to Power-on Values - Set the i2c reset pin in output mode - Initialize PHY Lanes - Deassert ODL reset - Clear the the i2c reset pin - Unfence bricks - Enable BARs - Enable ODL training mode Link training is also set up. Signed-off-by: Christophe Lombard <clombard@linux.vnet.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Diffstat (limited to 'include/pau.h')
-rw-r--r--include/pau.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/pau.h b/include/pau.h
index 9fbccb8..c0a0940 100644
--- a/include/pau.h
+++ b/include/pau.h
@@ -40,6 +40,8 @@ struct pau_dev {
struct dt_node *dn;
struct phb phb;
uint32_t status;
+ unsigned long train_start;
+ unsigned long train_timeout;
struct pau_bar ntl_bar;
struct pau_bar genid_bar;