diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2012-01-13 03:31:32 -0500 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-03-25 19:33:44 -0400 |
commit | 356ac2cf066174aecc3380f82fabe8a01f046c3f (patch) | |
tree | 8f9d903b67e11faf3313c6af6ea5474b5f916adc /drivers/mmc | |
parent | 4265900e0be653f5b78baf2816857ef57cf1332f (diff) |
mmc: dw_mmc: add support for eMMC Power Off Notify feature
This patch adds the capability of power off notify for dw-mmc controller.
In order to use Girish's patch:
mmc: core: Add Power Off Notify Feature eMMC 4.5
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Will Newton <will.newton@imgtec.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/dw_mmc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 8bec1c36b159..1dfcdef452b9 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c | |||
@@ -1720,6 +1720,11 @@ static int __init dw_mci_init_slot(struct dw_mci *host, unsigned int id) | |||
1720 | if (host->pdata->quirks & DW_MCI_QUIRK_HIGHSPEED) | 1720 | if (host->pdata->quirks & DW_MCI_QUIRK_HIGHSPEED) |
1721 | mmc->caps |= MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED; | 1721 | mmc->caps |= MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED; |
1722 | 1722 | ||
1723 | if (mmc->caps2 & MMC_CAP2_POWEROFF_NOTIFY) | ||
1724 | mmc->power_notify_type = MMC_HOST_PW_NOTIFY_SHORT; | ||
1725 | else | ||
1726 | mmc->power_notify_type = MMC_HOST_PW_NOTIFY_NONE; | ||
1727 | |||
1723 | #ifdef CONFIG_MMC_DW_IDMAC | 1728 | #ifdef CONFIG_MMC_DW_IDMAC |
1724 | mmc->max_segs = host->ring_size; | 1729 | mmc->max_segs = host->ring_size; |
1725 | mmc->max_blk_size = 65536; | 1730 | mmc->max_blk_size = 65536; |