summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2016-12-30 15:30:17 +0900
committerJaehoon Chung <jh80.chung@samsung.com>2017-01-11 19:40:13 +0900
commitf73b33ff94a01a9818b04f4d4850ddbf2b144f49 (patch)
treeb78e7dd78a71f76c4a6b01e53becad08cfd1e887 /drivers
parent07b0b9c00cc8f8e981df35ac4720057469a8d3c8 (diff)
downloadu-boot-imx-f73b33ff94a01a9818b04f4d4850ddbf2b144f49.zip
u-boot-imx-f73b33ff94a01a9818b04f4d4850ddbf2b144f49.tar.gz
u-boot-imx-f73b33ff94a01a9818b04f4d4850ddbf2b144f49.tar.bz2
mmc: s5p_sdhci: add the s5p_set_clock function
Add the s5p_set_clock function. It's not good that "set_mmc_clk" is assigned directly. In future, it should be changed to use the clock framework. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/s5p_sdhci.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c
index ac737e0..2a4cdc0 100644
--- a/drivers/mmc/s5p_sdhci.c
+++ b/drivers/mmc/s5p_sdhci.c
@@ -73,6 +73,12 @@ static void s5p_sdhci_set_control_reg(struct sdhci_host *host)
sdhci_writel(host, ctrl, SDHCI_CONTROL2);
}
+static void s5p_set_clock(struct sdhci_host *host, u32 div)
+{
+ /* ToDo : Use the Clock Framework */
+ set_mmc_clk(host->index, div);
+}
+
static int s5p_sdhci_core_init(struct sdhci_host *host)
{
host->name = S5P_NAME;
@@ -83,7 +89,7 @@ static int s5p_sdhci_core_init(struct sdhci_host *host)
host->voltages = MMC_VDD_32_33 | MMC_VDD_33_34 | MMC_VDD_165_195;
host->set_control_reg = &s5p_sdhci_set_control_reg;
- host->set_clock = set_mmc_clk;
+ host->set_clock = &s5p_set_clock;
if (host->bus_width == 8)
host->host_caps |= MMC_MODE_8BIT;