sdhci: Advertise 2.0v supply on SDIO host controller
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 11 Jan 2018 13:51:58 +0000 (15:51 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 11 Jan 2018 14:51:09 +0000 (15:51 +0100)
commit2a609abe71ca59e4bd7139e161eaca2144ae6f2e
tree2e245461b39e3d0c42baa004b477ad7be4badcef
parentb8155d3ff3ebbdfa10c6ec6c5f04b263670727e6
sdhci: Advertise 2.0v supply on SDIO host controller

On Intel Edison the Broadcom Wi-Fi card, which is connected to SDIO,
requires 2.0v, while the host, according to Intel Merrifield TRM,
supports 1.8v supply only.

The card announces itself as

  mmc2: new ultra high speed DDR50 SDIO card at address 0001

Introduce a custom OCR mask for SDIO host controller on Intel Merrifield
and add a special case to sdhci_set_power_noreg() to override 2.0v supply
by enforcing 1.8v power choice.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-pci-core.c
drivers/mmc/host/sdhci.c