[PATCH 3/3] powerpc: mpc5121: enable support for more PSC UARTs

Grant Likely grant.likely at secretlab.ca
Wed Feb 10 03:20:03 EST 2010


On Tue, Feb 2, 2010 at 12:47 AM, Anatolij Gustschin <agust at denx.de> wrote:
> MPC5121 has 12 PSC devices. Enable UART support for all of
> them by defining the number of max. PSCs depending on
> selection of PPC_MPC512x platform support.
>
> Signed-off-by: Anatolij Gustschin <agust at denx.de>
> Cc: Grant Likely <grant.likely at secretlab.ca>
> ---
>  arch/powerpc/include/asm/mpc52xx_psc.h |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/arch/powerpc/include/asm/mpc52xx_psc.h b/arch/powerpc/include/asm/mpc52xx_psc.h
> index fb84120..42561f4 100644
> --- a/arch/powerpc/include/asm/mpc52xx_psc.h
> +++ b/arch/powerpc/include/asm/mpc52xx_psc.h
> @@ -25,7 +25,11 @@
>  #include <asm/types.h>
>
>  /* Max number of PSCs */
> +#ifdef CONFIG_PPC_MPC512x
> +#define MPC52xx_PSC_MAXNUM     12
> +#else
>  #define MPC52xx_PSC_MAXNUM     6
> +#endif

It would be nice to be rid of the stupid pre-allocated port structures
entirely, but that is a much more invasive and complex change.
Regardless;

Acked-by: Grant Likely <grant.likely at secretlab.ca>

Please repost this series and add linux-kernel at vger.kernel.org and
gregkh at suse.de to the cc: list.  I'm happy to either let Greg pick
this series up, or pick up into my tree, but we need to coordinate
with Greg either way.

./scripts/get_maintainer.pl is your friend when posting patches.

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.


More information about the Linuxppc-dev mailing list