android_kernel_xiaomi_sdm845/arch/arm/plat-s3c
Ben Dooks d87964c460 [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>
2009-05-07 11:04:56 +01:00
..
include [ARM] S3C: GPIO PM core GPIOlib integration 2009-05-07 11:04:56 +01:00
clock.c [ARM] S3C: Remove unnecessary <linux/delay.h> includes 2008-12-18 16:36:02 +00:00
dev-fb.c [ARM] fix AT91, davinci, h720x, ks8695, msm, mx2, mx3, netx, omap1, omap2, pxa, s3c 2009-01-08 16:29:42 +00:00
dev-hsmmc1.c [ARM] S3C: Add SDHCI (HSMMC) channel 1 device definition 2008-12-15 23:40:07 +00:00
dev-hsmmc.c [ARM] S3C6410: Add helper for setting SDHCI device information 2008-12-15 23:39:34 +00:00
dev-i2c0.c i2c-s3c2410: Simplify bus frequency calculation 2009-04-07 10:18:33 +01:00
dev-i2c1.c i2c-s3c2410: Simplify bus frequency calculation 2009-04-07 10:18:33 +01:00
dev-usb.c [ARM] S3C: Rename S3C24XX_PA_USBHOST to S3C_PA_USBHOST 2009-05-07 11:04:54 +01:00
gpio-config.c [ARM] S3C: Export s3c_gpio_cfgpin and s3c_gpio_setpull for modules 2009-04-16 11:52:02 +01:00
gpio.c [ARM] S3C: GPIO PM core GPIOlib integration 2009-05-07 11:04:56 +01:00
init.c [ARM] S3C: Remove unnecessary <linux/delay.h> includes 2008-12-18 16:36:02 +00:00
Kconfig [ARM] S3C64XX: Initial support for PM (suspend to RAM) 2009-05-07 11:04:55 +01:00
Makefile [ARM] S3C: GPIO PM core GPIOlib integration 2009-05-07 11:04:56 +01:00
pm-check.c [ARM] S3C: Do not kmalloc/kfree during inner suspend code. 2009-03-08 13:19:54 +00:00
pm-gpio.c [ARM] S3C: GPIO PM core GPIOlib integration 2009-05-07 11:04:56 +01:00
pm.c [ARM] S3C64XX: Initial support for PM (suspend to RAM) 2009-05-07 11:04:55 +01:00
pwm-clock.c [ARM] S3C: Update time initialisation to fix S3C64XX time problems 2008-12-16 10:13:02 +00:00
time.c [ARM] S3C: Update time initialisation to fix S3C64XX time problems 2008-12-16 10:13:02 +00:00