u-boot-brain/drivers
Kever Yang c077c057a4 mmc: dw_mmc: fix timeout calculate method
There are two cases not been considered:
- use uint for timeout, it will overflow when size bigger than 512KB for
  it *8*1000 at the beginning, but we may use size up to 32MB; The
  'timeout' will overflow if size bigger than 51.2MB after this fix, which
  should be enough for U-Boot;
- The timeout is using clock speed for data rate, but the device may not
  have such high speed, eg. clock is 52MHz while the device write speed may
  be less than 10MB/s, and we may use up to 150MHz clock.

Fix them in this patch, the max timeout is about 6500 when size is 32MB
after fix.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2019-09-05 15:28:40 +08:00
..
adc adc: stm32: Fix warnings when compiling with W=1 2019-07-12 11:50:55 +02:00
ata dm: scsi: Scan the actual number of ports 2019-08-26 11:46:20 -04:00
axi drivers: cosmetic: Convert SPDX license tags to Linux Kernel style 2018-10-28 09:26:39 -04:00
bios_emulator bios_emulator: remove stray break 2019-08-09 22:24:02 +08:00
block Revert "blk: Invalidate block cache when switching hwpart" 2019-08-30 14:17:11 -04:00
board board: gazerbeam: Fix SC detection 2019-05-21 08:03:38 +02:00
bootcount env: Drop environment.h header file where not needed 2019-08-11 16:43:41 -04:00
cache dm: cache: add v5l2 cache controller driver 2019-09-03 09:31:03 +08:00
clk clk: aspeed: Add support for SD clock 2019-09-05 15:27:31 +08:00
core Kconfig: Varios: Fix more SPL, TPL dependencies 2019-08-26 11:46:29 -04:00
cpu riscv: cpu: Skip unavailable hart in the get_count() op 2019-09-03 09:29:43 +08:00
crypto Revert "drivers/crypto/fsl: assign job-rings to non-TrustZone" 2019-06-11 10:42:48 +02:00
ddr ddr, fsl: add DM_I2C support 2019-08-26 21:16:24 +05:30
demo SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dfu env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00
dma CONFIG_SPL_SYS_[DI]CACHE_OFF: add 2019-05-18 08:15:35 -04:00
fastboot env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00
firmware firmware: ti_sci: Parse all resource ranges even if some is not available 2019-08-12 13:33:43 -04:00
fpga fpga: altera: cyclon2: Check function pointer before calling 2019-07-30 10:21:15 +02:00
gpio kconfig: Convert CONFIG_MXS_GPIO to Kconfig 2019-08-23 13:59:06 -04:00
hwspinlock hwspinlock: add stm32 hardware spinlock support 2018-12-06 23:26:33 -05:00
i2c i2c: mxc: add CONFIG_CLK support 2019-09-02 06:35:08 +02:00
input env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00
led led: bcm6858: allow to use this driver on ARCH_963158 2019-04-23 17:57:22 -04:00
mailbox mailbox: introduce stm32-ipcc driver 2019-07-12 11:18:53 +02:00
memory SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
misc Merge branch 'u-boot-stm32_20190827' of https://gitlab.denx.de/u-boot/custodians/u-boot-stm 2019-08-27 13:19:47 -04:00
mmc mmc: dw_mmc: fix timeout calculate method 2019-09-05 15:28:40 +08:00
mtd mtd: nand: raw: Move CONFIG_SYS_NAND_USE_FLASH_BBT to Kconfig 2019-08-25 20:58:37 -04:00
net drivers: net: mc: Report extra memory to Linux 2019-08-22 09:07:35 +05:30
nvme nvme: Fix PRP Offset Invalid 2019-08-26 11:46:28 -04:00
pch pch: Add ioctl support 2019-02-20 15:27:08 +08:00
pci dm: pcie_fsl: Add MPC8548 PCIe support 2019-08-28 13:47:47 +05:30
pci_endpoint pci_ep: Fix Coverity warning 2019-08-07 15:31:04 -04:00
phy Kconfig: Varios: Fix more SPL, TPL dependencies 2019-08-26 11:46:29 -04:00
pinctrl clk: aspeed: Add support for SD clock 2019-09-05 15:27:31 +08:00
power stpmic1: simplify stpmic1_sysreset_request 2019-08-27 11:19:23 +02:00
pwm pwm: imx: add DM_PWM support 2019-07-19 20:14:50 +02:00
qe env: Drop environment.h header file where not needed 2019-08-11 16:43:41 -04:00
ram stm32mp1: ram: add pattern parameter in infinite write test 2019-08-27 11:19:23 +02:00
remoteproc stm32mp1: Add remoteproc support for m4 coprocessor 2019-08-27 11:19:23 +02:00
reset env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00
rtc rtc: stm32: manage 2 digit limitation on year 2019-08-27 09:36:56 +02:00
scsi env: Move env_set_ulong() to env.h 2019-08-11 16:43:41 -04:00
serial serial: stm32: add Framing error support 2019-08-27 11:19:23 +02:00
smem drivers: smem: sandbox 2018-07-19 16:31:38 -04:00
soc soc: keystone: Merge into ti specific directory 2019-04-11 20:07:12 -04:00
sound sound: tegra: Add a sound driver 2019-05-24 10:14:10 -07:00
spi x86: ich-spi: Convert driver to spi-mem ops 2019-08-09 22:24:02 +08:00
spmi SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sysreset sysreset: move stm32mp sysreset poweroff implementation to sysreset uclass 2019-08-19 12:43:26 +08:00
tee env: Drop the ACTION typedef 2019-08-11 16:43:41 -04:00
thermal thermal: add i.MX8 thermal driver 2019-07-19 15:17:05 +02:00
timer dm: timer: Skip device that does not have a valid ofnode in pre_probe() 2019-07-24 12:54:08 -07:00
tpm tpm: wait for valid status 2019-07-11 14:11:18 -04:00
usb usb: r8a66597: Add optional DM VBUS regulator support 2019-08-22 18:23:36 +02:00
video env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00
virtio virtio: Add a Sandbox transport driver 2018-11-14 09:16:28 -08:00
w1 w1: Add driver for i.MX bus master controller 2019-01-01 14:12:18 +01:00
w1-eeprom w1-eeprom: Add support for Maxim DS2502 add only memory 2018-11-16 16:51:55 -05:00
watchdog watchdog: omap_wdt: Disable DM watchdog support in SPL 2019-08-12 13:27:55 -04:00
Kconfig Drop PCMCIA 2019-08-11 19:27:41 -04:00
Makefile Drop PCMCIA 2019-08-11 19:27:41 -04:00