diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2019-09-24 18:43:13 -0700 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-10-14 12:52:11 +0200 |
commit | 3dbc50408b2514125a7170da77912688eb501655 (patch) | |
tree | 4c77f2418f075cd714320e66be7a9035b6996807 /commands | |
parent | 6e12f17acaa6de4144af816e6d176df8a6b083de (diff) | |
download | barebox-3dbc50408b2514125a7170da77912688eb501655.tar.gz barebox-3dbc50408b2514125a7170da77912688eb501655.tar.xz |
net: dsa: mv88e6xxx: Wait for EEPROM done after HW reset
Based on a unpublished patch from Andrew Lunn:
When the switch is hardware reset, it reads the contents of the
EEPROM. This can contain instructions for programming values into
registers and to perform waits between such programming. Reading
the EEPROM can take longer than the 100ms
mv88e6xxx_hardware_reset() waits after deasserting the reset
GPIO. So poll the EEPROM done bit to ensure it is complete.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
orignal patch augmented to have necessary Global 1 plubming, ported to
Barebox and slightly changed.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: Chris Healy <cphealy@gmail.com>
Cc: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
0 files changed, 0 insertions, 0 deletions