summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorSergei Antonov <saproj@gmail.com>2022-09-02 10:40:10 +0300
committerJaehoon Chung <jh80.chung@samsung.com>2022-10-24 18:01:07 +0900
commitfc6b5d82607f2c351455a8048a3dbc6169987c13 (patch)
tree29c85d142b333b9fe7abdf2cb9e94af78cf2d9eb /drivers/mmc
parent7723828c97bc107d2fba976fc50403ac8747f1bc (diff)
downloadu-boot-fc6b5d82607f2c351455a8048a3dbc6169987c13.tar.gz
u-boot-fc6b5d82607f2c351455a8048a3dbc6169987c13.tar.bz2
u-boot-fc6b5d82607f2c351455a8048a3dbc6169987c13.zip
mmc: ftsdc010: make command timeout 250 ms as in the comment
Get rid of discrepancy beween comment /* 250 ms */ and code which shifts by 4 thus dividing by 16. So change code to shift by 2 and make the timeout value 250 ms. Signed-off-by: Sergei Antonov <saproj@gmail.com> Reviewed-by: Rick Chen <rick@andestech.com> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/ftsdc010_mci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/ftsdc010_mci.c b/drivers/mmc/ftsdc010_mci.c
index 570d54cf9d..cabb747fbb 100644
--- a/drivers/mmc/ftsdc010_mci.c
+++ b/drivers/mmc/ftsdc010_mci.c
@@ -30,7 +30,7 @@
#include <syscon.h>
#include <linux/err.h>
-#define CFG_CMD_TIMEOUT (CONFIG_SYS_HZ >> 4) /* 250 ms */
+#define CFG_CMD_TIMEOUT (CONFIG_SYS_HZ >> 2) /* 250 ms */
#define CFG_RST_TIMEOUT CONFIG_SYS_HZ /* 1 sec reset timeout */
#if CONFIG_IS_ENABLED(OF_PLATDATA)