mmc: sdhci: Introduce sdhci_calc_clk()
authorLudovic Desroches <ludovic.desroches@atmel.com>
Thu, 7 Apr 2016 09:13:08 +0000 (11:13 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 2 May 2016 08:33:26 +0000 (10:33 +0200)
commitfb9ee04779cf34a10ef7afaabf4e8055688777c4
tree01c3c9946d99848bd80f93dbcd745db2cf6eb1ff
parent02d0b68524c0848f5de89a0ecd1e97790018d7d3
mmc: sdhci: Introduce sdhci_calc_clk()

In order to remove the SDHCI_QUIRK2_NEED_DELAY_AFTER_INT_CLK_RST and to
reduce code duplication, put the code relative to the SD clock
configuration in a function which can be used by hosts for the
implementation of the ->set_clock() callback.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h