diff options
author | Wolfgang Denk <wd@denx.de> | 2008-07-10 22:09:39 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-10 22:09:39 +0200 |
commit | 4b13860e746b65e796213f2c97de8a80db8b68be (patch) | |
tree | df6524ccfaf6ee1547ecacb13f52f57198926ce1 /cpu/mpc512x/fec.c | |
parent | 79d14faf5471b7fdc4244cb6299e94e8170d826e (diff) | |
parent | f31c49db2a5e076f415c0785eb37f67f2faa5fc8 (diff) | |
download | u-boot-imx-4b13860e746b65e796213f2c97de8a80db8b68be.zip u-boot-imx-4b13860e746b65e796213f2c97de8a80db8b68be.tar.gz u-boot-imx-4b13860e746b65e796213f2c97de8a80db8b68be.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-mpc512x
Diffstat (limited to 'cpu/mpc512x/fec.c')
-rw-r--r-- | cpu/mpc512x/fec.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/cpu/mpc512x/fec.c b/cpu/mpc512x/fec.c index c226a8a..e9df7de 100644 --- a/cpu/mpc512x/fec.c +++ b/cpu/mpc512x/fec.c @@ -604,13 +604,10 @@ static int mpc512x_fec_recv (struct eth_device *dev) /********************************************************************/ int mpc512x_fec_initialize (bd_t * bis) { - - immap_t *im = (immap_t*) CFG_IMMR; mpc512x_fec_priv *fec; struct eth_device *dev; int i; char *tmp, *end, env_enetaddr[6]; - uint32 *reg; void * bd; fec = (mpc512x_fec_priv *) malloc (sizeof(*fec)); @@ -639,18 +636,6 @@ int mpc512x_fec_initialize (bd_t * bis) fec512x_miiphy_read, fec512x_miiphy_write); #endif - /* - * Initialize I\O pins - */ - reg = (uint32 *) &(im->io_ctrl.regs[PSC0_0_IDX]); - - for (i = 0; i < 15; i++) - reg[i] = IOCTRL_MUX_FEC | 0x00000001; - - im->io_ctrl.regs[SPDIF_TXCLOCK_IDX] = IOCTRL_MUX_FEC | 0x00000001; - im->io_ctrl.regs[SPDIF_TX_IDX] = IOCTRL_MUX_FEC | 0x00000001; - im->io_ctrl.regs[SPDIF_RX_IDX] = IOCTRL_MUX_FEC | 0x00000001; - /* Clean up space FEC's MIB and FIFO RAM ...*/ memset ((void *) MPC512X_FEC + 0x200, 0x00, 0x400); |