public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ajay Bhargav <ajay.bhargav@einfochips.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v6 1/2] gpio: Add GPIO driver framework for Marvell SoCs
Date: Wed, 17 Aug 2011 17:38:12 +0530 (IST)	[thread overview]
Message-ID: <391632421.98479.1313582892820.JavaMail.root@ahm.einfochips.com> (raw)
In-Reply-To: <F766E4F80769BD478052FB6533FA745D19FE5D2643@SC-VEXCH4.marvell.com>


----- "Prafulla Wadaskar" <prafulla@marvell.com> wrote:

> > -----Original Message-----
> > From: Ajay Bhargav [mailto:ajay.bhargav at einfochips.com]
> > Sent: Wednesday, August 17, 2011 2:18 PM
> > To: Prafulla Wadaskar
> > Cc: u-boot at lists.denx.de
> > Subject: Re: [PATCH v6 1/2] gpio: Add GPIO driver framework for
> Marvell
> > SoCs
> > 
> > 
> > ----- "Prafulla Wadaskar" <prafulla@marvell.com> wrote:
> > 
> > > Hi Ajay
> > > I am sorry if I missed this in my earlier reviews.
> > >
> > > Why you wish to keep mvgpio.h in /include folder?
> > > I think it should be in drivers/gpio/.
> > >
> > > Regards..
> > > Prafulla . .
> > >
> > 
> > Hi Prafulla,
> > 
> > gpio.h includes this file, as GPIO_LEVEL_SET/CLR are defined
> > in mvgpio.h which may be needed by other files accessing gpios.
> > In my case I am using gpio for PHY reset. I was thinking not to
> > keep any magic number 1/0 for set/clr gpio pin.
> 
> Hi Ajay
> 
> In any case this gpio driver will be used by other drivers or board
> specific code to configure/set/clear particular gpio. And that is
> possible by just including asm/gpio.h and using standard gpio calls.
> 
> So in any case keeping mvgpio.h in include folder does not make any
> sense to me.
> 
> If needed, layered architecture suggest to include asm/gpio.h in your
> code, which will include asm/arch/gpio.h to get your architecture
> specific gpio definitions, I don't think this will be needed if you
> use standard API calls.
> 
> Regards..
> Prafulla . .
> 
got it... I kind of misundestood.. I will move it to driver/gpio will
that be ok?

Regards,
Ajay Bhargav

      reply	other threads:[~2011-08-17 12:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-16  6:01 [U-Boot] [PATCH v6 1/2] gpio: Add GPIO driver framework for Marvell SoCs Ajay Bhargav
2011-08-17  8:39 ` Prafulla Wadaskar
2011-08-17  8:48   ` Ajay Bhargav
2011-08-17 12:03     ` Prafulla Wadaskar
2011-08-17 12:08       ` Ajay Bhargav [this message]

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=391632421.98479.1313582892820.JavaMail.root@ahm.einfochips.com \
    --to=ajay.bhargav@einfochips.com \
    --cc=u-boot@lists.denx.de \
    /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