aboutsummaryrefslogtreecommitdiff
path: root/board/samsung/smdk5250/smdk5250.c
diff options
context:
space:
mode:
authorGirish K S <girish@avatar.(none)>2012-11-06 11:23:07 +0100
committerJohn Rigby <john.rigby@linaro.org>2012-12-06 13:51:47 -0700
commit26c1532583a31650c83a7b502fc06504076157c8 (patch)
tree5512827beab7de67abc3bdec708ea1ccae5f8a4a /board/samsung/smdk5250/smdk5250.c
parented3ca71f89bc0216e1bab7df0b9d689eeca0a40d (diff)
The exynos dwmmc Ip has 2 stage divider. The first divider Register is in the vendor specific region of the dwmmc core (CLK_SEL), and second is part of the dwmmc generic registers (CLK_DIV). The goal of this patch is to maintain a 100MHz clock output before dividing it further by using the CLK_DIV. Depending on the card enumeration, it can be further divided by writing a correct divider in the dwmmc CLK_DIV register.
Signed-off-by: Girish K S <ks.giri@samsung.com>
Diffstat (limited to 'board/samsung/smdk5250/smdk5250.c')
-rw-r--r--board/samsung/smdk5250/smdk5250.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/samsung/smdk5250/smdk5250.c b/board/samsung/smdk5250/smdk5250.c
index 3bfc99ddd..b9372d1a5 100644
--- a/board/samsung/smdk5250/smdk5250.c
+++ b/board/samsung/smdk5250/smdk5250.c
@@ -138,6 +138,15 @@ int board_mmc_init(bd_t *bis)
}
err = exynos_dwmmc_init(2, 4);
+
+ err = exynos_pinmux_config(PERIPH_ID_SDMMC0, PINMUX_FLAG_8BIT_MODE);
+ if (err) {
+ debug("SDMMC0 not configured\n");
+ return err;
+ }
+
+ err = exynos_dwmmc_init(0, 8);
+
return err;
}
#endif