]> 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, 8 Sep 2011 09:12:45 +0000 (10:12 +0100)
commit88400c7f6c8d3fbe64ff55f4f0321a5a5b5a2f70
tree16bc19de32cda12ac871e95539332dcd7205855f
parent7a160841b7f1bc47370020cd63e5d89e507021f2
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