Skip to content

Commit bac135d

Browse files
jbrun3tstorulf
authored andcommitted
mmc: meson-gx: change default tx phase
Initial default tx phase was set to 0 while the datasheet recommends 270. Some cards fails to initialize with this setting and eMMC mode DDR52 does not work. Changing this setting to 270 fixes these issues, without any regression so far Reviewed-by: Kevin Hilman <[email protected]> Signed-off-by: Jerome Brunet <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
1 parent b1231b2 commit bac135d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drivers/mmc/host/meson-gx-mmc.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,8 +1156,14 @@ static int meson_mmc_probe(struct platform_device *pdev)
11561156
if (ret)
11571157
goto free_host;
11581158

1159+
/*
1160+
* Set phases : These values are mostly the datasheet recommended ones
1161+
* except for the Tx phase. Datasheet recommends 180 but some cards
1162+
* fail at initialisation with it. 270 works just fine, it fixes these
1163+
* initialisation issues and enable eMMC DDR52 mode.
1164+
*/
11591165
host->tp.core_phase = 180;
1160-
host->tp.tx_phase = 0;
1166+
host->tp.tx_phase = 270;
11611167
host->tp.rx_phase = 0;
11621168

11631169
ret = meson_mmc_clk_init(host);

0 commit comments

Comments
 (0)