ARM: 7024/1: simpad: Cleanup CS3 accessors.
authorJochen Friedrich <jochen@scram.de>
Thu, 18 Aug 2011 20:50:31 +0000 (21:50 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 17 Oct 2011 08:12:42 +0000 (09:12 +0100)
commitde0bc0d1b008d1240c03a0bac4f5534f995ab802
tree3f3b230d3ff6d3d1f27ceb5525867228668f44c2
parentf24dec9fdafadca53bf9db460da2cbbbfccdb584
ARM: 7024/1: simpad: Cleanup CS3 accessors.

- 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).
- fix PCMCIA driver to access the read-only pins
  rather than the shadow register for status bits.

Signed-off-by: Jochen Friedrich <jochen@scram.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-sa1100/include/mach/simpad.h
arch/arm/mach-sa1100/leds-simpad.c
arch/arm/mach-sa1100/simpad.c
drivers/pcmcia/sa1100_simpad.c