projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab1895f
)
MLK-17076 mmc: fsl_esdhc: fix the wrong sd/mmc clock frequency setting
author
Haibo Chen
<haibo.chen@nxp.com>
Mon, 4 Dec 2017 09:35:13 +0000
(17:35 +0800)
committer
Haibo Chen
<haibo.chen@nxp.com>
Wed, 13 Dec 2017 06:06:26 +0000
(14:06 +0800)
Change the pre_div to value 1, otherwise the actual sd/mmc clock
frequency is always half of the expect frequency.
Acked-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
drivers/mmc/fsl_esdhc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/fsl_esdhc.c
b/drivers/mmc/fsl_esdhc.c
index
13deee3
..
c5f7ccb
100644
(file)
--- a/
drivers/mmc/fsl_esdhc.c
+++ b/
drivers/mmc/fsl_esdhc.c
@@
-628,7
+628,7
@@
static void set_sysctl(struct mmc *mmc, uint clock)
if ((sdhc_clk / pre_div) <= (clock * 16))
break;
} else
- pre_div =
2
;
+ pre_div =
1
;
for (div = 1; div <= 16; div++)
if ((sdhc_clk / (div * pre_div)) <= clock)