From: Dave Jiang <djiang@mvista.com>
To: galak@kernel.crashing.org, linuxppc-dev@ozlabs.org
Subject: Re: [PATCH] powerpc: publish 85xx soc dts entries as of_device on cds and ads platforms
Date: Thu, 07 Jun 2007 17:15:12 -0700 [thread overview]
Message-ID: <46689F90.205@mvista.com> (raw)
In-Reply-To: <20070522232849.GA26092@blade.az.mvista.com>
Dave Jiang wrote:
> Publish the devices listed in dts under SOC as of_device just like what
> mpc85xx_mds platforms do. The 85xx cds and ads platforms currently do not
> export the devices in dts as of_device.
>
> I need the memory controller, L2 cache-controller, and the PCI controller
> published as of_device so the mpc85xx EDAC driver can claim them for usage.
Since I've seen no activity in regard to this patch, can someone please tell me
if the devices in dts under the SOC entry for 85xx are suppose to be published
as of_device or is this patch wrong? I'm going to be looking at the mpc86xx
EDAC support and will have to do something similar. Am I suppose to setup
platform devices for the EDAC resources or use of_device? If of_device then I
should be publishing them similar to the mpc85xx_mds platforms right? If not,
I'll resubmit my platform device setup patch for the mpc85xx.... Thx!
> The mpc85xx EDAC driver can be found at:
> http://bluesmoke.sourceforge.net/
>
> It's in development to be pushed into the kernel.
>
> Signed-off-by: Dave Jiang <djiang@mvista.com>
>
> ---
>
> arch/powerpc/platforms/85xx/mpc85xx_ads.c | 19 +++++++++++++++++++
> arch/powerpc/platforms/85xx/mpc85xx_cds.c | 19 +++++++++++++++++++
> 2 files changed, 38 insertions(+), 0 deletions(-)
>
> diff --git a/arch/powerpc/platforms/85xx/mpc85xx_ads.c b/arch/powerpc/platforms/85xx/mpc85xx_ads.c
> index 5d27621..217cc13 100644
> --- a/arch/powerpc/platforms/85xx/mpc85xx_ads.c
> +++ b/arch/powerpc/platforms/85xx/mpc85xx_ads.c
> @@ -18,6 +18,8 @@
> #include <linux/delay.h>
> #include <linux/seq_file.h>
>
> +#include <asm/of_device.h>
> +#include <asm/of_platform.h>
> #include <asm/system.h>
> #include <asm/time.h>
> #include <asm/machdep.h>
> @@ -277,6 +279,23 @@ static int __init mpc85xx_ads_probe(void)
> return of_flat_dt_is_compatible(root, "MPC85xxADS");
> }
>
> +static struct of_device_id mpc85xx_ids[] = {
> + { .type = "soc", },
> + { .compatible = "soc", },
> + {},
> +};
> +
> +static int __init mpc85xx_publish_devices(void)
> +{
> + if (!machine_is(mpc85xx_ads))
> + return 0;
> +
> + of_platform_bus_probe(NULL, mpc85xx_ids, NULL);
> +
> + return 0;
> +}
> +device_initcall(mpc85xx_publish_devices);
> +
> define_machine(mpc85xx_ads) {
> .name = "MPC85xx ADS",
> .probe = mpc85xx_ads_probe,
> diff --git a/arch/powerpc/platforms/85xx/mpc85xx_cds.c b/arch/powerpc/platforms/85xx/mpc85xx_cds.c
> index 1490eb3..77ef0cf 100644
> --- a/arch/powerpc/platforms/85xx/mpc85xx_cds.c
> +++ b/arch/powerpc/platforms/85xx/mpc85xx_cds.c
> @@ -26,6 +26,8 @@
> #include <linux/module.h>
> #include <linux/fsl_devices.h>
>
> +#include <asm/of_device.h>
> +#include <asm/of_platform.h>
> #include <asm/system.h>
> #include <asm/pgtable.h>
> #include <asm/page.h>
> @@ -296,6 +298,23 @@ static int __init mpc85xx_cds_probe(void)
> return of_flat_dt_is_compatible(root, "MPC85xxCDS");
> }
>
> +static struct of_device_id mpc85xx_ids[] = {
> + { .type = "soc", },
> + { .compatible = "soc", },
> + {},
> +};
> +
> +static int __init mpc85xx_publish_devices(void)
> +{
> + if (!machine_is(mpc85xx_cds))
> + return 0;
> +
> + of_platform_bus_probe(NULL, mpc85xx_ids, NULL);
> +
> + return 0;
> +}
> +device_initcall(mpc85xx_publish_devices);
> +
> define_machine(mpc85xx_cds) {
> .name = "MPC85xx CDS",
> .probe = mpc85xx_cds_probe,
>
prev parent reply other threads:[~2007-06-08 0:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-22 23:28 [PATCH] powerpc: publish 85xx soc dts entries as of_device on cds and ads platforms Dave Jiang
2007-06-08 0:15 ` Dave Jiang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46689F90.205@mvista.com \
--to=djiang@mvista.com \
--cc=galak@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).