summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/compressed/mmcif-sh7372.c
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2011-08-03 06:08:54 +0000
committerPaul Mundt <lethal@linux-sh.org>2011-08-08 16:38:04 +0900
commitb3623080ff6974e696710b6c6eb4cdbf2bbab347 (patch)
treec2653e1cdec53d5c34e251190afe1ff0c015e860 /arch/arm/boot/compressed/mmcif-sh7372.c
parentb79b3e05b1229d5b2fc2af71dc29701642577eba (diff)
downloadblackbird-op-linux-b3623080ff6974e696710b6c6eb4cdbf2bbab347.tar.gz
blackbird-op-linux-b3623080ff6974e696710b6c6eb4cdbf2bbab347.zip
mmc: sdhi, mmcif: zboot: Correct clock disable logic
This corrects a logic-error that I made in the original implementation. An alternate patch would be to just remove these lines and leave the clock running as it is reconfigured later on during boot anyway. Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/arm/boot/compressed/mmcif-sh7372.c')
-rw-r--r--arch/arm/boot/compressed/mmcif-sh7372.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/boot/compressed/mmcif-sh7372.c b/arch/arm/boot/compressed/mmcif-sh7372.c
index b6f61d9a5a1b..672ae95db5c3 100644
--- a/arch/arm/boot/compressed/mmcif-sh7372.c
+++ b/arch/arm/boot/compressed/mmcif-sh7372.c
@@ -82,7 +82,7 @@ asmlinkage void mmc_loader(unsigned char *buf, unsigned long len)
/* Disable clock to MMC hardware block */
- __raw_writel(__raw_readl(SMSTPCR3) & (1 << 12), SMSTPCR3);
+ __raw_writel(__raw_readl(SMSTPCR3) | (1 << 12), SMSTPCR3);
mmc_update_progress(MMC_PROGRESS_DONE);
}
OpenPOWER on IntegriCloud