diff options
author | Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachienergy.com> | 2021-11-16 15:51:47 +0300 |
---|---|---|
committer | Priyanka Jain <priyanka.jain@nxp.com> | 2022-02-01 12:37:28 +0300 |
commit | 70003e52f4ed9b22a75ac4d084ceee65d9b14ea1 (patch) | |
tree | eaf5a7b0fa665d1dea235aab033a388e8512ffea /board | |
parent | 639ca4b7f121b50a88516717313fdff507b82cba (diff) | |
download | u-boot-70003e52f4ed9b22a75ac4d084ceee65d9b14ea1.tar.xz |
km/ls102xa: dbg phy prst depends on piggy presence
The PHY for the debug interface was placed on the board for the
pg_wcom_ls102x. Hence only when a piggy is plugged, a RJ45 jack
including magnetics is connected to the MDI of the PHY. Without a
piggy the MDI lines are left floating and it does not make sense to
have an active debug PHY.
In case of expu1 an active PHY without a piggy even led to increased
jitter for syncE.
This patch only deactivates the prst line of the debug PHY when a piggy
is detected persent.
Signed-off-by: Rainer Boschung <rainer.boschung@hitachienergy.com>
Signed-off-by: Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachienergy.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c b/board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c index 2be2b64df5..cff18dcd63 100644 --- a/board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c +++ b/board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c @@ -91,8 +91,10 @@ int board_early_init_f(void) qrio_prstcfg(WCOM_CLIPS_RST, PRSTCFG_POWUP_UNIT_RST); qrio_prst(WCOM_CLIPS_RST, false, false); #endif + + /* deasset debug phy reset only if piggy is present */ qrio_prstcfg(KM_DBG_ETH_RST, PRSTCFG_POWUP_UNIT_CORE_RST); - qrio_prst(KM_DBG_ETH_RST, false, false); + qrio_prst(KM_DBG_ETH_RST, !qrio_get_pgy_pres_pin(), false); i2c_deblock_gpio_cfg(); |