From: Kevin Hilman <khilman@deeprootsystems.com>
To: Paul Walmsley <paul@pwsan.com>
Cc: linux-omap@vger.kernel.org, Santosh Shilimkar <santosh.shilimkar@ti.com>
Subject: Re: OMAP4 naming conventions
Date: Tue, 12 May 2009 09:47:02 -0700 [thread overview]
Message-ID: <87eiuuclq1.fsf@deeprootsystems.com> (raw)
In-Reply-To: <alpine.DEB.2.00.0905120909370.17514@utopia.booyaka.com> (Paul Walmsley's message of "Tue\, 12 May 2009 09\:24\:30 -0600 \(MDT\)")
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
prev parent reply other threads:[~2009-05-12 16:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=87eiuuclq1.fsf@deeprootsystems.com \
--to=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--cc=paul@pwsan.com \
--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 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.