* OMAP4 naming conventions
@ 2009-05-12 14:58 Kevin Hilman
2009-05-12 15:00 ` Premi, Sanjeev
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Kevin Hilman @ 2009-05-12 14:58 UTC (permalink / raw)
To: linux-omap; +Cc: Santosh Shilimkar
As the OMAP4 patches are coming in, there seems to be a bit of variety
in the naming of functions/macros/variables etc.
Could I propose that we just use omap4_* and OMAP4_* instead of
OMAP44XX_* or OMAP4XXXX_* etc.
I know that OMAP2 and OMAP3 have a variety of forms here too, but
those should probably be cleaned up eventually too.
With proper runtime revision detecting, IMO, we should only really
have the OMAP4 prefix, and leave the sub revision handling to runtime
code.
Thoughts?
Kevin
^ permalink raw reply [flat|nested] 6+ messages in thread* RE: OMAP4 naming conventions
2009-05-12 14:58 OMAP4 naming conventions Kevin Hilman
@ 2009-05-12 15:00 ` Premi, Sanjeev
2009-05-12 15:17 ` Tony Lindgren
2009-05-12 15:18 ` Shilimkar, Santosh
2009-05-12 15:24 ` Paul Walmsley
2 siblings, 1 reply; 6+ messages in thread
From: Premi, Sanjeev @ 2009-05-12 15:00 UTC (permalink / raw)
To: Kevin Hilman, linux-omap@vger.kernel.org; +Cc: Shilimkar, Santosh
> -----Original Message-----
> From: linux-omap-owner@vger.kernel.org
> [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of Kevin Hilman
> Sent: Tuesday, May 12, 2009 8:29 PM
> To: linux-omap@vger.kernel.org
> Cc: Shilimkar, Santosh
> Subject: OMAP4 naming conventions
>
> As the OMAP4 patches are coming in, there seems to be a bit of variety
> in the naming of functions/macros/variables etc.
>
> Could I propose that we just use omap4_* and OMAP4_* instead of
> OMAP44XX_* or OMAP4XXXX_* etc.
>
> I know that OMAP2 and OMAP3 have a variety of forms here too, but
> those should probably be cleaned up eventually too.
>
> With proper runtime revision detecting, IMO, we should only really
> have the OMAP4 prefix, and leave the sub revision handling to runtime
> code.
>
> Thoughts?
Full ACK.
~sanjeev
>
> Kevin
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OMAP4 naming conventions
2009-05-12 15:00 ` Premi, Sanjeev
@ 2009-05-12 15:17 ` Tony Lindgren
0 siblings, 0 replies; 6+ messages in thread
From: Tony Lindgren @ 2009-05-12 15:17 UTC (permalink / raw)
To: Premi, Sanjeev
Cc: Kevin Hilman, linux-omap@vger.kernel.org, Shilimkar, Santosh
* Premi, Sanjeev <premi@ti.com> [090512 08:01]:
> > -----Original Message-----
> > From: linux-omap-owner@vger.kernel.org
> > [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of Kevin Hilman
> > Sent: Tuesday, May 12, 2009 8:29 PM
> > To: linux-omap@vger.kernel.org
> > Cc: Shilimkar, Santosh
> > Subject: OMAP4 naming conventions
> >
> > As the OMAP4 patches are coming in, there seems to be a bit of variety
> > in the naming of functions/macros/variables etc.
> >
> > Could I propose that we just use omap4_* and OMAP4_* instead of
> > OMAP44XX_* or OMAP4XXXX_* etc.
> >
> > I know that OMAP2 and OMAP3 have a variety of forms here too, but
> > those should probably be cleaned up eventually too.
> >
> > With proper runtime revision detecting, IMO, we should only really
> > have the OMAP4 prefix, and leave the sub revision handling to runtime
> > code.
> >
> > Thoughts?
>
> Full ACK.
Sounds good to me too.
Tony
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: OMAP4 naming conventions
2009-05-12 14:58 OMAP4 naming conventions Kevin Hilman
2009-05-12 15:00 ` Premi, Sanjeev
@ 2009-05-12 15:18 ` Shilimkar, Santosh
2009-05-12 15:24 ` Paul Walmsley
2 siblings, 0 replies; 6+ messages in thread
From: Shilimkar, Santosh @ 2009-05-12 15:18 UTC (permalink / raw)
To: Kevin Hilman, linux-omap@vger.kernel.org
> -----Original Message-----
> From: Kevin Hilman [mailto:khilman@deeprootsystems.com]
> Sent: Tuesday, May 12, 2009 8:29 PM
> To: linux-omap@vger.kernel.org
> Cc: Shilimkar, Santosh
> Subject: OMAP4 naming conventions
>
> As the OMAP4 patches are coming in, there seems to be a bit of variety
> in the naming of functions/macros/variables etc.
> *
> Could I propose that we just use omap4_* and OMAP4_* instead of
> OMAP44XX_* or OMAP4XXXX_* etc.
>
> I know that OMAP2 and OMAP3 have a variety of forms here too, but
> those should probably be cleaned up eventually too.
>
> With proper runtime revision detecting, IMO, we should only really
> have the OMAP4 prefix, and leave the sub revision handling to runtime
> code.
>
> Thoughts?
Tony has also proposed this during the review. Current macros are using only OMAP44XX_* . And these can be changed to OMAP4_*
Regards,
Santosh
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OMAP4 naming conventions
2009-05-12 14:58 OMAP4 naming conventions Kevin Hilman
2009-05-12 15:00 ` Premi, Sanjeev
2009-05-12 15:18 ` Shilimkar, Santosh
@ 2009-05-12 15:24 ` Paul Walmsley
2009-05-12 16:47 ` Kevin Hilman
2 siblings, 1 reply; 6+ messages in thread
From: Paul Walmsley @ 2009-05-12 15:24 UTC (permalink / raw)
To: Kevin Hilman; +Cc: linux-omap, Santosh Shilimkar
On Tue, 12 May 2009, Kevin Hilman wrote:
> As the OMAP4 patches are coming in, there seems to be a bit of variety
> in the naming of functions/macros/variables etc.
>
> Could I propose that we just use omap4_* and OMAP4_* instead of
> OMAP44XX_* or OMAP4XXXX_* etc.
>
> I know that OMAP2 and OMAP3 have a variety of forms here too, but
> those should probably be cleaned up eventually too.
>
> With proper runtime revision detecting, IMO, we should only really
> have the OMAP4 prefix, and leave the sub revision handling to runtime
> code.
>
> Thoughts?
Here are some questions that we should figure out answers to before
deciding:
How should macros be named that only apply to specific OMAP4 chips (i.e.,
what happens if TI repeats a OMAP2420 to 2430 transition)?
How should macros be handled that are only applicable to later ES levels?
Tagging ES levels in macros has caught many bugs in the OMAP2/3 code.
- Paul
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OMAP4 naming conventions
2009-05-12 15:24 ` Paul Walmsley
@ 2009-05-12 16:47 ` Kevin Hilman
0 siblings, 0 replies; 6+ messages in thread
From: Kevin Hilman @ 2009-05-12 16:47 UTC (permalink / raw)
To: Paul Walmsley; +Cc: linux-omap, Santosh Shilimkar
Paul Walmsley <paul@pwsan.com> writes:
> On Tue, 12 May 2009, Kevin Hilman wrote:
>
>> As the OMAP4 patches are coming in, there seems to be a bit of variety
>> in the naming of functions/macros/variables etc.
>>
>> Could I propose that we just use omap4_* and OMAP4_* instead of
>> OMAP44XX_* or OMAP4XXXX_* etc.
>>
>> I know that OMAP2 and OMAP3 have a variety of forms here too, but
>> those should probably be cleaned up eventually too.
>>
>> With proper runtime revision detecting, IMO, we should only really
>> have the OMAP4 prefix, and leave the sub revision handling to runtime
>> code.
>>
>> Thoughts?
>
> Here are some questions that we should figure out answers to before
> deciding:
>
> How should macros be named that only apply to specific OMAP4 chips (i.e.,
> what happens if TI repeats a OMAP2420 to 2430 transition)?
I would propose a convention something like:
- OMAP4_* - applies to all OMAP4 chips
- OMAP4xyz_* - applies to the specific 4xyz rev
> How should macros be handled that are only applicable to later ES
> levels? Tagging ES levels in macros has caught many bugs in the
> OMAP2/3 code.
Since the ES revs would be specific to particular 'xyz' rev, The above
could be extended to use something like OMAP4xyzESn_*
Kevin
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-05-12 16:47 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-12 14:58 OMAP4 naming conventions Kevin Hilman
2009-05-12 15:00 ` Premi, Sanjeev
2009-05-12 15:17 ` Tony Lindgren
2009-05-12 15:18 ` Shilimkar, Santosh
2009-05-12 15:24 ` Paul Walmsley
2009-05-12 16:47 ` Kevin Hilman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox