summaryrefslogtreecommitdiff
path: root/include/sdhci.h
diff options
context:
space:
mode:
authorFaiz Abbas <faiz_abbas@ti.com>2021-02-04 15:10:46 +0530
committerPraneeth Bajjuri <praneeth@ti.com>2021-03-16 13:04:01 -0500
commitfa7fd17b99935a7540e776d0f37904f5e9d122fd (patch)
tree49f29810d5d92f72dc3da4a1697d63998aa7f266 /include/sdhci.h
parentda9ba2ab07174f6be860497ecd685900fd367e40 (diff)
mmc: sdhci: Add helper functions for UHS modes
commit 43392b550e56b52274398763329f35d54109d291 upstream. Add a set_voltage() function which handles the switch from 3.3V to 1.8V for SD card UHS modes. Signed-off-by: Faiz Abbas <faiz_abbas@ti.com> Signed-off-by: Aswath Govindraju <a-govindraju@ti.com> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'include/sdhci.h')
-rw-r--r--include/sdhci.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/sdhci.h b/include/sdhci.h
index 1fd20ec086..db3f7928c4 100644
--- a/include/sdhci.h
+++ b/include/sdhci.h
@@ -491,6 +491,16 @@ void sdhci_set_uhs_timing(struct sdhci_host *host);
/* Export the operations to drivers */
int sdhci_probe(struct udevice *dev);
int sdhci_set_clock(struct mmc *mmc, unsigned int clock);
+
+/**
+ * sdhci_set_control_reg - Set control registers
+ *
+ * This is used set up control registers for voltage level and UHS speed
+ * mode.
+ *
+ * @host: SDHCI host structure
+ */
+void sdhci_set_control_reg(struct sdhci_host *host);
extern const struct dm_mmc_ops sdhci_ops;
#else
#endif