mmc: sdhci-sprd: Add SD HS mode online tuning
authorWenchao Chen <wenchao.chen@unisoc.com>
Fri, 25 Aug 2023 09:17:43 +0000 (17:17 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 25 Aug 2023 09:58:19 +0000 (11:58 +0200)
commitd83d251bf3c2521bfce59016977da6c1cf995d61
treebfc7621028e9a7630110591958044e633b23330b
parentbac806830fde94ccf41482535fc442c02656febc
mmc: sdhci-sprd: Add SD HS mode online tuning

First of all, Unisoc's IC provides cmd delay and read delay to ensure
that the host can get the correct data. However, according to SD Spec,
there is no need to do tuning in high speed mode, but with the
development of chip processes, it is more and more difficult to find
a suitable delay to cover all the chips. Therefore, we need SD high
speed mode online tuning.

In addition, we added mmc_sd_switch() and mmc_send_status() to the
header file to allow it to be usable by the driver.

Signed-off-by: Wenchao Chen <wenchao.chen@unisoc.com>
Link: https://lore.kernel.org/r/20230825091743.15613-3-wenchao.chen@unisoc.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-sprd.c