]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: fsl_esdhc: Allow all supported prescaler values
authorBenoît Thébaudeau <benoit@wsystem.com>
Wed, 3 May 2017 09:59:03 +0000 (11:59 +0200)
committerStefano Babic <sbabic@denx.de>
Wed, 31 May 2017 08:14:00 +0000 (10:14 +0200)
commit1ba5dbedb3b13e4cd09b1fcd0f007ebe4da6387e
treef78cb389b5c9a2fd94a57d4df094b16ab27aa9e6
parent83321bd8e59e74cb7dce69d96049640d33f053ed
mmc: fsl_esdhc: Allow all supported prescaler values

On i.MX, SYSCTL.SDCLKFS may be set to 0 in order to make the SD clock
frequency prescaler divide by 1 in SDR mode. In DDR mode, the prescaler
can divide by up to 512. Allow both of these settings.

The maximum SD clock frequency in High Speed mode is 50 MHz. On i.MX25,
this change makes it possible to get 48 MHz from the USB PLL
(240 MHz / 5 / 1) instead of only 40 MHz from the USB PLL
(240 MHz / 3 / 2) or 33.25 MHz from the AHB clock (133 MHz / 2 / 2).

Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
drivers/mmc/fsl_esdhc.c