From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: Santosh Shilimkar <santosh.shilimkar@ti.com>
Cc: linux-arm-kernel@lists.arm.linux.org.uk, linux-omap@vger.kernel.org
Subject: Re: [RESUBMIT][PATCH 5/7] OMAP4: Update common omap machine specific sources.
Date: Sat, 16 May 2009 11:07:32 +0100 [thread overview]
Message-ID: <20090516100732.GK15328@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <1241677756-28756-5-git-send-email-santosh.shilimkar@ti.com>
I think this is going to take several separate reviews to group stuff
together.
On Thu, May 07, 2009 at 11:59:14AM +0530, Santosh Shilimkar wrote:
> This patch updates the common machine spcific source files for OMAP4430.
Spelling - "specific".
> diff --git a/arch/arm/mach-omap2/clockdomain.c b/arch/arm/mach-omap2/clockdomain.c
> index 0e7d501..1497d18 100644
> --- a/arch/arm/mach-omap2/clockdomain.c
> +++ b/arch/arm/mach-omap2/clockdomain.c
> @@ -177,6 +177,8 @@ void clkdm_init(struct clockdomain **clkdms,
> struct clockdomain **c = NULL;
> struct clkdm_pwrdm_autodep *autodep = NULL;
>
> + if (cpu_is_omap44xx())
> + return ; /* FIXME: Not yet support */
> if (clkdms)
> for (c = clkdms; *c; c++)
> clkdm_register(*c);
> diff --git a/arch/arm/mach-omap2/powerdomain.c b/arch/arm/mach-omap2/powerdomain.c
> index 73e2971..7fc03b8 100644
> --- a/arch/arm/mach-omap2/powerdomain.c
> +++ b/arch/arm/mach-omap2/powerdomain.c
> @@ -117,6 +117,8 @@ void pwrdm_init(struct powerdomain **pwrdm_list)
> {
> struct powerdomain **p = NULL;
>
> + if (cpu_is_omap44xx())
> + return ; /* FIXME: Not supported yet */
> if (pwrdm_list)
> for (p = pwrdm_list; *p; p++)
> pwrdm_register(*p);
> diff --git a/arch/arm/mach-omap2/sdrc.c b/arch/arm/mach-omap2/sdrc.c
> index 2a30060..944da57 100644
> --- a/arch/arm/mach-omap2/sdrc.c
> +++ b/arch/arm/mach-omap2/sdrc.c
> @@ -79,6 +79,8 @@ void __init omap2_sdrc_init(struct omap_sdrc_params *sp)
> {
> u32 l;
>
> + if (cpu_is_omap44xx())
> + return; /* SDRC not supported */
> l = sms_read_reg(SMS_SYSCONFIG);
> l &= ~(0x3 << 3);
> l |= (0x2 << 3);
> diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c
> index 916fcd3..6db7791 100644
> --- a/arch/arm/mach-omap2/io.c
> +++ b/arch/arm/mach-omap2/io.c
> @@ -200,7 +247,9 @@ void __init omap2_init_common_hw(struct omap_sdrc_params *sp)
> omap2_mux_init();
> pwrdm_init(powerdomains_omap);
> clkdm_init(clockdomains_omap, clkdm_pwrdm_autodeps);
> +#ifndef CONFIG_ARCH_OMAP4 /* FIXME: Remove this once the clkdev is ready */
> omap2_clk_init();
> +#endif
> omap2_sdrc_init(sp);
> gpmc_init();
> }
I'm not sure why:
1. you're using a (possible) run time check in sdrc.c, clockdomain.c and
powerdomain.c, but a compile time check in io.c
2. you don't leave sdrc.c, clockdomain.c and powerdomain.c alone and just
disable the three initialisation calls inside omap2_init_common_hw().
next prev parent reply other threads:[~2009-05-16 10:07 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-07 6:29 [RESUBMIT][PATCH 1/7] OMAP4: Create architecture macros and config entries Santosh Shilimkar
2009-05-07 6:29 ` [RESUBMIT][PATCH 2/7] OMAP4: Create board support for OMAP_4430SDP Santosh Shilimkar
2009-05-07 6:29 ` [RESUBMIT][PATCH 3/7] OMAP4: Update common omap platform headers Santosh Shilimkar
2009-05-07 6:29 ` [RESUBMIT][PATCH 4/7] OMAP4: Update common omap platform common sources Santosh Shilimkar
2009-05-07 6:29 ` [RESUBMIT][PATCH 5/7] OMAP4: Update common omap machine specific sources Santosh Shilimkar
2009-05-07 6:29 ` [RESUBMIT][PATCH 6/7] OMAP4: Clock stubs since clock management framework not in Santosh Shilimkar
2009-05-07 6:29 ` [RESUBMIT][PATCH 7/7] Enable build for OMAP4 Santosh Shilimkar
2009-05-16 10:14 ` [RESUBMIT][PATCH 6/7] OMAP4: Clock stubs since clock management framework not in Russell King - ARM Linux
2009-05-16 20:21 ` Shilimkar, Santosh
2009-05-16 10:07 ` Russell King - ARM Linux [this message]
2009-05-16 20:17 ` [RESUBMIT][PATCH 5/7] OMAP4: Update common omap machine specific sources Shilimkar, Santosh
2009-05-17 13:00 ` Shilimkar, Santosh
2009-05-17 15:32 ` Russell King - ARM Linux
2009-05-18 3:59 ` Shilimkar, Santosh
2009-05-16 10:11 ` Russell King - ARM Linux
2009-05-16 15:35 ` Tony Lindgren
2009-05-16 9:53 ` [RESUBMIT][PATCH 4/7] OMAP4: Update common omap platform common sources Russell King - ARM Linux
2009-05-16 20:04 ` Shilimkar, Santosh
2009-05-18 15:50 ` Tony Lindgren
2009-05-18 15:52 ` Shilimkar, Santosh
2009-05-18 12:07 ` Shilimkar, Santosh
2009-05-18 12:15 ` Russell King - ARM Linux
2009-05-16 9:30 ` [RESUBMIT][PATCH 3/7] OMAP4: Update common omap platform headers Russell King - ARM Linux
2009-05-16 9:27 ` [RESUBMIT][PATCH 2/7] OMAP4: Create board support for OMAP_4430SDP Russell King - ARM Linux
2009-05-17 6:36 ` 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=20090516100732.GK15328@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-omap@vger.kernel.org \
--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