forked from Minki/linux
d87964c460
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>
35 lines
668 B
Makefile
35 lines
668 B
Makefile
# arch/arm/plat-s3c/Makefile
|
|
#
|
|
# Copyright 2008 Simtec Electronics
|
|
#
|
|
# Licensed under GPLv2
|
|
|
|
obj-y :=
|
|
obj-m :=
|
|
obj-n :=
|
|
obj- :=
|
|
|
|
# Core support for all Samsung SoCs
|
|
|
|
obj-y += init.o
|
|
obj-y += time.o
|
|
obj-y += clock.o
|
|
obj-y += pwm-clock.o
|
|
obj-y += gpio.o
|
|
obj-y += gpio-config.o
|
|
|
|
# PM support
|
|
|
|
obj-$(CONFIG_PM) += pm.o
|
|
obj-$(CONFIG_PM) += pm-gpio.o
|
|
obj-$(CONFIG_S3C2410_PM_CHECK) += pm-check.o
|
|
|
|
# devices
|
|
|
|
obj-$(CONFIG_S3C_DEV_HSMMC) += dev-hsmmc.o
|
|
obj-$(CONFIG_S3C_DEV_HSMMC1) += dev-hsmmc1.o
|
|
obj-y += dev-i2c0.o
|
|
obj-$(CONFIG_S3C_DEV_I2C1) += dev-i2c1.o
|
|
obj-$(CONFIG_S3C_DEV_FB) += dev-fb.o
|
|
obj-$(CONFIG_S3C_DEV_USB_HOST) += dev-usb.o
|