public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: "Premi, Sanjeev" <premi@ti.com>
Cc: "Kridner, Jason" <jdk@ti.com>,
	"'k.kooi@student.utwente.nl'" <k.kooi@student.utwente.nl>,
	"'linux-omap@vger.kernel.org'" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH] Added support for OMAP35x processor series
Date: Fri, 8 Aug 2008 10:39:56 +0300	[thread overview]
Message-ID: <20080808073956.GI24923@atomide.com> (raw)
In-Reply-To: <B85A65D85D7EB246BE421B3FB0FBB593013CA23868@dbde02.ent.ti.com>

* Premi, Sanjeev <premi@ti.com> [080806 15:03]:
> For 35x processors we need to make compile time decisions to exlude the code that may not be applicable for the specifc processor e.g. excluding the code applicable for DSP/ SGX or both depending upon the exact part number.

This continuous top posting makes threads impossible to read, please
everybody: do not top post on mailing lists.

Compile time detection of 34xx is not enough. We need to also be able to
detect it during runtime. And if you can't do it based on any registers,
then we need to add omap2_set_globals_3505() et al and force the type
that way.

Regards,

Tony


> 
> ~sanjeev
> 
> -----Original Message-----
> From: Tony Lindgren [mailto:tony@atomide.com]
> Sent: Wednesday, August 06, 2008 3:41 PM
> To: Premi, Sanjeev
> Cc: Kridner, Jason; 'k.kooi@student.utwente.nl'; 'linux-omap@vger.kernel.org'
> Subject: Re: [PATCH] Added support for OMAP35x processor series
> 
> * Premi, Sanjeev <premi@ti.com> [080806 12:55]:
> > >> Well if there's no way to detect certain omaps during runtime,
> > >> please patch arch/arm/plat-omap/common.c to have something like struct omap_globals omap3503_globals.
> >
> > There was no need to re-define these structures for the current series of the OMAP35x processors.
> > Hence, it was left as it.
> 
> What exactly do you need to define then for various 35xx processors that's different from 34xx?
> 
> > >> BTW, why can't the dsp code detect if the DSP is there or not?
> >
> > (Assuming you mean the code running on ARM that looks for the
> > DSP/SGX/...) The detection was based on the chip ID. This happens to be same for OMAP34XX and OMAP35X.
> 
> How about trying to read the DSP revision register or something similar?
> 
> Tony
> 
> >
> > ~sanjeev
> >
> >
> > -----Original Message-----
> > From: linux-omap-owner@vger.kernel.org
> > [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of Tony Lindgren
> > Sent: Wednesday, August 06, 2008 2:37 PM
> > To: Kridner, Jason
> > Cc: 'k.kooi@student.utwente.nl'; 'linux-omap@vger.kernel.org'
> > Subject: Re: [PATCH] Added support for OMAP35x processor series
> >
> > * Kridner, Jason <jdk@ti.com> [080805 17:12]:
> > > No, ROM CRC is useful for detecting between some device revisions, but not OMAp3430 vs OMAP3530.
> > >
> > > ----- Original Message -----
> > > From: Koen Kooi <k.kooi@student.utwente.nl>
> > > To: linux-omap@vger.kernel.org <linux-omap@vger.kernel.org>
> > > Cc: Kridner, Jason
> > > Sent: Tue Aug 05 05:10:40 2008
> > > Subject: Re: [PATCH] Added support for OMAP35x processor series
> > >
> > >
> > > Op 5 aug 2008, om 11:50 heeft Igor Stoppa het volgende geschreven:
> > >
> > > > On Tue, 2008-08-05 at 15:09 +0530, ext Premi, Sanjeev wrote:
> > > >> This patch is needed to ensure that we can make decisions based
> > > >> on the processor capabilities.
> > > >> E.g. OMAP3503 does not contain a DSP. We shouldn't be trying to
> > > >> disable/ manage the clocks for DSP on this processor. Same for SGX.
> > > >
> > > > Why can't the detection happen at runtime?
> > >
> > > AIUI the ID bits are the same (linux misdetect the 3530 on my beagle
> > > for a 3430). I heard that the only definitive way to do it at
> > > runtime is to CRC check the ROM code.
> > >
> > > Jason, is that correct?
> >
> > Well if there's no way to detect certain omaps during runtime, please patch arch/arm/plat-omap/common.c to have something like struct omap_globals omap3503_globals.
> >
> > BTW, why can't the dsp code detect if the DSP is there or not?
> >
> > 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:[~2008-08-08  7:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-05 14:11 [PATCH] Added support for OMAP35x processor series Kridner, Jason
2008-08-06  9:07 ` Tony Lindgren
2008-08-06  9:46   ` Premi, Sanjeev
2008-08-06 10:10     ` Tony Lindgren
2008-08-06 11:56       ` Premi, Sanjeev
2008-08-08  7:39         ` Tony Lindgren [this message]
2008-09-01 19:56           ` [PATCH0/3] Add support for OMAP35x processors Premi, Sanjeev
     [not found] <premi@ti.com>
2008-08-01 11:49 ` [PATCH] Added support for OMAP35x processor series Sanjeev Premi
2008-08-05  9:25   ` Tony Lindgren
2008-08-05  9:39     ` Premi, Sanjeev
2008-08-05  9:50       ` Igor Stoppa
2008-08-05 10:05         ` Premi, Sanjeev
2008-08-05 10:10         ` Koen Kooi
2008-08-05 10:13           ` Premi, Sanjeev

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=20080808073956.GI24923@atomide.com \
    --to=tony@atomide.com \
    --cc=jdk@ti.com \
    --cc=k.kooi@student.utwente.nl \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox