Hi Ertheb,
On 24/03/15 04:18, ertheb wrote:
> Hi,
>
> Very tiny change to avoid one warning with MCF5271. :-)
Thanks. I'll create a patch for that too.
Regards
Greg
> static void __init m527x_fec_init(void)
> {
> - u16 par;
> u8 v;
>
> /* Set multi-function pins to ethernet mode for fec0 */
> #if defined(CONFIG_M5271)
> v = readb(MCFGPIO_PAR_FECI2C);
> writeb(v | 0xf0, MCFGPIO_PAR_FECI2C);
> #else
> + u16 par;
> par = readw(MCFGPIO_PAR_FECI2C);
> writew(par | 0xf00, MCFGPIO_PAR_FECI2C);
> v = readb(MCFGPIO_PAR_FEC0HL);
> writeb(v | 0xc0, MCFGPIO_PAR_FEC0HL);
>
> /* Set multi-function pins to ethernet mode for fec1 */
> par = readw(MCFGPIO_PAR_FECI2C);
> writew(par | 0xa0, MCFGPIO_PAR_FECI2C);
> v = readb(MCFGPIO_PAR_FEC1HL);
> writeb(v | 0xc0, MCFGPIO_PAR_FEC1HL);
> #endif
> }
>
> ertheb.
> _______________________________________________
> uClinux-dev mailing list
> [email protected]
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by [email protected]
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
>
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev