Devicetree
 help / color / mirror / Atom feed
From: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
To: Simon Horman <horms+renesas@verge.net.au>
Cc: linux-sh@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	devicetree-discuss@lists.ozlabs.org,
	Paul Mundt <lethal@linux-sh.org>,
	Magnus Damm <magnus.damm@gmail.com>,
	Bastian Hecht <hechtb@gmail.com>,
	Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>,
	Magnus Damm <damm@opensource.se>
Subject: Re: [PATCH 09/10] ARM: shmobile: sh7372: Do not initialise TMU when using DT
Date: Mon, 17 Dec 2012 10:58:39 +0100 (CET)	[thread overview]
Message-ID: <Pine.LNX.4.64.1212171056150.24007@axis700.grange> (raw)
In-Reply-To: <1355562224-29448-10-git-send-email-horms+renesas@verge.net.au>

Hi Simon

On Sat, 15 Dec 2012, Simon Horman wrote:

> This is in preparation for initialising INTC using DT.
> The proposed INTC configuration is not complete and does
> not allow the TMU to be initialised, to exclude it when using DT.

Not sure why you decide to not include incs, as I said, it is quite 
important on sh7372. If we do find a way to include it back, then this 
patch becomes unnecessary too.

Thanks
Guennadi

> Cc: Magnus Damm <damm@opensource.se>
> Cc: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
> ---
>  arch/arm/mach-shmobile/setup-sh7372.c |   17 ++++++++++++-----
>  1 file changed, 12 insertions(+), 5 deletions(-)
> 
> diff --git a/arch/arm/mach-shmobile/setup-sh7372.c b/arch/arm/mach-shmobile/setup-sh7372.c
> index a07954f..90af2e9 100644
> --- a/arch/arm/mach-shmobile/setup-sh7372.c
> +++ b/arch/arm/mach-shmobile/setup-sh7372.c
> @@ -968,7 +968,7 @@ static struct platform_device spu1_device = {
>  	.num_resources	= ARRAY_SIZE(spu1_resources),
>  };
>  
> -static struct platform_device *sh7372_early_devices[] __initdata = {
> +static struct platform_device *sh7372_early_devices_dt[] __initdata = {
>  	&scif0_device,
>  	&scif1_device,
>  	&scif2_device,
> @@ -977,6 +977,9 @@ static struct platform_device *sh7372_early_devices[] __initdata = {
>  	&scif5_device,
>  	&scif6_device,
>  	&cmt2_device,
> +};
> +
> +static struct platform_device *sh7372_early_devices[] __initdata = {
>  	&tmu00_device,
>  	&tmu01_device,
>  };
> @@ -1030,6 +1033,8 @@ void __init sh7372_add_standard_devices(void)
>  
>  	sh7372_init_pm_domains();
>  
> +	platform_add_devices(sh7372_early_devices_dt,
> +			    ARRAY_SIZE(sh7372_early_devices_dt));
>  	platform_add_devices(sh7372_early_devices,
>  			    ARRAY_SIZE(sh7372_early_devices));
>  
> @@ -1048,6 +1053,8 @@ static void __init sh7372_earlytimer_init(void)
>  
>  void __init sh7372_add_early_devices(void)
>  {
> +	early_platform_add_devices(sh7372_early_devices_dt,
> +				   ARRAY_SIZE(sh7372_early_devices_dt));
>  	early_platform_add_devices(sh7372_early_devices,
>  				   ARRAY_SIZE(sh7372_early_devices));
>  
> @@ -1064,8 +1071,8 @@ void __init sh7372_add_early_devices_dt(void)
>  {
>  	shmobile_setup_delay(800, 1, 3); /* Cortex-A8 @ 800MHz */
>  
> -	early_platform_add_devices(sh7372_early_devices,
> -				   ARRAY_SIZE(sh7372_early_devices));
> +	early_platform_add_devices(sh7372_early_devices_dt,
> +				   ARRAY_SIZE(sh7372_early_devices_dt));
>  
>  	/* setup early console here as well */
>  	shmobile_setup_console();
> @@ -1080,8 +1087,8 @@ void __init sh7372_add_standard_devices_dt(void)
>  	/* clocks are setup late during boot in the case of DT */
>  	sh7372_clock_init();
>  
> -	platform_add_devices(sh7372_early_devices,
> -			    ARRAY_SIZE(sh7372_early_devices));
> +	platform_add_devices(sh7372_early_devices_dt,
> +			    ARRAY_SIZE(sh7372_early_devices_dt));
>  
>  	of_platform_populate(NULL, of_default_bus_match_table,
>  			     sh7372_auxdata_lookup, NULL);
> -- 
> 1.7.10.4
> 

---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

  reply	other threads:[~2012-12-17  9:58 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-15  9:03 [RFC v7 00/10] ARM: shmobile: DT initialisation of INTC and GIC Simon Horman
2012-12-15  9:03 ` [PATCH 01/10] ARM: shmobile: Add support OF for INTC of shmobile Simon Horman
2012-12-18 10:00   ` Mark Rutland
     [not found]     ` <20121218095853.GA29231-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
2013-01-08  8:20       ` Simon Horman
2012-12-15  9:03 ` [PATCH 02/10] SH: intc: Add support OF of IRQ Simon Horman
2012-12-17  8:29   ` Laurent Pinchart
2012-12-18  0:31     ` Simon Horman
2012-12-15  9:03 ` [PATCH 03/10] ARM: shmobile: Add support OF of INTC for r8a7740 Simon Horman
2012-12-15  9:03 ` [PATCH 04/10] ARM: shmobile: Add support OF of INTC for sh7372 Simon Horman
2012-12-15  9:03 ` [PATCH 05/10] ARM: shmobile: Add DT table " Simon Horman
2012-12-17  8:44   ` Guennadi Liakhovetski
2012-12-18  0:37     ` Simon Horman
2012-12-18  9:34       ` Guennadi Liakhovetski
2012-12-15  9:03 ` [PATCH 06/10] ARM: shmobile: Add DT table of INTC for r8a7740 Simon Horman
2012-12-15  9:03 ` [PATCH 07/10] ARM: shmobile: Include DTSI of r8a7740 to armadillo800eva Simon Horman
2012-12-15  9:03 ` [PATCH 08/10] ARM: shmobile: r8a7740: Use DT initialisation of INTC Simon Horman
2012-12-15  9:03 ` [PATCH 09/10] ARM: shmobile: sh7372: Do not initialise TMU when using DT Simon Horman
2012-12-17  9:58   ` Guennadi Liakhovetski [this message]
2012-12-18  0:39     ` Simon Horman
2012-12-15  9:03 ` [PATCH 10/10] ARM: shmobile: sh7372: Use DT initialisation of INTC Simon Horman

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=Pine.LNX.4.64.1212171056150.24007@axis700.grange \
    --to=g.liakhovetski@gmx.de \
    --cc=damm@opensource.se \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=hechtb@gmail.com \
    --cc=horms+renesas@verge.net.au \
    --cc=lethal@linux-sh.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-sh@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=nobuhiro.iwamatsu.yj@renesas.com \
    /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