Skip to content

Commit

Permalink
m68knommu: use definitions for the ColdFire 528x FEC multi-function pins
Browse files Browse the repository at this point in the history
Currently the setup code for the FEC multi-function pins on the ColdFire 528x
has the addresses hard coded in the code. Use the register defines that
already exist for this.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
  • Loading branch information
Greg Ungerer committed Sep 27, 2012
1 parent f821e34 commit a91f741
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/m68k/platform/coldfire/m528x.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ static void __init m528x_fec_init(void)
u16 v16;

/* Set multi-function pins to ethernet mode for fec0 */
v16 = readw(MCF_IPSBAR + 0x100056);
writew(v16 | 0xf00, MCF_IPSBAR + 0x100056);
writeb(0xc0, MCF_IPSBAR + 0x100058);
v16 = readw(MCFGPIO_PASPAR);
writew(v16 | 0xf00, MCFGPIO_PASPAR);
writeb(0xc0, MCFGPIO_PEHLPAR);
}

/***************************************************************************/
Expand Down

0 comments on commit a91f741

Please sign in to comment.