[PATCHv2 2.6.40 2/3] ARM:simpad: Cleanup CS3 accessors.
Jamie Iles
jamie at jamieiles.com
Mon Apr 18 09:47:12 EDT 2011
Hi Jochen,
On Mon, Apr 18, 2011 at 03:00:35PM +0200, Jochen Friedrich wrote:
> - prepend CS3 accessors by simpad_ to indicate they
> are specific to simpad devices.
> - use spinlock to protect shadow register.
> - implement 8 read-only pins.
> - use readl/writel macros so barriers are used where
> necessary.
> - register CS3 as GPIO controller with 24 pins
> (16 output only and 8 input only).
I think the basic-mmio-gpio driver (drivers/gpio/basic_mmio_gpio.c)
should cover the GPIO controller portion of this (including the
shadowing etc). This may need a few other bits (simpad_uart_pm(),
simpad_map_io() etc) converting over to use the GPIO API though.
Jamie
More information about the linux-arm-kernel
mailing list