diff options
author | Ido Yariv <ido@wizery.com> | 2011-07-28 16:49:09 -0400 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2011-09-17 06:23:23 -0400 |
commit | 4a9de8ad2cea3c952e8b1cff8aa9289cd9d66c62 (patch) | |
tree | aeda6998868a604d0bac882206f18dab598b5cbc /arch/arm/mach-davinci | |
parent | 6836989c35b285b566b932fdbb8402edf8fcc887 (diff) |
mmc: davinci: Add support for set_power callback
Some devices connected to the MMC bus are power controlled by external
means. For instance, an SDIO device may be powered down/up by an
external gpio line.
In order to avoid toggling power from within the MMC host driver, add a
set_power callback function, which will be called by set_ios upon
powering down/up.
Signed-off-by: Ido Yariv <ido@wizery.com>
CC: Chris Ball <cjb@laptop.org>
Acked-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci')
-rw-r--r-- | arch/arm/mach-davinci/include/mach/mmc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/include/mach/mmc.h b/arch/arm/mach-davinci/include/mach/mmc.h index d4f1e9675069..5ba6b22ce338 100644 --- a/arch/arm/mach-davinci/include/mach/mmc.h +++ b/arch/arm/mach-davinci/include/mach/mmc.h | |||
@@ -12,6 +12,9 @@ struct davinci_mmc_config { | |||
12 | /* get_cd()/get_wp() may sleep */ | 12 | /* get_cd()/get_wp() may sleep */ |
13 | int (*get_cd)(int module); | 13 | int (*get_cd)(int module); |
14 | int (*get_ro)(int module); | 14 | int (*get_ro)(int module); |
15 | |||
16 | void (*set_power)(int module, bool on); | ||
17 | |||
15 | /* wires == 0 is equivalent to wires == 4 (4-bit parallel) */ | 18 | /* wires == 0 is equivalent to wires == 4 (4-bit parallel) */ |
16 | u8 wires; | 19 | u8 wires; |
17 | 20 | ||