From: Tony Lindgren <tony@atomide.com>
To: "Pedanekar, Hemant" <hemantp@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"khilman@deeprootsystems.com" <khilman@deeprootsystems.com>
Subject: Re: [PATCH v2 3/6] TI816X: Update common OMAP machine specific sources
Date: Mon, 29 Nov 2010 11:29:27 -0800 [thread overview]
Message-ID: <20101129192927.GG17222@atomide.com> (raw)
In-Reply-To: <2A3DCF3DA181AD40BDE86A3150B27B6B0369E7C04D@dbde02.ent.ti.com>
* Pedanekar, Hemant <hemantp@ti.com> [101129 09:07]:
> Tony Lindgren wrote on Saturday, November 06, 2010 2:30 AM:
>
> Though based on Cortex A8, TI816X series has differences in PRCM, PLL, clock
> structure compared to OMAP3.
>
> Many of the OMAP3 specific checks are not applicable for TI816X. For example,
> consider following:
> File - arch/arm/mach-omap2/omap_hwmod.c
> Function - _wait_target_ready()
>
> if (cpu_is_omap24xx() || cpu_is_omap34xx()) {
> ret = omap2_cm_wait_module_ready(oh->prcm.omap2.module_offs,
> oh->prcm.omap2.idlest_reg_id,
> oh->prcm.omap2.idlest_idle_bit);
>
> The above code inside cpu_is_omap34xx() check is not applicable for TI816X as
> there are no CM_IDELST registers.
OK, so places like these will need different handling, and should
then be based on some idlest flag that gets set during the init
based on cpu_is_omap24xx() || cpu_is_omap3430() || cpu_is_omap3630().
Have you looked at defining cpu_is_ti816x() based on features?
Something like:
#define cpu_is_ti816x() (cpu_is_omap34xx() && \
(omap3_has_xyz())
Where xyz is based on some runtime detected flag, just like
we do for sgx and iva.
Regards,
Tony
next prev parent reply other threads:[~2010-11-29 19:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-11 17:11 [PATCH v2 3/6] TI816X: Update common OMAP machine specific sources Hemant Pedanekar
2010-09-16 22:25 ` Tony Lindgren
2010-10-22 18:07 ` Pedanekar, Hemant
2010-11-05 20:59 ` Tony Lindgren
2010-11-29 17:17 ` Pedanekar, Hemant
2010-11-29 19:29 ` Tony Lindgren [this message]
2010-12-01 1:46 ` Pedanekar, Hemant
2010-12-06 16:53 ` Tony Lindgren
2010-12-11 0:58 ` Pedanekar, Hemant
2010-12-11 1:51 ` Tony Lindgren
2010-12-11 1:53 ` Pedanekar, Hemant
2010-12-04 0:20 ` Pedanekar, Hemant
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=20101129192927.GG17222@atomide.com \
--to=tony@atomide.com \
--cc=hemantp@ti.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox