[PATCH 14/14] [orion5x] Refactor mpp code to use common orion platform mpp.

Andrew Lunn andrew at lunn.ch
Sun May 8 13:28:32 EDT 2011


> > diff --git a/arch/arm/mach-orion5x/mpp.h b/arch/arm/mach-orion5x/mpp.h
..

 > +#define MPP19_UNUSED ?? ?? ?? ?? ?? MPP(19, 0x0, 1, 1, 1, ?? 1, ?? 1)
> > +#define MPP19_GPIO ?? ?? ?? ?? ?? ?? MPP(19, 0x5, 1, 1, 0, ?? 1, ?? 0)
> > +#define MPP19_GIGE ?? ?? ?? ?? ?? ?? ??MPP(19, 0x1, 1, 1, 1, ?? 1, ?? 1)
> > +#define MPP19_UART ?? ?? ?? ?? ?? ?? ??MPP(19, 0x0, 1, 1, 0, ?? 1, ?? 1)
>
> there have been some effort to enable building single image for
> orion5x/kw/dove etc, and I think the defines here collides with those
> defined by kw.

Please could you point me at this code which merges these three.

I also don't see how these defines cause a problem. In fact, having
just one generic mpp configuration function helps in building one
image for all these SoC. Each SoC will have to retain its per pin
configuration, which is what the mach-*/mpp.h contains, but these
mpp.h are not in the platform, so i don't see how they hinder a single
image.

	Thanks
		Andrew



More information about the linux-arm-kernel mailing list