Of course, looking at the device tree, rapidio is a device, not a bus,
because it does not have a device_type and it does not have any
children
of its own.
It's a device _of course_, but it's also a bus parent, since
it has a "#address-cells" not equal to zero (and, if this used
real OF, it
On Thursday 28 June 2007, Zhang Wei-r63237 wrote:
> > > +static __init int mpc86xx_of_device_init(void)
> > > +{
> > > + return of_platform_bus_probe(NULL, mpc86xx_of_ids, NULL);
> > > +}
> >
> > This will add any devices below the "fsl,rapidio-delta" device
> > as an of_device. Is that
Hi, Arnd,
>
> On Wednesday 27 June 2007, Zhang Wei wrote:
> > +static struct of_device_id mpc86xx_of_ids[] = {
> > + { .type = "soc", },
> > + { .compatible = "fsl,rapidio-delta", },
> > + {},
> > +};
> > +
> > +static __init int mpc86xx_of_device_init(void)
> > +{
> > +
Hi, Arnd,
On Wednesday 27 June 2007, Zhang Wei wrote:
+static struct of_device_id mpc86xx_of_ids[] = {
+ { .type = soc, },
+ { .compatible = fsl,rapidio-delta, },
+ {},
+};
+
+static __init int mpc86xx_of_device_init(void)
+{
+ return
On Thursday 28 June 2007, Zhang Wei-r63237 wrote:
+static __init int mpc86xx_of_device_init(void)
+{
+ return of_platform_bus_probe(NULL, mpc86xx_of_ids, NULL);
+}
This will add any devices below the fsl,rapidio-delta device
as an of_device. Is that what you actually want?
Of course, looking at the device tree, rapidio is a device, not a bus,
because it does not have a device_type and it does not have any
children
of its own.
It's a device _of course_, but it's also a bus parent, since
it has a #address-cells not equal to zero (and, if this used
real OF, it
On Wednesday 27 June 2007, Zhang Wei wrote:
> +static struct of_device_id mpc86xx_of_ids[] = {
> + { .type = "soc", },
> + { .compatible = "fsl,rapidio-delta", },
> + {},
> +};
> +
> +static __init int mpc86xx_of_device_init(void)
> +{
> + return of_platform_bus_probe(NULL,
Add the platform device support with RapidIO to MPC8641HPCN platform.
Signed-off-by: Zhang Wei <[EMAIL PROTECTED]>
---
arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | 16
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
Add the platform device support with RapidIO to MPC8641HPCN platform.
Signed-off-by: Zhang Wei [EMAIL PROTECTED]
---
arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | 16
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
On Wednesday 27 June 2007, Zhang Wei wrote:
+static struct of_device_id mpc86xx_of_ids[] = {
+ { .type = soc, },
+ { .compatible = fsl,rapidio-delta, },
+ {},
+};
+
+static __init int mpc86xx_of_device_init(void)
+{
+ return of_platform_bus_probe(NULL,
10 matches
Mail list logo