exynos5420: Setup clocks for MMC bus controller.

To configure source clocks on Exynos 5420 for MMC drivers.
Some registers are different from the 5250. FSYS now has two parts
and MMC uses FSYS2. The MMC block uses MPLL as the clock source.
The "high-speed" MMC interface runs as 52MHz, so divider is set
accordingly.

Also, the MMC driver has changed from MSHCI (Mobile Storage Host Controller
Interface) to DWMCI (DesignWare MMC Controller Interface).

Change-Id: I9ba9cf43e2f2dcd9da747888c0c7676bd545177b
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/60858
Reviewed-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: http://review.coreboot.org/4354
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
Hung-Te Lin
2013-07-03 19:07:21 +08:00
committed by Stefan Reinauer
parent 865912cec0
commit f6d6e62aaf
4 changed files with 64 additions and 15 deletions

View File

@@ -85,6 +85,15 @@ unsigned long clock_get_periph_rate(enum periph_id peripheral);
*/
int clock_set_mshci(enum periph_id peripheral);
/*
* Set dwmci controller instances clock drivder
*
* @param enum periph_id instance of the dwmci controller
*
* Return 0 if ok else -1
*/
int clock_set_dwmci(enum periph_id peripheral);
/*
* Sets the epll clockrate
*