]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mmc: implement Driver Stage Register handling
authorSascha Hauer <s.hauer@pengutronix.de>
Tue, 19 Aug 2014 08:45:51 +0000 (10:45 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 9 Sep 2014 11:59:07 +0000 (13:59 +0200)
commit3d705d14fe4c72be83bae1610680e209ee226b9d
treef62e06a2feffe512962cf2ec00baccf52460cdbf
parentb315376573778b195e640a163675fb9f5937ddca
mmc: implement Driver Stage Register handling

Some eMMC and SD cards implement a DSR register that allows to tune
raise/fall times and drive strength of the CMD and DATA outputs.
The values to use depend on the card in use and the host.
It might be needed to reduce the drive strength to prevent voltage peaks
above the host's specification.

Implement a 'dsr' devicetree property that allows to specify the value
to set the DSR to. For non-dt setups the new members of mmc_host can be
set by board code.

This patch was initially authored by Sascha Hauer. It contains
improvements authored by Markus Niebel and Uwe Kleine-König.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Documentation/devicetree/bindings/mmc/mmc.txt
drivers/mmc/core/host.c
drivers/mmc/core/mmc.c
drivers/mmc/core/mmc_ops.c
drivers/mmc/core/mmc_ops.h
drivers/mmc/core/sd.c
include/linux/mmc/card.h
include/linux/mmc/host.h