diff options
author | Eric Nelson <eric.nelson@boundarydevices.com> | 2013-07-09 07:16:38 -0700 |
---|---|---|
committer | Eric Nelson <eric.nelson@boundarydevices.com> | 2013-07-09 07:16:38 -0700 |
commit | 4f6f427b0d72b6730d0c07d9aa0a1e289802b4c4 (patch) | |
tree | 5938bb7e58e2528c1db72205db820177d5c49c12 | |
parent | dad07f3a69aff400e7bc2fcc44a0d9f7c353789c (diff) |
nit6xlite: use SDIO set_power callback
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
-rw-r--r-- | arch/arm/mach-mx6/board-mx6_nit6xlite.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-mx6/board-mx6_nit6xlite.c b/arch/arm/mach-mx6/board-mx6_nit6xlite.c index dd5b5d9b42f9..25e78ebcd7e3 100644 --- a/arch/arm/mach-mx6/board-mx6_nit6xlite.c +++ b/arch/arm/mach-mx6/board-mx6_nit6xlite.c @@ -216,6 +216,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_err("%s:%s: set power(%d)\n", + __FILE__, __func__, on); + gpio_set_value(WL_EN,on); +} + /* Broadcom wifi */ static struct esdhc_platform_data mx6_sd2_data = { .always_present = 1, @@ -224,6 +231,7 @@ static struct esdhc_platform_data mx6_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, }; /* SD card */ |