diff options
author | Frederic Barrat <fbarrat@linux.ibm.com> | 2019-03-12 21:35:13 +0100 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-03-13 21:55:18 -0500 |
commit | e4efac7d8c9041a64643c28ae340e9e53d345308 (patch) | |
tree | 08e65d0d83b5a381225d012d29da4be871d20b06 /hw/npu2-opencapi.c | |
parent | ce9dd46d36d0a30a1b8010f1ba3ddc62c4ddd26a (diff) | |
download | blackbird-skiboot-e4efac7d8c9041a64643c28ae340e9e53d345308.tar.gz blackbird-skiboot-e4efac7d8c9041a64643c28ae340e9e53d345308.zip |
npu2-opencapi: ODL should be in reset when enabled
We haven't hit any problem so far, but from the ODL designer, the ODL
should be in reset when it is enabled.
The ODL remains in reset until we start a fundamental reset to
initiate link training. We still assert and deassert the ODL reset
signal as part of the normal procedure just before training the
link. Asserting is therefore useless at boot, since the ODL is already
in reset, but we keep it as it's only a scom write and it's needed
when we reset/retrain from the OS.
Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw/npu2-opencapi.c')
-rw-r--r-- | hw/npu2-opencapi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/npu2-opencapi.c b/hw/npu2-opencapi.c index 87e64492..223888e6 100644 --- a/hw/npu2-opencapi.c +++ b/hw/npu2-opencapi.c @@ -308,6 +308,12 @@ static void enable_odl_phy_mux(uint32_t gcid, int index) assert(false); } + /* + * ODL must be in reset when enabling. + * It stays in reset until the link is trained + */ + assert_odl_reset(gcid, index); + /* PowerBus OLL PHY Training Config Register */ xscom_read(gcid, phy_config_scom, ®); |