summaryrefslogtreecommitdiff
path: root/include/dwmmc.h
diff options
context:
space:
mode:
authorAmar <amarendra.xt@samsung.com>2013-04-27 11:42:55 +0530
committerMinkyu Kang <mk7.kang@samsung.com>2013-06-13 17:35:14 +0900
commita082a2dde06142bb599551ed3dad324923a130e0 (patch)
tree7376dc7eb064ad614f16ee9f3cc19d2f4564f24c /include/dwmmc.h
parent9c50e35ff2f8ead8df5781988927b51ea03c6192 (diff)
downloadu-boot-imx-a082a2dde06142bb599551ed3dad324923a130e0.zip
u-boot-imx-a082a2dde06142bb599551ed3dad324923a130e0.tar.gz
u-boot-imx-a082a2dde06142bb599551ed3dad324923a130e0.tar.bz2
EXYNOS5: DWMMC: Added FDT support for DWMMC
This patch adds FDT support for DWMMC, by reading the DWMMC node data from the device tree and initialising DWMMC channels as per data obtained from the node. Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com> Signed-off-by: Amar <amarendra.xt@samsung.com> Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'include/dwmmc.h')
-rw-r--r--include/dwmmc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/dwmmc.h b/include/dwmmc.h
index c8b1d40..e142f3e 100644
--- a/include/dwmmc.h
+++ b/include/dwmmc.h
@@ -123,6 +123,8 @@
#define MSIZE(x) ((x) << 28)
#define RX_WMARK(x) ((x) << 16)
#define TX_WMARK(x) (x)
+#define RX_WMARK_SHIFT 16
+#define RX_WMARK_MASK (0xfff << RX_WMARK_SHIFT)
#define DWMCI_IDMAC_OWN (1 << 31)
#define DWMCI_IDMAC_CH (1 << 4)
@@ -144,6 +146,7 @@ struct dwmci_host {
unsigned int bus_hz;
int dev_index;
int buswidth;
+ u32 clksel_val;
u32 fifoth_val;
struct mmc *mmc;