omap_hsmmc: support for deeper power saving states
Subsystems (5)
PATCH 60/232 omap_hsmmc: support for deeper power saving states
From: Denis Karpov <[email protected]>
Support for multi-level dynamic power saving states in omap_hsmmc (ENABLED->DISABLED->OFF). In the "deepest" state (OFF) we switch off the voltage regulators.
Signed-off-by Denis Karpov <[email protected]>
Signed-off-by Adrian Hunter <[email protected]>
Acked-by Matt Fleming <[email protected]>
Cc Ian Molton <[email protected]>
Cc "Roberto A. Foglietta" <[email protected]>
Cc Jarkko Lavinen <[email protected]>
Cc Denis Karpov <[email protected]>
Cc Pierre Ossman <[email protected]>
Cc Philip Langdale <[email protected]>
Cc "Madhusudhan" <[email protected]>
Cc <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/arm/mach-omap2/mmc-twl4030.c | 3 arch/arm/mach-omap2/mmc-twl4030.h | 1 arch/arm/plat-omap/include/mach/mmc.h | 3 drivers/mmc/host/omap_hsmmc.c | 245 +++++++++++++++++++++--- 4 files changed, 222 insertions(+), 30 deletions(-)
arch/arm/mach-omap2/mmc-twl4030.c renamed from arch/arm/mach-omap2/mmc-twl4030.c~omap_hsmmc-support-for-deeper-power-saving-states +3 -0
@@ -418,6 +418,9 @@ void __init twl4030_mmc_init(struct twl4if (c->nonremovable) mmc->slots[0 ].nonremovable =1 ; +if (c->power_saving) + mmc->slots[0 ].power_saving =1 ; +/* NOTE: MMC slots should have a Vcc regulator set up. * This may be from a TWL4030-family chip, another * controllable regulator, or a fixed supply.
arch/arm/mach-omap2/mmc-twl4030.h renamed from arch/arm/mach-omap2/mmc-twl4030.h~omap_hsmmc-support-for-deeper-power-saving-states +1 -0
@@ -13,6 +13,7 @@ struct twl4030_hsmmc_info {bool ext_clock;/* use external pin for input clock */ bool cover_only;/* No card detect - just cover switch */ bool nonremovable;/* Nonremovable e.g. eMMC */ +bool power_saving;/* Try to sleep or power off when possible */ int gpio_cd;/* or -EINVAL */ int gpio_wp;/* or -EINVAL */ char *name;/* or NULL for default */
arch/arm/plat-omap/include/mach/mmc.h renamed from arch/arm/plat-omap/include/mach/mmc.h~omap_hsmmc-support-for-deeper-power-saving-states +3 -0
@@ -86,6 +86,9 @@ struct omap_mmc_platform_data {/* nonremovable e.g. eMMC */ unsigned nonremovable:1; +/* Try to sleep or power off when possible */ + unsigned power_saving:1; +int switch_pin;/* gpio (card detect) */ int gpio_wp;/* gpio (write protect) */
drivers/mmc/host/omap_hsmmc.c renamed from drivers/mmc/host/omap_hsmmc.c~omap_hsmmc-support-for-deeper-power-saving-states +215 -30
312 lines not on this page · raw message
_