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)
commit393c1a34dd852dbf0c409ec94dd48057100480ea
treee24e7ceda2f730cfe53f4c5744f979a45f0478d6
parent4b01681c77642c62a833187066c35e71e59caaf5
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