From: Tony Lindgren <tony@atomide.com>
To: Nishanth Menon <nm@ti.com>
Cc: linux-omap <linux-omap@vger.kernel.org>,
Angelo Arrifano <miknix@gmail.com>,
"Zebediah C. McClure" <zmc@lurian.net>,
Alistair Buxton <a.j.buxton@gmail.com>,
Grazvydas Ignotas <notasas@gmail.com>,
Paul Walmsley <paul@pwsan.com>, Sanjeev Premi <premi@ti.com>,
Santosh Shilimkar <santosh.shilimkar@ti.com>,
Senthilvadivu Gurusamy <svadivu@ti.com>,
Kevin Hilman <khilman@deeprootsystems.com>,
Tarun Kanti DebBarma <tarun.kanti@ti.com>,
Tomi Valkeinen <tomi.valkeinen@nokia.com>,
Aaro Koskinen <aaro.koskinen@nokia.com>,
Vikram Pandita <vikram.pandita@ti.com>,
Vishwanath S <vishwa.s@ti.com>
Subject: Re: [PATCH 3/9 v3] omap: generic: introduce a single check_revision
Date: Wed, 7 Jul 2010 15:36:33 +0300 [thread overview]
Message-ID: <20100707123633.GT1920@atomide.com> (raw)
In-Reply-To: <1277483122-3616-1-git-send-email-nm@ti.com>
* Nishanth Menon <nm@ti.com> [100625 19:19]:
> --- a/arch/arm/mach-omap2/io.c
> +++ b/arch/arm/mach-omap2/io.c
> @@ -238,7 +238,7 @@ static void __init _omap2_map_common_io(void)
> local_flush_tlb_all();
> flush_cache_all();
>
> - omap2_check_revision();
> + omap_check_revision();
> omap_sram_init();
> }
>
> diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c
> index fca73cd..4a0e333 100644
> --- a/arch/arm/plat-omap/common.c
> +++ b/arch/arm/plat-omap/common.c
> @@ -89,6 +89,12 @@ void __init omap_reserve(void)
> omap_vram_reserve_sdram_lmb();
> }
>
> +void __init omap_check_revision(void)
> +{
> + omap1_check_revision();
> + omap2_check_revision();
> +}
> +
> /*
> * 32KHz clocksource ... always available, on pretty most chips except
> * OMAP 730 and 1510. Other timers could be used as clocksources, with
> diff --git a/arch/arm/plat-omap/include/plat/cpu.h b/arch/arm/plat-omap/include/plat/cpu.h
> index 7514174..5f12a0b 100644
> --- a/arch/arm/plat-omap/include/plat/cpu.h
> +++ b/arch/arm/plat-omap/include/plat/cpu.h
> @@ -431,7 +431,18 @@ IS_OMAP_TYPE(3517, 0x3517)
>
>
> int omap_chip_is(struct omap_chip_id oci);
> -void omap2_check_revision(void);
> +#ifdef CONFIG_ARCH_OMAP2PLUS
> +extern void omap2_check_revision(void);
> +#else
> +static inline void omap2_check_revision(void) {}
> +#endif
> +
> +#ifdef CONFIG_ARCH_OMAP1
> +extern void omap1_check_revision(void);
> +#else
> +static inline void omap1_check_revision(void) {}
> +#endif
> +void omap_check_revision(void);
Hmm, to me it seems like we should have static omap_check_revision
in both mach-omap1/id.c and mach-omap2/id.c. Or do we need to call
these anywhere else outside both id.c files?
Then these can set u32 omap_revision flags in plat-omap/common.c,
and then we can have a common omap_get_revision() or something
in plat-omap/common.c?
There should not be need for cpu_is_omapxxxx tests for getting
the revision after it's initialized.
Regards,
Tony
next prev parent reply other threads:[~2010-07-07 12:36 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-25 16:25 [PATCH 3/9 v3] omap: generic: introduce a single check_revision Nishanth Menon
2010-06-25 16:41 ` Shilimkar, Santosh
2010-06-25 17:31 ` Nishanth Menon
2010-06-25 18:07 ` Shilimkar, Santosh
2010-06-25 18:26 ` static inline function style (was Re: [PATCH 3/9 v3] omap: generic: introduce a single check_revision) Nishanth Menon
2010-07-07 12:36 ` Tony Lindgren [this message]
2010-07-07 17:24 ` [PATCH 3/9 v3] omap: generic: introduce a single check_revision Nishanth Menon
2010-07-08 9:08 ` Felipe Balbi
-- strict thread matches above, loose matches on Subject: below --
2010-07-08 11:57 Menon, Nishanth
2010-07-08 12:21 ` Tony Lindgren
2010-07-08 14:27 ` Nishanth Menon
2010-07-13 15:06 ` Premi, Sanjeev
2010-07-13 15:37 ` Nishanth Menon
2010-07-13 15:48 ` Premi, Sanjeev
2010-07-13 15:56 ` Nishanth Menon
2010-07-08 12:34 ` Felipe Balbi
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=20100707123633.GT1920@atomide.com \
--to=tony@atomide.com \
--cc=a.j.buxton@gmail.com \
--cc=aaro.koskinen@nokia.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--cc=miknix@gmail.com \
--cc=nm@ti.com \
--cc=notasas@gmail.com \
--cc=paul@pwsan.com \
--cc=premi@ti.com \
--cc=santosh.shilimkar@ti.com \
--cc=svadivu@ti.com \
--cc=tarun.kanti@ti.com \
--cc=tomi.valkeinen@nokia.com \
--cc=vikram.pandita@ti.com \
--cc=vishwa.s@ti.com \
--cc=zmc@lurian.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.