summaryrefslogtreecommitdiff
path: root/drivers/mmc/sdhci.c
diff options
context:
space:
mode:
authorFaiz Abbas <faiz_abbas@ti.com>2019-06-10 22:13:35 +0300
committerTom Rini <trini@konsulko.com>2019-07-17 18:12:08 +0300
commit3966c7d0060e7651f1f4e65349bc810426f61602 (patch)
treeaba4f852240fd06cca43c1b01f585d0626b1ea66 /drivers/mmc/sdhci.c
parent3d296365e4e8823c7c0d4b568fa7accfae4bf895 (diff)
downloadu-boot-3966c7d0060e7651f1f4e65349bc810426f61602.tar.xz
mmc: sdhci: Make sdhci_set_clock() non static
The am654_sdhci driver needs to switch the clock off before disabling its phy dll and needs to re-enable the clock before enabling the phy again. Therefore, make the sdhci_set_clock() function accessible in the am654_sdhci driver. Signed-off-by: Faiz Abbas <faiz_abbas@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/mmc/sdhci.c')
-rw-r--r--drivers/mmc/sdhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
index 742a54dacd..151e1e3c66 100644
--- a/drivers/mmc/sdhci.c
+++ b/drivers/mmc/sdhci.c
@@ -410,7 +410,7 @@ static int sdhci_execute_tuning(struct udevice *dev, uint opcode)
return 0;
}
#endif
-static int sdhci_set_clock(struct mmc *mmc, unsigned int clock)
+int sdhci_set_clock(struct mmc *mmc, unsigned int clock)
{
struct sdhci_host *host = mmc->priv;
unsigned int div, clk = 0, timeout;