diff options
author | Marek Vasut <marex@denx.de> | 2019-03-23 03:32:24 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2019-04-29 10:08:56 +0200 |
commit | 4e16f0a67d80b4ce11995b870b5d9c8d11266d0d (patch) | |
tree | 06887e6d5010746adb8382529d5076d6beb74ee6 /include/configs/pengwyn.h | |
parent | 72c347ced8c09f8a61452c884e992c444f555fe2 (diff) |
mmc: dw_mmc: Calculate timeout from transfer length
The current 4-minute data transfer timeout is misleading and broken.
Instead of such a long wait, calculate the timeout duration based on
the length of the data transfer. The current formula is the transfer
length in bits, divided by a multiplication of bus frequency in Hz,
bus width, DDR mode and converted the mSec. The value is bounded from
the bottom to 1000 mSec.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/configs/pengwyn.h')
0 files changed, 0 insertions, 0 deletions