public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8 RFC] OMAP: GPIO: Split OMAP1 and OMAP2PLUS
@ 2010-03-31 12:23 Charulatha V
  2010-03-31 12:23 ` [PATCH 1/8] OMAP:GPIO:Move architecture specific macros to specific header Charulatha V
  2010-04-06 22:31 ` [PATCH 0/8 RFC] OMAP: GPIO: Split OMAP1 and OMAP2PLUS Kevin Hilman
  0 siblings, 2 replies; 36+ messages in thread
From: Charulatha V @ 2010-03-31 12:23 UTC (permalink / raw)
  To: linux-omap; +Cc: rnayak, paul, tony, Charulatha V

This patch series is in preparation to adapt GPIO to HWMOD FW.
It creates OMAP architecture specific gpio files to handle
SoC specific gpio_init. The common plat-omap/gpio.c handles all
common GPIO APIs.

OMAP2PLUS GPIO module is implemented as early platform device and
OMAP1 GPIO is still handled in old way via gpio_init from board files.

Save/restore context, gpio_prepare_for_retention and
gpio_resume_after_retention APIs are also handled in plat-omap layer.
These APIs are currently not used in OMAP1, but still they might
become common for different OMAP architectures in the future.
Hence they are handled in plat-omap layer. If they need to be moved
to mach-omap2 layer, additional patches may be sent during
next version of this patch series.

This patch series is generated on top of linux-omap-2.6 branch: master
and tested on 3430SDP, 4430SDP & zoom3.

Charulatha V (8):
  OMAP:GPIO:Move architecture specific macros to specific header
  OMAP2PLUS:GPIO:Move gpio_init from board files to init_common_hw
  OMAP3:GPIO:Add support for early platform gpio device
  OMAP2:GPIO:Add support for early platform gpio device
  OMAP4:GPIO:Add support for early platform gpio device
  OMAP2PLUS:GPIO:Add OMAP2PLUS specific gpio support
  OMAP1:GPIO:Support for OMAP1 specific gpio
  OMAP:GPIO:Common platform code for all OMAPs

 arch/arm/mach-omap1/Makefile               |    2 +-
 arch/arm/mach-omap1/gpio.c                 |  404 ++++++
 arch/arm/mach-omap1/include/mach/gpio.h    |   88 ++
 arch/arm/mach-omap2/Makefile               |    7 +-
 arch/arm/mach-omap2/board-2430sdp.c        |    3 +-
 arch/arm/mach-omap2/board-3430sdp.c        |    3 +-
 arch/arm/mach-omap2/board-3630sdp.c        |    3 +-
 arch/arm/mach-omap2/board-4430sdp.c        |    3 +-
 arch/arm/mach-omap2/board-am3517evm.c      |    3 +-
 arch/arm/mach-omap2/board-apollon.c        |    3 +-
 arch/arm/mach-omap2/board-cm-t35.c         |    3 +-
 arch/arm/mach-omap2/board-devkit8000.c     |    3 +-
 arch/arm/mach-omap2/board-generic.c        |    2 +-
 arch/arm/mach-omap2/board-h4.c             |    3 +-
 arch/arm/mach-omap2/board-igep0020.c       |    3 +-
 arch/arm/mach-omap2/board-ldp.c            |    3 +-
 arch/arm/mach-omap2/board-n8x0.c           |    3 +-
 arch/arm/mach-omap2/board-omap3beagle.c    |    3 +-
 arch/arm/mach-omap2/board-omap3evm.c       |    3 +-
 arch/arm/mach-omap2/board-omap3pandora.c   |    3 +-
 arch/arm/mach-omap2/board-omap3touchbook.c |    3 +-
 arch/arm/mach-omap2/board-overo.c          |    3 +-
 arch/arm/mach-omap2/board-rx51.c           |    3 +-
 arch/arm/mach-omap2/board-zoom2.c          |    3 +-
 arch/arm/mach-omap2/board-zoom3.c          |    3 +-
 arch/arm/mach-omap2/gpio.c                 |   36 +
 arch/arm/mach-omap2/gpio2xxx.c             |  472 +++++++
 arch/arm/mach-omap2/gpio3xxx.c             |  351 ++++++
 arch/arm/mach-omap2/gpio44xx.c             |  350 ++++++
 arch/arm/mach-omap2/include/mach/gpio.h    |  114 ++
 arch/arm/mach-omap2/io.c                   |    2 +
 arch/arm/plat-omap/gpio.c                  | 1827 ++++++----------------------
 arch/arm/plat-omap/include/plat/gpio.h     |  180 +++-
 33 files changed, 2360 insertions(+), 1535 deletions(-)
 create mode 100644 arch/arm/mach-omap1/gpio.c
 create mode 100644 arch/arm/mach-omap2/gpio.c
 create mode 100644 arch/arm/mach-omap2/gpio2xxx.c
 create mode 100644 arch/arm/mach-omap2/gpio3xxx.c
 create mode 100644 arch/arm/mach-omap2/gpio44xx.c


^ permalink raw reply	[flat|nested] 36+ messages in thread
* RE: [PATCH 3/8] OMAP2:GPIO:Add support for early platform gpio device
@ 2010-04-01  8:56 Varadarajan, Charulatha
  0 siblings, 0 replies; 36+ messages in thread
