Integrate meta-seco-rk/u-boot-seco-rk/ap/e09-fix-mmc-delays-low-temp
Integrate u-boot-seco-rk/ap/e09-fix-mmc-delays-low-temp
--
[DRIVER] dw-mmc: spl: modify the timeout for reading data to 50ms
Based on a patch suggested by rockchip after having issues testing E09 at -37°C: boot failed with the following error:
MMC error: The cmd index is 16, ret is -110.....
*** ERROR: Can't read MBR header ***
part_get_info_efi: *** ERROR: Invalid GPT ***
MMC error: The cmd index is 16, ret is -110.....
*** ERROR: Can't read MBR header ***
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
MMC error: The cmd index is 16, ret is -110.....
*** ERROR: Can't read MBR header ***
part_get_info_efi: *** ERROR: Invalid GPT ***
MMC error: The cmd index is 16, ret is -110.....
*** ERROR: Can't read MBR header ***
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
Original commit message:
KOWIN's EMMC has a timeout issue and needs to be increased. bug: [2024-05-07_16:55:54:251]MMC error: The cmd index is 18, ret is -110 [2024-05-07_16:55:54:282]MMC error: The cmd index is 7, ret is -110 [2024-05-07_16:55:54:297]MMC error: The cmd index is 7, ret is -110
--
mmc: dw_mmc: set cmd/data timeout according to register
The previous implementation set the timeout to 10s as as a minimum, change it to reasonable value that is depends on register value.
Signed-off-by: Ziyuan Xu xzy.xu@rock-chips.com Change-Id: I964a0d98f8849da79dede76db1638b939ad7999d