Commit 688c2d140bcd457210a279dc489825e75ab1743a

Authored by Mela Custodio
Committed by Andy Fleming
1 parent b7e3129e55

mmc: add no simultaenous power and vdd

Bring in the code from Linux kernel.

Added to Linux kernel by:
commit e08c1694d9e2138204f2b79b73f0f159074ce2f5
Author: Andres Salomon <dilinger@queued.net>
Date:   Fri Jul 4 10:00:03 2008 -0700

Some HW balks when writing both voltage setting and power up at the same
time to SDHCI_POWER_CONTROL register.

Signed-off-by: Rommel G Custodio <sessyargc@gmail.com>
CC: Andy Fleming <afleming@freescale.com>

v2: fix attribution and SOB
Signed-off-by: Andy Fleming <afleming@freescale.com>

Showing 2 changed files with 4 additions and 0 deletions Side-by-side Diff

... ... @@ -340,6 +340,9 @@
340 340 return;
341 341 }
342 342  
  343 + if (host->quirks & SDHCI_QUIRK_NO_SIMULT_VDD_AND_POWER)
  344 + sdhci_writeb(host, pwr, SDHCI_POWER_CONTROL);
  345 +
343 346 pwr |= SDHCI_POWER_ON;
344 347  
345 348 sdhci_writeb(host, pwr, SDHCI_POWER_CONTROL);
... ... @@ -225,6 +225,7 @@
225 225 #define SDHCI_QUIRK_BROKEN_VOLTAGE (1 << 4)
226 226 #define SDHCI_QUIRK_NO_CD (1 << 5)
227 227 #define SDHCI_QUIRK_WAIT_SEND_CMD (1 << 6)
  228 +#define SDHCI_QUIRK_NO_SIMULT_VDD_AND_POWER (1 << 7)
228 229  
229 230 /* to make gcc happy */
230 231 struct sdhci_host;