From: Varadarajan, Charulatha @ 2010-04-01  8:56 UTC (permalink / raw)
  To: felipe.balbi@nokia.com
  Cc: linux-omap@vger.kernel.org, Nayak, Rajendra, paul@pwsan.com,
	tony@atomide.com



> -----Original Message-----
> From: Varadarajan, Charulatha
> Sent: Thursday, April 01, 2010 2:24 PM
> To: 'felipe.balbi@nokia.com'
> Cc: linux-omap@vger.kernel.org; Nayak, Rajendra; paul@pwsan.com; tony@atomide.com
> Subject: RE: [PATCH 3/8] OMAP2:GPIO:Add support for early platform gpio device
> 
> 
> 
> > -----Original Message-----
> > From: Felipe Balbi [mailto:felipe.balbi@nokia.com]
> > Sent: Thursday, April 01, 2010 12:56 PM
> > To: Varadarajan, Charulatha
> > Cc: linux-omap@vger.kernel.org; Nayak, Rajendra; paul@pwsan.com;
> tony@atomide.com
> > Subject: Re: [PATCH 3/8] OMAP2:GPIO:Add support for early platform gpio device
> >
> > On Wed, Mar 31, 2010 at 02:23:54PM +0200, ext Charulatha V wrote:
> > >+static inline struct gpio_bank *omap2_get_gpio_bank(int gpio,
> > >+                                       struct gpio_bank *gpio_bank)
> > >+{
> > >+       if (cpu_is_omap24xx())
> > >+               return &gpio_bank[gpio >> 5];
> > >+       BUG();
> >
> > so if we build support omap 2420 and 3430 we will have a BUG() ??
> 
> Multi-OMAP build will not give a BUG(). If this function is called during non-3430
> OMAP arch, it will have a BUG().

A correction - it would give BUG() for non-24xx OMAP, if called.

> 
> >
> > --
> > balbi

^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2010-04-19 14:31 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-31 12:23 [PATCH 0/8 RFC] OMAP: GPIO: Split OMAP1 and OMAP2PLUS Charulatha V
2010-03-31 12:23 ` [PATCH 1/8] OMAP:GPIO:Move architecture specific macros to specific header Charulatha V
2010-03-31 12:23   ` [PATCH 2/8] OMAP3:GPIO:Add support for early platform gpio device Charulatha V
2010-03-31 12:23     ` [PATCH 3/8] OMAP2:GPIO:Add " Charulatha V
2010-03-31 12:23       ` [PATCH 4/8] OMAP4:GPIO:Add " Charulatha V
2010-03-31 12:23         ` [PATCH 5/8] OMAP2PLUS:GPIO:Add OMAP2PLUS specific gpio support Charulatha V
2010-03-31 12:23           ` [PATCH 6/8] OMAP1:GPIO:Support for OMAP1 specific gpio Charulatha V
2010-03-31 12:23             ` [PATCH 7/8] OMAP2PLUS:GPIO:Move gpio_init from board files to init_common_hw Charulatha V
2010-03-31 12:23               ` [PATCH 8/8] OMAP:GPIO:Common platform code for all OMAPs Charulatha V
2010-04-01  9:34                 ` Tony Lindgren
2010-04-01  9:32               ` [PATCH 7/8] OMAP2PLUS:GPIO:Move gpio_init from board files to init_common_hw Tony Lindgren
2010-04-01 10:50                 ` Varadarajan, Charulatha
2010-04-06 22:13               ` Kevin Hilman
2010-04-01  9:30           ` [PATCH 5/8] OMAP2PLUS:GPIO:Add OMAP2PLUS specific gpio support Tony Lindgren
2010-04-06 22:08             ` Kevin Hilman
2010-04-01  7:26       ` [PATCH 3/8] OMAP2:GPIO:Add support for early platform gpio device Felipe Balbi
2010-04-01  8:53         ` Varadarajan, Charulatha
2010-04-01  8:58           ` Felipe Balbi
2010-04-01  9:16             ` Varadarajan, Charulatha
2010-04-01  7:23     ` [PATCH 2/8] OMAP3:GPIO:Add " Felipe Balbi
2010-04-01  8:58       ` Varadarajan, Charulatha
2010-04-01  9:12         ` Tony Lindgren
2010-04-01  9:19           ` Varadarajan, Charulatha
2010-04-01  9:13     ` Tony Lindgren
2010-04-01 10:49       ` Varadarajan, Charulatha
2010-04-01  9:31     ` Tony Lindgren
2010-04-01 10:50       ` Varadarajan, Charulatha
2010-04-01  7:17   ` [PATCH 1/8] OMAP:GPIO:Move architecture specific macros to specific header Felipe Balbi
2010-04-01  8:52     ` Varadarajan, Charulatha
2010-04-01  9:00       ` Felipe Balbi
2010-04-01  9:41       ` Tony Lindgren
2010-04-01 10:50         ` Varadarajan, Charulatha
2010-04-06 22:31 ` [PATCH 0/8 RFC] OMAP: GPIO: Split OMAP1 and OMAP2PLUS Kevin Hilman
2010-04-12 12:16   ` Varadarajan, Charulatha
2010-04-19 14:31     ` Kevin Hilman
  -- strict thread matches above, loose matches on Subject: below --
2010-04-01  8:56 [PATCH 3/8] OMAP2:GPIO:Add support for early platform gpio device Varadarajan, Charulatha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox