public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Santosh Shilimkar <santosh.shilimkar@ti.com>
Cc: linux@arm.linux.org.uk, linux-arm-kernel@lists.arm.linux.org.uk,
	linux-omap@vger.kernel.org
Subject: Re: [PATCH 1/4] ARM: OMAP4: Add minimal support for omap4
Date: Wed, 20 May 2009 08:40:01 -0700	[thread overview]
Message-ID: <20090520154000.GE8308@atomide.com> (raw)
In-Reply-To: <1242824343-5956-1-git-send-email-santosh.shilimkar@ti.com>

Hi,

Few more (mostly cosmetic) comments below.

* Santosh Shilimkar <santosh.shilimkar@ti.com> [090520 05:59]:
> This patch adds the support for OMAP4. The platform and machine specific
> headers and sources updated for OMAP4430 SDP platform.
> 
> OMAP4430 is Texas Instrument's SOC based on ARM Cortex-A9 SMP architecture.
> It's a dual core SOC with GIC used for interrupt handling and SCU for cache
> coherency.
> 
> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
> Signed-off-by: Tony Lindgren <tony@atomide.com>
> ---
>  arch/arm/mach-omap2/gpmc.c                    |    6 +
>  arch/arm/mach-omap2/id.c                      |    8 ++-
>  arch/arm/mach-omap2/io.c                      |   52 +++++++++-
>  arch/arm/mach-omap2/serial.c                  |    7 ++
>  arch/arm/mach-omap2/timer-gp.c                |    9 ++-
>  arch/arm/plat-omap/common.c                   |   31 ++++++
>  arch/arm/plat-omap/devices.c                  |    2 +
>  arch/arm/plat-omap/dma.c                      |   23 ++++-
>  arch/arm/plat-omap/dmtimer.c                  |   59 ++++++++++-
>  arch/arm/plat-omap/gpio.c                     |  134 ++++++++++++++++++------
>  arch/arm/plat-omap/include/mach/clock.h       |    8 +-
>  arch/arm/plat-omap/include/mach/common.h      |    1 +
>  arch/arm/plat-omap/include/mach/control.h     |    7 +-
>  arch/arm/plat-omap/include/mach/cpu.h         |   21 ++++-
>  arch/arm/plat-omap/include/mach/debug-macro.S |    2 +-
>  arch/arm/plat-omap/include/mach/dma.h         |    1 +
>  arch/arm/plat-omap/include/mach/entry-macro.S |   46 ++++++++-
>  arch/arm/plat-omap/include/mach/hardware.h    |    1 +
>  arch/arm/plat-omap/include/mach/io.h          |   37 +++++++
>  arch/arm/plat-omap/include/mach/irqs.h        |   89 ++++++++++++++++
>  arch/arm/plat-omap/include/mach/memory.h      |    3 +-
>  arch/arm/plat-omap/include/mach/omap44xx.h    |   46 +++++++++
>  arch/arm/plat-omap/include/mach/serial.h      |   16 +++-
>  arch/arm/plat-omap/io.c                       |   29 +++++-
>  arch/arm/plat-omap/mux.c                      |    3 +
>  arch/arm/plat-omap/sram.c                     |   21 ++++
>  26 files changed, 600 insertions(+), 62 deletions(-)

<snip snip>

> --- a/arch/arm/mach-omap2/io.c
> +++ b/arch/arm/mach-omap2/io.c
> @@ -30,6 +32,7 @@
>  #include <mach/sdrc.h>
>  #include <mach/gpmc.h>
>  
> +#ifndef CONFIG_ARCH_OMAP4	/* FIXME: Remove this once clkdev is ready */
>  #include "clock.h"
>  
>  #include <mach/powerdomain.h>

Maybe move this part to your clk stub patch?


> @@ -198,9 +244,11 @@ void __init omap2_map_common_io(void)
>  void __init omap2_init_common_hw(struct omap_sdrc_params *sp)
>  {
>  	omap2_mux_init();
> +#ifndef CONFIG_ARCH_OMAP4 /* FIXME: Remove this once the clkdev is ready */
>  	pwrdm_init(powerdomains_omap);
>  	clkdm_init(clockdomains_omap, clkdm_pwrdm_autodeps);
>  	omap2_clk_init();
>  	omap2_sdrc_init(sp);
> +#endif
>  	gpmc_init();
>  }

And this too?


> --- a/arch/arm/mach-omap2/timer-gp.c
> +++ b/arch/arm/mach-omap2/timer-gp.c
> @@ -82,7 +83,8 @@ static void omap2_gp_timer_set_mode(enum clock_event_mode mode,
>  	case CLOCK_EVT_MODE_PERIODIC:
>  		period = clk_get_rate(omap_dm_timer_get_fclk(gptimer)) / HZ;
>  		period -= 1;
> -
> +		if (cpu_is_omap44xx())
> +			period = 0xFF;	/* FIXME: */
>  		omap_dm_timer_set_load_start(gptimer, 1, 0xffffffff - period);
>  		break;
>  	case CLOCK_EVT_MODE_ONESHOT:

One more hex 0xFF to lower case here. Maybe grep your patches for 0x
and lower case them for consistent hex addresses?

Regards,

Tony



  parent reply	other threads:[~2009-05-20 15:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-20 12:59 [PATCH 1/4] ARM: OMAP4: Add minimal support for omap4 Santosh Shilimkar
2009-05-20 12:59 ` [PATCH 2/4] ARM: OMAP4: Clock stubs since CLKDEV not in yet Santosh Shilimkar
2009-05-20 12:59   ` [PATCH 3/4] ARM: OMAP4: Add support for 4430 SDP Santosh Shilimkar
2009-05-20 12:59     ` [PATCH 4/4] ARM: OMAP4: Add defconfig " Santosh Shilimkar
2009-05-25 13:28   ` [PATCH 2/4] ARM: OMAP4: Clock stubs since CLKDEV not in yet Shilimkar, Santosh
2009-05-20 15:40 ` Tony Lindgren [this message]
2009-05-21  5:24   ` [PATCH 1/4] ARM: OMAP4: Add minimal support for omap4 Shilimkar, Santosh
2009-05-27 23:36 ` Tony Lindgren
2009-05-28  4:05   ` Shilimkar, Santosh

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=20090520154000.GE8308@atomide.com \
    --to=tony@atomide.com \
    --cc=linux-arm-kernel@lists.arm.linux.org.uk \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=santosh.shilimkar@ti.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