]> 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>
Thu, 22 Sep 2011 18:23:36 +0000 (19:23 +0100)
commit7e8cac6775b00bc10cd656f1253c05ae72ea05ce
treed3bda05dc58773f4b7a899e05068cb63ea62112a
parent71deea922fa8f627eeaa5cddc2508814a177bd3a
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