summaryrefslogtreecommitdiffstats
path: root/include/fsl_esdhc.h
diff options
context:
space:
mode:
authorRoy Zang <tie-fei.zang@freescale.com>2010-02-09 18:23:33 +0800
committerKumar Gala <galak@kernel.crashing.org>2010-04-07 00:01:11 -0500
commitab467c512e79dbd14f02352655f054a4304c457e (patch)
treeee85e5d76d5884ff6c8c2d816c706c787c86c119 /include/fsl_esdhc.h
parent48bb3bb5ac4dd21e931ae157caad6449bcb2d0d4 (diff)
downloadblackbird-obmc-uboot-ab467c512e79dbd14f02352655f054a4304c457e.tar.gz
blackbird-obmc-uboot-ab467c512e79dbd14f02352655f054a4304c457e.zip
fsl_esdhc: Only modify the field we are changing in WML
When we set the read or write watermark in WML we should maintain the rest of the register as is, rather than using some hard coded value. Signed-off-by: Roy Zang <tie-fei.zang@freescale.com> Acked-by: Stefano Babic <sbabic@denx.de> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include/fsl_esdhc.h')
-rw-r--r--include/fsl_esdhc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/fsl_esdhc.h b/include/fsl_esdhc.h
index 5f020187c2..f9ae15ad42 100644
--- a/include/fsl_esdhc.h
+++ b/include/fsl_esdhc.h
@@ -133,6 +133,8 @@
#define WML 0x2e044
#define WML_WRITE 0x00010000
+#define WML_RD_WML_MASK 0xff
+#define WML_WR_WML_MASK 0xff0000
#define BLKATTR 0x2e004
#define BLKATTR_CNT(x) ((x & 0xffff) << 16)
OpenPOWER on IntegriCloud