]> git.ipfire.org Git - people/ms/u-boot.git/commit
mmc: sdhci-cadence: set timing mode register depending on frequency
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 28 Sep 2017 12:13:10 +0000 (21:13 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 29 Sep 2017 02:34:22 +0000 (11:34 +0900)
commit3d3108d459e6d034f20aab33b11f4d23537f0c27
tree950362ffb82e2be54d8e486c82fb97dd1e847667
parentb016b585425b66ea53eef6b8600aff78a4205b9e
mmc: sdhci-cadence: set timing mode register depending on frequency

The MMC framework in U-Boot does not support a systematic API for
timing switch like mmc_set_timing() in Linux.

U-Boot just provides a hook to change the clock frequency via
mmc_set_clock().  It is up to drivers if additional register
settings are needed.

This driver needs to set a correct timing mode into a register when
it migrates to a different speed mode.  Only increasing clock frequency
could result in setup/hold timing violation.

The timing mode should be decided by checking MMC_TIMING_* like
drivers/mmc/host/sdhci-cadence.c in Linux, but "timing" is not
supported by U-Boot for now.  Just use mmc->clock to decide the
timing mode.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/mmc/sdhci-cadence.c