mxc: Fix SDHC multi-instance clock
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
Mon, 1 Oct 2012 08:36:25 +0000 (08:36 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 16 Oct 2012 10:35:10 +0000 (12:35 +0200)
commita2ac1b3a7d8e685e8fe3805b3169f3dac5c06cf8
tree03120c255250a910bf8235366fa93c4adfa3f674
parent6e3dc127545247f123de063a6a101960e3eb2ccd
mxc: Fix SDHC multi-instance clock

On mxc, each SDHC instance has a dedicated clock, so gd->sdhc_clk is not
suitable for the multi-instance use case (initialization made directly with
fsl_esdhc_initialize()).

This patch fixes this issue by adding a configuration field for the SDHC input
clock frequency.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Eric Bénard <eric@eukrea.com>
Cc: Otavio Salvador <otavio@ossystems.com.br>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Jason Liu <r64343@freescale.com>
Cc: Matt Sealey <matt@genesi-usa.com>
Cc: Andy Fleming <afleming@gmail.com>
15 files changed:
board/esg/ima3-mx53/ima3-mx53.c
board/freescale/mx35pdk/mx35pdk.c
board/freescale/mx51evk/mx51evk.c
board/freescale/mx53ard/mx53ard.c
board/freescale/mx53evk/mx53evk.c
board/freescale/mx53loco/mx53loco.c
board/freescale/mx53smd/mx53smd.c
board/freescale/mx6qarm2/mx6qarm2.c
board/freescale/mx6qsabreauto/mx6qsabreauto.c
board/freescale/mx6qsabrelite/mx6qsabrelite.c
board/freescale/mx6qsabresd/mx6qsabresd.c
board/genesi/mx51_efikamx/efikamx.c
board/ttcontrol/vision2/vision2.c
drivers/mmc/fsl_esdhc.c
include/fsl_esdhc.h