]> git.baikalelectronics.ru Git - kernel.git/commit
ravb: use clock rate as basis for GTI.TIV
authorSimon Horman <horms+renesas@verge.net.au>
Fri, 20 Nov 2015 19:29:39 +0000 (11:29 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Nov 2015 19:52:37 +0000 (14:52 -0500)
commit30ee39569e69f3339dbbfb966e3898b2f35c7279
treeb52caf6ca83bbec15847e69cc97c3736cd822872
parent8e441e3936f4dc8608de093225f395ea5a9ebd36
ravb: use clock rate as basis for GTI.TIV

The GTI.TIV may be set to 2GHz^2 / rate, where rate is
that of the clock of the device. Rather than assuming a
rate of 130MHz use the actual rate of the clock.

The motivation for this is to use the correct rate on
the r8a7795/Salvator-X which is advertised as 133MHz but
may differ depending on the extal present on the Salvator-X.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/ravb.h
drivers/net/ethernet/renesas/ravb_main.c