summaryrefslogtreecommitdiff
path: root/usr/.gitignore
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2020-09-02 11:18:12 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2020-09-09 14:09:44 +0300
commitce6f92c2801e90650106b00666aa37560978e324 (patch)
tree6efa2c8040f9c5a278bde4292f8ed307d4c4d565 /usr/.gitignore
parent354f47b699ae209606dcd0b05200cd7f17059e38 (diff)
downloadlinux-ce6f92c2801e90650106b00666aa37560978e324.tar.xz
mmc: renesas_sdhi: support manual calibration
Some R-Car Gen3 SoCs need some manual correction of timing parameters after the automatic tuning has finished but before next CMD13 is completed. This patch implements that by this state machine: - introducing a per-SoC correction table if needed - iff such a table exists, the 'fixup_request' callback is populated during probe - iff such a table exists, a runtime flag ('needs_adjust_hs400') is set when HS400 tuning was completed - the callback will check the runtime flag and enable the corrected manual mode if the flag is set and CMD13 is encountered - at the end of the enablement the runtime flag is cleared - iff the configuration flag is set, the manual mode will be disabled when HS400 gets downgraded There also some helper functions added to access the TMPPORT registers. The actual correction table is SoC and instance(!) specific and is added to the quirks struct. Signed-off-by: Takeshi Saito <takeshi.saito.xv@renesas.com> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Link: https://lore.kernel.org/r/20200902081812.1591-3-wsa+renesas@sang-engineering.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'usr/.gitignore')
0 files changed, 0 insertions, 0 deletions