diff options
author | Chris Packham <judge.packham@gmail.com> | 2018-06-09 20:46:16 +1200 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2018-06-13 13:54:17 -0500 |
commit | 5194ed7edca2ca4eaa2a48a6ef248432e3a4421e (patch) | |
tree | d3f460961e1fb6d525a9b8f2d58a19d5420bcaf4 /drivers/net/mvgbe.h | |
parent | c61221948c30710f2316b264f61efbf61c92a4aa (diff) | |
download | u-boot-5194ed7edca2ca4eaa2a48a6ef248432e3a4421e.tar.gz u-boot-5194ed7edca2ca4eaa2a48a6ef248432e3a4421e.tar.bz2 u-boot-5194ed7edca2ca4eaa2a48a6ef248432e3a4421e.zip |
net: mvgbe: extract common code for SMI wait
Combine repeated code from smi_reg_read/smi_reg_write into a common
function smi_wait_ready.
Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/mvgbe.h')
-rw-r--r-- | drivers/net/mvgbe.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/mvgbe.h b/drivers/net/mvgbe.h index c20d1d7edf..1dc9bbea2f 100644 --- a/drivers/net/mvgbe.h +++ b/drivers/net/mvgbe.h @@ -216,6 +216,7 @@ /* SMI register fields */ #define MVGBE_PHY_SMI_TIMEOUT 10000 +#define MVGBE_PHY_SMI_TIMEOUT_MS 1000 #define MVGBE_PHY_SMI_DATA_OFFS 0 /* Data */ #define MVGBE_PHY_SMI_DATA_MASK (0xffff << MVGBE_PHY_SMI_DATA_OFFS) #define MVGBE_PHY_SMI_DEV_ADDR_OFFS 16 /* PHY device address */ |