Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

setup and detect 2nd phy on MCF5275 in FEC driver

Added code to recognize the second interface on M5275 boards.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Mike Cruse and committed by
Linus Torvalds
b8a94b3d f861d62e

+23
+23
drivers/net/fec.c
··· 1427 1427 *gpio_pehlpar = 0xc0; 1428 1428 } 1429 1429 #endif 1430 + 1431 + #if defined(CONFIG_M527x) 1432 + /* Set up gpio outputs for MII lines */ 1433 + { 1434 + volatile u8 *gpio_par_fec; 1435 + volatile u16 *gpio_par_feci2c; 1436 + 1437 + gpio_par_feci2c = (volatile u16 *)(MCF_IPSBAR + 0x100082); 1438 + /* Set up gpio outputs for FEC0 MII lines */ 1439 + gpio_par_fec = (volatile u8 *)(MCF_IPSBAR + 0x100078); 1440 + 1441 + *gpio_par_feci2c |= 0x0f00; 1442 + *gpio_par_fec |= 0xc0; 1443 + 1444 + #if defined(CONFIG_FEC2) 1445 + /* Set up gpio outputs for FEC1 MII lines */ 1446 + gpio_par_fec = (volatile u8 *)(MCF_IPSBAR + 0x100079); 1447 + 1448 + *gpio_par_feci2c |= 0x00a0; 1449 + *gpio_par_fec |= 0xc0; 1450 + #endif /* CONFIG_FEC2 */ 1451 + } 1452 + #endif /* CONFIG_M527x */ 1430 1453 } 1431 1454 1432 1455 static void __inline__ fec_set_mii(struct net_device *dev, struct fec_enet_private *fep)