summaryrefslogtreecommitdiffstats
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2015-02-06 14:12:52 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2015-06-01 09:07:11 +0200
commitb4f30a174e1fda8118eda038b5d8d5260db36ad5 (patch)
treedc77366f106bc5b15aa836518dc5cbfca855b558 /include/linux/mmc
parent75e8a2288c4fabd6c2f752e8fd3bf7f60be7d3a4 (diff)
downloadop-kernel-dev-b4f30a174e1fda8118eda038b5d8d5260db36ad5.zip
op-kernel-dev-b4f30a174e1fda8118eda038b5d8d5260db36ad5.tar.gz
mmc: core: Allow card drive strength to be different to host
Initialization of UHS-I modes for SD and SDIO cards employs a callback to allow the host driver to choose a drive strength value. Currently that assumes the card drive strength and host driver type must be the same value. Change to let the callback make that decision and return both the card drive strength and host driver type. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r--include/linux/mmc/host.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h
index 433eccb..da33d18 100644
--- a/include/linux/mmc/host.h
+++ b/include/linux/mmc/host.h
@@ -132,7 +132,8 @@ struct mmc_host_ops {
/* Prepare HS400 target operating frequency depending host driver */
int (*prepare_hs400_tuning)(struct mmc_host *host, struct mmc_ios *ios);
- int (*select_drive_strength)(unsigned int max_dtr, int host_drv, int card_drv);
+ int (*select_drive_strength)(unsigned int max_dtr, int host_drv,
+ int card_drv, int *drv_type);
void (*hw_reset)(struct mmc_host *host);
void (*card_event)(struct mmc_host *host);
OpenPOWER on IntegriCloud