gianfar: add support for SGMII
authorKapil Juneja <Kapil.Juneja@freescale.com>
Fri, 11 May 2007 23:25:11 +0000 (18:25 -0500)
committerJeff Garzik <jeff@garzik.org>
Mon, 9 Jul 2007 02:16:38 +0000 (22:16 -0400)
commitd3c12873c36005263286cf5660663c8c10f9d2b5
tree8b51ae1aec834ece23271e6b569d7c4189422ad5
parent0cefeebaf3da39d768bffcf62460fe2088e824ef
gianfar: add support for SGMII

Add code for initialising and configuring TBI interface and
programming it for connecting to on-chip SERDES (Lynx PHY)
in case of SGMII mode selected through HRCW at reset.

also add defines for TBI register configuration. TBI
interface is programmed towards the SERDES.

refactored mdio read/write functions to differentiate
programming local interface MII regs (e.g., for TBI) from
always programming the mdio master (TSEC1, for programming
the PHYs).

Signed-off-by: Kapil Juneja <Kapil.Juneja@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/gianfar.c
drivers/net/gianfar.h
drivers/net/gianfar_mii.c