]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
mmc: sdhci-of-arasan: Added workaround for auto tuning.
authorSai Krishna Potthuri <lakshmi.sai.krishna.potthuri@xilinx.com>
Tue, 16 Aug 2016 09:11:34 +0000 (14:41 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 22 Aug 2016 09:24:00 +0000 (11:24 +0200)
commitba35b69e41d0eda5b2422bb3198c5bf253badd50
tree68e24075fabb1bc037b7ef89642aade46845c7e1
parent6ae1bdc7dfeb2733199dd6e9b32b7cecfd37b8ce
mmc: sdhci-of-arasan: Added workaround for auto tuning.

This patch adds new workaround for auto tuning and
removed existing workaround.
New workaround:
1.The "execute tuning" clears the host controller tuning
circuit and resets the tap values to zero.
2.This reset of the tap value takes a few clock cycles so
wait for few cycles ~60 cycles.
3.Reset the DLL to load an newly updated zero tap value.
4.Send CMD19/CMD21 as a part of the auto tuning process.
5.Once the auto tuning process gets completed.
6.Reset the DLL to load the newly obtained SDHC tuned tap value.

Signed-off-by: Sai Krishna Potthuri <lakshmis@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/mmc/host/sdhci-of-arasan.c