From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Tyser Date: Wed, 01 Jul 2009 14:25:43 -0500 Subject: [U-Boot] [PATCH] 83xx: UEC: Added support for bitBang MII driver access to PHYs In-Reply-To: <4A4BA550.5030400@RuggedCom.com> References: <4A4BA550.5030400@RuggedCom.com> Message-ID: <1246476343.19741.21.camel@localhost.localdomain> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Richard, > -#if !(defined(CONFIG_EP8248) || defined(CONFIG_EP82XXM)) > - volatile ioport_t *iop = ioport_addr ((immap_t *) CONFIG_SYS_IMMR, MDIO_PORT); > +#if !(defined(CONFIG_EP8248) || defined(CONFIG_EP82XXM)) \ > + && !defined(CONFIG_MPC83XX) > + volatile gpio_n_t *iop = ioport_addr ((immap_t *) CONFIG_SYS_IMMR, MDIO_PORT); > +#elif defined(CONFIG_MPC83XX) > + volatile immap_t *im = (volatile immap_t *)CONFIG_SYS_IMMR; > + volatile qepio83xx_t *par_io = (volatile qepio83xx_t *)&im->qepio; > + volatile gpio_n_t *iop = &(par_io->ioport[MDIO_PORT]); > #endif CONFIG_MPC83XX was recently replaced with CONFIG_MPC83xx. I didn't look through the patches with a fine-toothed comb, but it looked like there were a couple of instances of CONFIG_MPC83XX. Best, Peter