
1 Jul
2009
1 Jul
'09
9:25 p.m.
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;
#endifvolatile gpio_n_t *iop = &(par_io->ioport[MDIO_PORT]);
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