summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-s3c/gpio.c
Commit message (Collapse)AuthorAgeFilesLines
* ARM: s3c: fix check of index into s3c_gpios[]Roel Kluin2009-09-191-1/+1
| | | | | | | | | | The check of the s3c_gpios[] index had an off-by-one. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Acked-by: Ben Dooks <ben-linux@fluff.org> Cc: Russell King <rmk@arm.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
* [ARM] S3C: GPIO PM core GPIOlib integrationBen Dooks2009-05-071-1/+10
| | | | | | | | | | | | | | | | | | | 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>
* [ARM] S3C: Add GPIO chip trackingBen Dooks2008-12-161-1/+20
| | | | | | | | | The gpiolib driver keeps its chip array to itself and having a separate array for s3c-only gpios stops any non-s3c gpio being used in one of the s3c specific configuration calls. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
* [ARM] S3C: Move common GPIO code from plat-s3c24xxBen Dooks2008-12-161-0/+128
Move the common parts of the GPIO code into plat-s3c for use with both the s3c24xx and s3c64xx systems. Signed-off-by: Ben Dooks <ben-linux@fluff.org>