From: "Cousson, Benoit" <b-cousson@ti.com>
To: "Premi, Sanjeev" <premi@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: hwmod: multi-omap: disabling smartreflex on AM3517
Date: Tue, 22 Feb 2011 00:40:16 +0100 [thread overview]
Message-ID: <4D62F7E0.1000102@ti.com> (raw)
In-Reply-To: <B85A65D85D7EB246BE421B3FB0FBB593024BD48BED@dbde02.ent.ti.com>
On 2/21/2011 4:41 PM, Premi, Sanjeev wrote:
[...]
>> The comment is already there BTW, so you just have to replace that by some
>> real code:-)
>
> [sp] I have already added real code, but the problem lies here:
> On same file (few lines up) omap_chip.oc is assigned value of
> CHIP_IS_OMAP3430. CHIP_IS_AM3517 now needs to be added to all
> places where CHIP_IS_OMAP3430ES3_1 is chosen.
>
> All this to support a chip that differs in 4 peripherals and IVA.
> ... and this is what I was planning to minimize.
This is what we've being using for some time to handle small diff
between ES.
> Leaving aside AM3517; we have AM3703 - same as OMAP3630 but without
> IVA and SGX. Here obviously hwmods for either of IVA, SGX shouldn't
> be initialized. Isn't it?
>
> Creating CHIP_IS_ ... here would be an overkill. Thoughts?
It depends how many variant you plan to do :-) We still have some room
for 18 more variants / chip.
You can still create a new CHIP_IS, and add a alias
CHIP_IS_OMAP36XX_COMMON = CHIP_IS_OMAP3630 | CHIP_IS_AM3703 and then
replace all the existing entry with that alias.
If we want to avoid using these defines, you will have potentially to
add a feature entry in every hwmod / clock / power domain entry that
already uses the omap_chip today.
And then during the init we can filter on both the chip revision and
chip features.
The drawback is that we are going to waste at least 300 x 32 bits to
store that :-)
Whereas with the extra CHIP_IS_, it is just a couple of defines... no
memory impact.
In between, you can consider a hwmod class to feature mapping, in order
to know what hwmod class will be excluded if the feature is not there
during the iteration.
I think I still prefer the first solution.
Regards,
Benoit
next prev parent reply other threads:[~2011-02-21 23:40 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-15 11:51 hwmod: multi-omap: disabling smartreflex on AM3517 Premi, Sanjeev
2011-02-15 12:47 ` Cousson, Benoit
2011-02-18 12:13 ` Premi, Sanjeev
2011-02-21 9:57 ` Premi, Sanjeev
2011-02-21 10:30 ` Cousson, Benoit
2011-02-21 10:39 ` Premi, Sanjeev
2011-02-21 14:17 ` Cousson, Benoit
2011-02-21 15:41 ` Premi, Sanjeev
2011-02-21 23:40 ` Cousson, Benoit [this message]
2011-02-22 13:48 ` Premi, Sanjeev
2011-02-22 22:53 ` Cousson, Benoit
2011-02-23 8:46 ` Premi, Sanjeev
2011-02-23 15:52 ` Cousson, Benoit
2011-02-25 11:39 ` Premi, Sanjeev
2011-02-25 12:40 ` Cousson, Benoit
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=4D62F7E0.1000102@ti.com \
--to=b-cousson@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=premi@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.