Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63155
b: refs/heads/master
c: b8a94b3
h: refs/heads/master
i:
  63153: 270b5ad
  63151: 2aa3688
v: v3
  • Loading branch information
Mike Cruse authored and Linus Torvalds committed Jul 30, 2007
1 parent d8d5016 commit 1258c22
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f861d62e12d3f732a36634e9e6b3b7b0112fef60
refs/heads/master: b8a94b3dece0cdfdb42460bab28c454f71d3fa1d
23 changes: 23 additions & 0 deletions trunk/drivers/net/fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1427,6 +1427,29 @@ static void __inline__ fec_request_intrs(struct net_device *dev)
*gpio_pehlpar = 0xc0;
}
#endif

#if defined(CONFIG_M527x)
/* Set up gpio outputs for MII lines */
{
volatile u8 *gpio_par_fec;
volatile u16 *gpio_par_feci2c;

gpio_par_feci2c = (volatile u16 *)(MCF_IPSBAR + 0x100082);
/* Set up gpio outputs for FEC0 MII lines */
gpio_par_fec = (volatile u8 *)(MCF_IPSBAR + 0x100078);

*gpio_par_feci2c |= 0x0f00;
*gpio_par_fec |= 0xc0;

#if defined(CONFIG_FEC2)
/* Set up gpio outputs for FEC1 MII lines */
gpio_par_fec = (volatile u8 *)(MCF_IPSBAR + 0x100079);

*gpio_par_feci2c |= 0x00a0;
*gpio_par_fec |= 0xc0;
#endif /* CONFIG_FEC2 */
}
#endif /* CONFIG_M527x */
}

static void __inline__ fec_set_mii(struct net_device *dev, struct fec_enet_private *fep)
Expand Down

0 comments on commit 1258c22

Please sign in to comment.