]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci: Add pre and post reset processing for chip specific reset
authorPhilip Rakity <prakity@marvell.com>
Fri, 21 Jan 2011 19:26:40 +0000 (11:26 -0800)
committerChris Ball <cjb@laptop.org>
Wed, 25 May 2011 01:02:33 +0000 (21:02 -0400)
commit393a3388f3001cabeab2c4f51c4e3aa1f0f13e55
treee24e7ceda2f730cfe53f4c5744f979a45f0478d6
parent4e02df0a06a3cb9f287167de597f1f4ed69bfa3a
mmc: sdhci: Add pre and post reset processing for chip specific reset

Marvell pxa controllers have private registers that may need to be
modified before and after a reset is done.

For example, the SD reset operation, RESET_ALL, will reset the private
registers to their default state.  This will cause the clock adjustment
registers that may have been programmed to have incorrect values.

RESET_DATA sometimes needs to be delayed before the reset is done
(depending on SoC) to enable any transactions being handled by the
SDIO card to be completed.  Needed in pre SD 3.0 silicon to handle
clock gating.

Implement hooks to allow this to happen.

Signed-off-by: Philip Rakity <prakity@marvell.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h