u-boot-brain/drivers
Priyanka Jain b71ea33699 fsl_esdhc: Correcting esdhc timeout counter calculation
- Timeout counter value is set as DTOCV bits in SYSCTL register
  For counter value set as timeout,
  Timeout period = (2^(timeout + 13)) SD Clock cycles

- As per 4.6.2.2 section of SD Card specification v2.00, host should
  cofigure timeout period value to minimum 0.25 sec.

- Number of SD Clock cycles for 0.25sec should be minimum
	(SD Clock/sec * 0.25 sec) SD Clock cycles
	= (mmc->tran_speed * 1/4) SD Clock cycles

- Calculating timeout based on
	(2^(timeout + 13)) >=  mmc->tran_speed * 1/4
	Taking log2 both the sides and rounding up to next power of 2
	=> timeout + 13 = log2(mmc->tran_speed/4) + 1

Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
Acked-by: Mingkai Hu <Mingkai.Hu@freescale.com>
Tested-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2011-03-07 08:49:28 -06:00
..
bios_emulator Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
block MXC: removed warnings from IMX51 ATA driver 2011-02-02 00:54:43 +01:00
dma Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
fpga add Xilinx_abort_fn to Xilinx_Spartan3_Slave_Serial_fns 2010-11-30 21:59:21 +01:00
gpio mvmfp: add MFP configuration support for PANTHEON 2011-02-21 08:30:55 +01:00
hwmon Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
i2c I2C: mxc_i2c: address failure with mx35 processor 2011-02-02 00:54:43 +01:00
input Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
misc fsl_law: Fix LAW printing function 2011-02-22 23:25:19 -06:00
mmc fsl_esdhc: Correcting esdhc timeout counter calculation 2011-03-07 08:49:28 -06:00
mtd Minor Coding Style Cleanup. 2011-02-02 22:36:10 +01:00
net net: ne2000: Add spport RTL-8019AS 2011-02-15 21:55:41 +01:00
pci Minor Coding Style Cleanup. 2011-02-02 22:36:10 +01:00
pcmcia Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
power ftpmu010: support faraday ftpmu010 driver 2011-01-25 22:18:57 +01:00
qe UEC: Fix compiler warnings introduced by linux/mii.h change 2011-01-25 21:15:10 +01:00
rtc eNET: Add RTC support to eNET 2011-02-12 15:11:43 +11:00
serial serial: add pantheon soc support 2011-02-21 08:30:55 +01:00
spi altera_spi: add spi_set_speed 2011-02-08 08:29:53 -05:00
twserial Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
usb USB-RNDIS: Send RNDIS state on disconnecting 2011-02-19 20:32:38 +01:00
video video/mx3fb: fix clock divider 2010-12-17 21:24:02 +01:00
watchdog Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00