diff options
author | Lily Zhang <r58066@freescale.com> | 2010-03-25 13:08:47 +0800 |
---|---|---|
committer | Lily Zhang <r58066@freescale.com> | 2010-03-26 10:33:53 +0800 |
commit | ee11693ea22bfb125e31a41d7caa212bca377e18 (patch) | |
tree | 740961990b96efa50dc7304ce47751af04420ce2 /drivers | |
parent | 5dc2ae3148c54f37000c4daf1f976d2526bf2263 (diff) |
ENGR00121963-2 SDHC: support "no card detection signal" case
SDHC3 slot in ARM2 CPU board doesn't have card detection signal.
For this case, set card state as "PRESENT" always. Please ensure
the card is inserted in ARM2 SDHC3 slot if using it.
Signed-off-by: Lily Zhang <r58066@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/host/mx_sdhci.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mmc/host/mx_sdhci.c b/drivers/mmc/host/mx_sdhci.c index 4a6e43c49bc3..6f5d5ef84f2b 100644 --- a/drivers/mmc/host/mx_sdhci.c +++ b/drivers/mmc/host/mx_sdhci.c @@ -1769,7 +1769,10 @@ static int __devinit sdhci_probe_slot(struct platform_device } host->detect_irq = platform_get_irq(pdev, 1); if (!host->detect_irq) { - host->flags &= ~SDHCI_CD_PRESENT; + if (mmc_plat->card_inserted_state) + host->flags |= SDHCI_CD_PRESENT; + else + host->flags &= ~SDHCI_CD_PRESENT; if ((pdev->id >= 0) && (pdev->id < MXC_SDHCI_NUM)) mxc_fix_chips[pdev->id] = chip; goto no_detect_irq; |