public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Nishanth Menon <menon.nishanth@gmail.com>
Cc: Sanjeev Premi <premi@ti.com>, linux-omap@vger.kernel.org
Subject: Re: [PATCHv2 1/1] Runtime detection of OMAP35x devices
Date: Fri, 9 Oct 2009 15:18:59 -0700	[thread overview]
Message-ID: <20091009221858.GT25892@atomide.com> (raw)
In-Reply-To: <782515bb0910091302k25b162cdk1fce6d4d98287c29@mail.gmail.com>

* Nishanth Menon <menon.nishanth@gmail.com> [091009 13:22]:
> Sanjeev,
> 
> On Fri, Oct 9, 2009 at 2:47 PM, Sanjeev Premi <premi@ti.com> wrote:
> > Add runtime check for these OMAP35x variations
> > based on the detected Si features:
> >  OMAP3503, OMAP3515, OMAP3525 and OMA3530.
> [sni[]
> >        if (hawkeye == 0xb7ae) {
> >                switch (rev) {
> > -               case 0:
> > +               case 0: /* Take care of early samples */
> > +               case 1:
> >                        omap_revision = OMAP3430_REV_ES2_0;
> > -                       rev_name = "ES2.0";
> >                        break;
> >                case 2:
> >                        omap_revision = OMAP3430_REV_ES2_1;
> > -                       rev_name = "ES2.1";
> >                        break;
> >                case 3:
> >                        omap_revision = OMAP3430_REV_ES3_0;
> > -                       rev_name = "ES3.0";
> >                        break;
> >                case 4:
> >                        omap_revision = OMAP3430_REV_ES3_1;
> > -                       rev_name = "ES3.1";
> >                        break;
> >                default:
> >                        /* Use the latest known revision as default */
> >                        omap_revision = OMAP3430_REV_ES3_1;
> > -                       rev_name = "Unknown revision\n";
> >                }
> >        }
> > -
> > -out:
> > -       pr_info("OMAP%04x %s\n", omap_rev() >> 16, rev_name);
> >  }
> >
> >  #define OMAP3_SHOW_FEATURE(feat)               \
> > @@ -248,6 +240,57 @@ out:
> >
> >  void __init omap3_cpuinfo(void)
> >  {
> > +       u8 rev = GET_OMAP_REVISION();
> > +       char cpu_name[16], cpu_rev[16];
> > +
> > +       /* OMAP3430 and OMAP3530 are assumed to be same.
> > +        *
> > +        * OMAP3525, OMAP3515 and OMAP3503 can be detected only based
> > +        * on available features. Upon detection, update the CPU id
> > +        * and CPU class bits.
> > +        */
> > +       if (omap3_has_iva() && omap3_has_sgx()) {
> > +               strcpy(cpu_name, "3430/3530");
> > +       }
> > +       else if (omap3_has_sgx()) {
> > +               omap_revision = OMAP3525_REV(rev);
> 
> your patch conflicts with mine unfortunately. could you introduce 36xx
> on top of the aligned version for 36xx?
> see http://marc.info/?t=125510410600006&r=1&w=2

I'll push this 35xx patch first as it's been available before 36xx
processors. That way we'll get the ordering right in the changelog :)

Nishant, can you please post your 36xx patch one more time rebased
on this one?

Regards,

Tony
--
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

  reply	other threads:[~2009-10-09 22:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-09 19:47 [PATCHv2 1/1] Runtime detection of OMAP35x devices Sanjeev Premi
2009-10-09 20:02 ` Nishanth Menon
2009-10-09 22:18   ` Tony Lindgren [this message]
2009-10-09 22:20 ` [APPLIED] " Tony Lindgren

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=20091009221858.GT25892@atomide.com \
    --to=tony@atomide.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=menon.nishanth@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox