]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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, 12 Sep 2011 07:55:47 +0000 (08:55 +0100)
commitab1a07fd9dc296c16f6f2b810f5a86bf208632ed
tree664b4159926631fb54c14c1394b97cf1cb8d2864
parent47728d23af5736f77f7663a1bfd9fb0a197f3aa0
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