From: Haiying Wang Date: Tue, 8 Feb 2011 12:09:35 -0500 Subject: [U-Boot] [PATCH 4/4 v2] p1021mds: add QE and UEC support In-Reply-To: References: <1297113256-7665-1-git-send-email-Haiying.Wang@freescale.com> <1297113256-7665-4-git-send-email-Haiying.Wang@freescale.com> Message-ID: <1297184975.2001.5.camel@haiying-laptop> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, 2011-02-08 at 10:52 -0600, Kumar Gala wrote: > > +#endif > > > > uec = (uec_private_t *)dev->priv; > > > > if (uec->the_first_run == 0) { > > +#ifdef CONFIG_P1021 > > + /* reset micrel phy for each UEC */ > > + clrbits_8((u8 *)(CONFIG_SYS_BCSR_BASE + 11), BCSR11_ENET_MICRST); > > + udelay(200); > > + setbits_8((u8 *)(CONFIG_SYS_BCSR_BASE + 11), BCSR11_ENET_MICRST); > > + > > Hmm, this is board specific, can we not do this in board_*_f or _r? > It did not work to do this in board_*_f/r. The board designer to me to reset the phy before initializing it for each UEC separately. Here is the right place to do so. Haiying