jme: GHC register control fix for new hardware
authorakeemting <akeem@jmicron.com>
Thu, 4 Dec 2008 05:19:16 +0000 (21:19 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Dec 2008 05:19:16 +0000 (21:19 -0800)
commit4f40bf46897ddb57f149c0758f0cef0cc7782f7f
tree98a0e6000bf92f26b0a2f75afbe8daf8f6f602d5
parent59e4220a1112bf65924bc2e47b5757911b6f349b
jme: GHC register control fix for new hardware

Due to the hardware design, except the first chip on the market,
other chips needs to setup the clock source for MAC processor
implicitly through Global Host Control Register(GHC).
(Strange design huh?)

10/100M uses the PCI-E as clock source, and 1G uses GPHY.

And I reordered the code a little, to make it easier to read.

Found-by: "Ethan" <ethanhsiao@jmicron.com>
Fixed-by: "akeemting" <akeem@jmicron.com>
Signed-off-by: "Guo-Fu Tseng" <cooldavid@cooldavid.org>
Acked-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/jme.c
drivers/net/jme.h