summaryrefslogtreecommitdiff
path: root/include/dwmmc.h
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2016-07-28 14:26:24 +0900
committerJaehoon Chung <jh80.chung@samsung.com>2016-08-05 14:04:46 +0900
commit4587f53a582c9ab0bd908cff590755bfc03fced4 (patch)
tree743be1bd9d114a24d5676f3c4204475955c2f1ec /include/dwmmc.h
parent720724d09852858a3938f7bfcbbb3d1a0fdd6b4c (diff)
downloadu-boot-imx-4587f53a582c9ab0bd908cff590755bfc03fced4.zip
u-boot-imx-4587f53a582c9ab0bd908cff590755bfc03fced4.tar.gz
u-boot-imx-4587f53a582c9ab0bd908cff590755bfc03fced4.tar.bz2
mmc: dw_mmc: fix the wrong Mask bit boundary for fifo_count bit
According to DesignWare TRM, FIFO_COUNT is bit[29:17]. If get the correct fifo_count value, it has to use the FIFO_MASK as 0x1FFF, not 0x1FF. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Reviewed-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Diffstat (limited to 'include/dwmmc.h')
-rw-r--r--include/dwmmc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dwmmc.h b/include/dwmmc.h
index d18ec84..5b9602c 100644
--- a/include/dwmmc.h
+++ b/include/dwmmc.h
@@ -105,7 +105,7 @@
/* Status Register */
#define DWMCI_BUSY (1 << 9)
-#define DWMCI_FIFO_MASK 0x1ff
+#define DWMCI_FIFO_MASK 0x1fff
#define DWMCI_FIFO_SHIFT 17
/* FIFOTH Register */