Blackfin: bfin_mac: set MDCDIV based on SCLK
authorMike Frysinger <vapier@gentoo.org>
Tue, 14 Oct 2008 04:31:30 +0000 (00:31 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 2 Feb 2009 17:23:20 +0000 (12:23 -0500)
commit6b310a05f0d10c751f22468040932139f71c71d3
tree84eb5b4baea7aa5e18982c51fb18301c86b2de9c
parent6c6e042ab3bbfb5428e4cdeb38fa27728c63afdd
Blackfin: bfin_mac: set MDCDIV based on SCLK

Rather than hardcoding MDCDIV to 24 (which is correct for ~125mhz SCLK),
use the real algorithm so it gets set correctly regardless of SCLK.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Ben Warren <biggerbadderben@gmail.com>
drivers/net/bfin_mac.c