From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pantelis Antoniou Date: Mon, 23 Feb 2015 19:40:29 +0200 Subject: [U-Boot] [PATCH 2/3] mmc: exynos_dw_mmc: set to clksel_val into board-init function In-Reply-To: <1423032520-18165-3-git-send-email-jh80.chung@samsung.com> References: <1423032520-18165-1-git-send-email-jh80.chung@samsung.com> <1423032520-18165-3-git-send-email-jh80.chung@samsung.com> Message-ID: <661E4288-52D3-435F-BB83-19E50E6826ED@konsulko.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Jaehoon, > On Feb 4, 2015, at 08:48 , Jaehoon Chung wrote: > > "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 > --- > drivers/mmc/exynos_dw_mmc.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/mmc/exynos_dw_mmc.c b/drivers/mmc/exynos_dw_mmc.c > index dfa209b..3936660 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) > -- > 1.9.1 > Thanks, applied. ? Pantelis