[PATCHv2 2.6.40 2/3] ARM:simpad: Cleanup CS3 accessors.

Jochen Friedrich jochen at scram.de
Mon Apr 18 10:35:26 EDT 2011


Hi Jamie,

>> - 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).

I'll have a look at this. Last time I checked, a single virtual address
for a wite-only/read-only register pair was not supported, but this
might have changed.

 > This may need a few other bits (simpad_uart_pm(),
> simpad_map_io() etc) converting over to use the GPIO API though.

Yes. In particular the UART and PCMCIA stuff needs to be converted.
OTOH, this would make some board specific stuff obsolete and would
help to reduce the arch/arm/* mess some more ;-).

Unfortunately, my Simpad doesn't have a PCMCIA slot, so it's hard
for me to test this.

Thanks,
Jochen



More information about the linux-arm-kernel mailing list