[U-Boot] [PATCH] 83xx: UEC: Added support for bitBang MII driver access to PHYs

Peter Tyser ptyser at xes-inc.com
Wed Jul 1 21:25:43 CEST 2009


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



More information about the U-Boot mailing list