mmc: tmio: sdhi: HS400 manual adjustment
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sun, 19 May 2019 01:47:07 +0000 (03:47 +0200)
committerMarek Vasut <marex@denx.de>
Tue, 21 May 2019 20:15:32 +0000 (22:15 +0200)
commitb5900a58caf0416355ccab4dc9da55c9a388a953
tree1ff501649efb9428ea094815eb83a30f931d4ede
parent1bac2b6b415bdeee35c21a30292a50ca2a614871
mmc: tmio: sdhi: HS400 manual adjustment

Since Gen3 SDHI has an internal DS signal AC-spec violation in HS400 mode,
CRC-error may occur in read command in HS400 mode. This phoenomenon occurs
at low/high temperature.

To fix this, after completion of HS400 tuning, enable manual calibration.
However, Gen3 M3 Ver.1.2 or earlier and H3 1.x does not support HS400.
These SoC forcibly use HS200 mode by SoC attribute.

The DT adjustment of the tuning parameters is not supported until the
DT property names become clear.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Adapted from a patch by Takeshi Saito <takeshi.saito.xv@renesas.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Cc: Peng Fan <peng.fan@nxp.com>
drivers/mmc/renesas-sdhi.c
drivers/mmc/tmio-common.h