]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[ARM] pxa: move common GPIO handling code into plat-pxa
authorEric Miao <eric.miao@marvell.com>
Tue, 20 Jan 2009 04:09:06 +0000 (12:09 +0800)
committerEric Miao <eric.miao@marvell.com>
Mon, 23 Mar 2009 02:11:33 +0000 (10:11 +0800)
commit38f539a608c9a3b40b30f1892bd5f9a38f4e5ffe
treefeb9c3ee23fe75151f73e8916c1afeb7c562e0dd
parentbd5ce4332328c1fe473690a86b2e6a4157be038f
[ARM] pxa: move common GPIO handling code into plat-pxa

1. add common GPIO handling code into [arch/arm/plat-pxa]

2. common code in <mach/gpio.h> moved into <plat/gpio.h>, new processors
   should implement its own <mach/gpio.h>, provide the following required
   definitions and '#include <plat/gpio.h>' in the end:

   - GPIO_REGS_VIRT for mapped virtual address of the GPIO registers'
     physical I/O memory

   - macros of GPLR(), GPSR(), GPDR() for constant optimization for
     functions gpio_{set,get}_value() (so that bit-bang code can still
     have tolerable performance)

   - NR_BUILTIN_GPIO for the number of onchip GPIO

   - definitions of __gpio_is_inverted() and __gpio_is_occupied(), they
     can be either macros or inlined functions

Signed-off-by: Eric Miao <eric.miao@marvell.com>
arch/arm/mach-pxa/Makefile
arch/arm/mach-pxa/include/mach/gpio.h
arch/arm/plat-pxa/Makefile
arch/arm/plat-pxa/gpio.c [moved from arch/arm/mach-pxa/gpio.c with 89% similarity]
arch/arm/plat-pxa/include/plat/gpio.h [new file with mode: 0644]