[ARM] S3C: GPIO PM core GPIOlib integration
authorBen Dooks <ben-linux@fluff.org>
Fri, 12 Dec 2008 00:24:30 +0000 (00:24 +0000)
committerBen Dooks <ben-linux@fluff.org>
Thu, 7 May 2009 10:04:56 +0000 (11:04 +0100)
commitd87964c46005ccb04754f6309df0fd8f67b08c6d
treed35fc1fb3660dca0cdb236ef14ba27dcd69618f2
parent966bcc14386000e8b4dc7bbb426910bcb55a8588
[ARM] S3C: GPIO PM core GPIOlib integration

Move the GPIO suspend/resume support inline with the gpiolib support
so that it will work with both the S3C24XX and S3C64XX series.

The s3c_gpio_chip is extended to have a pm callback and a save block
to keep the state of the GPIO over suspend, and the code from the
s3c24xx implementation is added to a new common file.

The suspend process now uses the list of registered chips to go through
saving and restoring each one as appropriate, using the pm callback to
select the appropriate routine depending on the type of control register
present.

This change also means that any additional GPIO added should not require
changes to the PM.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/plat-s3c/Makefile
arch/arm/plat-s3c/gpio.c
arch/arm/plat-s3c/include/plat/gpio-core.h
arch/arm/plat-s3c/pm-gpio.c [new file with mode: 0644]
arch/arm/plat-s3c24xx/gpiolib.c
arch/arm/plat-s3c24xx/pm.c
arch/arm/plat-s3c64xx/gpiolib.c
arch/arm/plat-s3c64xx/pm.c