[PATCH v4 02/13] [POWERPC] Add 'fsl, lpb' bus type for MPC5200 LocalPlus Bus
Grant Likely
grant.likely at secretlab.ca
Thu Jan 3 10:37:00 EST 2008
On 11/9/07, Marian Balakowicz <m8 at semihalf.com> wrote:
> Define MPC52xx specific device id list, add new
> 'fsl,lpb' compatible id for LocalPlus Bus.
I'll pick this up, but I'm going to drop the .compatible="soc" line.
(I'd like to drop the device_type="soc" line also, but that requires a
bit more thought first).
Cheers,
g.
>
> Signed-off-by: Marian Balakowicz <m8 at semihalf.com>
> Acked-by: David Gibson <david at gibson.dropbear.id.au>
> ---
>
> arch/powerpc/platforms/52xx/mpc52xx_common.c | 9 ++++++++-
> 1 files changed, 8 insertions(+), 1 deletions(-)
>
>
> diff --git a/arch/powerpc/platforms/52xx/mpc52xx_common.c b/arch/powerpc/platforms/52xx/mpc52xx_common.c
> index 9850685..2df97c5 100644
> --- a/arch/powerpc/platforms/52xx/mpc52xx_common.c
> +++ b/arch/powerpc/platforms/52xx/mpc52xx_common.c
> @@ -124,11 +124,18 @@ mpc5200_setup_xlb_arbiter(void)
> iounmap(xlb);
> }
>
> +static struct of_device_id mpc52xx_ids[] = {
> + { .type = "soc", },
> + { .compatible = "soc", },
> + { .compatible = "fsl,lpb", },
> + {},
> +};
> +
> void __init
> mpc52xx_declare_of_platform_devices(void)
> {
> /* Find every child of the SOC node and add it to of_platform */
> - if (of_platform_bus_probe(NULL, NULL, NULL))
> + if (of_platform_bus_probe(NULL, mpc52xx_ids, NULL))
> printk(KERN_ERR __FILE__ ": "
> "Error while probing of_platform bus\n");
> }
>
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev at ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev
>
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely at secretlab.ca
(403) 399-0195
More information about the Linuxppc-dev
mailing list