summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci.h
diff options
context:
space:
mode:
authorDong Aisheng2013-09-13 13:11:30 +0200
committerChris Ball2013-09-26 13:53:21 +0200
commit4525181245c0f4005788c17315aee4371662ddea (patch)
tree78de589e5f22571e1421fb7bd1d8758977455f7e /drivers/mmc/host/sdhci.h
parentmmc: sdhci-bcm2835: Use sdhci_pltfm_unregister instead of open coded (diff)
downloadkernel-qcow2-linux-4525181245c0f4005788c17315aee4371662ddea.tar.gz
kernel-qcow2-linux-4525181245c0f4005788c17315aee4371662ddea.tar.xz
kernel-qcow2-linux-4525181245c0f4005788c17315aee4371662ddea.zip
mmc: sdhci: add hooks for platform specific tuning
The tuning of some platforms may not follow the standard host control spec v3.0, e.g. Freescale uSDHC on i.MX6Q/DL. Add a hook here to allow execute platform specific tuning instead of standard host controller tuning. The hook only replaces the tuning process, so it's placed after tuning checking and before the real tuning process. Some notes for the tuning hook: 1) it needs handle lock itself if it wants to access host controller according platform specific implementation. 2) do not need to handle runtime pm since it executes with runtime pm get already. Signed-off-by: Dong Aisheng <b29396@freescale.com> Acked-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/sdhci.h')
-rw-r--r--drivers/mmc/host/sdhci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h
index b037f188fe44..976c14b5aaf9 100644
--- a/drivers/mmc/host/sdhci.h
+++ b/drivers/mmc/host/sdhci.h
@@ -288,6 +288,7 @@ struct sdhci_ops {
unsigned int (*get_ro)(struct sdhci_host *host);
void (*platform_reset_enter)(struct sdhci_host *host, u8 mask);
void (*platform_reset_exit)(struct sdhci_host *host, u8 mask);
+ int (*platform_execute_tuning)(struct sdhci_host *host, u32 opcode);
int (*set_uhs_signaling)(struct sdhci_host *host, unsigned int uhs);
void (*hw_reset)(struct sdhci_host *host);
void (*platform_suspend)(struct sdhci_host *host);