[ARM] 3160/1: SharpSL: Add driver for Akita specific GPIOs
authorRichard Purdie <rpurdie@rpsys.net>
Sun, 13 Nov 2005 10:07:48 +0000 (10:07 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 13 Nov 2005 10:07:48 +0000 (10:07 +0000)
commitbd5d080ab99642e3245ef7cfa54490384c01d878
treef3a6c1a55d9ecf9e6fcecc4e57fe36a1240c0ce4
parente8b6f7f437a624fc2e2a2ec92fbeffdcf6f0e11e
[ARM] 3160/1: SharpSL: Add driver for Akita specific GPIOs

Patch from Richard Purdie

Add a driver for the extra GPIOs found on the Sharp SL-C1000 (Akita).
These GPIOs are found on a Maxim MAX7310 I2C i/o expander chip. A
generic GPIO driver for the MAX7310 was attempted but this mini
driver is a much simpler and much more effective solution avoiding
several issues and complexity the generic driver had (as discussed
on LKML).

The platform device is required so the device parent can be set
correctly which ensures the device is one of the last to suspend
and first to resume. Whilst the i2c suspend/resume calls can be
influenced, nothing guarantees this is easlier/later than the
subsystems the gpios are used on which are all independent of i2c
(sound, irda, video/backlight etc.).

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-pxa/Makefile
arch/arm/mach-pxa/akita-ioexp.c [new file with mode: 0644]
include/linux/i2c-id.h