diff options
author | Eric Nelson <eric.nelson@boundarydevices.com> | 2013-07-07 11:56:28 -0700 |
---|---|---|
committer | Eric Nelson <eric.nelson@boundarydevices.com> | 2013-07-07 11:56:28 -0700 |
commit | 84ad2e650b61f3c1efff25af143ce8ec52f76b89 (patch) | |
tree | 503386fa0a2d8f2c9791633346dad185bd185a86 | |
parent | 6ca37a6dbbd683db03caa5fdfeb5c79b7f2cbec3 (diff) |
s: use platform-specific sdio set_power callback
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
-rw-r--r-- | arch/arm/mach-mx6/board-mx6_s.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-mx6/board-mx6_s.c b/arch/arm/mach-mx6/board-mx6_s.c index 06a6490743ac..9ffaccc7c49b 100644 --- a/arch/arm/mach-mx6/board-mx6_s.c +++ b/arch/arm/mach-mx6/board-mx6_s.c @@ -211,6 +211,13 @@ static int plt_sd_pad_change(unsigned int index, int clock) return IOMUX_SETUP(sd_pads[i]); } +static void sdio_set_power(int on) +{ + pr_debug("%s:%s: set power(%d)\n", + __FILE__, __func__, on); + gpio_set_value(N6_WL1271_WL_EN,on); +} + #ifdef CONFIG_WL12XX_PLATFORM_DATA static struct esdhc_platform_data sd2_data = { .always_present = 1, @@ -219,6 +226,7 @@ static struct esdhc_platform_data sd2_data = { .keep_power_at_suspend = 0, .caps = MMC_CAP_POWER_OFF_CARD, .platform_pad_change = plt_sd_pad_change, + .set_power = sdio_set_power, }; #endif |