RE: [PATCH] omap: Add macros to evaluate cpu revision

2010-08-16 Thread Premi, Sanjeev
shanth > > Cc: Gadiyar, Anand; linux-omap@vger.kernel.org > > Subject: RE: [PATCH] omap: Add macros to evaluate cpu revision > > > > [snip] [snip] > > > > >>>>>>> +#define ES_2_0 OMAP_REVBITS_10 > > > >>>>>

RE: [PATCH] omap: Add macros to evaluate cpu revision

2010-08-12 Thread Premi, Sanjeev
> -Original Message- > From: linux-omap-ow...@vger.kernel.org > [mailto:linux-omap-ow...@vger.kernel.org] On Behalf Of Premi, Sanjeev > Sent: Monday, July 26, 2010 8:57 PM > To: Menon, Nishanth > Cc: Gadiyar, Anand; linux-omap@vger.kernel.org > Subject: RE: [PATCH

RE: [PATCH] omap: Add macros to evaluate cpu revision

2010-07-26 Thread Premi, Sanjeev
> -Original Message- > From: Menon, Nishanth > Sent: Thursday, July 22, 2010 5:16 PM > To: Premi, Sanjeev > Cc: Gadiyar, Anand; linux-omap@vger.kernel.org > Subject: Re: [PATCH] omap: Add macros to evaluate cpu revision > > Premi, Sanjeev had written, on

RE: [PATCH] omap: Add macros to evaluate cpu revision

2010-07-22 Thread Premi, Sanjeev
--- > > > > > Here is a sample usage from one of the patch I am reworking > > for submission here: > > > > @@ -488,7 +494,9 @@ void omap_sram_idle(void) > > * of AUTO_CNT = 1 enabled. This takes care of errata 1.142. > > * Hence store/restore the SDRC_POWER register here. > >

Re: [PATCH] omap: Add macros to evaluate cpu revision

2010-07-22 Thread Nishanth Menon
Premi, Sanjeev had written, on 07/22/2010 06:20 AM, the following: -Original Message- From: Menon, Nishanth Sent: Thursday, July 22, 2010 4:18 PM To: Premi, Sanjeev Cc: Gadiyar, Anand; linux-omap@vger.kernel.org Subject: Re: [PATCH] omap: Add macros to evaluate cpu revision Premi

RE: [PATCH] omap: Add macros to evaluate cpu revision

2010-07-22 Thread Premi, Sanjeev
> -Original Message- > From: Menon, Nishanth > Sent: Thursday, July 22, 2010 4:18 PM > To: Premi, Sanjeev > Cc: Gadiyar, Anand; linux-omap@vger.kernel.org > Subject: Re: [PATCH] omap: Add macros to evaluate cpu revision > > Premi, Sanjeev had written, on

Re: [PATCH] omap: Add macros to evaluate cpu revision

2010-07-22 Thread Nishanth Menon
Premi, Sanjeev had written, on 07/22/2010 04:49 AM, the following: -Original Message- From: Menon, Nishanth Sent: Thursday, July 22, 2010 3:08 PM To: Gadiyar, Anand Cc: Premi, Sanjeev; linux-omap@vger.kernel.org Subject: Re: [PATCH] omap: Add macros to evaluate cpu revision On 07/22

RE: [PATCH] omap: Add macros to evaluate cpu revision

2010-07-22 Thread Shilimkar, Santosh
RE: [PATCH] omap: Add macros to evaluate cpu revision > > > -Original Message- > > From: Menon, Nishanth > > Sent: Thursday, July 22, 2010 3:08 PM > > To: Gadiyar, Anand > > Cc: Premi, Sanjeev; linux-omap@vger.kernel.org > > Subject: Re: [PATCH] omap: Add

RE: [PATCH] omap: Add macros to evaluate cpu revision

2010-07-22 Thread Premi, Sanjeev
> -Original Message- > From: Menon, Nishanth > Sent: Thursday, July 22, 2010 3:08 PM > To: Gadiyar, Anand > Cc: Premi, Sanjeev; linux-omap@vger.kernel.org > Subject: Re: [PATCH] omap: Add macros to evaluate cpu revision > > On 07/22/2010 01:53 AM, Gadiyar, Anan

Re: [PATCH] omap: Add macros to evaluate cpu revision

2010-07-22 Thread Nishanth Menon
On 07/22/2010 01:53 AM, Gadiyar, Anand wrote: @@ -460,4 +461,35 @@ OMAP3_HAS_FEATURE(isp, ISP) OMAP3_HAS_FEATURE(192mhz_clk, 192MHZ_CLK) OMAP3_HAS_FEATURE(io_wakeup, IO_WAKEUP) +/* + * Map revision bits to silicon specific revisions + */ +#define ES_1_0 OMAP_REVBITS_00 probably need

RE: [PATCH] omap: Add macros to evaluate cpu revision

2010-07-21 Thread Gadiyar, Anand
> > @@ -460,4 +461,35 @@ OMAP3_HAS_FEATURE(isp, ISP) > > OMAP3_HAS_FEATURE(192mhz_clk, 192MHZ_CLK) > > OMAP3_HAS_FEATURE(io_wakeup, IO_WAKEUP) > > > > +/* > > + * Map revision bits to silicon specific revisions > > + */ > > +#define ES_1_0 OMAP_REVBITS_00 > probably need ES_1_1, 1_2

Re: [PATCH] omap: Add macros to evaluate cpu revision

2010-07-21 Thread Nishanth Menon
Premi, Sanjeev had written, on 07/21/2010 10:12 AM, the following: This patch adds macros to evaluate the cpu revision. These macros increase readability by reducing the repetitive code when multiple silicon and their revisions have to be tested. Example usage would be: if (cpu_rev_eq(omap34xx

[PATCH] omap: Add macros to evaluate cpu revision

2010-07-21 Thread Sanjeev Premi
This patch adds macros to evaluate the cpu revision. These macros increase readability by reducing the repetitive code when multiple silicon and their revisions have to be tested. Example usage would be: if (cpu_rev_eq(omap34xx, ES_1_0)) Signed-off-by: Sanjeev Premi --- arch/arm/plat-omap/inc