Thread (6 messages) 6 messages, 2 authors, 2011-07-19

Re: [PATCH] powerpc/5200: add GPIO functions for simple interrupt GPIOs

From: Anatolij Gustschin <agust@denx.de>
Date: 2011-07-19 08:39:19

On Fri, 15 Jul 2011 14:08:01 -0600
Grant Likely [off-list ref] wrote:
On Sat, Jul 09, 2011 at 12:14:09PM +0200, Anatolij Gustschin wrote:
quoted
On Wed, 6 Jul 2011 11:52:45 -0600
Grant Likely [off-list ref] wrote:
quoted
On Mon, May 23, 2011 at 11:25:30AM +0200, Anatolij Gustschin wrote:
quoted
The mpc52xx_gpio driver currently supports 8 wakeup GPIOs and 32
simple GPIOs. Extend it to also support GPIO function of 8 simple
interrupt GPIOs controlled in the standard GPIO register module.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
---
 arch/powerpc/platforms/52xx/mpc52xx_gpio.c |  117 ++++++++++++++++++++++++++++
I don't want to merge more open coded MMIO gpio driver code.  This whole driver really needs to be converted to use GENERIC_GPIO.
I'm not sure I understand what you mean. Do you mean
the conversion to drop of_mm_* stuff?
No, I mean conversion to use the generic gpio register access
functions instead of creating new ones.
Could you please explain which functions exactly should be
generalized? All functions (32-bit gpio register access and
8-bit gpio register access for wakeup and simple interrupt gpio
registers) by providing an access function and doing all
simple/wakeup/simple-interrupt gpio specific stuff in it? Or only
providing generic functions for 8-bit gpio registers and use them
for both wakeup and simple-interrupt gpios? Which struct should be
used for register offset calculation in accessors then? Should a
generic 8-bit gpio register description struct be added for this
purpose? Or some defines for generic register offsets? How to
differentiate between shadow registers for wakeup and simple-
interrupt gpios in generic accessors? By adding a type field
to mpc52xx_gpiochip struct and checking for it in generic
accessors?

Thanks,
Anatolij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help