diff options
author | Doug Anderson <dianders@chromium.org> | 2014-12-02 18:42:44 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-01-19 03:56:04 -0500 |
commit | a48fd4e77a947327faa820cadf5d8831061e337d (patch) | |
tree | d19e263bc65fab32cf42067120effa030cea5fe8 /arch | |
parent | ec6f34e5b552fb0a52e6aae1a5afbbb1605cc6cc (diff) |
ARM: OMAP2+: Make sure pandora_wl1251_init_card() applies to SDIO only
In preparation for having init_card() called for all card types (not
just SDIO), change pandora_wl1251_init_card() so it checks whether the
card type is SDIO.
Signed-off-by: Doug Anderson <dianders@chromium.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/board-omap3pandora.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c index 7f1708738c30..969e1003dd92 100644 --- a/arch/arm/mach-omap2/board-omap3pandora.c +++ b/arch/arm/mach-omap2/board-omap3pandora.c | |||
@@ -254,12 +254,14 @@ static void pandora_wl1251_init_card(struct mmc_card *card) | |||
254 | * We have TI wl1251 attached to MMC3. Pass this information to | 254 | * We have TI wl1251 attached to MMC3. Pass this information to |
255 | * SDIO core because it can't be probed by normal methods. | 255 | * SDIO core because it can't be probed by normal methods. |
256 | */ | 256 | */ |
257 | card->quirks |= MMC_QUIRK_NONSTD_SDIO; | 257 | if (card->type == MMC_TYPE_SDIO || card->type == MMC_TYPE_SD_COMBO) { |
258 | card->cccr.wide_bus = 1; | 258 | card->quirks |= MMC_QUIRK_NONSTD_SDIO; |
259 | card->cis.vendor = 0x104c; | 259 | card->cccr.wide_bus = 1; |
260 | card->cis.device = 0x9066; | 260 | card->cis.vendor = 0x104c; |
261 | card->cis.blksize = 512; | 261 | card->cis.device = 0x9066; |
262 | card->cis.max_dtr = 20000000; | 262 | card->cis.blksize = 512; |
263 | card->cis.max_dtr = 20000000; | ||
264 | } | ||
263 | } | 265 | } |
264 | 266 | ||
265 | static struct omap2_hsmmc_info omap3pandora_mmc[] = { | 267 | static struct omap2_hsmmc_info omap3pandora_mmc[] = { |