summaryrefslogtreecommitdiff
path: root/arch/arm/plat-omap/include/plat/gpio.h
diff options
context:
space:
mode:
authorCharulatha V <charu@ti.com>2011-05-05 20:15:16 +0530
committerTarun Kanti DebBarma <tarun.kanti@ti.com>2012-02-06 14:13:40 +0530
commit0cde8d03dd297fa8e7e88cedeb498d0ed5b7776d (patch)
tree542a4f06bc659180898d9e9d6bc3e540ddd088f1 /arch/arm/plat-omap/include/plat/gpio.h
parent03e128ca35e5da22e9e65ec8ab158ec0e905fdea (diff)
downloadlwn-0cde8d03dd297fa8e7e88cedeb498d0ed5b7776d.tar.gz
lwn-0cde8d03dd297fa8e7e88cedeb498d0ed5b7776d.zip
gpio/omap: use flag to identify wakeup domain
In omap3, save/restore context is implemented for GPIO banks 2-6 as GPIO bank1 is in wakeup domain. Instead of identifying bank's power domain by bank id, use 'loses_context' flag which is filled by pwrdm_can_ever_lose_context() during dev_init. For getting the powerdomain pointer, omap_hwmod_get_pwrdm() is used. omap_device_get_pwrdm() could not be used as the pwrdm information needs to be filled in pdata, whereas omap_device_get_pwrdm() could be used only after omap_device_build() call. Signed-off-by: Charulatha V <charu@ti.com> Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Reviewed-by: Kevin Hilman <khilman@ti.com> Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/plat-omap/include/plat/gpio.h')
-rw-r--r--arch/arm/plat-omap/include/plat/gpio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/gpio.h b/arch/arm/plat-omap/include/plat/gpio.h
index acf1c779629e..6eb035c0cc16 100644
--- a/arch/arm/plat-omap/include/plat/gpio.h
+++ b/arch/arm/plat-omap/include/plat/gpio.h
@@ -198,6 +198,7 @@ struct omap_gpio_platform_data {
int bank_width; /* GPIO bank width */
int bank_stride; /* Only needed for omap1 MPUIO */
bool dbck_flag; /* dbck required or not - True for OMAP3&4 */
+ bool loses_context; /* whether the bank would ever lose context */
struct omap_gpio_reg_offs *regs;
};