From: Eric Miao Date: Tue, 20 Jan 2009 04:09:06 +0000 (+0800) Subject: [ARM] pxa: move common GPIO handling code into plat-pxa X-Git-Tag: v2.6.30-rc1~636^2~17^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38f539a608c9a3b40b30f1892bd5f9a38f4e5ffe;p=pandora-kernel.git [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 moved into , new processors should implement its own , provide the following required definitions and '#include ' 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 --- Reading git-diff-tree failed