summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2015-02-04 15:48:39 +0900
committerPantelis Antoniou <pantelis.antoniou@konsulko.com>2015-02-23 19:36:55 +0200
commit3a33bb1874a75abde8872915f808945b6d20f6f2 (patch)
treeda5e8cb1583633e3d0326d7c5f4d32da5cc4a6ad
parentafc9e2b509a6db3b716c81c97f9147491ebf76ba (diff)
mmc: exynos_dw_mmc: set to clksel_val into board-init function
"clksel_val" is assigned to property of mmc or defined value. But it doesn't write at initial sequence. There is a reason that get the wrong source-clock value. This patch fixed it. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
-rw-r--r--drivers/mmc/exynos_dw_mmc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/exynos_dw_mmc.c b/drivers/mmc/exynos_dw_mmc.c
index dfa209bded..3936660892 100644
--- a/drivers/mmc/exynos_dw_mmc.c
+++ b/drivers/mmc/exynos_dw_mmc.c
@@ -64,6 +64,10 @@ static void exynos_dwmci_board_init(struct dwmci_host *host)
MPSCTRL_NON_SECURE_READ_BIT |
MPSCTRL_NON_SECURE_WRITE_BIT | MPSCTRL_VALID);
}
+
+ /* Set to clksel_val at initial time */
+ if (host->clksel_val)
+ exynos_dwmci_clksel(host);
}
static int exynos_dwmci_core_init(struct dwmci_host *host, int index)