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: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH] Missing implementation of omap3evm_flash_init()
Date: Wed, 24 Jun 2009 16:36:48 +0300	[thread overview]
Message-ID: <20090624133648.GP7352@atomide.com> (raw)
In-Reply-To: <B85A65D85D7EB246BE421B3FB0FBB59301D829BDEC@dbde02.ent.ti.com>

* Premi, Sanjeev <premi@ti.com> [090624 14:45]:
> > -----Original Message-----
> > From: Tony Lindgren [mailto:tony@atomide.com] 
> > Sent: Monday, June 22, 2009 7:04 PM
> > To: Premi, Sanjeev
> > Cc: linux-omap@vger.kernel.org
> > Subject: Re: [PATCH] Missing implementation of omap3evm_flash_init()
> > 
> > * Premi, Sanjeev <premi@ti.com> [090622 16:16]:
> > > > -----Original Message-----
> > > > From: Tony Lindgren [mailto:tony@atomide.com] 
> > > > Sent: Monday, June 22, 2009 2:37 PM
> > > > To: Premi, Sanjeev
> > > > Cc: linux-omap@vger.kernel.org
> > > > Subject: Re: [PATCH] Missing implementation of 
> > omap3evm_flash_init()
> > > > 
> 
> <snip>--<snip>
> 
> Tony,
> 
> I had a few follow-up queries below:
> 
> > > > 
> > > > We already have code that initializes the GPMC for 
> > onenand in kernel.
> > > > And I posted a patch to enable onenand for the SDP boards 
> > > > last week [1].
> > > 
> > > Did not see it; before creating the patch; lookig at this now...
> > 
> > OK, thanks.
> >  
> > > > And this is yet another copy of the same code that was 
> > duplicated for
> > > > multiple boards. So how about making the following changes: 
> > > > 
> > > > - Pass the onenand chip select for GPMC in platform data. I 
> > > > doubt that the
> > > >   chip select is changing?
> > > > 
> > > > - If you still need to probe for onenand, please create a 
> > > > generic function
> > > >   in gpmc-onenand.c to probe for onenand
> 
> I always see "onenand_base" being passed as argument. Where is it
> initialized?

That is allocated with  gpmc_cs_request() based on the cs in the 
struct omap_onenand_platform_data.
 
> I did implement this function to probe for nand/onenand - based on
> the code that existed in board-omap3evm-flash.c; but ran into
> some problems with the setting base address.

I guess the probe is only looking at the GPMC configuration registers
though?
 
> Looking at the gpmc-onenand.c do you believe we would need a
> gpmc-nand.c on same lines? Or an implementation within the
> board-omap3evm.c is okay for now?

Well if you can figure out how to do a common gpmc-nand.c, I'm sure
it would make things easier to bring up new boards (and omaps).

Regards,

Tony


> 
> Best regards,
> Sanjeev
> 
> > > > 
> > > 
> > > Some EVMs have OneNAND and others have NAND. How/ Where do 
> > you suggest
> > > this check sould go?
> > 
> > If it's based on just checking the GPMC registers, you could 
> > put it into
> > gpmc.c.
> > 
> > Regards,
> > 
> > Tony
> > 
> > 
> > 
> 
> 
> <snip>--<snip>--<snip till end>
>  

  reply	other threads:[~2009-06-24 13:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-18 13:29 [PATCH] Missing implementation of omap3evm_flash_init() Sanjeev Premi
2009-06-22  9:06 ` Tony Lindgren
2009-06-22 13:16   ` Premi, Sanjeev
2009-06-22 13:33     ` Tony Lindgren
2009-06-24 11:45       ` Premi, Sanjeev
2009-06-24 13:36         ` Tony Lindgren [this message]
2009-06-24 13:42           ` 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=20090624133648.GP7352@atomide.com \
    --to=tony@atomide.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox