net: fec_mxc: configure MDIO hold time
authorMåns Rullgård <mans@mansr.com>
Tue, 8 Dec 2015 15:38:45 +0000 (15:38 +0000)
committerStefano Babic <sbabic@denx.de>
Sun, 3 Jan 2016 14:26:06 +0000 (15:26 +0100)
commit843a3e5893a713a3df752d30d31861d5b03ad75c
treec857d4ad9695906c6c690fc0df98838da12d5f0a
parent434afa809e91bbf67e003df8daf0e2f39c48ce59
net: fec_mxc: configure MDIO hold time

If the host clock frequency is higher than 100 MHz, the MDIO hold
time needs to be increased from its current setting of one cycle in
order to meet the specified minium of 10 ns.  Writing an appropriate
value to the HOLDTIME field of the MII_SPEED register achieves this.

Comment copied from Linux kernel.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Reviewed-by: Eric Nelson <eric@nelint.com>
drivers/net/fec_mxc.c